diff --git a/.stats.yml b/.stats.yml index de988b6e9..5642cfdad 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ -configured_endpoints: 1332 +configured_endpoints: 1330 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-60169622cdb93defdefea93ffc7d048f623611bd2220fbd0274f79e3e7bda5f0.yml diff --git a/README.md b/README.md index b7bf77f7c..48fc43abf 100644 --- a/README.md +++ b/README.md @@ -33,9 +33,7 @@ client = Cloudflare( ) zone = client.zones.create( - account={ - "id": "023e105f4ecef8ad9ca31a8372d0c353" - }, + account={"id": "023e105f4ecef8ad9ca31a8372d0c353"}, name="example.com", type="full", ) @@ -63,15 +61,15 @@ client = AsyncCloudflare( api_key=os.environ.get("CLOUDFLARE_API_KEY"), ) + async def main() -> None: - zone = await client.zones.create( - account={ - "id": "023e105f4ecef8ad9ca31a8372d0c353" - }, - name="example.com", - type="full", - ) - print(zone.id) + zone = await client.zones.create( + account={"id": "023e105f4ecef8ad9ca31a8372d0c353"}, + name="example.com", + type="full", + ) + print(zone.id) + asyncio.run(main()) ``` @@ -114,6 +112,7 @@ from cloudflare import AsyncCloudflare client = AsyncCloudflare() + async def main() -> None: all_accounts = [] # Iterate through items across all pages, issuing requests as needed. @@ -121,6 +120,7 @@ async def main() -> None: all_accounts.append(account) print(all_accounts) + asyncio.run(main()) ``` @@ -167,7 +167,7 @@ try: ) except cloudflare.APIConnectionError as e: print("The server could not be reached") - print(e.__cause__) # an underlying Exception, likely raised within httpx. + print(e.__cause__) # an underlying Exception, likely raised within httpx. except cloudflare.RateLimitError as e: print("A 429 status code was received; we should back off a bit.") except cloudflare.APIStatusError as e: @@ -207,7 +207,7 @@ client = Cloudflare( ) # Or, configure per-request: -client.with_options(max_retries = 5).zones.get( +client.with_options(max_retries=5).zones.get( zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) ``` @@ -232,7 +232,7 @@ client = Cloudflare( ) # Override per-request: -client.with_options(timeout = 5.0).zones.edit( +client.with_options(timeout=5.0).zones.edit( zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) ``` @@ -298,16 +298,14 @@ To stream the response body, use `.with_streaming_response` instead, which requi ```python with client.zones.with_streaming_response.create( - account={ - "id": "023e105f4ecef8ad9ca31a8372d0c353" - }, + account={"id": "023e105f4ecef8ad9ca31a8372d0c353"}, name="example.com", type="full", -) as response : - print(response.headers.get('X-My-Header')) +) as response: + print(response.headers.get("X-My-Header")) for line in response.iter_lines(): - print(line) + print(line) ``` The context manager is required so that the response will reliably be closed. @@ -361,7 +359,10 @@ from cloudflare import Cloudflare, DefaultHttpxClient client = Cloudflare( # Or use the `CLOUDFLARE_BASE_URL` env var base_url="http://my.test.server.example.com:8083", - http_client=DefaultHttpxClient(proxies="http://my.test.proxy.example.com", transport=httpx.HTTPTransport(local_address="0.0.0.0")), + http_client=DefaultHttpxClient( + proxies="http://my.test.proxy.example.com", + transport=httpx.HTTPTransport(local_address="0.0.0.0"), + ), ) ``` diff --git a/api.md b/api.md index 4a127ad4f..64516937f 100644 --- a/api.md +++ b/api.md @@ -1,7 +1,24 @@ # Shared Types ```python -from cloudflare.types import ASN, AuditLog, CertificateCA, CertificateRequestType, CloudflareTunnel, ErrorData, Identifier, LoadBalancerPreview, Member, PaginationInfo, Permission, PermissionGrant, ResponseInfo, Result, Role, SortDirection +from cloudflare.types import ( + ASN, + AuditLog, + CertificateCA, + CertificateRequestType, + CloudflareTunnel, + ErrorData, + Identifier, + LoadBalancerPreview, + Member, + PaginationInfo, + Permission, + PermissionGrant, + ResponseInfo, + Result, + Role, + SortDirection, +) ``` # Accounts @@ -25,7 +42,15 @@ Methods: Types: ```python -from cloudflare.types.accounts import Status, UserWithInviteCode, MemberCreateResponse, MemberUpdateResponse, MemberListResponse, MemberDeleteResponse, MemberGetResponse +from cloudflare.types.accounts import ( + Status, + UserWithInviteCode, + MemberCreateResponse, + MemberUpdateResponse, + MemberListResponse, + MemberDeleteResponse, + MemberGetResponse, +) ``` Methods: @@ -54,7 +79,10 @@ Methods: Types: ```python -from cloudflare.types.origin_ca_certificates import OriginCACertificate, OriginCACertificateDeleteResponse +from cloudflare.types.origin_ca_certificates import ( + OriginCACertificate, + OriginCACertificateDeleteResponse, +) ``` Methods: @@ -81,7 +109,12 @@ Methods: Types: ```python -from cloudflare.types.memberships import Membership, MembershipUpdateResponse, MembershipDeleteResponse, MembershipGetResponse +from cloudflare.types.memberships import ( + Membership, + MembershipUpdateResponse, + MembershipDeleteResponse, + MembershipGetResponse, +) ``` Methods: @@ -169,7 +202,15 @@ Methods: Types: ```python -from cloudflare.types.user import RatePlan, Subscription, SubscriptionComponent, SubscriptionZone, SubscriptionUpdateResponse, SubscriptionDeleteResponse, SubscriptionGetResponse +from cloudflare.types.user import ( + RatePlan, + Subscription, + SubscriptionComponent, + SubscriptionZone, + SubscriptionUpdateResponse, + SubscriptionDeleteResponse, + SubscriptionGetResponse, +) ``` Methods: @@ -183,7 +224,17 @@ Methods: Types: ```python -from cloudflare.types.user import CIDRList, Policy, Token, TokenCreateResponse, TokenUpdateResponse, TokenListResponse, TokenDeleteResponse, TokenGetResponse, TokenVerifyResponse +from cloudflare.types.user import ( + CIDRList, + Policy, + Token, + TokenCreateResponse, + TokenUpdateResponse, + TokenListResponse, + TokenDeleteResponse, + TokenGetResponse, + TokenVerifyResponse, +) ``` Methods: @@ -252,7 +303,59 @@ Methods: Types: ```python -from cloudflare.types.zones import AdvancedDDoS, AlwaysOnline, AlwaysUseHTTPS, AutomaticHTTPSRewrites, AutomaticPlatformOptimization, Brotli, BrowserCacheTTL, BrowserCheck, CacheLevel, ChallengeTTL, Ciphers, DevelopmentMode, EarlyHints, EmailObfuscation, FontSettings, H2Prioritization, HotlinkProtection, HTTP2, HTTP3, ImageResizing, IPGeolocation, IPV6, MinTLSVersion, Mirage, NEL, OpportunisticEncryption, OpportunisticOnion, OrangeToOrange, OriginErrorPagePassThru, OriginMaxHTTPVersion, Polish, PrefetchPreload, ProxyReadTimeout, PseudoIPV4, ResponseBuffering, RocketLoader, SecurityHeaders, SecurityLevel, ServerSideExcludes, SortQueryStringForCache, SSL, SSLRecommender, TLS1_3, TLSClientAuth, TrueClientIPHeader, WAF, WebP, Websocket, ZeroRTT, SettingEditResponse, SettingGetResponse +from cloudflare.types.zones import ( + AdvancedDDoS, + AlwaysOnline, + AlwaysUseHTTPS, + AutomaticHTTPSRewrites, + AutomaticPlatformOptimization, + Brotli, + BrowserCacheTTL, + BrowserCheck, + CacheLevel, + ChallengeTTL, + Ciphers, + DevelopmentMode, + EarlyHints, + EmailObfuscation, + FontSettings, + H2Prioritization, + HotlinkProtection, + HTTP2, + HTTP3, + ImageResizing, + IPGeolocation, + IPV6, + MinTLSVersion, + Mirage, + NEL, + OpportunisticEncryption, + OpportunisticOnion, + OrangeToOrange, + OriginErrorPagePassThru, + OriginMaxHTTPVersion, + Polish, + PrefetchPreload, + ProxyReadTimeout, + PseudoIPV4, + ResponseBuffering, + RocketLoader, + SecurityHeaders, + SecurityLevel, + ServerSideExcludes, + SortQueryStringForCache, + SSL, + SSLRecommender, + TLS1_3, + TLSClientAuth, + TrueClientIPHeader, + WAF, + WebP, + Websocket, + ZeroRTT, + SettingEditResponse, + SettingGetResponse, +) ``` Methods: @@ -292,7 +395,11 @@ Methods: Types: ```python -from cloudflare.types.zones import SubscriptionCreateResponse, SubscriptionUpdateResponse, SubscriptionGetResponse +from cloudflare.types.zones import ( + SubscriptionCreateResponse, + SubscriptionUpdateResponse, + SubscriptionGetResponse, +) ``` Methods: @@ -306,7 +413,26 @@ Methods: Types: ```python -from cloudflare.types.load_balancers import AdaptiveRouting, CheckRegion, DefaultPools, FilterOptions, Header, Host, LoadBalancer, LoadShedding, LocationStrategy, NotificationFilter, Origin, OriginSteering, RandomSteering, Rules, SessionAffinity, SessionAffinityAttributes, SteeringPolicy, LoadBalancerDeleteResponse +from cloudflare.types.load_balancers import ( + AdaptiveRouting, + CheckRegion, + DefaultPools, + FilterOptions, + Header, + Host, + LoadBalancer, + LoadShedding, + LocationStrategy, + NotificationFilter, + Origin, + OriginSteering, + RandomSteering, + Rules, + SessionAffinity, + SessionAffinityAttributes, + SteeringPolicy, + LoadBalancerDeleteResponse, +) ``` Methods: @@ -455,7 +581,15 @@ Methods: Types: ```python -from cloudflare.types.cache import CacheReserve, CacheReserveClear, State, CacheReserveClearResponse, CacheReserveEditResponse, CacheReserveGetResponse, CacheReserveStatusResponse +from cloudflare.types.cache import ( + CacheReserve, + CacheReserveClear, + State, + CacheReserveClearResponse, + CacheReserveEditResponse, + CacheReserveGetResponse, + CacheReserveStatusResponse, +) ``` Methods: @@ -470,7 +604,11 @@ Methods: Types: ```python -from cloudflare.types.cache import SmartTieredCacheDeleteResponse, SmartTieredCacheEditResponse, SmartTieredCacheGetResponse +from cloudflare.types.cache import ( + SmartTieredCacheDeleteResponse, + SmartTieredCacheEditResponse, + SmartTieredCacheGetResponse, +) ``` Methods: @@ -484,7 +622,12 @@ Methods: Types: ```python -from cloudflare.types.cache import CacheVariant, CacheVariantIdentifier, VariantEditResponse, VariantGetResponse +from cloudflare.types.cache import ( + CacheVariant, + CacheVariantIdentifier, + VariantEditResponse, + VariantGetResponse, +) ``` Methods: @@ -498,7 +641,11 @@ Methods: Types: ```python -from cloudflare.types.cache import RegionalTieredCache, RegionalTieredCacheEditResponse, RegionalTieredCacheGetResponse +from cloudflare.types.cache import ( + RegionalTieredCache, + RegionalTieredCacheEditResponse, + RegionalTieredCacheGetResponse, +) ``` Methods: @@ -525,7 +672,16 @@ Methods: Types: ```python -from cloudflare.types.ssl import Host, RequestValidity, Status, ValidationMethod, CertificatePackListResponse, CertificatePackDeleteResponse, CertificatePackEditResponse, CertificatePackGetResponse +from cloudflare.types.ssl import ( + Host, + RequestValidity, + Status, + ValidationMethod, + CertificatePackListResponse, + CertificatePackDeleteResponse, + CertificatePackEditResponse, + CertificatePackGetResponse, +) ``` Methods: @@ -604,7 +760,12 @@ Methods: Types: ```python -from cloudflare.types.subscriptions import SubscriptionCreateResponse, SubscriptionUpdateResponse, SubscriptionDeleteResponse, SubscriptionGetResponse +from cloudflare.types.subscriptions import ( + SubscriptionCreateResponse, + SubscriptionUpdateResponse, + SubscriptionDeleteResponse, + SubscriptionGetResponse, +) ``` Methods: @@ -690,7 +851,12 @@ Methods: Types: ```python -from cloudflare.types.certificate_authorities import HostnameAssociation, TLSHostnameAssociation, HostnameAssociationUpdateResponse, HostnameAssociationGetResponse +from cloudflare.types.certificate_authorities import ( + HostnameAssociation, + TLSHostnameAssociation, + HostnameAssociationUpdateResponse, + HostnameAssociationGetResponse, +) ``` Methods: @@ -719,7 +885,12 @@ Methods: Types: ```python -from cloudflare.types.custom_certificates import CustomCertificate, GeoRestrictions, Status, CustomCertificateDeleteResponse +from cloudflare.types.custom_certificates import ( + CustomCertificate, + GeoRestrictions, + Status, + CustomCertificateDeleteResponse, +) ``` Methods: @@ -747,7 +918,17 @@ Methods: Types: ```python -from cloudflare.types.custom_hostnames import BundleMethod, CustomHostname, DCVMethod, DomainValidationType, CustomHostnameCreateResponse, CustomHostnameListResponse, CustomHostnameDeleteResponse, CustomHostnameEditResponse, CustomHostnameGetResponse +from cloudflare.types.custom_hostnames import ( + BundleMethod, + CustomHostname, + DCVMethod, + DomainValidationType, + CustomHostnameCreateResponse, + CustomHostnameListResponse, + CustomHostnameDeleteResponse, + CustomHostnameEditResponse, + CustomHostnameGetResponse, +) ``` Methods: @@ -763,7 +944,11 @@ Methods: Types: ```python -from cloudflare.types.custom_hostnames import FallbackOriginUpdateResponse, FallbackOriginDeleteResponse, FallbackOriginGetResponse +from cloudflare.types.custom_hostnames import ( + FallbackOriginUpdateResponse, + FallbackOriginDeleteResponse, + FallbackOriginGetResponse, +) ``` Methods: @@ -777,7 +962,12 @@ Methods: Types: ```python -from cloudflare.types.custom_nameservers import CustomNameserver, CustomNameserverDeleteResponse, CustomNameserverAvailabiltyResponse, CustomNameserverGetResponse +from cloudflare.types.custom_nameservers import ( + CustomNameserver, + CustomNameserverDeleteResponse, + CustomNameserverAvailabiltyResponse, + CustomNameserverGetResponse, +) ``` Methods: @@ -800,7 +990,41 @@ from cloudflare.types.dns import DNSAnalyticsNominalMetric, DNSAnalyticsQuery Types: ```python -from cloudflare.types.dns import ARecord, AAAARecord, CAARecord, CERTRecord, CNAMERecord, DNSKEYRecord, DSRecord, HTTPSRecord, LOCRecord, MXRecord, NAPTRRecord, NSRecord, PTRRecord, Record, RecordProcessTiming, RecordTags, SMIMEARecord, SRVRecord, SSHFPRecord, SVCBRecord, TLSARecord, TTL, TXTRecord, URIRecord, RecordCreateResponse, RecordUpdateResponse, RecordListResponse, RecordDeleteResponse, RecordEditResponse, RecordExportResponse, RecordGetResponse, RecordImportResponse, RecordScanResponse +from cloudflare.types.dns import ( + ARecord, + AAAARecord, + CAARecord, + CERTRecord, + CNAMERecord, + DNSKEYRecord, + DSRecord, + HTTPSRecord, + LOCRecord, + MXRecord, + NAPTRRecord, + NSRecord, + PTRRecord, + Record, + RecordProcessTiming, + RecordTags, + SMIMEARecord, + SRVRecord, + SSHFPRecord, + SVCBRecord, + TLSARecord, + TTL, + TXTRecord, + URIRecord, + RecordCreateResponse, + RecordUpdateResponse, + RecordListResponse, + RecordDeleteResponse, + RecordEditResponse, + RecordExportResponse, + RecordGetResponse, + RecordImportResponse, + RecordScanResponse, +) ``` Methods: @@ -859,7 +1083,16 @@ Methods: Types: ```python -from cloudflare.types.dns import AttackMitigation, FirewallIPs, UpstreamIPs, FirewallCreateResponse, FirewallListResponse, FirewallDeleteResponse, FirewallEditResponse, FirewallGetResponse +from cloudflare.types.dns import ( + AttackMitigation, + FirewallIPs, + UpstreamIPs, + FirewallCreateResponse, + FirewallListResponse, + FirewallDeleteResponse, + FirewallEditResponse, + FirewallGetResponse, +) ``` Methods: @@ -911,7 +1144,14 @@ Methods: Types: ```python -from cloudflare.types.email_security import InvestigateListResponse, InvestigateDetectionsResponse, InvestigateGetResponse, InvestigatePreviewResponse, InvestigateRawResponse, InvestigateTraceResponse +from cloudflare.types.email_security import ( + InvestigateListResponse, + InvestigateDetectionsResponse, + InvestigateGetResponse, + InvestigatePreviewResponse, + InvestigateRawResponse, + InvestigateTraceResponse, +) ``` Methods: @@ -942,7 +1182,13 @@ Methods: Types: ```python -from cloudflare.types.email_security.settings import AllowPatternCreateResponse, AllowPatternListResponse, AllowPatternDeleteResponse, AllowPatternEditResponse, AllowPatternGetResponse +from cloudflare.types.email_security.settings import ( + AllowPatternCreateResponse, + AllowPatternListResponse, + AllowPatternDeleteResponse, + AllowPatternEditResponse, + AllowPatternGetResponse, +) ``` Methods: @@ -958,7 +1204,13 @@ Methods: Types: ```python -from cloudflare.types.email_security.settings import BlockSenderCreateResponse, BlockSenderListResponse, BlockSenderDeleteResponse, BlockSenderEditResponse, BlockSenderGetResponse +from cloudflare.types.email_security.settings import ( + BlockSenderCreateResponse, + BlockSenderListResponse, + BlockSenderDeleteResponse, + BlockSenderEditResponse, + BlockSenderGetResponse, +) ``` Methods: @@ -974,7 +1226,11 @@ Methods: Types: ```python -from cloudflare.types.email_security.settings import DomainListResponse, DomainDeleteResponse, DomainEditResponse +from cloudflare.types.email_security.settings import ( + DomainListResponse, + DomainDeleteResponse, + DomainEditResponse, +) ``` Methods: @@ -988,7 +1244,13 @@ Methods: Types: ```python -from cloudflare.types.email_security.settings import ImpersonationRegistryCreateResponse, ImpersonationRegistryListResponse, ImpersonationRegistryDeleteResponse, ImpersonationRegistryEditResponse, ImpersonationRegistryGetResponse +from cloudflare.types.email_security.settings import ( + ImpersonationRegistryCreateResponse, + ImpersonationRegistryListResponse, + ImpersonationRegistryDeleteResponse, + ImpersonationRegistryEditResponse, + ImpersonationRegistryGetResponse, +) ``` Methods: @@ -1004,7 +1266,13 @@ Methods: Types: ```python -from cloudflare.types.email_security.settings import TrustedDomainCreateResponse, TrustedDomainListResponse, TrustedDomainDeleteResponse, TrustedDomainEditResponse, TrustedDomainGetResponse +from cloudflare.types.email_security.settings import ( + TrustedDomainCreateResponse, + TrustedDomainListResponse, + TrustedDomainDeleteResponse, + TrustedDomainEditResponse, + TrustedDomainGetResponse, +) ``` Methods: @@ -1065,7 +1333,12 @@ Methods: Types: ```python -from cloudflare.types.email_routing.rules import CatchAllAction, CatchAllMatcher, CatchAllUpdateResponse, CatchAllGetResponse +from cloudflare.types.email_routing.rules import ( + CatchAllAction, + CatchAllMatcher, + CatchAllUpdateResponse, + CatchAllGetResponse, +) ``` Methods: @@ -1111,7 +1384,14 @@ Methods: Types: ```python -from cloudflare.types.firewall import Configuration, Lockdown, LockdownCIDRConfiguration, LockdownIPConfiguration, LockdownURL, LockdownDeleteResponse +from cloudflare.types.firewall import ( + Configuration, + Lockdown, + LockdownCIDRConfiguration, + LockdownIPConfiguration, + LockdownURL, + LockdownDeleteResponse, +) ``` Methods: @@ -1127,7 +1407,13 @@ Methods: Types: ```python -from cloudflare.types.firewall import FirewallRule, Product, DeletedFilter, RuleCreateResponse, RuleEditResponse +from cloudflare.types.firewall import ( + FirewallRule, + Product, + DeletedFilter, + RuleCreateResponse, + RuleEditResponse, +) ``` Methods: @@ -1144,7 +1430,18 @@ Methods: Types: ```python -from cloudflare.types.firewall import AccessRuleCIDRConfiguration, AccessRuleIPConfiguration, ASNConfiguration, CountryConfiguration, IPV6Configuration, AccessRuleCreateResponse, AccessRuleListResponse, AccessRuleDeleteResponse, AccessRuleEditResponse, AccessRuleGetResponse +from cloudflare.types.firewall import ( + AccessRuleCIDRConfiguration, + AccessRuleIPConfiguration, + ASNConfiguration, + CountryConfiguration, + IPV6Configuration, + AccessRuleCreateResponse, + AccessRuleListResponse, + AccessRuleDeleteResponse, + AccessRuleEditResponse, + AccessRuleGetResponse, +) ``` Methods: @@ -1160,7 +1457,13 @@ Methods: Types: ```python -from cloudflare.types.firewall import UARuleCreateResponse, UARuleUpdateResponse, UARuleListResponse, UARuleDeleteResponse, UARuleGetResponse +from cloudflare.types.firewall import ( + UARuleCreateResponse, + UARuleUpdateResponse, + UARuleListResponse, + UARuleDeleteResponse, + UARuleGetResponse, +) ``` Methods: @@ -1178,7 +1481,13 @@ Methods: Types: ```python -from cloudflare.types.firewall.waf import Override, OverrideURL, RewriteAction, WAFRule, OverrideDeleteResponse +from cloudflare.types.firewall.waf import ( + Override, + OverrideURL, + RewriteAction, + WAFRule, + OverrideDeleteResponse, +) ``` Methods: @@ -1221,7 +1530,13 @@ Methods: Types: ```python -from cloudflare.types.firewall.waf.packages import AllowedModesAnomaly, WAFRuleGroup, RuleListResponse, RuleEditResponse, RuleGetResponse +from cloudflare.types.firewall.waf.packages import ( + AllowedModesAnomaly, + WAFRuleGroup, + RuleListResponse, + RuleEditResponse, + RuleGetResponse, +) ``` Methods: @@ -1235,7 +1550,14 @@ Methods: Types: ```python -from cloudflare.types.healthchecks import CheckRegion, Healthcheck, HTTPConfiguration, QueryHealthcheck, TCPConfiguration, HealthcheckDeleteResponse +from cloudflare.types.healthchecks import ( + CheckRegion, + Healthcheck, + HTTPConfiguration, + QueryHealthcheck, + TCPConfiguration, + HealthcheckDeleteResponse, +) ``` Methods: @@ -1266,7 +1588,11 @@ Methods: Types: ```python -from cloudflare.types.keyless_certificates import KeylessCertificate, Tunnel, KeylessCertificateDeleteResponse +from cloudflare.types.keyless_certificates import ( + KeylessCertificate, + Tunnel, + KeylessCertificateDeleteResponse, +) ``` Methods: @@ -1462,7 +1788,12 @@ Methods: Types: ```python -from cloudflare.types.origin_tls_client_auth.hostnames import Certificate, CertificateCreateResponse, CertificateDeleteResponse, CertificateGetResponse +from cloudflare.types.origin_tls_client_auth.hostnames import ( + Certificate, + CertificateCreateResponse, + CertificateDeleteResponse, + CertificateGetResponse, +) ``` Methods: @@ -1490,7 +1821,17 @@ Methods: Types: ```python -from cloudflare.types.pagerules import PageRule, Route, Target, PageruleCreateResponse, PageruleUpdateResponse, PageruleListResponse, PageruleDeleteResponse, PageruleEditResponse, PageruleGetResponse +from cloudflare.types.pagerules import ( + PageRule, + Route, + Target, + PageruleCreateResponse, + PageruleUpdateResponse, + PageruleListResponse, + PageruleDeleteResponse, + PageruleEditResponse, + PageruleGetResponse, +) ``` Methods: @@ -1519,7 +1860,15 @@ Methods: Types: ```python -from cloudflare.types.rate_limits import Action, Methods, RateLimit, RateLimitCreateResponse, RateLimitDeleteResponse, RateLimitEditResponse, RateLimitGetResponse +from cloudflare.types.rate_limits import ( + Action, + Methods, + RateLimit, + RateLimitCreateResponse, + RateLimitDeleteResponse, + RateLimitEditResponse, + RateLimitGetResponse, +) ``` Methods: @@ -1549,7 +1898,13 @@ Methods: Types: ```python -from cloudflare.types.secondary_dns import Incoming, IncomingCreateResponse, IncomingUpdateResponse, IncomingDeleteResponse, IncomingGetResponse +from cloudflare.types.secondary_dns import ( + Incoming, + IncomingCreateResponse, + IncomingUpdateResponse, + IncomingDeleteResponse, + IncomingGetResponse, +) ``` Methods: @@ -1564,7 +1919,17 @@ Methods: Types: ```python -from cloudflare.types.secondary_dns import DisableTransfer, EnableTransfer, Outgoing, OutgoingStatus, OutgoingCreateResponse, OutgoingUpdateResponse, OutgoingDeleteResponse, OutgoingForceNotifyResponse, OutgoingGetResponse +from cloudflare.types.secondary_dns import ( + DisableTransfer, + EnableTransfer, + Outgoing, + OutgoingStatus, + OutgoingCreateResponse, + OutgoingUpdateResponse, + OutgoingDeleteResponse, + OutgoingForceNotifyResponse, + OutgoingGetResponse, +) ``` Methods: @@ -1636,7 +2001,13 @@ Methods: Types: ```python -from cloudflare.types.waiting_rooms import AdditionalRoutes, CookieAttributes, Query, WaitingRoom, WaitingRoomDeleteResponse +from cloudflare.types.waiting_rooms import ( + AdditionalRoutes, + CookieAttributes, + Query, + WaitingRoom, + WaitingRoomDeleteResponse, +) ``` Methods: @@ -1694,7 +2065,14 @@ Methods: Types: ```python -from cloudflare.types.waiting_rooms import WaitingRoomRule, RuleCreateResponse, RuleUpdateResponse, RuleDeleteResponse, RuleEditResponse, RuleGetResponse +from cloudflare.types.waiting_rooms import ( + WaitingRoomRule, + RuleCreateResponse, + RuleUpdateResponse, + RuleDeleteResponse, + RuleEditResponse, + RuleGetResponse, +) ``` Methods: @@ -1722,7 +2100,12 @@ Methods: Types: ```python -from cloudflare.types.waiting_rooms import Setting, SettingUpdateResponse, SettingEditResponse, SettingGetResponse +from cloudflare.types.waiting_rooms import ( + Setting, + SettingUpdateResponse, + SettingEditResponse, + SettingGetResponse, +) ``` Methods: @@ -1769,7 +2152,13 @@ Methods: Types: ```python -from cloudflare.types.web3.hostnames.ipfs_universal_paths.content_lists import EntryCreateResponse, EntryUpdateResponse, EntryListResponse, EntryDeleteResponse, EntryGetResponse +from cloudflare.types.web3.hostnames.ipfs_universal_paths.content_lists import ( + EntryCreateResponse, + EntryUpdateResponse, + EntryListResponse, + EntryDeleteResponse, + EntryGetResponse, +) ``` Methods: @@ -1785,7 +2174,21 @@ Methods: Types: ```python -from cloudflare.types.workers import Binding, D1Binding, DispatchNamespaceBinding, DurableObjectBinding, KVNamespaceBinding, MigrationStep, MTLSCERTBinding, PlacementConfiguration, R2Binding, ServiceBinding, SingleStepMigration, SteppedMigration, WorkerMetadata +from cloudflare.types.workers import ( + Binding, + D1Binding, + DispatchNamespaceBinding, + DurableObjectBinding, + KVNamespaceBinding, + MigrationStep, + MTLSCERTBinding, + PlacementConfiguration, + R2Binding, + ServiceBinding, + SingleStepMigration, + SteppedMigration, + WorkerMetadata, +) ``` ## AI @@ -1847,7 +2250,12 @@ Methods: Types: ```python -from cloudflare.types.workers.scripts import ConsumerScript, TailCreateResponse, TailDeleteResponse, TailGetResponse +from cloudflare.types.workers.scripts import ( + ConsumerScript, + TailCreateResponse, + TailDeleteResponse, + TailGetResponse, +) ``` Methods: @@ -1875,7 +2283,11 @@ Methods: Types: ```python -from cloudflare.types.workers.scripts import Deployment, DeploymentCreateResponse, DeploymentGetResponse +from cloudflare.types.workers.scripts import ( + Deployment, + DeploymentCreateResponse, + DeploymentGetResponse, +) ``` Methods: @@ -1888,7 +2300,11 @@ Methods: Types: ```python -from cloudflare.types.workers.scripts import VersionCreateResponse, VersionListResponse, VersionGetResponse +from cloudflare.types.workers.scripts import ( + VersionCreateResponse, + VersionListResponse, + VersionGetResponse, +) ``` Methods: @@ -2054,7 +2470,13 @@ Methods: Types: ```python -from cloudflare.types.queues import Consumer, ConsumerCreateResponse, ConsumerUpdateResponse, ConsumerDeleteResponse, ConsumerGetResponse +from cloudflare.types.queues import ( + Consumer, + ConsumerCreateResponse, + ConsumerUpdateResponse, + ConsumerDeleteResponse, + ConsumerGetResponse, +) ``` Methods: @@ -2122,7 +2544,13 @@ Methods: Types: ```python -from cloudflare.types.api_gateway import APIShield, OperationCreateResponse, OperationListResponse, OperationDeleteResponse, OperationGetResponse +from cloudflare.types.api_gateway import ( + APIShield, + OperationCreateResponse, + OperationListResponse, + OperationDeleteResponse, + OperationGetResponse, +) ``` Methods: @@ -2137,7 +2565,11 @@ Methods: Types: ```python -from cloudflare.types.api_gateway.operations import SettingsMultipleRequest, SchemaValidationUpdateResponse, SchemaValidationGetResponse +from cloudflare.types.api_gateway.operations import ( + SettingsMultipleRequest, + SchemaValidationUpdateResponse, + SchemaValidationGetResponse, +) ``` Methods: @@ -2179,7 +2611,12 @@ Methods: Types: ```python -from cloudflare.types.api_gateway import Message, PublicSchema, SchemaUpload, UserSchemaDeleteResponse +from cloudflare.types.api_gateway import ( + Message, + PublicSchema, + SchemaUpload, + UserSchemaDeleteResponse, +) ``` Methods: @@ -2207,7 +2644,11 @@ Methods: Types: ```python -from cloudflare.types.managed_headers import RequestModel, ManagedHeaderListResponse, ManagedHeaderEditResponse +from cloudflare.types.managed_headers import ( + RequestModel, + ManagedHeaderListResponse, + ManagedHeaderEditResponse, +) ``` Methods: @@ -2233,7 +2674,13 @@ Methods: Types: ```python -from cloudflare.types.page_shield import Policy, PolicyCreateResponse, PolicyUpdateResponse, PolicyListResponse, PolicyGetResponse +from cloudflare.types.page_shield import ( + Policy, + PolicyCreateResponse, + PolicyUpdateResponse, + PolicyListResponse, + PolicyGetResponse, +) ``` Methods: @@ -2288,7 +2735,15 @@ Methods: Types: ```python -from cloudflare.types.rulesets import Kind, Phase, Ruleset, RulesetCreateResponse, RulesetUpdateResponse, RulesetListResponse, RulesetGetResponse +from cloudflare.types.rulesets import ( + Kind, + Phase, + Ruleset, + RulesetCreateResponse, + RulesetUpdateResponse, + RulesetListResponse, + RulesetGetResponse, +) ``` Methods: @@ -2330,7 +2785,30 @@ Methods: Types: ```python -from cloudflare.types.rulesets import BlockRule, CompressResponseRule, DDoSDynamicRule, ExecuteRule, ForceConnectionCloseRule, LogCustomFieldRule, LogRule, Logging, ManagedChallengeRule, RedirectRule, RewriteRule, RewriteURIPart, RouteRule, RulesetRule, ScoreRule, ServeErrorRule, SetCacheSettingsRule, SetConfigRule, SkipRule, RuleCreateResponse, RuleDeleteResponse, RuleEditResponse +from cloudflare.types.rulesets import ( + BlockRule, + CompressResponseRule, + DDoSDynamicRule, + ExecuteRule, + ForceConnectionCloseRule, + LogCustomFieldRule, + LogRule, + Logging, + ManagedChallengeRule, + RedirectRule, + RewriteRule, + RewriteURIPart, + RouteRule, + RulesetRule, + ScoreRule, + ServeErrorRule, + SetCacheSettingsRule, + SetConfigRule, + SkipRule, + RuleCreateResponse, + RuleDeleteResponse, + RuleEditResponse, +) ``` Methods: @@ -2370,7 +2848,10 @@ Methods: Types: ```python -from cloudflare.types.url_normalization import URLNormalizationUpdateResponse, URLNormalizationGetResponse +from cloudflare.types.url_normalization import ( + URLNormalizationUpdateResponse, + URLNormalizationGetResponse, +) ``` Methods: @@ -2439,7 +2920,13 @@ Methods: Types: ```python -from cloudflare.types.spectrum import AppCreateResponse, AppUpdateResponse, AppListResponse, AppDeleteResponse, AppGetResponse +from cloudflare.types.spectrum import ( + AppCreateResponse, + AppUpdateResponse, + AppListResponse, + AppDeleteResponse, + AppGetResponse, +) ``` Methods: @@ -2457,7 +2944,13 @@ Methods: Types: ```python -from cloudflare.types.addressing import RegionalHostnameCreateResponse, RegionalHostnameListResponse, RegionalHostnameDeleteResponse, RegionalHostnameEditResponse, RegionalHostnameGetResponse +from cloudflare.types.addressing import ( + RegionalHostnameCreateResponse, + RegionalHostnameListResponse, + RegionalHostnameDeleteResponse, + RegionalHostnameEditResponse, + RegionalHostnameGetResponse, +) ``` Methods: @@ -2497,7 +2990,13 @@ Methods: Types: ```python -from cloudflare.types.addressing import AddressMap, Kind, AddressMapCreateResponse, AddressMapDeleteResponse, AddressMapGetResponse +from cloudflare.types.addressing import ( + AddressMap, + Kind, + AddressMapCreateResponse, + AddressMapDeleteResponse, + AddressMapGetResponse, +) ``` Methods: @@ -2664,7 +3163,13 @@ Methods: Types: ```python -from cloudflare.types.brand_protection import Info, RuleMatch, ScanStatus, Submit, URLInfoModelResults +from cloudflare.types.brand_protection import ( + Info, + RuleMatch, + ScanStatus, + Submit, + URLInfoModelResults, +) ``` Methods: @@ -2735,7 +3240,13 @@ Methods: Types: ```python -from cloudflare.types.images.v1 import Variant, VariantCreateResponse, VariantDeleteResponse, VariantEditResponse, VariantGetResponse +from cloudflare.types.images.v1 import ( + Variant, + VariantCreateResponse, + VariantDeleteResponse, + VariantEditResponse, + VariantGetResponse, +) ``` Methods: @@ -2897,7 +3408,13 @@ Methods: Types: ```python -from cloudflare.types.intel import IndicatorFeedCreateResponse, IndicatorFeedUpdateResponse, IndicatorFeedListResponse, IndicatorFeedDataResponse, IndicatorFeedGetResponse +from cloudflare.types.intel import ( + IndicatorFeedCreateResponse, + IndicatorFeedUpdateResponse, + IndicatorFeedListResponse, + IndicatorFeedDataResponse, + IndicatorFeedGetResponse, +) ``` Methods: @@ -2925,7 +3442,11 @@ Methods: Types: ```python -from cloudflare.types.intel.indicator_feeds import PermissionCreateResponse, PermissionListResponse, PermissionDeleteResponse +from cloudflare.types.intel.indicator_feeds import ( + PermissionCreateResponse, + PermissionListResponse, + PermissionDeleteResponse, +) ``` Methods: @@ -2977,7 +3498,15 @@ Methods: Types: ```python -from cloudflare.types.intel.attack_surface_report import IssueType, SeverityQueryParam, IssueListResponse, IssueClassResponse, IssueDismissResponse, IssueSeverityResponse, IssueTypeResponse +from cloudflare.types.intel.attack_surface_report import ( + IssueType, + SeverityQueryParam, + IssueListResponse, + IssueClassResponse, + IssueDismissResponse, + IssueSeverityResponse, + IssueTypeResponse, +) ``` Methods: @@ -3001,7 +3530,12 @@ from cloudflare.types.magic_transit import HealthCheck, HealthCheckRate, HealthC Types: ```python -from cloudflare.types.magic_transit import AppCreateResponse, AppUpdateResponse, AppListResponse, AppDeleteResponse +from cloudflare.types.magic_transit import ( + AppCreateResponse, + AppUpdateResponse, + AppListResponse, + AppDeleteResponse, +) ``` Methods: @@ -3016,7 +3550,11 @@ Methods: Types: ```python -from cloudflare.types.magic_transit import CfInterconnectUpdateResponse, CfInterconnectListResponse, CfInterconnectGetResponse +from cloudflare.types.magic_transit import ( + CfInterconnectUpdateResponse, + CfInterconnectListResponse, + CfInterconnectGetResponse, +) ``` Methods: @@ -3030,7 +3568,13 @@ Methods: Types: ```python -from cloudflare.types.magic_transit import GRETunnelCreateResponse, GRETunnelUpdateResponse, GRETunnelListResponse, GRETunnelDeleteResponse, GRETunnelGetResponse +from cloudflare.types.magic_transit import ( + GRETunnelCreateResponse, + GRETunnelUpdateResponse, + GRETunnelListResponse, + GRETunnelDeleteResponse, + GRETunnelGetResponse, +) ``` Methods: @@ -3046,7 +3590,15 @@ Methods: Types: ```python -from cloudflare.types.magic_transit import PSKMetadata, IPSECTunnelCreateResponse, IPSECTunnelUpdateResponse, IPSECTunnelListResponse, IPSECTunnelDeleteResponse, IPSECTunnelGetResponse, IPSECTunnelPSKGenerateResponse +from cloudflare.types.magic_transit import ( + PSKMetadata, + IPSECTunnelCreateResponse, + IPSECTunnelUpdateResponse, + IPSECTunnelListResponse, + IPSECTunnelDeleteResponse, + IPSECTunnelGetResponse, + IPSECTunnelPSKGenerateResponse, +) ``` Methods: @@ -3063,7 +3615,15 @@ Methods: Types: ```python -from cloudflare.types.magic_transit import Scope, RouteCreateResponse, RouteUpdateResponse, RouteListResponse, RouteDeleteResponse, RouteEmptyResponse, RouteGetResponse +from cloudflare.types.magic_transit import ( + Scope, + RouteCreateResponse, + RouteUpdateResponse, + RouteListResponse, + RouteDeleteResponse, + RouteEmptyResponse, + RouteGetResponse, +) ``` Methods: @@ -3114,7 +3674,15 @@ Methods: Types: ```python -from cloudflare.types.magic_transit.sites import DHCPRelay, DHCPServer, LAN, LANStaticAddressing, Nat, RoutedSubnet, LANCreateResponse +from cloudflare.types.magic_transit.sites import ( + DHCPRelay, + DHCPServer, + LAN, + LANStaticAddressing, + Nat, + RoutedSubnet, + LANCreateResponse, +) ``` Methods: @@ -3148,7 +3716,12 @@ Methods: Types: ```python -from cloudflare.types.magic_transit import ConnectorUpdateResponse, ConnectorListResponse, ConnectorEditResponse, ConnectorGetResponse +from cloudflare.types.magic_transit import ( + ConnectorUpdateResponse, + ConnectorListResponse, + ConnectorEditResponse, + ConnectorGetResponse, +) ``` Methods: @@ -3245,7 +3818,13 @@ Methods: Types: ```python -from cloudflare.types.pages import Deployment, Project, Stage, ProjectDeleteResponse, ProjectPurgeBuildCacheResponse +from cloudflare.types.pages import ( + Deployment, + Project, + Stage, + ProjectDeleteResponse, + ProjectPurgeBuildCacheResponse, +) ``` Methods: @@ -3293,7 +3872,13 @@ Methods: Types: ```python -from cloudflare.types.pages.projects import DomainCreateResponse, DomainListResponse, DomainDeleteResponse, DomainEditResponse, DomainGetResponse +from cloudflare.types.pages.projects import ( + DomainCreateResponse, + DomainListResponse, + DomainDeleteResponse, + DomainEditResponse, + DomainGetResponse, +) ``` Methods: @@ -3309,7 +3894,13 @@ Methods: Types: ```python -from cloudflare.types.pcaps import PCAP, PCAPFilter, PCAPCreateResponse, PCAPListResponse, PCAPGetResponse +from cloudflare.types.pcaps import ( + PCAP, + PCAPFilter, + PCAPCreateResponse, + PCAPListResponse, + PCAPGetResponse, +) ``` Methods: @@ -3346,7 +3937,12 @@ Methods: Types: ```python -from cloudflare.types.registrar import Domain, DomainUpdateResponse, DomainListResponse, DomainGetResponse +from cloudflare.types.registrar import ( + Domain, + DomainUpdateResponse, + DomainListResponse, + DomainGetResponse, +) ``` Methods: @@ -3404,7 +4000,15 @@ Methods: Types: ```python -from cloudflare.types.rules.lists import ListCursor, ListItem, ItemCreateResponse, ItemUpdateResponse, ItemListResponse, ItemDeleteResponse, ItemGetResponse +from cloudflare.types.rules.lists import ( + ListCursor, + ListItem, + ItemCreateResponse, + ItemUpdateResponse, + ItemListResponse, + ItemDeleteResponse, + ItemGetResponse, +) ``` Methods: @@ -3620,7 +4224,11 @@ Methods: Types: ```python -from cloudflare.types.stream import DownloadCreateResponse, DownloadDeleteResponse, DownloadGetResponse +from cloudflare.types.stream import ( + DownloadCreateResponse, + DownloadDeleteResponse, + DownloadGetResponse, +) ``` Methods: @@ -3686,7 +4294,13 @@ Methods: Types: ```python -from cloudflare.types.alerting.destinations import Pagerduty, PagerdutyCreateResponse, PagerdutyDeleteResponse, PagerdutyGetResponse, PagerdutyLinkResponse +from cloudflare.types.alerting.destinations import ( + Pagerduty, + PagerdutyCreateResponse, + PagerdutyDeleteResponse, + PagerdutyGetResponse, + PagerdutyLinkResponse, +) ``` Methods: @@ -3701,7 +4315,12 @@ Methods: Types: ```python -from cloudflare.types.alerting.destinations import Webhooks, WebhookCreateResponse, WebhookUpdateResponse, WebhookDeleteResponse +from cloudflare.types.alerting.destinations import ( + Webhooks, + WebhookCreateResponse, + WebhookUpdateResponse, + WebhookDeleteResponse, +) ``` Methods: @@ -3729,7 +4348,14 @@ Methods: Types: ```python -from cloudflare.types.alerting import Mechanism, Policy, PolicyFilter, PolicyCreateResponse, PolicyUpdateResponse, PolicyDeleteResponse +from cloudflare.types.alerting import ( + Mechanism, + Policy, + PolicyFilter, + PolicyCreateResponse, + PolicyUpdateResponse, + PolicyDeleteResponse, +) ``` Methods: @@ -3753,7 +4379,15 @@ from cloudflare.types.d1 import D1 Types: ```python -from cloudflare.types.d1 import QueryResult, DatabaseListResponse, DatabaseDeleteResponse, DatabaseExportResponse, DatabaseImportResponse, DatabaseQueryResponse, DatabaseRawResponse +from cloudflare.types.d1 import ( + QueryResult, + DatabaseListResponse, + DatabaseDeleteResponse, + DatabaseExportResponse, + DatabaseImportResponse, + DatabaseQueryResponse, + DatabaseRawResponse, +) ``` Methods: @@ -3817,7 +4451,12 @@ Methods: Types: ```python -from cloudflare.types.r2.domains import CustomCreateResponse, CustomUpdateResponse, CustomListResponse, CustomDeleteResponse +from cloudflare.types.r2.domains import ( + CustomCreateResponse, + CustomUpdateResponse, + CustomListResponse, + CustomDeleteResponse, +) ``` Methods: @@ -3845,7 +4484,14 @@ Methods: Types: ```python -from cloudflare.types.warp_connector import WARPConnectorCreateResponse, WARPConnectorListResponse, WARPConnectorDeleteResponse, WARPConnectorEditResponse, WARPConnectorGetResponse, WARPConnectorTokenResponse +from cloudflare.types.warp_connector import ( + WARPConnectorCreateResponse, + WARPConnectorListResponse, + WARPConnectorDeleteResponse, + WARPConnectorEditResponse, + WARPConnectorGetResponse, + WARPConnectorTokenResponse, +) ``` Methods: @@ -3866,7 +4512,12 @@ Methods: Types: ```python -from cloudflare.types.workers_for_platforms.dispatch import NamespaceCreateResponse, NamespaceListResponse, NamespaceDeleteResponse, NamespaceGetResponse +from cloudflare.types.workers_for_platforms.dispatch import ( + NamespaceCreateResponse, + NamespaceListResponse, + NamespaceDeleteResponse, + NamespaceGetResponse, +) ``` Methods: @@ -3902,7 +4553,10 @@ Methods: Types: ```python -from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import SettingEditResponse, SettingGetResponse +from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import ( + SettingEditResponse, + SettingGetResponse, +) ``` Methods: @@ -3927,7 +4581,11 @@ Methods: Types: ```python -from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import SecretUpdateResponse, SecretListResponse, SecretGetResponse +from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import ( + SecretUpdateResponse, + SecretListResponse, + SecretGetResponse, +) ``` Methods: @@ -3941,7 +4599,11 @@ Methods: Types: ```python -from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import TagUpdateResponse, TagListResponse, TagDeleteResponse +from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import ( + TagUpdateResponse, + TagListResponse, + TagDeleteResponse, +) ``` Methods: @@ -3970,7 +4632,12 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.devices import DEXTest, SchemaData, SchemaHTTP, DEXTestDeleteResponse +from cloudflare.types.zero_trust.devices import ( + DEXTest, + SchemaData, + SchemaHTTP, + DEXTestDeleteResponse, +) ``` Methods: @@ -4018,7 +4685,11 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.devices.policies import DevicePolicyCertificates, CertificateUpdateResponse, CertificateGetResponse +from cloudflare.types.zero_trust.devices.policies import ( + DevicePolicyCertificates, + CertificateUpdateResponse, + CertificateGetResponse, +) ``` Methods: @@ -4043,7 +4714,11 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.devices.policies import SplitTunnelExclude, ExcludeUpdateResponse, ExcludeGetResponse +from cloudflare.types.zero_trust.devices.policies import ( + SplitTunnelExclude, + ExcludeUpdateResponse, + ExcludeGetResponse, +) ``` Methods: @@ -4057,7 +4732,12 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.devices.policies import FallbackDomain, FallbackDomainPolicy, FallbackDomainUpdateResponse, FallbackDomainGetResponse +from cloudflare.types.zero_trust.devices.policies import ( + FallbackDomain, + FallbackDomainPolicy, + FallbackDomainUpdateResponse, + FallbackDomainGetResponse, +) ``` Methods: @@ -4071,7 +4751,11 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.devices.policies import SplitTunnelInclude, IncludeUpdateResponse, IncludeGetResponse +from cloudflare.types.zero_trust.devices.policies import ( + SplitTunnelInclude, + IncludeUpdateResponse, + IncludeGetResponse, +) ``` Methods: @@ -4085,7 +4769,27 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.devices import CarbonblackInput, ClientCertificateInput, CrowdstrikeInput, DeviceInput, DeviceMatch, DevicePostureRule, DiskEncryptionInput, DomainJoinedInput, FileInput, FirewallInput, IntuneInput, KolideInput, OSVersionInput, SentineloneInput, SentineloneS2sInput, TaniumInput, UniqueClientIDInput, WorkspaceOneInput, PostureDeleteResponse +from cloudflare.types.zero_trust.devices import ( + CarbonblackInput, + ClientCertificateInput, + CrowdstrikeInput, + DeviceInput, + DeviceMatch, + DevicePostureRule, + DiskEncryptionInput, + DomainJoinedInput, + FileInput, + FirewallInput, + IntuneInput, + KolideInput, + OSVersionInput, + SentineloneInput, + SentineloneS2sInput, + TaniumInput, + UniqueClientIDInput, + WorkspaceOneInput, + PostureDeleteResponse, +) ``` Methods: @@ -4167,7 +4871,15 @@ Methods: Types: ```python -from cloudflare.types.zero_trust import AzureAD, GenericOAuthConfig, IdentityProvider, IdentityProviderSCIMConfig, IdentityProviderType, IdentityProviderListResponse, IdentityProviderDeleteResponse +from cloudflare.types.zero_trust import ( + AzureAD, + GenericOAuthConfig, + IdentityProvider, + IdentityProviderSCIMConfig, + IdentityProviderType, + IdentityProviderListResponse, + IdentityProviderDeleteResponse, +) ``` Methods: @@ -4210,7 +4922,28 @@ Methods: Types: ```python -from cloudflare.types.zero_trust import AccessDevicePostureRule, AccessRule, AnyValidServiceTokenRule, AuthenticationMethodRule, AzureGroupRule, CertificateRule, CountryRule, DomainRule, EmailListRule, EmailRule, EveryoneRule, ExternalEvaluationRule, GitHubOrganizationRule, GroupRule, GSuiteGroupRule, IPListRule, IPRule, OktaGroupRule, SAMLGroupRule, ServiceTokenRule +from cloudflare.types.zero_trust import ( + AccessDevicePostureRule, + AccessRule, + AnyValidServiceTokenRule, + AuthenticationMethodRule, + AzureGroupRule, + CertificateRule, + CountryRule, + DomainRule, + EmailListRule, + EmailRule, + EveryoneRule, + ExternalEvaluationRule, + GitHubOrganizationRule, + GroupRule, + GSuiteGroupRule, + IPListRule, + IPRule, + OktaGroupRule, + SAMLGroupRule, + ServiceTokenRule, +) ``` ### Applications @@ -4218,7 +4951,35 @@ from cloudflare.types.zero_trust import AccessDevicePostureRule, AccessRule, Any Types: ```python -from cloudflare.types.zero_trust.access import AllowedHeaders, AllowedIdPs, AllowedMethods, AllowedOrigins, AppID, Application, ApplicationPolicy, ApplicationSCIMConfig, ApplicationType, CORSHeaders, Decision, OIDCSaaSApp, SaaSAppNameFormat, SaaSAppNameIDFormat, SaaSAppSource, SAMLSaaSApp, SCIMConfigAuthenticationHTTPBasic, SCIMConfigAuthenticationOAuthBearerToken, SCIMConfigAuthenticationOauth2, SCIMConfigMapping, SelfHostedDomains, ApplicationCreateResponse, ApplicationUpdateResponse, ApplicationListResponse, ApplicationDeleteResponse, ApplicationGetResponse, ApplicationRevokeTokensResponse +from cloudflare.types.zero_trust.access import ( + AllowedHeaders, + AllowedIdPs, + AllowedMethods, + AllowedOrigins, + AppID, + Application, + ApplicationPolicy, + ApplicationSCIMConfig, + ApplicationType, + CORSHeaders, + Decision, + OIDCSaaSApp, + SaaSAppNameFormat, + SaaSAppNameIDFormat, + SaaSAppSource, + SAMLSaaSApp, + SCIMConfigAuthenticationHTTPBasic, + SCIMConfigAuthenticationOAuthBearerToken, + SCIMConfigAuthenticationOauth2, + SCIMConfigMapping, + SelfHostedDomains, + ApplicationCreateResponse, + ApplicationUpdateResponse, + ApplicationListResponse, + ApplicationDeleteResponse, + ApplicationGetResponse, + ApplicationRevokeTokensResponse, +) ``` Methods: @@ -4235,7 +4996,12 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.access.applications import CA, CACreateResponse, CADeleteResponse, CAGetResponse +from cloudflare.types.zero_trust.access.applications import ( + CA, + CACreateResponse, + CADeleteResponse, + CAGetResponse, +) ``` Methods: @@ -4250,7 +5016,10 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.access.applications import UserPolicyCheckGeo, UserPolicyCheckListResponse +from cloudflare.types.zero_trust.access.applications import ( + UserPolicyCheckGeo, + UserPolicyCheckListResponse, +) ``` Methods: @@ -4262,7 +5031,11 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.access.applications import ApprovalGroup, Policy, PolicyDeleteResponse +from cloudflare.types.zero_trust.access.applications import ( + ApprovalGroup, + Policy, + PolicyDeleteResponse, +) ``` Methods: @@ -4278,7 +5051,10 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.access.applications import PolicyTestCreateResponse, PolicyTestGetResponse +from cloudflare.types.zero_trust.access.applications import ( + PolicyTestCreateResponse, + PolicyTestGetResponse, +) ``` Methods: @@ -4303,7 +5079,11 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.access import AssociatedHostnames, Certificate, CertificateDeleteResponse +from cloudflare.types.zero_trust.access import ( + AssociatedHostnames, + Certificate, + CertificateDeleteResponse, +) ``` Methods: @@ -4319,7 +5099,11 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.access.certificates import CertificateSettings, SettingUpdateResponse, SettingGetResponse +from cloudflare.types.zero_trust.access.certificates import ( + CertificateSettings, + SettingUpdateResponse, + SettingGetResponse, +) ``` Methods: @@ -4348,7 +5132,11 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.access import ServiceToken, ServiceTokenCreateResponse, ServiceTokenRotateResponse +from cloudflare.types.zero_trust.access import ( + ServiceToken, + ServiceTokenCreateResponse, + ServiceTokenRotateResponse, +) ``` Methods: @@ -4422,7 +5210,10 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.access.users import ActiveSessionListResponse, ActiveSessionGetResponse +from cloudflare.types.zero_trust.access.users import ( + ActiveSessionListResponse, + ActiveSessionGetResponse, +) ``` Methods: @@ -4459,7 +5250,11 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.access import CustomPage, CustomPageWithoutHTML, CustomPageDeleteResponse +from cloudflare.types.zero_trust.access import ( + CustomPage, + CustomPageWithoutHTML, + CustomPageDeleteResponse, +) ``` Methods: @@ -4491,7 +5286,13 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.access import PolicyCreateResponse, PolicyUpdateResponse, PolicyListResponse, PolicyDeleteResponse, PolicyGetResponse +from cloudflare.types.zero_trust.access import ( + PolicyCreateResponse, + PolicyUpdateResponse, + PolicyListResponse, + PolicyDeleteResponse, + PolicyGetResponse, +) ``` Methods: @@ -4507,7 +5308,12 @@ Methods: Types: ```python -from cloudflare.types.zero_trust import DeviceExperienceMonitor, NetworkPath, NetworkPathResponse, Percentiles +from cloudflare.types.zero_trust import ( + DeviceExperienceMonitor, + NetworkPath, + NetworkPathResponse, + Percentiles, +) ``` ### Colos @@ -4628,7 +5434,14 @@ Methods: Types: ```python -from cloudflare.types.zero_trust import Connection, TunnelCreateResponse, TunnelListResponse, TunnelDeleteResponse, TunnelEditResponse, TunnelGetResponse +from cloudflare.types.zero_trust import ( + Connection, + TunnelCreateResponse, + TunnelListResponse, + TunnelDeleteResponse, + TunnelEditResponse, + TunnelGetResponse, +) ``` Methods: @@ -4644,7 +5457,10 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.tunnels import ConfigurationUpdateResponse, ConfigurationGetResponse +from cloudflare.types.zero_trust.tunnels import ( + ConfigurationUpdateResponse, + ConfigurationGetResponse, +) ``` Methods: @@ -4657,7 +5473,11 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.tunnels import Client, ConnectionDeleteResponse, ConnectionGetResponse +from cloudflare.types.zero_trust.tunnels import ( + Client, + ConnectionDeleteResponse, + ConnectionGetResponse, +) ``` Methods: @@ -4700,7 +5520,10 @@ Methods: Types: ```python -from cloudflare.types.zero_trust import ConnectivitySettingEditResponse, ConnectivitySettingGetResponse +from cloudflare.types.zero_trust import ( + ConnectivitySettingEditResponse, + ConnectivitySettingGetResponse, +) ``` Methods: @@ -4806,7 +5629,12 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.dlp.profiles import CustomProfile, Pattern, CustomCreateResponse, CustomDeleteResponse +from cloudflare.types.zero_trust.dlp.profiles import ( + CustomProfile, + Pattern, + CustomCreateResponse, + CustomDeleteResponse, +) ``` Methods: @@ -4896,7 +5724,23 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.gateway import ActivityLogSettings, AntiVirusSettings, BlockPageSettings, BodyScanningSettings, BrowserIsolationSettings, CustomCertificateSettings, ExtendedEmailMatching, FipsSettings, GatewayConfigurationSettings, NotificationSettings, ProtocolDetection, TLSSettings, ConfigurationUpdateResponse, ConfigurationEditResponse, ConfigurationGetResponse +from cloudflare.types.zero_trust.gateway import ( + ActivityLogSettings, + AntiVirusSettings, + BlockPageSettings, + BodyScanningSettings, + BrowserIsolationSettings, + CustomCertificateSettings, + ExtendedEmailMatching, + FipsSettings, + GatewayConfigurationSettings, + NotificationSettings, + ProtocolDetection, + TLSSettings, + ConfigurationUpdateResponse, + ConfigurationEditResponse, + ConfigurationGetResponse, +) ``` Methods: @@ -4916,7 +5760,12 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.gateway import GatewayItem, GatewayList, ListCreateResponse, ListDeleteResponse +from cloudflare.types.zero_trust.gateway import ( + GatewayItem, + GatewayList, + ListCreateResponse, + ListDeleteResponse, +) ``` Methods: @@ -4945,7 +5794,17 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.gateway import DOHEndpoint, DOTEndpoint, Endpoint, IPNetwork, IPV4Endpoint, IPV6Endpoint, IPV6Network, Location, LocationDeleteResponse +from cloudflare.types.zero_trust.gateway import ( + DOHEndpoint, + DOTEndpoint, + Endpoint, + IPNetwork, + IPV4Endpoint, + IPV6Endpoint, + IPV6Network, + Location, + LocationDeleteResponse, +) ``` Methods: @@ -4974,7 +5833,12 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.gateway import GatewayIPs, ProxyEndpoint, ProxyEndpointDeleteResponse, ProxyEndpointGetResponse +from cloudflare.types.zero_trust.gateway import ( + GatewayIPs, + ProxyEndpoint, + ProxyEndpointDeleteResponse, + ProxyEndpointGetResponse, +) ``` Methods: @@ -4990,7 +5854,15 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.gateway import DNSResolverSettingsV4, DNSResolverSettingsV6, GatewayFilter, GatewayRule, RuleSetting, Schedule, RuleDeleteResponse +from cloudflare.types.zero_trust.gateway import ( + DNSResolverSettingsV4, + DNSResolverSettingsV6, + GatewayFilter, + GatewayRule, + RuleSetting, + Schedule, + RuleDeleteResponse, +) ``` Methods: @@ -5006,7 +5878,14 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.gateway import CertificateCreateResponse, CertificateListResponse, CertificateDeleteResponse, CertificateActivateResponse, CertificateDeactivateResponse, CertificateGetResponse +from cloudflare.types.zero_trust.gateway import ( + CertificateCreateResponse, + CertificateListResponse, + CertificateDeleteResponse, + CertificateActivateResponse, + CertificateDeactivateResponse, + CertificateGetResponse, +) ``` Methods: @@ -5109,7 +5988,13 @@ Methods: Types: ```python -from cloudflare.types.zero_trust.risk_scoring import IntegrationCreateResponse, IntegrationUpdateResponse, IntegrationListResponse, IntegrationDeleteResponse, IntegrationGetResponse +from cloudflare.types.zero_trust.risk_scoring import ( + IntegrationCreateResponse, + IntegrationUpdateResponse, + IntegrationListResponse, + IntegrationDeleteResponse, + IntegrationGetResponse, +) ``` Methods: @@ -5216,7 +6101,21 @@ Methods: Types: ```python -from cloudflare.types.vectorize import CreateIndex, IndexDeleteVectorsByID, IndexDimensionConfiguration, IndexInsert, IndexQuery, IndexUpsert, IndexDeleteResponse, IndexDeleteByIDsResponse, IndexGetByIDsResponse, IndexInfoResponse, IndexInsertResponse, IndexQueryResponse, IndexUpsertResponse +from cloudflare.types.vectorize import ( + CreateIndex, + IndexDeleteVectorsByID, + IndexDimensionConfiguration, + IndexInsert, + IndexQuery, + IndexUpsert, + IndexDeleteResponse, + IndexDeleteByIDsResponse, + IndexGetByIDsResponse, + IndexInfoResponse, + IndexInsertResponse, + IndexQueryResponse, + IndexUpsertResponse, +) ``` Methods: @@ -5237,7 +6136,11 @@ Methods: Types: ```python -from cloudflare.types.vectorize.indexes import MetadataIndexCreateResponse, MetadataIndexListResponse, MetadataIndexDeleteResponse +from cloudflare.types.vectorize.indexes import ( + MetadataIndexCreateResponse, + MetadataIndexListResponse, + MetadataIndexDeleteResponse, +) ``` Methods: @@ -5263,7 +6166,13 @@ Methods: Types: ```python -from cloudflare.types.url_scanner import URLScannerDomain, URLScannerTask, ScanCreateResponse, ScanGetResponse, ScanHarResponse +from cloudflare.types.url_scanner import ( + URLScannerDomain, + URLScannerTask, + ScanCreateResponse, + ScanGetResponse, + ScanHarResponse, +) ``` Methods: @@ -5284,7 +6193,11 @@ Methods: Types: ```python -from cloudflare.types.radar.ai.gateway import SummaryModelResponse, SummaryProviderResponse, SummaryTaskResponse +from cloudflare.types.radar.ai.gateway import ( + SummaryModelResponse, + SummaryProviderResponse, + SummaryTaskResponse, +) ``` Methods: @@ -5298,7 +6211,11 @@ Methods: Types: ```python -from cloudflare.types.radar.ai.gateway import TimeseriesGroupModelResponse, TimeseriesGroupProviderResponse, TimeseriesGroupTaskResponse +from cloudflare.types.radar.ai.gateway import ( + TimeseriesGroupModelResponse, + TimeseriesGroupProviderResponse, + TimeseriesGroupTaskResponse, +) ``` Methods: @@ -5402,7 +6319,12 @@ Methods: Types: ```python -from cloudflare.types.radar.bgp import RouteAsesResponse, RouteMoasResponse, RoutePfx2asResponse, RouteStatsResponse +from cloudflare.types.radar.bgp import ( + RouteAsesResponse, + RouteMoasResponse, + RoutePfx2asResponse, + RouteStatsResponse, +) ``` Methods: @@ -5523,7 +6445,14 @@ Methods: Types: ```python -from cloudflare.types.radar.as112 import SummaryDNSSECResponse, SummaryEdnsResponse, SummaryIPVersionResponse, SummaryProtocolResponse, SummaryQueryTypeResponse, SummaryResponseCodesResponse +from cloudflare.types.radar.as112 import ( + SummaryDNSSECResponse, + SummaryEdnsResponse, + SummaryIPVersionResponse, + SummaryProtocolResponse, + SummaryQueryTypeResponse, + SummaryResponseCodesResponse, +) ``` Methods: @@ -5540,7 +6469,14 @@ Methods: Types: ```python -from cloudflare.types.radar.as112 import TimeseriesGroupDNSSECResponse, TimeseriesGroupEdnsResponse, TimeseriesGroupIPVersionResponse, TimeseriesGroupProtocolResponse, TimeseriesGroupQueryTypeResponse, TimeseriesGroupResponseCodesResponse +from cloudflare.types.radar.as112 import ( + TimeseriesGroupDNSSECResponse, + TimeseriesGroupEdnsResponse, + TimeseriesGroupIPVersionResponse, + TimeseriesGroupProtocolResponse, + TimeseriesGroupQueryTypeResponse, + TimeseriesGroupResponseCodesResponse, +) ``` Methods: @@ -5557,7 +6493,12 @@ Methods: Types: ```python -from cloudflare.types.radar.as112 import TopDNSSECResponse, TopEdnsResponse, TopIPVersionResponse, TopLocationsResponse +from cloudflare.types.radar.as112 import ( + TopDNSSECResponse, + TopEdnsResponse, + TopIPVersionResponse, + TopLocationsResponse, +) ``` Methods: @@ -5582,7 +6523,14 @@ from cloudflare.types.radar import RadarEmailSeries, RadarEmailSummary Types: ```python -from cloudflare.types.radar.email.routing import SummaryARCResponse, SummaryDKIMResponse, SummaryDMARCResponse, SummaryEncryptedResponse, SummaryIPVersionResponse, SummarySPFResponse +from cloudflare.types.radar.email.routing import ( + SummaryARCResponse, + SummaryDKIMResponse, + SummaryDMARCResponse, + SummaryEncryptedResponse, + SummaryIPVersionResponse, + SummarySPFResponse, +) ``` Methods: @@ -5599,7 +6547,14 @@ Methods: Types: ```python -from cloudflare.types.radar.email.routing import TimeseriesGroupARCResponse, TimeseriesGroupDKIMResponse, TimeseriesGroupDMARCResponse, TimeseriesGroupEncryptedResponse, TimeseriesGroupIPVersionResponse, TimeseriesGroupSPFResponse +from cloudflare.types.radar.email.routing import ( + TimeseriesGroupARCResponse, + TimeseriesGroupDKIMResponse, + TimeseriesGroupDMARCResponse, + TimeseriesGroupEncryptedResponse, + TimeseriesGroupIPVersionResponse, + TimeseriesGroupSPFResponse, +) ``` Methods: @@ -5668,7 +6623,17 @@ Methods: Types: ```python -from cloudflare.types.radar.email.security import SummaryARCResponse, SummaryDKIMResponse, SummaryDMARCResponse, SummaryMaliciousResponse, SummarySpamResponse, SummarySPFResponse, SummarySpoofResponse, SummaryThreatCategoryResponse, SummaryTLSVersionResponse +from cloudflare.types.radar.email.security import ( + SummaryARCResponse, + SummaryDKIMResponse, + SummaryDMARCResponse, + SummaryMaliciousResponse, + SummarySpamResponse, + SummarySPFResponse, + SummarySpoofResponse, + SummaryThreatCategoryResponse, + SummaryTLSVersionResponse, +) ``` Methods: @@ -5688,7 +6653,17 @@ Methods: Types: ```python -from cloudflare.types.radar.email.security import TimeseriesGroupARCResponse, TimeseriesGroupDKIMResponse, TimeseriesGroupDMARCResponse, TimeseriesGroupMaliciousResponse, TimeseriesGroupSpamResponse, TimeseriesGroupSPFResponse, TimeseriesGroupSpoofResponse, TimeseriesGroupThreatCategoryResponse, TimeseriesGroupTLSVersionResponse +from cloudflare.types.radar.email.security import ( + TimeseriesGroupARCResponse, + TimeseriesGroupDKIMResponse, + TimeseriesGroupDMARCResponse, + TimeseriesGroupMaliciousResponse, + TimeseriesGroupSpamResponse, + TimeseriesGroupSPFResponse, + TimeseriesGroupSpoofResponse, + TimeseriesGroupThreatCategoryResponse, + TimeseriesGroupTLSVersionResponse, +) ``` Methods: @@ -5722,7 +6697,14 @@ Methods: Types: ```python -from cloudflare.types.radar.attacks.layer3 import SummaryBitrateResponse, SummaryDurationResponse, SummaryGetResponse, SummaryIPVersionResponse, SummaryProtocolResponse, SummaryVectorResponse +from cloudflare.types.radar.attacks.layer3 import ( + SummaryBitrateResponse, + SummaryDurationResponse, + SummaryGetResponse, + SummaryIPVersionResponse, + SummaryProtocolResponse, + SummaryVectorResponse, +) ``` Methods: @@ -5739,7 +6721,16 @@ Methods: Types: ```python -from cloudflare.types.radar.attacks.layer3 import TimeseriesGroupBitrateResponse, TimeseriesGroupDurationResponse, TimeseriesGroupGetResponse, TimeseriesGroupIndustryResponse, TimeseriesGroupIPVersionResponse, TimeseriesGroupProtocolResponse, TimeseriesGroupVectorResponse, TimeseriesGroupVerticalResponse +from cloudflare.types.radar.attacks.layer3 import ( + TimeseriesGroupBitrateResponse, + TimeseriesGroupDurationResponse, + TimeseriesGroupGetResponse, + TimeseriesGroupIndustryResponse, + TimeseriesGroupIPVersionResponse, + TimeseriesGroupProtocolResponse, + TimeseriesGroupVectorResponse, + TimeseriesGroupVerticalResponse, +) ``` Methods: @@ -5758,7 +6749,11 @@ Methods: Types: ```python -from cloudflare.types.radar.attacks.layer3 import TopAttacksResponse, TopIndustryResponse, TopVerticalResponse +from cloudflare.types.radar.attacks.layer3 import ( + TopAttacksResponse, + TopIndustryResponse, + TopVerticalResponse, +) ``` Methods: @@ -5797,7 +6792,14 @@ Methods: Types: ```python -from cloudflare.types.radar.attacks.layer7 import SummaryGetResponse, SummaryHTTPMethodResponse, SummaryHTTPVersionResponse, SummaryIPVersionResponse, SummaryManagedRulesResponse, SummaryMitigationProductResponse +from cloudflare.types.radar.attacks.layer7 import ( + SummaryGetResponse, + SummaryHTTPMethodResponse, + SummaryHTTPVersionResponse, + SummaryIPVersionResponse, + SummaryManagedRulesResponse, + SummaryMitigationProductResponse, +) ``` Methods: @@ -5814,7 +6816,16 @@ Methods: Types: ```python -from cloudflare.types.radar.attacks.layer7 import TimeseriesGroupGetResponse, TimeseriesGroupHTTPMethodResponse, TimeseriesGroupHTTPVersionResponse, TimeseriesGroupIndustryResponse, TimeseriesGroupIPVersionResponse, TimeseriesGroupManagedRulesResponse, TimeseriesGroupMitigationProductResponse, TimeseriesGroupVerticalResponse +from cloudflare.types.radar.attacks.layer7 import ( + TimeseriesGroupGetResponse, + TimeseriesGroupHTTPMethodResponse, + TimeseriesGroupHTTPVersionResponse, + TimeseriesGroupIndustryResponse, + TimeseriesGroupIPVersionResponse, + TimeseriesGroupManagedRulesResponse, + TimeseriesGroupMitigationProductResponse, + TimeseriesGroupVerticalResponse, +) ``` Methods: @@ -5833,7 +6844,11 @@ Methods: Types: ```python -from cloudflare.types.radar.attacks.layer7 import TopAttacksResponse, TopIndustryResponse, TopVerticalResponse +from cloudflare.types.radar.attacks.layer7 import ( + TopAttacksResponse, + TopIndustryResponse, + TopVerticalResponse, +) ``` Methods: @@ -5884,7 +6899,12 @@ Methods: Types: ```python -from cloudflare.types.radar.entities import ASNListResponse, ASNGetResponse, ASNIPResponse, ASNRelResponse +from cloudflare.types.radar.entities import ( + ASNListResponse, + ASNGetResponse, + ASNIPResponse, + ASNRelResponse, +) ``` Methods: @@ -6140,7 +7160,16 @@ Methods: Types: ```python -from cloudflare.types.radar.http import SummaryBotClassResponse, SummaryDeviceTypeResponse, SummaryHTTPProtocolResponse, SummaryHTTPVersionResponse, SummaryIPVersionResponse, SummaryOSResponse, SummaryPostQuantumResponse, SummaryTLSVersionResponse +from cloudflare.types.radar.http import ( + SummaryBotClassResponse, + SummaryDeviceTypeResponse, + SummaryHTTPProtocolResponse, + SummaryHTTPVersionResponse, + SummaryIPVersionResponse, + SummaryOSResponse, + SummaryPostQuantumResponse, + SummaryTLSVersionResponse, +) ``` Methods: @@ -6159,7 +7188,18 @@ Methods: Types: ```python -from cloudflare.types.radar.http import TimeseriesGroupBotClassResponse, TimeseriesGroupBrowserResponse, TimeseriesGroupBrowserFamilyResponse, TimeseriesGroupDeviceTypeResponse, TimeseriesGroupHTTPProtocolResponse, TimeseriesGroupHTTPVersionResponse, TimeseriesGroupIPVersionResponse, TimeseriesGroupOSResponse, TimeseriesGroupPostQuantumResponse, TimeseriesGroupTLSVersionResponse +from cloudflare.types.radar.http import ( + TimeseriesGroupBotClassResponse, + TimeseriesGroupBrowserResponse, + TimeseriesGroupBrowserFamilyResponse, + TimeseriesGroupDeviceTypeResponse, + TimeseriesGroupHTTPProtocolResponse, + TimeseriesGroupHTTPVersionResponse, + TimeseriesGroupIPVersionResponse, + TimeseriesGroupOSResponse, + TimeseriesGroupPostQuantumResponse, + TimeseriesGroupTLSVersionResponse, +) ``` Methods: @@ -6283,7 +7323,10 @@ Methods: Types: ```python -from cloudflare.types.radar import TCPResetsTimeoutSummaryResponse, TCPResetsTimeoutTimeseriesGroupsResponse +from cloudflare.types.radar import ( + TCPResetsTimeoutSummaryResponse, + TCPResetsTimeoutTimeseriesGroupsResponse, +) ``` Methods: @@ -6291,38 +7334,19 @@ Methods: - client.radar.tcp_resets_timeouts.summary(\*\*params) -> TCPResetsTimeoutSummaryResponse - client.radar.tcp_resets_timeouts.timeseries_groups(\*\*params) -> TCPResetsTimeoutTimeseriesGroupsResponse -## RobotsTXT - -Types: - -```python -from cloudflare.types.radar import RobotsTXTDomainsResponse -``` - -Methods: - -- client.radar.robots_txt.domains(\*\*params) -> RobotsTXTDomainsResponse - -### Top - -#### Directive - -Types: - -```python -from cloudflare.types.radar.robots_txt.top import DirectiveGetResponse -``` - -Methods: - -- client.radar.robots_txt.top.directive.get(directive, \*\*params) -> DirectiveGetResponse - # BotManagement Types: ```python -from cloudflare.types.bot_management import BotFightModeConfiguration, SubscriptionConfiguration, SuperBotFightModeDefinitelyConfiguration, SuperBotFightModeLikelyConfiguration, BotManagementUpdateResponse, BotManagementGetResponse +from cloudflare.types.bot_management import ( + BotFightModeConfiguration, + SubscriptionConfiguration, + SuperBotFightModeDefinitelyConfiguration, + SuperBotFightModeLikelyConfiguration, + BotManagementUpdateResponse, + BotManagementGetResponse, +) ``` Methods: @@ -6335,7 +7359,10 @@ Methods: Types: ```python -from cloudflare.types.origin_post_quantum_encryption import OriginPostQuantumEncryptionUpdateResponse, OriginPostQuantumEncryptionGetResponse +from cloudflare.types.origin_post_quantum_encryption import ( + OriginPostQuantumEncryptionUpdateResponse, + OriginPostQuantumEncryptionGetResponse, +) ``` Methods: @@ -6426,7 +7453,12 @@ Methods: Types: ```python -from cloudflare.types.hostnames.settings import Setting, SettingValue, TLSDeleteResponse, TLSGetResponse +from cloudflare.types.hostnames.settings import ( + Setting, + SettingValue, + TLSDeleteResponse, + TLSGetResponse, +) ``` Methods: @@ -6492,7 +7524,13 @@ Methods: Types: ```python -from cloudflare.types.calls.turn import KeyCreateResponse, KeyUpdateResponse, KeyListResponse, KeyDeleteResponse, KeyGetResponse +from cloudflare.types.calls.turn import ( + KeyCreateResponse, + KeyUpdateResponse, + KeyListResponse, + KeyDeleteResponse, + KeyGetResponse, +) ``` Methods: @@ -6510,7 +7548,14 @@ Methods: Types: ```python -from cloudflare.types.cloudforce_one import Item, ListItem, Quota, RequestConstants, RequestTypes, RequestDeleteResponse +from cloudflare.types.cloudforce_one import ( + Item, + ListItem, + Quota, + RequestConstants, + RequestTypes, + RequestDeleteResponse, +) ``` Methods: @@ -6529,7 +7574,11 @@ Methods: Types: ```python -from cloudflare.types.cloudforce_one.requests import Message, MessageDeleteResponse, MessageGetResponse +from cloudflare.types.cloudforce_one.requests import ( + Message, + MessageDeleteResponse, + MessageGetResponse, +) ``` Methods: @@ -6544,7 +7593,12 @@ Methods: Types: ```python -from cloudflare.types.cloudforce_one.requests import Label, Priority, PriorityEdit, PriorityDeleteResponse +from cloudflare.types.cloudforce_one.requests import ( + Label, + Priority, + PriorityEdit, + PriorityDeleteResponse, +) ``` Methods: @@ -6576,7 +7630,10 @@ Methods: Types: ```python -from cloudflare.types.event_notifications.r2.configuration import QueueUpdateResponse, QueueDeleteResponse +from cloudflare.types.event_notifications.r2.configuration import ( + QueueUpdateResponse, + QueueDeleteResponse, +) ``` Methods: @@ -6589,7 +7646,13 @@ Methods: Types: ```python -from cloudflare.types.ai_gateway import AIGatewayCreateResponse, AIGatewayUpdateResponse, AIGatewayListResponse, AIGatewayDeleteResponse, AIGatewayGetResponse +from cloudflare.types.ai_gateway import ( + AIGatewayCreateResponse, + AIGatewayUpdateResponse, + AIGatewayListResponse, + AIGatewayDeleteResponse, + AIGatewayGetResponse, +) ``` Methods: @@ -6632,7 +7695,13 @@ Methods: Types: ```python -from cloudflare.types.iam import ResourceGroupCreateResponse, ResourceGroupUpdateResponse, ResourceGroupListResponse, ResourceGroupDeleteResponse, ResourceGroupGetResponse +from cloudflare.types.iam import ( + ResourceGroupCreateResponse, + ResourceGroupUpdateResponse, + ResourceGroupListResponse, + ResourceGroupDeleteResponse, + ResourceGroupGetResponse, +) ``` Methods: diff --git a/src/cloudflare/__init__.py b/src/cloudflare/__init__.py index d36a18b47..bd005a229 100644 --- a/src/cloudflare/__init__.py +++ b/src/cloudflare/__init__.py @@ -1,41 +1,41 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from . import types -from ._version import __version__, __title__ +from ._types import NOT_GIVEN, NoneType, NotGiven, Transport, ProxiesTypes +from ._utils import file_from_path from ._client import ( + Client, + Stream, Timeout, Transport, - RequestOptions, - Client, - AsyncClient, - Stream, - AsyncStream, Cloudflare, + AsyncClient, + AsyncStream, + RequestOptions, AsyncCloudflare, ) -from ._exceptions import ( - CloudflareError, - APIError, - APIStatusError, - APITimeoutError, - APIConnectionError, - APIResponseValidationError, - BadRequestError, - AuthenticationError, - PermissionDeniedError, - NotFoundError, - ConflictError, - UnprocessableEntityError, - RateLimitError, - InternalServerError, -) -from ._types import NoneType, Transport, ProxiesTypes, NotGiven, NOT_GIVEN -from ._utils import file_from_path from ._models import BaseModel +from ._version import __title__, __version__ +from ._response import APIResponse as APIResponse, AsyncAPIResponse as AsyncAPIResponse from ._constants import DEFAULT_TIMEOUT, DEFAULT_MAX_RETRIES, DEFAULT_CONNECTION_LIMITS +from ._exceptions import ( + APIError, + ConflictError, + NotFoundError, + APIStatusError, + RateLimitError, + APITimeoutError, + BadRequestError, + CloudflareError, + APIConnectionError, + AuthenticationError, + InternalServerError, + PermissionDeniedError, + UnprocessableEntityError, + APIResponseValidationError, +) from ._base_client import DefaultHttpxClient, DefaultAsyncHttpxClient from ._utils._logs import setup_logging as _setup_logging -from ._response import APIResponse as APIResponse, AsyncAPIResponse as AsyncAPIResponse __all__ = [ "types", @@ -87,7 +87,7 @@ __locals = locals() for __name in __all__: if not __name.startswith("__"): try: - setattr(__locals[__name], "__module__", "cloudflare") + __locals[__name].__module__ = "cloudflare" except (TypeError, AttributeError): # Some of our exported symbols are builtins which we can't set attributes for. pass diff --git a/src/cloudflare/_base_client.py b/src/cloudflare/_base_client.py index dfa5571af..191bf1008 100644 --- a/src/cloudflare/_base_client.py +++ b/src/cloudflare/_base_client.py @@ -87,7 +87,6 @@ from ._exceptions import ( APIConnectionError, APIResponseValidationError, ) -from ._legacy_response import LegacyAPIResponse log: logging.Logger = logging.getLogger(__name__) diff --git a/src/cloudflare/_client.py b/src/cloudflare/_client.py index c7dba3428..ce5b206da 100644 --- a/src/cloudflare/_client.py +++ b/src/cloudflare/_client.py @@ -2,67 +2,36 @@ from __future__ import annotations -import httpx - import os - -from ._streaming import AsyncStream as AsyncStream, Stream as Stream - -from typing_extensions import override, Self - -from typing import Any - -from ._exceptions import APIStatusError - -from ._utils import get_async_library - -from . import _exceptions - -import os -import asyncio -import warnings -from typing import Optional, Union, Dict, Any, Mapping, overload, cast -from typing_extensions import Literal +from typing import Any, Union, Mapping +from typing_extensions import Self, override import httpx -from ._version import __version__ +from . import resources, _exceptions from ._qs import Querystring -from ._utils import ( - extract_files, - maybe_transform, - required_args, - deepcopy_minimal, - maybe_coerce_integer, - maybe_coerce_float, - maybe_coerce_boolean, - is_given, -) from ._types import ( + NOT_GIVEN, Omit, - NotGiven, + Headers, Timeout, + NotGiven, Transport, ProxiesTypes, RequestOptions, - Headers, - NoneType, - Query, - Body, - NOT_GIVEN, ) +from ._utils import ( + is_given, + get_async_library, +) +from ._version import __version__ +from ._streaming import Stream as Stream, AsyncStream as AsyncStream +from ._exceptions import APIStatusError from ._base_client import ( - DEFAULT_CONNECTION_LIMITS, - DEFAULT_TIMEOUT, DEFAULT_MAX_RETRIES, - ResponseT, - SyncHttpxClientWrapper, - AsyncHttpxClientWrapper, SyncAPIClient, AsyncAPIClient, - make_request_options, ) -from . import resources __all__ = [ "Timeout", diff --git a/src/cloudflare/_exceptions.py b/src/cloudflare/_exceptions.py index 2a8088650..e96c32acd 100644 --- a/src/cloudflare/_exceptions.py +++ b/src/cloudflare/_exceptions.py @@ -2,19 +2,14 @@ from __future__ import annotations -import httpx - -from typing import List, Any - -from .types.shared.error_data import ErrorData - -from ._utils import is_dict - -from ._models import construct_type - +from typing import Any, List, cast from typing_extensions import Literal -from typing import cast +import httpx + +from ._utils import is_dict +from ._models import construct_type +from .types.shared.error_data import ErrorData __all__ = [ "BadRequestError", diff --git a/src/cloudflare/_resource.py b/src/cloudflare/_resource.py index d709d4a6c..2bdff1e42 100644 --- a/src/cloudflare/_resource.py +++ b/src/cloudflare/_resource.py @@ -3,9 +3,10 @@ from __future__ import annotations import time -import anyio from typing import TYPE_CHECKING +import anyio + if TYPE_CHECKING: from ._client import Cloudflare, AsyncCloudflare diff --git a/src/cloudflare/_response.py b/src/cloudflare/_response.py index 751ec8cca..44bd97179 100644 --- a/src/cloudflare/_response.py +++ b/src/cloudflare/_response.py @@ -18,7 +18,7 @@ from typing import ( cast, overload, ) -from typing_extensions import Awaitable, ParamSpec, TypeGuard, override, get_origin +from typing_extensions import Awaitable, ParamSpec, override, get_origin import anyio import httpx @@ -26,7 +26,6 @@ import pydantic from ._types import NoneType from ._utils import is_given, extract_type_arg, is_annotated_type, extract_type_var_from_base -from ._streaming import extract_stream_chunk_type from ._models import BaseModel, is_basemodel from ._constants import RAW_RESPONSE_HEADER, OVERRIDE_CAST_TO_HEADER from ._streaming import Stream, AsyncStream, is_stream_class_type, extract_stream_chunk_type diff --git a/src/cloudflare/_streaming.py b/src/cloudflare/_streaming.py index 9dadf2c9a..0be44fec6 100644 --- a/src/cloudflare/_streaming.py +++ b/src/cloudflare/_streaming.py @@ -9,9 +9,7 @@ from typing_extensions import Self, Protocol, TypeGuard, override, get_origin, r import httpx -from ._utils import is_mapping, is_dict, extract_type_var_from_base -from ._exceptions import APIError -from ._response import APIResponse, AsyncAPIResponse +from ._utils import extract_type_var_from_base if TYPE_CHECKING: from ._client import Cloudflare, AsyncCloudflare diff --git a/src/cloudflare/_types.py b/src/cloudflare/_types.py index 5d3fa844c..c0b757b66 100644 --- a/src/cloudflare/_types.py +++ b/src/cloudflare/_types.py @@ -1,7 +1,6 @@ from __future__ import annotations from os import PathLike -from abc import ABC, abstractmethod from typing import ( IO, TYPE_CHECKING, @@ -14,10 +13,8 @@ from typing import ( Mapping, TypeVar, Callable, - Iterator, Optional, Sequence, - AsyncIterator, ) from typing_extensions import Literal, Protocol, TypeAlias, TypedDict, override, runtime_checkable @@ -28,7 +25,6 @@ from httpx import URL, Proxy, Timeout, Response, BaseTransport, AsyncBaseTranspo if TYPE_CHECKING: from ._models import BaseModel from ._response import APIResponse, AsyncAPIResponse - from ._legacy_response import HttpxBinaryResponseContent Transport = BaseTransport AsyncTransport = AsyncBaseTransport diff --git a/src/cloudflare/_wrappers.py b/src/cloudflare/_wrappers.py index cdcbe92ef..c8b03ea11 100644 --- a/src/cloudflare/_wrappers.py +++ b/src/cloudflare/_wrappers.py @@ -1,6 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Generic, TypeVar + from ._models import GenericModel __all__ = ["ResultWrapper"] diff --git a/src/cloudflare/pagination.py b/src/cloudflare/pagination.py index 715bbba44..7d52fed69 100644 --- a/src/cloudflare/pagination.py +++ b/src/cloudflare/pagination.py @@ -1,21 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ._models import GenericModel, BaseModel - -from typing import Generic, Optional, List - +from typing import List, Generic, TypeVar, Optional, cast from typing_extensions import override -import re -from typing import Optional, TypeVar, List, Generic, Dict, Any, Type, Mapping, cast -from typing_extensions import TypedDict, Literal, Annotated, Protocol, runtime_checkable - -from httpx import URL, Response -from pydantic import Field as FieldInfo - -from ._models import BaseModel -from ._utils import PropertyInfo, is_mapping -from ._base_client import BasePage, BaseSyncPage, BaseAsyncPage, PageInfo +from ._models import BaseModel, GenericModel +from ._base_client import BasePage, PageInfo, BaseSyncPage, BaseAsyncPage __all__ = [ "V4PagePaginationResult", diff --git a/src/cloudflare/resources/__init__.py b/src/cloudflare/resources/__init__.py index 27924e704..d99936f24 100644 --- a/src/cloudflare/resources/__init__.py +++ b/src/cloudflare/resources/__init__.py @@ -1,616 +1,700 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .accounts import AccountsResource, AsyncAccountsResource -from .accounts import ( - AccountsResourceWithRawResponse, - AsyncAccountsResourceWithRawResponse, - AccountsResourceWithStreamingResponse, - AsyncAccountsResourceWithStreamingResponse, -) -from .origin_ca_certificates import OriginCACertificatesResource, AsyncOriginCACertificatesResource -from .origin_ca_certificates import ( - OriginCACertificatesResourceWithRawResponse, - AsyncOriginCACertificatesResourceWithRawResponse, - OriginCACertificatesResourceWithStreamingResponse, - AsyncOriginCACertificatesResourceWithStreamingResponse, -) -from .ips import IPsResource, AsyncIPsResource -from .ips import ( - IPsResourceWithRawResponse, - AsyncIPsResourceWithRawResponse, - IPsResourceWithStreamingResponse, - AsyncIPsResourceWithStreamingResponse, -) -from .memberships import MembershipsResource, AsyncMembershipsResource -from .memberships import ( - MembershipsResourceWithRawResponse, - AsyncMembershipsResourceWithRawResponse, - MembershipsResourceWithStreamingResponse, - AsyncMembershipsResourceWithStreamingResponse, -) -from .user import UserResource, AsyncUserResource -from .user import ( - UserResourceWithRawResponse, - AsyncUserResourceWithRawResponse, - UserResourceWithStreamingResponse, - AsyncUserResourceWithStreamingResponse, -) -from .zones import ZonesResource, AsyncZonesResource -from .zones import ( - ZonesResourceWithRawResponse, - AsyncZonesResourceWithRawResponse, - ZonesResourceWithStreamingResponse, - AsyncZonesResourceWithStreamingResponse, -) -from .load_balancers import LoadBalancersResource, AsyncLoadBalancersResource -from .load_balancers import ( - LoadBalancersResourceWithRawResponse, - AsyncLoadBalancersResourceWithRawResponse, - LoadBalancersResourceWithStreamingResponse, - AsyncLoadBalancersResourceWithStreamingResponse, -) -from .cache import CacheResource, AsyncCacheResource -from .cache import ( - CacheResourceWithRawResponse, - AsyncCacheResourceWithRawResponse, - CacheResourceWithStreamingResponse, - AsyncCacheResourceWithStreamingResponse, -) -from .ssl import SSLResource, AsyncSSLResource -from .ssl import ( - SSLResourceWithRawResponse, - AsyncSSLResourceWithRawResponse, - SSLResourceWithStreamingResponse, - AsyncSSLResourceWithStreamingResponse, -) -from .subscriptions import SubscriptionsResource, AsyncSubscriptionsResource -from .subscriptions import ( - SubscriptionsResourceWithRawResponse, - AsyncSubscriptionsResourceWithRawResponse, - SubscriptionsResourceWithStreamingResponse, - AsyncSubscriptionsResourceWithStreamingResponse, -) -from .acm import ACMResource, AsyncACMResource -from .acm import ( - ACMResourceWithRawResponse, - AsyncACMResourceWithRawResponse, - ACMResourceWithStreamingResponse, - AsyncACMResourceWithStreamingResponse, -) -from .argo import ArgoResource, AsyncArgoResource -from .argo import ( - ArgoResourceWithRawResponse, - AsyncArgoResourceWithRawResponse, - ArgoResourceWithStreamingResponse, - AsyncArgoResourceWithStreamingResponse, -) -from .plans import PlansResource, AsyncPlansResource -from .plans import ( - PlansResourceWithRawResponse, - AsyncPlansResourceWithRawResponse, - PlansResourceWithStreamingResponse, - AsyncPlansResourceWithStreamingResponse, -) -from .rate_plans import RatePlansResource, AsyncRatePlansResource -from .rate_plans import ( - RatePlansResourceWithRawResponse, - AsyncRatePlansResourceWithRawResponse, - RatePlansResourceWithStreamingResponse, - AsyncRatePlansResourceWithStreamingResponse, -) -from .certificate_authorities import CertificateAuthoritiesResource, AsyncCertificateAuthoritiesResource -from .certificate_authorities import ( - CertificateAuthoritiesResourceWithRawResponse, - AsyncCertificateAuthoritiesResourceWithRawResponse, - CertificateAuthoritiesResourceWithStreamingResponse, - AsyncCertificateAuthoritiesResourceWithStreamingResponse, -) -from .client_certificates import ClientCertificatesResource, AsyncClientCertificatesResource -from .client_certificates import ( - ClientCertificatesResourceWithRawResponse, - AsyncClientCertificatesResourceWithRawResponse, - ClientCertificatesResourceWithStreamingResponse, - AsyncClientCertificatesResourceWithStreamingResponse, -) -from .custom_certificates import CustomCertificatesResource, AsyncCustomCertificatesResource -from .custom_certificates import ( - CustomCertificatesResourceWithRawResponse, - AsyncCustomCertificatesResourceWithRawResponse, - CustomCertificatesResourceWithStreamingResponse, - AsyncCustomCertificatesResourceWithStreamingResponse, -) -from .custom_hostnames import CustomHostnamesResource, AsyncCustomHostnamesResource -from .custom_hostnames import ( - CustomHostnamesResourceWithRawResponse, - AsyncCustomHostnamesResourceWithRawResponse, - CustomHostnamesResourceWithStreamingResponse, - AsyncCustomHostnamesResourceWithStreamingResponse, -) -from .custom_nameservers import CustomNameserversResource, AsyncCustomNameserversResource -from .custom_nameservers import ( - CustomNameserversResourceWithRawResponse, - AsyncCustomNameserversResourceWithRawResponse, - CustomNameserversResourceWithStreamingResponse, - AsyncCustomNameserversResourceWithStreamingResponse, -) -from .dns import DNSResource, AsyncDNSResource -from .dns import ( - DNSResourceWithRawResponse, - AsyncDNSResourceWithRawResponse, - DNSResourceWithStreamingResponse, - AsyncDNSResourceWithStreamingResponse, -) -from .dnssec import DNSSECResource, AsyncDNSSECResource -from .dnssec import ( - DNSSECResourceWithRawResponse, - AsyncDNSSECResourceWithRawResponse, - DNSSECResourceWithStreamingResponse, - AsyncDNSSECResourceWithStreamingResponse, -) -from .email_security import EmailSecurityResource, AsyncEmailSecurityResource -from .email_security import ( - EmailSecurityResourceWithRawResponse, - AsyncEmailSecurityResourceWithRawResponse, - EmailSecurityResourceWithStreamingResponse, - AsyncEmailSecurityResourceWithStreamingResponse, -) -from .email_routing import EmailRoutingResource, AsyncEmailRoutingResource -from .email_routing import ( - EmailRoutingResourceWithRawResponse, - AsyncEmailRoutingResourceWithRawResponse, - EmailRoutingResourceWithStreamingResponse, - AsyncEmailRoutingResourceWithStreamingResponse, -) -from .filters import FiltersResource, AsyncFiltersResource -from .filters import ( - FiltersResourceWithRawResponse, - AsyncFiltersResourceWithRawResponse, - FiltersResourceWithStreamingResponse, - AsyncFiltersResourceWithStreamingResponse, -) -from .firewall import FirewallResource, AsyncFirewallResource -from .firewall import ( - FirewallResourceWithRawResponse, - AsyncFirewallResourceWithRawResponse, - FirewallResourceWithStreamingResponse, - AsyncFirewallResourceWithStreamingResponse, -) -from .healthchecks import HealthchecksResource, AsyncHealthchecksResource -from .healthchecks import ( - HealthchecksResourceWithRawResponse, - AsyncHealthchecksResourceWithRawResponse, - HealthchecksResourceWithStreamingResponse, - AsyncHealthchecksResourceWithStreamingResponse, -) -from .keyless_certificates import KeylessCertificatesResource, AsyncKeylessCertificatesResource -from .keyless_certificates import ( - KeylessCertificatesResourceWithRawResponse, - AsyncKeylessCertificatesResourceWithRawResponse, - KeylessCertificatesResourceWithStreamingResponse, - AsyncKeylessCertificatesResourceWithStreamingResponse, -) -from .logpush import LogpushResource, AsyncLogpushResource -from .logpush import ( - LogpushResourceWithRawResponse, - AsyncLogpushResourceWithRawResponse, - LogpushResourceWithStreamingResponse, - AsyncLogpushResourceWithStreamingResponse, -) -from .logs import LogsResource, AsyncLogsResource -from .logs import ( - LogsResourceWithRawResponse, - AsyncLogsResourceWithRawResponse, - LogsResourceWithStreamingResponse, - AsyncLogsResourceWithStreamingResponse, -) -from .origin_tls_client_auth import OriginTLSClientAuthResource, AsyncOriginTLSClientAuthResource -from .origin_tls_client_auth import ( - OriginTLSClientAuthResourceWithRawResponse, - AsyncOriginTLSClientAuthResourceWithRawResponse, - OriginTLSClientAuthResourceWithStreamingResponse, - AsyncOriginTLSClientAuthResourceWithStreamingResponse, -) -from .pagerules import PagerulesResource, AsyncPagerulesResource -from .pagerules import ( - PagerulesResourceWithRawResponse, - AsyncPagerulesResourceWithRawResponse, - PagerulesResourceWithStreamingResponse, - AsyncPagerulesResourceWithStreamingResponse, -) -from .rate_limits import RateLimitsResource, AsyncRateLimitsResource -from .rate_limits import ( - RateLimitsResourceWithRawResponse, - AsyncRateLimitsResourceWithRawResponse, - RateLimitsResourceWithStreamingResponse, - AsyncRateLimitsResourceWithStreamingResponse, -) -from .secondary_dns import SecondaryDNSResource, AsyncSecondaryDNSResource -from .secondary_dns import ( - SecondaryDNSResourceWithRawResponse, - AsyncSecondaryDNSResourceWithRawResponse, - SecondaryDNSResourceWithStreamingResponse, - AsyncSecondaryDNSResourceWithStreamingResponse, -) -from .waiting_rooms import WaitingRoomsResource, AsyncWaitingRoomsResource -from .waiting_rooms import ( - WaitingRoomsResourceWithRawResponse, - AsyncWaitingRoomsResourceWithRawResponse, - WaitingRoomsResourceWithStreamingResponse, - AsyncWaitingRoomsResourceWithStreamingResponse, -) -from .web3 import Web3Resource, AsyncWeb3Resource -from .web3 import ( - Web3ResourceWithRawResponse, - AsyncWeb3ResourceWithRawResponse, - Web3ResourceWithStreamingResponse, - AsyncWeb3ResourceWithStreamingResponse, -) -from .workers import WorkersResource, AsyncWorkersResource -from .workers import ( - WorkersResourceWithRawResponse, - AsyncWorkersResourceWithRawResponse, - WorkersResourceWithStreamingResponse, - AsyncWorkersResourceWithStreamingResponse, -) -from .kv import KVResource, AsyncKVResource -from .kv import ( - KVResourceWithRawResponse, - AsyncKVResourceWithRawResponse, - KVResourceWithStreamingResponse, - AsyncKVResourceWithStreamingResponse, -) -from .durable_objects import DurableObjectsResource, AsyncDurableObjectsResource -from .durable_objects import ( - DurableObjectsResourceWithRawResponse, - AsyncDurableObjectsResourceWithRawResponse, - DurableObjectsResourceWithStreamingResponse, - AsyncDurableObjectsResourceWithStreamingResponse, -) -from .queues import QueuesResource, AsyncQueuesResource -from .queues import ( - QueuesResourceWithRawResponse, - AsyncQueuesResourceWithRawResponse, - QueuesResourceWithStreamingResponse, - AsyncQueuesResourceWithStreamingResponse, -) -from .api_gateway import APIGatewayResource, AsyncAPIGatewayResource -from .api_gateway import ( - APIGatewayResourceWithRawResponse, - AsyncAPIGatewayResourceWithRawResponse, - APIGatewayResourceWithStreamingResponse, - AsyncAPIGatewayResourceWithStreamingResponse, -) -from .managed_headers import ManagedHeadersResource, AsyncManagedHeadersResource -from .managed_headers import ( - ManagedHeadersResourceWithRawResponse, - AsyncManagedHeadersResourceWithRawResponse, - ManagedHeadersResourceWithStreamingResponse, - AsyncManagedHeadersResourceWithStreamingResponse, -) -from .page_shield import PageShieldResource, AsyncPageShieldResource -from .page_shield import ( - PageShieldResourceWithRawResponse, - AsyncPageShieldResourceWithRawResponse, - PageShieldResourceWithStreamingResponse, - AsyncPageShieldResourceWithStreamingResponse, -) -from .rulesets import RulesetsResource, AsyncRulesetsResource -from .rulesets import ( - RulesetsResourceWithRawResponse, - AsyncRulesetsResourceWithRawResponse, - RulesetsResourceWithStreamingResponse, - AsyncRulesetsResourceWithStreamingResponse, -) -from .url_normalization import URLNormalizationResource, AsyncURLNormalizationResource -from .url_normalization import ( - URLNormalizationResourceWithRawResponse, - AsyncURLNormalizationResourceWithRawResponse, - URLNormalizationResourceWithStreamingResponse, - AsyncURLNormalizationResourceWithStreamingResponse, -) -from .spectrum import SpectrumResource, AsyncSpectrumResource -from .spectrum import ( - SpectrumResourceWithRawResponse, - AsyncSpectrumResourceWithRawResponse, - SpectrumResourceWithStreamingResponse, - AsyncSpectrumResourceWithStreamingResponse, -) -from .addressing import AddressingResource, AsyncAddressingResource -from .addressing import ( - AddressingResourceWithRawResponse, - AsyncAddressingResourceWithRawResponse, - AddressingResourceWithStreamingResponse, - AsyncAddressingResourceWithStreamingResponse, -) -from .audit_logs import AuditLogsResource, AsyncAuditLogsResource -from .audit_logs import ( - AuditLogsResourceWithRawResponse, - AsyncAuditLogsResourceWithRawResponse, - AuditLogsResourceWithStreamingResponse, - AsyncAuditLogsResourceWithStreamingResponse, -) -from .billing import BillingResource, AsyncBillingResource -from .billing import ( - BillingResourceWithRawResponse, - AsyncBillingResourceWithRawResponse, - BillingResourceWithStreamingResponse, - AsyncBillingResourceWithStreamingResponse, -) -from .brand_protection import BrandProtectionResource, AsyncBrandProtectionResource -from .brand_protection import ( - BrandProtectionResourceWithRawResponse, - AsyncBrandProtectionResourceWithRawResponse, - BrandProtectionResourceWithStreamingResponse, - AsyncBrandProtectionResourceWithStreamingResponse, -) -from .diagnostics import DiagnosticsResource, AsyncDiagnosticsResource -from .diagnostics import ( - DiagnosticsResourceWithRawResponse, - AsyncDiagnosticsResourceWithRawResponse, - DiagnosticsResourceWithStreamingResponse, - AsyncDiagnosticsResourceWithStreamingResponse, -) -from .images import ImagesResource, AsyncImagesResource -from .images import ( - ImagesResourceWithRawResponse, - AsyncImagesResourceWithRawResponse, - ImagesResourceWithStreamingResponse, - AsyncImagesResourceWithStreamingResponse, -) -from .intel import IntelResource, AsyncIntelResource -from .intel import ( - IntelResourceWithRawResponse, - AsyncIntelResourceWithRawResponse, - IntelResourceWithStreamingResponse, - AsyncIntelResourceWithStreamingResponse, -) -from .magic_transit import MagicTransitResource, AsyncMagicTransitResource -from .magic_transit import ( - MagicTransitResourceWithRawResponse, - AsyncMagicTransitResourceWithRawResponse, - MagicTransitResourceWithStreamingResponse, - AsyncMagicTransitResourceWithStreamingResponse, -) -from .magic_network_monitoring import MagicNetworkMonitoringResource, AsyncMagicNetworkMonitoringResource -from .magic_network_monitoring import ( - MagicNetworkMonitoringResourceWithRawResponse, - AsyncMagicNetworkMonitoringResourceWithRawResponse, - MagicNetworkMonitoringResourceWithStreamingResponse, - AsyncMagicNetworkMonitoringResourceWithStreamingResponse, -) -from .mtls_certificates import MTLSCertificatesResource, AsyncMTLSCertificatesResource -from .mtls_certificates import ( - MTLSCertificatesResourceWithRawResponse, - AsyncMTLSCertificatesResourceWithRawResponse, - MTLSCertificatesResourceWithStreamingResponse, - AsyncMTLSCertificatesResourceWithStreamingResponse, -) -from .pages import PagesResource, AsyncPagesResource -from .pages import ( - PagesResourceWithRawResponse, - AsyncPagesResourceWithRawResponse, - PagesResourceWithStreamingResponse, - AsyncPagesResourceWithStreamingResponse, -) -from .pcaps import PCAPsResource, AsyncPCAPsResource -from .pcaps import ( - PCAPsResourceWithRawResponse, - AsyncPCAPsResourceWithRawResponse, - PCAPsResourceWithStreamingResponse, - AsyncPCAPsResourceWithStreamingResponse, -) -from .registrar import RegistrarResource, AsyncRegistrarResource -from .registrar import ( - RegistrarResourceWithRawResponse, - AsyncRegistrarResourceWithRawResponse, - RegistrarResourceWithStreamingResponse, - AsyncRegistrarResourceWithStreamingResponse, -) -from .request_tracers import RequestTracersResource, AsyncRequestTracersResource -from .request_tracers import ( - RequestTracersResourceWithRawResponse, - AsyncRequestTracersResourceWithRawResponse, - RequestTracersResourceWithStreamingResponse, - AsyncRequestTracersResourceWithStreamingResponse, -) -from .rules import RulesResource, AsyncRulesResource -from .rules import ( - RulesResourceWithRawResponse, - AsyncRulesResourceWithRawResponse, - RulesResourceWithStreamingResponse, - AsyncRulesResourceWithStreamingResponse, -) -from .storage import StorageResource, AsyncStorageResource -from .storage import ( - StorageResourceWithRawResponse, - AsyncStorageResourceWithRawResponse, - StorageResourceWithStreamingResponse, - AsyncStorageResourceWithStreamingResponse, -) -from .stream import StreamResource, AsyncStreamResource -from .stream import ( - StreamResourceWithRawResponse, - AsyncStreamResourceWithRawResponse, - StreamResourceWithStreamingResponse, - AsyncStreamResourceWithStreamingResponse, -) -from .alerting import AlertingResource, AsyncAlertingResource -from .alerting import ( - AlertingResourceWithRawResponse, - AsyncAlertingResourceWithRawResponse, - AlertingResourceWithStreamingResponse, - AsyncAlertingResourceWithStreamingResponse, -) -from .d1 import D1Resource, AsyncD1Resource from .d1 import ( + D1Resource, + AsyncD1Resource, D1ResourceWithRawResponse, AsyncD1ResourceWithRawResponse, D1ResourceWithStreamingResponse, AsyncD1ResourceWithStreamingResponse, ) -from .r2 import R2Resource, AsyncR2Resource +from .kv import ( + KVResource, + AsyncKVResource, + KVResourceWithRawResponse, + AsyncKVResourceWithRawResponse, + KVResourceWithStreamingResponse, + AsyncKVResourceWithStreamingResponse, +) from .r2 import ( + R2Resource, + AsyncR2Resource, R2ResourceWithRawResponse, AsyncR2ResourceWithRawResponse, R2ResourceWithStreamingResponse, AsyncR2ResourceWithStreamingResponse, ) -from .warp_connector import WARPConnectorResource, AsyncWARPConnectorResource -from .warp_connector import ( - WARPConnectorResourceWithRawResponse, - AsyncWARPConnectorResourceWithRawResponse, - WARPConnectorResourceWithStreamingResponse, - AsyncWARPConnectorResourceWithStreamingResponse, +from .acm import ( + ACMResource, + AsyncACMResource, + ACMResourceWithRawResponse, + AsyncACMResourceWithRawResponse, + ACMResourceWithStreamingResponse, + AsyncACMResourceWithStreamingResponse, ) -from .workers_for_platforms import WorkersForPlatformsResource, AsyncWorkersForPlatformsResource -from .workers_for_platforms import ( - WorkersForPlatformsResourceWithRawResponse, - AsyncWorkersForPlatformsResourceWithRawResponse, - WorkersForPlatformsResourceWithStreamingResponse, - AsyncWorkersForPlatformsResourceWithStreamingResponse, +from .dns import ( + DNSResource, + AsyncDNSResource, + DNSResourceWithRawResponse, + AsyncDNSResourceWithRawResponse, + DNSResourceWithStreamingResponse, + AsyncDNSResourceWithStreamingResponse, ) -from .zero_trust import ZeroTrustResource, AsyncZeroTrustResource -from .zero_trust import ( - ZeroTrustResourceWithRawResponse, - AsyncZeroTrustResourceWithRawResponse, - ZeroTrustResourceWithStreamingResponse, - AsyncZeroTrustResourceWithStreamingResponse, -) -from .challenges import ChallengesResource, AsyncChallengesResource -from .challenges import ( - ChallengesResourceWithRawResponse, - AsyncChallengesResourceWithRawResponse, - ChallengesResourceWithStreamingResponse, - AsyncChallengesResourceWithStreamingResponse, -) -from .hyperdrive import HyperdriveResource, AsyncHyperdriveResource -from .hyperdrive import ( - HyperdriveResourceWithRawResponse, - AsyncHyperdriveResourceWithRawResponse, - HyperdriveResourceWithStreamingResponse, - AsyncHyperdriveResourceWithStreamingResponse, -) -from .rum import RUMResource, AsyncRUMResource -from .rum import ( - RUMResourceWithRawResponse, - AsyncRUMResourceWithRawResponse, - RUMResourceWithStreamingResponse, - AsyncRUMResourceWithStreamingResponse, -) -from .vectorize import VectorizeResource, AsyncVectorizeResource -from .vectorize import ( - VectorizeResourceWithRawResponse, - AsyncVectorizeResourceWithRawResponse, - VectorizeResourceWithStreamingResponse, - AsyncVectorizeResourceWithStreamingResponse, -) -from .url_scanner import URLScannerResource, AsyncURLScannerResource -from .url_scanner import ( - URLScannerResourceWithRawResponse, - AsyncURLScannerResourceWithRawResponse, - URLScannerResourceWithStreamingResponse, - AsyncURLScannerResourceWithStreamingResponse, -) -from .radar import RadarResource, AsyncRadarResource -from .radar import ( - RadarResourceWithRawResponse, - AsyncRadarResourceWithRawResponse, - RadarResourceWithStreamingResponse, - AsyncRadarResourceWithStreamingResponse, -) -from .bot_management import BotManagementResource, AsyncBotManagementResource -from .bot_management import ( - BotManagementResourceWithRawResponse, - AsyncBotManagementResourceWithRawResponse, - BotManagementResourceWithStreamingResponse, - AsyncBotManagementResourceWithStreamingResponse, -) -from .origin_post_quantum_encryption import ( - OriginPostQuantumEncryptionResource, - AsyncOriginPostQuantumEncryptionResource, -) -from .origin_post_quantum_encryption import ( - OriginPostQuantumEncryptionResourceWithRawResponse, - AsyncOriginPostQuantumEncryptionResourceWithRawResponse, - OriginPostQuantumEncryptionResourceWithStreamingResponse, - AsyncOriginPostQuantumEncryptionResourceWithStreamingResponse, -) -from .speed import SpeedResource, AsyncSpeedResource -from .speed import ( - SpeedResourceWithRawResponse, - AsyncSpeedResourceWithRawResponse, - SpeedResourceWithStreamingResponse, - AsyncSpeedResourceWithStreamingResponse, -) -from .dcv_delegation import DCVDelegationResource, AsyncDCVDelegationResource -from .dcv_delegation import ( - DCVDelegationResourceWithRawResponse, - AsyncDCVDelegationResourceWithRawResponse, - DCVDelegationResourceWithStreamingResponse, - AsyncDCVDelegationResourceWithStreamingResponse, -) -from .hostnames import HostnamesResource, AsyncHostnamesResource -from .hostnames import ( - HostnamesResourceWithRawResponse, - AsyncHostnamesResourceWithRawResponse, - HostnamesResourceWithStreamingResponse, - AsyncHostnamesResourceWithStreamingResponse, -) -from .snippets import SnippetsResource, AsyncSnippetsResource -from .snippets import ( - SnippetsResourceWithRawResponse, - AsyncSnippetsResourceWithRawResponse, - SnippetsResourceWithStreamingResponse, - AsyncSnippetsResourceWithStreamingResponse, -) -from .calls import CallsResource, AsyncCallsResource -from .calls import ( - CallsResourceWithRawResponse, - AsyncCallsResourceWithRawResponse, - CallsResourceWithStreamingResponse, - AsyncCallsResourceWithStreamingResponse, -) -from .cloudforce_one import CloudforceOneResource, AsyncCloudforceOneResource -from .cloudforce_one import ( - CloudforceOneResourceWithRawResponse, - AsyncCloudforceOneResourceWithRawResponse, - CloudforceOneResourceWithStreamingResponse, - AsyncCloudforceOneResourceWithStreamingResponse, -) -from .event_notifications import EventNotificationsResource, AsyncEventNotificationsResource -from .event_notifications import ( - EventNotificationsResourceWithRawResponse, - AsyncEventNotificationsResourceWithRawResponse, - EventNotificationsResourceWithStreamingResponse, - AsyncEventNotificationsResourceWithStreamingResponse, -) -from .ai_gateway import AIGatewayResource, AsyncAIGatewayResource -from .ai_gateway import ( - AIGatewayResourceWithRawResponse, - AsyncAIGatewayResourceWithRawResponse, - AIGatewayResourceWithStreamingResponse, - AsyncAIGatewayResourceWithStreamingResponse, -) -from .iam import IAMResource, AsyncIAMResource from .iam import ( + IAMResource, + AsyncIAMResource, IAMResourceWithRawResponse, AsyncIAMResourceWithRawResponse, IAMResourceWithStreamingResponse, AsyncIAMResourceWithStreamingResponse, ) -from .cloud_connector import CloudConnectorResource, AsyncCloudConnectorResource +from .ips import ( + IPsResource, + AsyncIPsResource, + IPsResourceWithRawResponse, + AsyncIPsResourceWithRawResponse, + IPsResourceWithStreamingResponse, + AsyncIPsResourceWithStreamingResponse, +) +from .rum import ( + RUMResource, + AsyncRUMResource, + RUMResourceWithRawResponse, + AsyncRUMResourceWithRawResponse, + RUMResourceWithStreamingResponse, + AsyncRUMResourceWithStreamingResponse, +) +from .ssl import ( + SSLResource, + AsyncSSLResource, + SSLResourceWithRawResponse, + AsyncSSLResourceWithRawResponse, + SSLResourceWithStreamingResponse, + AsyncSSLResourceWithStreamingResponse, +) +from .argo import ( + ArgoResource, + AsyncArgoResource, + ArgoResourceWithRawResponse, + AsyncArgoResourceWithRawResponse, + ArgoResourceWithStreamingResponse, + AsyncArgoResourceWithStreamingResponse, +) +from .logs import ( + LogsResource, + AsyncLogsResource, + LogsResourceWithRawResponse, + AsyncLogsResourceWithRawResponse, + LogsResourceWithStreamingResponse, + AsyncLogsResourceWithStreamingResponse, +) +from .user import ( + UserResource, + AsyncUserResource, + UserResourceWithRawResponse, + AsyncUserResourceWithRawResponse, + UserResourceWithStreamingResponse, + AsyncUserResourceWithStreamingResponse, +) +from .web3 import ( + Web3Resource, + AsyncWeb3Resource, + Web3ResourceWithRawResponse, + AsyncWeb3ResourceWithRawResponse, + Web3ResourceWithStreamingResponse, + AsyncWeb3ResourceWithStreamingResponse, +) +from .cache import ( + CacheResource, + AsyncCacheResource, + CacheResourceWithRawResponse, + AsyncCacheResourceWithRawResponse, + CacheResourceWithStreamingResponse, + AsyncCacheResourceWithStreamingResponse, +) +from .calls import ( + CallsResource, + AsyncCallsResource, + CallsResourceWithRawResponse, + AsyncCallsResourceWithRawResponse, + CallsResourceWithStreamingResponse, + AsyncCallsResourceWithStreamingResponse, +) +from .intel import ( + IntelResource, + AsyncIntelResource, + IntelResourceWithRawResponse, + AsyncIntelResourceWithRawResponse, + IntelResourceWithStreamingResponse, + AsyncIntelResourceWithStreamingResponse, +) +from .pages import ( + PagesResource, + AsyncPagesResource, + PagesResourceWithRawResponse, + AsyncPagesResourceWithRawResponse, + PagesResourceWithStreamingResponse, + AsyncPagesResourceWithStreamingResponse, +) +from .pcaps import ( + PCAPsResource, + AsyncPCAPsResource, + PCAPsResourceWithRawResponse, + AsyncPCAPsResourceWithRawResponse, + PCAPsResourceWithStreamingResponse, + AsyncPCAPsResourceWithStreamingResponse, +) +from .plans import ( + PlansResource, + AsyncPlansResource, + PlansResourceWithRawResponse, + AsyncPlansResourceWithRawResponse, + PlansResourceWithStreamingResponse, + AsyncPlansResourceWithStreamingResponse, +) +from .radar import ( + RadarResource, + AsyncRadarResource, + RadarResourceWithRawResponse, + AsyncRadarResourceWithRawResponse, + RadarResourceWithStreamingResponse, + AsyncRadarResourceWithStreamingResponse, +) +from .rules import ( + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, +) +from .speed import ( + SpeedResource, + AsyncSpeedResource, + SpeedResourceWithRawResponse, + AsyncSpeedResourceWithRawResponse, + SpeedResourceWithStreamingResponse, + AsyncSpeedResourceWithStreamingResponse, +) +from .zones import ( + ZonesResource, + AsyncZonesResource, + ZonesResourceWithRawResponse, + AsyncZonesResourceWithRawResponse, + ZonesResourceWithStreamingResponse, + AsyncZonesResourceWithStreamingResponse, +) +from .dnssec import ( + DNSSECResource, + AsyncDNSSECResource, + DNSSECResourceWithRawResponse, + AsyncDNSSECResourceWithRawResponse, + DNSSECResourceWithStreamingResponse, + AsyncDNSSECResourceWithStreamingResponse, +) +from .images import ( + ImagesResource, + AsyncImagesResource, + ImagesResourceWithRawResponse, + AsyncImagesResourceWithRawResponse, + ImagesResourceWithStreamingResponse, + AsyncImagesResourceWithStreamingResponse, +) +from .queues import ( + QueuesResource, + AsyncQueuesResource, + QueuesResourceWithRawResponse, + AsyncQueuesResourceWithRawResponse, + QueuesResourceWithStreamingResponse, + AsyncQueuesResourceWithStreamingResponse, +) +from .stream import ( + StreamResource, + AsyncStreamResource, + StreamResourceWithRawResponse, + AsyncStreamResourceWithRawResponse, + StreamResourceWithStreamingResponse, + AsyncStreamResourceWithStreamingResponse, +) +from .billing import ( + BillingResource, + AsyncBillingResource, + BillingResourceWithRawResponse, + AsyncBillingResourceWithRawResponse, + BillingResourceWithStreamingResponse, + AsyncBillingResourceWithStreamingResponse, +) +from .filters import ( + FiltersResource, + AsyncFiltersResource, + FiltersResourceWithRawResponse, + AsyncFiltersResourceWithRawResponse, + FiltersResourceWithStreamingResponse, + AsyncFiltersResourceWithStreamingResponse, +) +from .logpush import ( + LogpushResource, + AsyncLogpushResource, + LogpushResourceWithRawResponse, + AsyncLogpushResourceWithRawResponse, + LogpushResourceWithStreamingResponse, + AsyncLogpushResourceWithStreamingResponse, +) +from .storage import ( + StorageResource, + AsyncStorageResource, + StorageResourceWithRawResponse, + AsyncStorageResourceWithRawResponse, + StorageResourceWithStreamingResponse, + AsyncStorageResourceWithStreamingResponse, +) +from .workers import ( + WorkersResource, + AsyncWorkersResource, + WorkersResourceWithRawResponse, + AsyncWorkersResourceWithRawResponse, + WorkersResourceWithStreamingResponse, + AsyncWorkersResourceWithStreamingResponse, +) +from .accounts import ( + AccountsResource, + AsyncAccountsResource, + AccountsResourceWithRawResponse, + AsyncAccountsResourceWithRawResponse, + AccountsResourceWithStreamingResponse, + AsyncAccountsResourceWithStreamingResponse, +) +from .alerting import ( + AlertingResource, + AsyncAlertingResource, + AlertingResourceWithRawResponse, + AsyncAlertingResourceWithRawResponse, + AlertingResourceWithStreamingResponse, + AsyncAlertingResourceWithStreamingResponse, +) +from .firewall import ( + FirewallResource, + AsyncFirewallResource, + FirewallResourceWithRawResponse, + AsyncFirewallResourceWithRawResponse, + FirewallResourceWithStreamingResponse, + AsyncFirewallResourceWithStreamingResponse, +) +from .rulesets import ( + RulesetsResource, + AsyncRulesetsResource, + RulesetsResourceWithRawResponse, + AsyncRulesetsResourceWithRawResponse, + RulesetsResourceWithStreamingResponse, + AsyncRulesetsResourceWithStreamingResponse, +) +from .snippets import ( + SnippetsResource, + AsyncSnippetsResource, + SnippetsResourceWithRawResponse, + AsyncSnippetsResourceWithRawResponse, + SnippetsResourceWithStreamingResponse, + AsyncSnippetsResourceWithStreamingResponse, +) +from .spectrum import ( + SpectrumResource, + AsyncSpectrumResource, + SpectrumResourceWithRawResponse, + AsyncSpectrumResourceWithRawResponse, + SpectrumResourceWithStreamingResponse, + AsyncSpectrumResourceWithStreamingResponse, +) +from .hostnames import ( + HostnamesResource, + AsyncHostnamesResource, + HostnamesResourceWithRawResponse, + AsyncHostnamesResourceWithRawResponse, + HostnamesResourceWithStreamingResponse, + AsyncHostnamesResourceWithStreamingResponse, +) +from .pagerules import ( + PagerulesResource, + AsyncPagerulesResource, + PagerulesResourceWithRawResponse, + AsyncPagerulesResourceWithRawResponse, + PagerulesResourceWithStreamingResponse, + AsyncPagerulesResourceWithStreamingResponse, +) +from .registrar import ( + RegistrarResource, + AsyncRegistrarResource, + RegistrarResourceWithRawResponse, + AsyncRegistrarResourceWithRawResponse, + RegistrarResourceWithStreamingResponse, + AsyncRegistrarResourceWithStreamingResponse, +) +from .vectorize import ( + VectorizeResource, + AsyncVectorizeResource, + VectorizeResourceWithRawResponse, + AsyncVectorizeResourceWithRawResponse, + VectorizeResourceWithStreamingResponse, + AsyncVectorizeResourceWithStreamingResponse, +) +from .addressing import ( + AddressingResource, + AsyncAddressingResource, + AddressingResourceWithRawResponse, + AsyncAddressingResourceWithRawResponse, + AddressingResourceWithStreamingResponse, + AsyncAddressingResourceWithStreamingResponse, +) +from .ai_gateway import ( + AIGatewayResource, + AsyncAIGatewayResource, + AIGatewayResourceWithRawResponse, + AsyncAIGatewayResourceWithRawResponse, + AIGatewayResourceWithStreamingResponse, + AsyncAIGatewayResourceWithStreamingResponse, +) +from .audit_logs import ( + AuditLogsResource, + AsyncAuditLogsResource, + AuditLogsResourceWithRawResponse, + AsyncAuditLogsResourceWithRawResponse, + AuditLogsResourceWithStreamingResponse, + AsyncAuditLogsResourceWithStreamingResponse, +) +from .challenges import ( + ChallengesResource, + AsyncChallengesResource, + ChallengesResourceWithRawResponse, + AsyncChallengesResourceWithRawResponse, + ChallengesResourceWithStreamingResponse, + AsyncChallengesResourceWithStreamingResponse, +) +from .hyperdrive import ( + HyperdriveResource, + AsyncHyperdriveResource, + HyperdriveResourceWithRawResponse, + AsyncHyperdriveResourceWithRawResponse, + HyperdriveResourceWithStreamingResponse, + AsyncHyperdriveResourceWithStreamingResponse, +) +from .rate_plans import ( + RatePlansResource, + AsyncRatePlansResource, + RatePlansResourceWithRawResponse, + AsyncRatePlansResourceWithRawResponse, + RatePlansResourceWithStreamingResponse, + AsyncRatePlansResourceWithStreamingResponse, +) +from .zero_trust import ( + ZeroTrustResource, + AsyncZeroTrustResource, + ZeroTrustResourceWithRawResponse, + AsyncZeroTrustResourceWithRawResponse, + ZeroTrustResourceWithStreamingResponse, + AsyncZeroTrustResourceWithStreamingResponse, +) +from .api_gateway import ( + APIGatewayResource, + AsyncAPIGatewayResource, + APIGatewayResourceWithRawResponse, + AsyncAPIGatewayResourceWithRawResponse, + APIGatewayResourceWithStreamingResponse, + AsyncAPIGatewayResourceWithStreamingResponse, +) +from .botnet_feed import ( + BotnetFeedResource, + AsyncBotnetFeedResource, + BotnetFeedResourceWithRawResponse, + AsyncBotnetFeedResourceWithRawResponse, + BotnetFeedResourceWithStreamingResponse, + AsyncBotnetFeedResourceWithStreamingResponse, +) +from .diagnostics import ( + DiagnosticsResource, + AsyncDiagnosticsResource, + DiagnosticsResourceWithRawResponse, + AsyncDiagnosticsResourceWithRawResponse, + DiagnosticsResourceWithStreamingResponse, + AsyncDiagnosticsResourceWithStreamingResponse, +) +from .memberships import ( + MembershipsResource, + AsyncMembershipsResource, + MembershipsResourceWithRawResponse, + AsyncMembershipsResourceWithRawResponse, + MembershipsResourceWithStreamingResponse, + AsyncMembershipsResourceWithStreamingResponse, +) +from .page_shield import ( + PageShieldResource, + AsyncPageShieldResource, + PageShieldResourceWithRawResponse, + AsyncPageShieldResourceWithRawResponse, + PageShieldResourceWithStreamingResponse, + AsyncPageShieldResourceWithStreamingResponse, +) +from .rate_limits import ( + RateLimitsResource, + AsyncRateLimitsResource, + RateLimitsResourceWithRawResponse, + AsyncRateLimitsResourceWithRawResponse, + RateLimitsResourceWithStreamingResponse, + AsyncRateLimitsResourceWithStreamingResponse, +) +from .url_scanner import ( + URLScannerResource, + AsyncURLScannerResource, + URLScannerResourceWithRawResponse, + AsyncURLScannerResourceWithRawResponse, + URLScannerResourceWithStreamingResponse, + AsyncURLScannerResourceWithStreamingResponse, +) +from .healthchecks import ( + HealthchecksResource, + AsyncHealthchecksResource, + HealthchecksResourceWithRawResponse, + AsyncHealthchecksResourceWithRawResponse, + HealthchecksResourceWithStreamingResponse, + AsyncHealthchecksResourceWithStreamingResponse, +) +from .email_routing import ( + EmailRoutingResource, + AsyncEmailRoutingResource, + EmailRoutingResourceWithRawResponse, + AsyncEmailRoutingResourceWithRawResponse, + EmailRoutingResourceWithStreamingResponse, + AsyncEmailRoutingResourceWithStreamingResponse, +) +from .magic_transit import ( + MagicTransitResource, + AsyncMagicTransitResource, + MagicTransitResourceWithRawResponse, + AsyncMagicTransitResourceWithRawResponse, + MagicTransitResourceWithStreamingResponse, + AsyncMagicTransitResourceWithStreamingResponse, +) +from .secondary_dns import ( + SecondaryDNSResource, + AsyncSecondaryDNSResource, + SecondaryDNSResourceWithRawResponse, + AsyncSecondaryDNSResourceWithRawResponse, + SecondaryDNSResourceWithStreamingResponse, + AsyncSecondaryDNSResourceWithStreamingResponse, +) +from .subscriptions import ( + SubscriptionsResource, + AsyncSubscriptionsResource, + SubscriptionsResourceWithRawResponse, + AsyncSubscriptionsResourceWithRawResponse, + SubscriptionsResourceWithStreamingResponse, + AsyncSubscriptionsResourceWithStreamingResponse, +) +from .waiting_rooms import ( + WaitingRoomsResource, + AsyncWaitingRoomsResource, + WaitingRoomsResourceWithRawResponse, + AsyncWaitingRoomsResourceWithRawResponse, + WaitingRoomsResourceWithStreamingResponse, + AsyncWaitingRoomsResourceWithStreamingResponse, +) +from .bot_management import ( + BotManagementResource, + AsyncBotManagementResource, + BotManagementResourceWithRawResponse, + AsyncBotManagementResourceWithRawResponse, + BotManagementResourceWithStreamingResponse, + AsyncBotManagementResourceWithStreamingResponse, +) +from .cloudforce_one import ( + CloudforceOneResource, + AsyncCloudforceOneResource, + CloudforceOneResourceWithRawResponse, + AsyncCloudforceOneResourceWithRawResponse, + CloudforceOneResourceWithStreamingResponse, + AsyncCloudforceOneResourceWithStreamingResponse, +) +from .dcv_delegation import ( + DCVDelegationResource, + AsyncDCVDelegationResource, + DCVDelegationResourceWithRawResponse, + AsyncDCVDelegationResourceWithRawResponse, + DCVDelegationResourceWithStreamingResponse, + AsyncDCVDelegationResourceWithStreamingResponse, +) +from .email_security import ( + EmailSecurityResource, + AsyncEmailSecurityResource, + EmailSecurityResourceWithRawResponse, + AsyncEmailSecurityResourceWithRawResponse, + EmailSecurityResourceWithStreamingResponse, + AsyncEmailSecurityResourceWithStreamingResponse, +) +from .load_balancers import ( + LoadBalancersResource, + AsyncLoadBalancersResource, + LoadBalancersResourceWithRawResponse, + AsyncLoadBalancersResourceWithRawResponse, + LoadBalancersResourceWithStreamingResponse, + AsyncLoadBalancersResourceWithStreamingResponse, +) +from .warp_connector import ( + WARPConnectorResource, + AsyncWARPConnectorResource, + WARPConnectorResourceWithRawResponse, + AsyncWARPConnectorResourceWithRawResponse, + WARPConnectorResourceWithStreamingResponse, + AsyncWARPConnectorResourceWithStreamingResponse, +) from .cloud_connector import ( + CloudConnectorResource, + AsyncCloudConnectorResource, CloudConnectorResourceWithRawResponse, AsyncCloudConnectorResourceWithRawResponse, CloudConnectorResourceWithStreamingResponse, AsyncCloudConnectorResourceWithStreamingResponse, ) -from .botnet_feed import BotnetFeedResource, AsyncBotnetFeedResource -from .botnet_feed import ( - BotnetFeedResourceWithRawResponse, - AsyncBotnetFeedResourceWithRawResponse, - BotnetFeedResourceWithStreamingResponse, - AsyncBotnetFeedResourceWithStreamingResponse, +from .durable_objects import ( + DurableObjectsResource, + AsyncDurableObjectsResource, + DurableObjectsResourceWithRawResponse, + AsyncDurableObjectsResourceWithRawResponse, + DurableObjectsResourceWithStreamingResponse, + AsyncDurableObjectsResourceWithStreamingResponse, +) +from .managed_headers import ( + ManagedHeadersResource, + AsyncManagedHeadersResource, + ManagedHeadersResourceWithRawResponse, + AsyncManagedHeadersResourceWithRawResponse, + ManagedHeadersResourceWithStreamingResponse, + AsyncManagedHeadersResourceWithStreamingResponse, +) +from .request_tracers import ( + RequestTracersResource, + AsyncRequestTracersResource, + RequestTracersResourceWithRawResponse, + AsyncRequestTracersResourceWithRawResponse, + RequestTracersResourceWithStreamingResponse, + AsyncRequestTracersResourceWithStreamingResponse, +) +from .brand_protection import ( + BrandProtectionResource, + AsyncBrandProtectionResource, + BrandProtectionResourceWithRawResponse, + AsyncBrandProtectionResourceWithRawResponse, + BrandProtectionResourceWithStreamingResponse, + AsyncBrandProtectionResourceWithStreamingResponse, +) +from .custom_hostnames import ( + CustomHostnamesResource, + AsyncCustomHostnamesResource, + CustomHostnamesResourceWithRawResponse, + AsyncCustomHostnamesResourceWithRawResponse, + CustomHostnamesResourceWithStreamingResponse, + AsyncCustomHostnamesResourceWithStreamingResponse, +) +from .mtls_certificates import ( + MTLSCertificatesResource, + AsyncMTLSCertificatesResource, + MTLSCertificatesResourceWithRawResponse, + AsyncMTLSCertificatesResourceWithRawResponse, + MTLSCertificatesResourceWithStreamingResponse, + AsyncMTLSCertificatesResourceWithStreamingResponse, +) +from .url_normalization import ( + URLNormalizationResource, + AsyncURLNormalizationResource, + URLNormalizationResourceWithRawResponse, + AsyncURLNormalizationResourceWithRawResponse, + URLNormalizationResourceWithStreamingResponse, + AsyncURLNormalizationResourceWithStreamingResponse, +) +from .custom_nameservers import ( + CustomNameserversResource, + AsyncCustomNameserversResource, + CustomNameserversResourceWithRawResponse, + AsyncCustomNameserversResourceWithRawResponse, + CustomNameserversResourceWithStreamingResponse, + AsyncCustomNameserversResourceWithStreamingResponse, +) +from .client_certificates import ( + ClientCertificatesResource, + AsyncClientCertificatesResource, + ClientCertificatesResourceWithRawResponse, + AsyncClientCertificatesResourceWithRawResponse, + ClientCertificatesResourceWithStreamingResponse, + AsyncClientCertificatesResourceWithStreamingResponse, +) +from .custom_certificates import ( + CustomCertificatesResource, + AsyncCustomCertificatesResource, + CustomCertificatesResourceWithRawResponse, + AsyncCustomCertificatesResourceWithRawResponse, + CustomCertificatesResourceWithStreamingResponse, + AsyncCustomCertificatesResourceWithStreamingResponse, +) +from .event_notifications import ( + EventNotificationsResource, + AsyncEventNotificationsResource, + EventNotificationsResourceWithRawResponse, + AsyncEventNotificationsResourceWithRawResponse, + EventNotificationsResourceWithStreamingResponse, + AsyncEventNotificationsResourceWithStreamingResponse, +) +from .keyless_certificates import ( + KeylessCertificatesResource, + AsyncKeylessCertificatesResource, + KeylessCertificatesResourceWithRawResponse, + AsyncKeylessCertificatesResourceWithRawResponse, + KeylessCertificatesResourceWithStreamingResponse, + AsyncKeylessCertificatesResourceWithStreamingResponse, +) +from .workers_for_platforms import ( + WorkersForPlatformsResource, + AsyncWorkersForPlatformsResource, + WorkersForPlatformsResourceWithRawResponse, + AsyncWorkersForPlatformsResourceWithRawResponse, + WorkersForPlatformsResourceWithStreamingResponse, + AsyncWorkersForPlatformsResourceWithStreamingResponse, +) +from .origin_ca_certificates import ( + OriginCACertificatesResource, + AsyncOriginCACertificatesResource, + OriginCACertificatesResourceWithRawResponse, + AsyncOriginCACertificatesResourceWithRawResponse, + OriginCACertificatesResourceWithStreamingResponse, + AsyncOriginCACertificatesResourceWithStreamingResponse, +) +from .origin_tls_client_auth import ( + OriginTLSClientAuthResource, + AsyncOriginTLSClientAuthResource, + OriginTLSClientAuthResourceWithRawResponse, + AsyncOriginTLSClientAuthResourceWithRawResponse, + OriginTLSClientAuthResourceWithStreamingResponse, + AsyncOriginTLSClientAuthResourceWithStreamingResponse, +) +from .certificate_authorities import ( + CertificateAuthoritiesResource, + AsyncCertificateAuthoritiesResource, + CertificateAuthoritiesResourceWithRawResponse, + AsyncCertificateAuthoritiesResourceWithRawResponse, + CertificateAuthoritiesResourceWithStreamingResponse, + AsyncCertificateAuthoritiesResourceWithStreamingResponse, +) +from .magic_network_monitoring import ( + MagicNetworkMonitoringResource, + AsyncMagicNetworkMonitoringResource, + MagicNetworkMonitoringResourceWithRawResponse, + AsyncMagicNetworkMonitoringResourceWithRawResponse, + MagicNetworkMonitoringResourceWithStreamingResponse, + AsyncMagicNetworkMonitoringResourceWithStreamingResponse, +) +from .origin_post_quantum_encryption import ( + OriginPostQuantumEncryptionResource, + AsyncOriginPostQuantumEncryptionResource, + OriginPostQuantumEncryptionResourceWithRawResponse, + AsyncOriginPostQuantumEncryptionResourceWithRawResponse, + OriginPostQuantumEncryptionResourceWithStreamingResponse, + AsyncOriginPostQuantumEncryptionResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/accounts/__init__.py b/src/cloudflare/resources/accounts/__init__.py index 9365b4182..4e9d5ed34 100644 --- a/src/cloudflare/resources/accounts/__init__.py +++ b/src/cloudflare/resources/accounts/__init__.py @@ -1,21 +1,24 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .members import MembersResource, AsyncMembersResource -from .members import ( - MembersResourceWithRawResponse, - AsyncMembersResourceWithRawResponse, - MembersResourceWithStreamingResponse, - AsyncMembersResourceWithStreamingResponse, -) -from .roles import RolesResource, AsyncRolesResource from .roles import ( + RolesResource, + AsyncRolesResource, RolesResourceWithRawResponse, AsyncRolesResourceWithRawResponse, RolesResourceWithStreamingResponse, AsyncRolesResourceWithStreamingResponse, ) -from .accounts import AccountsResource, AsyncAccountsResource +from .members import ( + MembersResource, + AsyncMembersResource, + MembersResourceWithRawResponse, + AsyncMembersResourceWithRawResponse, + MembersResourceWithStreamingResponse, + AsyncMembersResourceWithStreamingResponse, +) from .accounts import ( + AccountsResource, + AsyncAccountsResource, AccountsResourceWithRawResponse, AsyncAccountsResourceWithRawResponse, AccountsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/accounts/accounts.py b/src/cloudflare/resources/accounts/accounts.py index 8bf215436..2d208d718 100644 --- a/src/cloudflare/resources/accounts/accounts.py +++ b/src/cloudflare/resources/accounts/accounts.py @@ -2,57 +2,11 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx -from .members import MembersResource, AsyncMembersResource - -from ..._compat import cached_property - -from .roles import RolesResource, AsyncRolesResource - -from ...types.accounts.account import Account - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ...types.accounts.account_delete_response import AccountDeleteResponse - -from ..._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -from ...types.accounts import account_create_params, account_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.accounts import account_create_params -from ...types.accounts import account_update_params -from ...types.accounts import account_list_params -from .members import ( - MembersResource, - AsyncMembersResource, - MembersResourceWithRawResponse, - AsyncMembersResourceWithRawResponse, - MembersResourceWithStreamingResponse, - AsyncMembersResourceWithStreamingResponse, -) from .roles import ( RolesResource, AsyncRolesResource, @@ -61,14 +15,33 @@ from .roles import ( RolesResourceWithStreamingResponse, AsyncRolesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .members import ( + MembersResource, + AsyncMembersResource, + MembersResourceWithRawResponse, + AsyncMembersResourceWithRawResponse, + MembersResourceWithStreamingResponse, + AsyncMembersResourceWithStreamingResponse, +) +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ..._wrappers import ResultWrapper +from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ..._base_client import AsyncPaginator, make_request_options +from ...types.accounts import account_list_params, account_create_params, account_update_params +from ...types.accounts.account import Account +from ...types.accounts.account_delete_response import AccountDeleteResponse __all__ = ["AccountsResource", "AsyncAccountsResource"] diff --git a/src/cloudflare/resources/accounts/members.py b/src/cloudflare/resources/accounts/members.py index 3a06359e6..97716de02 100644 --- a/src/cloudflare/resources/accounts/members.py +++ b/src/cloudflare/resources/accounts/members.py @@ -2,59 +2,34 @@ from __future__ import annotations +from typing import List, Type, Iterable, Optional, cast, overload +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + required_args, + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from typing import List, Optional, Iterable, Type - -from typing_extensions import Literal - -from ...types.accounts.member_create_response import MemberCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from ...types.accounts.member_update_response import MemberUpdateResponse - -from ...types.accounts.member_list_response import MemberListResponse - -from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ...types.accounts.member_delete_response import MemberDeleteResponse - -from ...types.accounts.member_get_response import MemberGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ...types.accounts import member_create_params, member_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.accounts import member_create_params -from ...types.accounts import member_update_params -from ...types.accounts import member_list_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ..._base_client import AsyncPaginator, make_request_options +from ...types.accounts import member_list_params, member_create_params, member_update_params +from ...types.accounts.member_get_response import MemberGetResponse +from ...types.accounts.member_list_response import MemberListResponse +from ...types.accounts.member_create_response import MemberCreateResponse +from ...types.accounts.member_delete_response import MemberDeleteResponse +from ...types.accounts.member_update_response import MemberUpdateResponse __all__ = ["MembersResource", "AsyncMembersResource"] diff --git a/src/cloudflare/resources/accounts/roles.py b/src/cloudflare/resources/accounts/roles.py index 86754fcf5..9a998fb59 100644 --- a/src/cloudflare/resources/accounts/roles.py +++ b/src/cloudflare/resources/accounts/roles.py @@ -2,36 +2,23 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._compat import cached_property - -from ...types.shared.role import Role - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from ..._base_client import make_request_options, AsyncPaginator - -from ..._wrappers import ResultWrapper - -from typing import Optional, Type - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options +from ...types.shared.role import Role __all__ = ["RolesResource", "AsyncRolesResource"] diff --git a/src/cloudflare/resources/acm/__init__.py b/src/cloudflare/resources/acm/__init__.py index 78c48576d..ed969a286 100644 --- a/src/cloudflare/resources/acm/__init__.py +++ b/src/cloudflare/resources/acm/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .total_tls import TotalTLSResource, AsyncTotalTLSResource -from .total_tls import ( - TotalTLSResourceWithRawResponse, - AsyncTotalTLSResourceWithRawResponse, - TotalTLSResourceWithStreamingResponse, - AsyncTotalTLSResourceWithStreamingResponse, -) -from .acm import ACMResource, AsyncACMResource from .acm import ( + ACMResource, + AsyncACMResource, ACMResourceWithRawResponse, AsyncACMResourceWithRawResponse, ACMResourceWithStreamingResponse, AsyncACMResourceWithStreamingResponse, ) +from .total_tls import ( + TotalTLSResource, + AsyncTotalTLSResource, + TotalTLSResourceWithRawResponse, + AsyncTotalTLSResourceWithRawResponse, + TotalTLSResourceWithStreamingResponse, + AsyncTotalTLSResourceWithStreamingResponse, +) __all__ = [ "TotalTLSResource", diff --git a/src/cloudflare/resources/acm/acm.py b/src/cloudflare/resources/acm/acm.py index 4a05b9dbc..ad401c453 100644 --- a/src/cloudflare/resources/acm/acm.py +++ b/src/cloudflare/resources/acm/acm.py @@ -2,17 +2,7 @@ from __future__ import annotations -from .total_tls import TotalTLSResource, AsyncTotalTLSResource - from ..._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .total_tls import ( TotalTLSResource, AsyncTotalTLSResource, @@ -21,6 +11,7 @@ from .total_tls import ( TotalTLSResourceWithStreamingResponse, AsyncTotalTLSResourceWithStreamingResponse, ) +from ..._resource import SyncAPIResource, AsyncAPIResource __all__ = ["ACMResource", "AsyncACMResource"] diff --git a/src/cloudflare/resources/acm/total_tls.py b/src/cloudflare/resources/acm/total_tls.py index 68263bcbe..22877d9f1 100644 --- a/src/cloudflare/resources/acm/total_tls.py +++ b/src/cloudflare/resources/acm/total_tls.py @@ -2,44 +2,29 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.acm.total_tls_create_response import TotalTLSCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from ...types.acm.certificate_authority import CertificateAuthority - -from ...types.acm.total_tls_get_response import TotalTLSGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.acm import total_tls_create_params -from ...types.acm import CertificateAuthority -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...types.acm import CertificateAuthority, total_tls_create_params +from ..._base_client import make_request_options +from ...types.acm.certificate_authority import CertificateAuthority +from ...types.acm.total_tls_get_response import TotalTLSGetResponse +from ...types.acm.total_tls_create_response import TotalTLSCreateResponse __all__ = ["TotalTLSResource", "AsyncTotalTLSResource"] diff --git a/src/cloudflare/resources/addressing/__init__.py b/src/cloudflare/resources/addressing/__init__.py index 0ce0633a8..7abbb3957 100644 --- a/src/cloudflare/resources/addressing/__init__.py +++ b/src/cloudflare/resources/addressing/__init__.py @@ -1,47 +1,53 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .regional_hostnames import RegionalHostnamesResource, AsyncRegionalHostnamesResource -from .regional_hostnames import ( - RegionalHostnamesResourceWithRawResponse, - AsyncRegionalHostnamesResourceWithRawResponse, - RegionalHostnamesResourceWithStreamingResponse, - AsyncRegionalHostnamesResourceWithStreamingResponse, -) -from .services import ServicesResource, AsyncServicesResource -from .services import ( - ServicesResourceWithRawResponse, - AsyncServicesResourceWithRawResponse, - ServicesResourceWithStreamingResponse, - AsyncServicesResourceWithStreamingResponse, -) -from .address_maps import AddressMapsResource, AsyncAddressMapsResource -from .address_maps import ( - AddressMapsResourceWithRawResponse, - AsyncAddressMapsResourceWithRawResponse, - AddressMapsResourceWithStreamingResponse, - AsyncAddressMapsResourceWithStreamingResponse, -) -from .loa_documents import LOADocumentsResource, AsyncLOADocumentsResource -from .loa_documents import ( - LOADocumentsResourceWithRawResponse, - AsyncLOADocumentsResourceWithRawResponse, - LOADocumentsResourceWithStreamingResponse, - AsyncLOADocumentsResourceWithStreamingResponse, -) -from .prefixes import PrefixesResource, AsyncPrefixesResource from .prefixes import ( + PrefixesResource, + AsyncPrefixesResource, PrefixesResourceWithRawResponse, AsyncPrefixesResourceWithRawResponse, PrefixesResourceWithStreamingResponse, AsyncPrefixesResourceWithStreamingResponse, ) -from .addressing import AddressingResource, AsyncAddressingResource +from .services import ( + ServicesResource, + AsyncServicesResource, + ServicesResourceWithRawResponse, + AsyncServicesResourceWithRawResponse, + ServicesResourceWithStreamingResponse, + AsyncServicesResourceWithStreamingResponse, +) from .addressing import ( + AddressingResource, + AsyncAddressingResource, AddressingResourceWithRawResponse, AsyncAddressingResourceWithRawResponse, AddressingResourceWithStreamingResponse, AsyncAddressingResourceWithStreamingResponse, ) +from .address_maps import ( + AddressMapsResource, + AsyncAddressMapsResource, + AddressMapsResourceWithRawResponse, + AsyncAddressMapsResourceWithRawResponse, + AddressMapsResourceWithStreamingResponse, + AsyncAddressMapsResourceWithStreamingResponse, +) +from .loa_documents import ( + LOADocumentsResource, + AsyncLOADocumentsResource, + LOADocumentsResourceWithRawResponse, + AsyncLOADocumentsResourceWithRawResponse, + LOADocumentsResourceWithStreamingResponse, + AsyncLOADocumentsResourceWithStreamingResponse, +) +from .regional_hostnames import ( + RegionalHostnamesResource, + AsyncRegionalHostnamesResource, + RegionalHostnamesResourceWithRawResponse, + AsyncRegionalHostnamesResourceWithRawResponse, + RegionalHostnamesResourceWithStreamingResponse, + AsyncRegionalHostnamesResourceWithStreamingResponse, +) __all__ = [ "RegionalHostnamesResource", diff --git a/src/cloudflare/resources/addressing/address_maps/__init__.py b/src/cloudflare/resources/addressing/address_maps/__init__.py index ccfc3861a..2e3ff1b59 100644 --- a/src/cloudflare/resources/addressing/address_maps/__init__.py +++ b/src/cloudflare/resources/addressing/address_maps/__init__.py @@ -1,28 +1,32 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .accounts import AccountsResource, AsyncAccountsResource -from .accounts import ( - AccountsResourceWithRawResponse, - AsyncAccountsResourceWithRawResponse, - AccountsResourceWithStreamingResponse, - AsyncAccountsResourceWithStreamingResponse, -) -from .ips import IPsResource, AsyncIPsResource from .ips import ( + IPsResource, + AsyncIPsResource, IPsResourceWithRawResponse, AsyncIPsResourceWithRawResponse, IPsResourceWithStreamingResponse, AsyncIPsResourceWithStreamingResponse, ) -from .zones import ZonesResource, AsyncZonesResource from .zones import ( + ZonesResource, + AsyncZonesResource, ZonesResourceWithRawResponse, AsyncZonesResourceWithRawResponse, ZonesResourceWithStreamingResponse, AsyncZonesResourceWithStreamingResponse, ) -from .address_maps import AddressMapsResource, AsyncAddressMapsResource +from .accounts import ( + AccountsResource, + AsyncAccountsResource, + AccountsResourceWithRawResponse, + AsyncAccountsResourceWithRawResponse, + AccountsResourceWithStreamingResponse, + AsyncAccountsResourceWithStreamingResponse, +) from .address_maps import ( + AddressMapsResource, + AsyncAddressMapsResource, AddressMapsResourceWithRawResponse, AsyncAddressMapsResourceWithRawResponse, AddressMapsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/addressing/address_maps/accounts.py b/src/cloudflare/resources/addressing/address_maps/accounts.py index debc05f90..c8af70915 100644 --- a/src/cloudflare/resources/addressing/address_maps/accounts.py +++ b/src/cloudflare/resources/addressing/address_maps/accounts.py @@ -4,31 +4,23 @@ from __future__ import annotations import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.addressing.address_maps.account_update_response import AccountUpdateResponse - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from ....types.addressing.address_maps.account_delete_response import AccountDeleteResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._base_client import make_request_options from ....types.addressing.address_maps import account_update_params +from ....types.addressing.address_maps.account_delete_response import AccountDeleteResponse +from ....types.addressing.address_maps.account_update_response import AccountUpdateResponse __all__ = ["AccountsResource", "AsyncAccountsResource"] diff --git a/src/cloudflare/resources/addressing/address_maps/address_maps.py b/src/cloudflare/resources/addressing/address_maps/address_maps.py index a8f10f34f..c54826ca2 100644 --- a/src/cloudflare/resources/addressing/address_maps/address_maps.py +++ b/src/cloudflare/resources/addressing/address_maps/address_maps.py @@ -2,60 +2,10 @@ from __future__ import annotations +from typing import List, Type, Iterable, Optional, cast + import httpx -from .accounts import AccountsResource, AsyncAccountsResource - -from ...._compat import cached_property - -from .ips import IPsResource, AsyncIPsResource - -from .zones import ZonesResource, AsyncZonesResource - -from ....types.addressing.address_map_create_response import AddressMapCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, List, Iterable - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.addressing.address_map import AddressMap - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ....types.addressing.address_map_delete_response import AddressMapDeleteResponse - -from ....types.addressing.address_map_get_response import AddressMapGetResponse - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -from ....types.addressing import address_map_create_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.addressing import address_map_create_params -from ....types.addressing import address_map_edit_params -from .accounts import ( - AccountsResource, - AsyncAccountsResource, - AccountsResourceWithRawResponse, - AsyncAccountsResourceWithRawResponse, - AccountsResourceWithStreamingResponse, - AsyncAccountsResourceWithStreamingResponse, -) from .ips import ( IPsResource, AsyncIPsResource, @@ -72,12 +22,35 @@ from .zones import ( ZonesResourceWithStreamingResponse, AsyncZonesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .accounts import ( + AccountsResource, + AsyncAccountsResource, + AccountsResourceWithRawResponse, + AsyncAccountsResourceWithRawResponse, + AccountsResourceWithStreamingResponse, + AsyncAccountsResourceWithStreamingResponse, +) +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.addressing import address_map_edit_params, address_map_create_params +from ....types.addressing.address_map import AddressMap +from ....types.addressing.address_map_get_response import AddressMapGetResponse +from ....types.addressing.address_map_create_response import AddressMapCreateResponse +from ....types.addressing.address_map_delete_response import AddressMapDeleteResponse __all__ = ["AddressMapsResource", "AsyncAddressMapsResource"] diff --git a/src/cloudflare/resources/addressing/address_maps/ips.py b/src/cloudflare/resources/addressing/address_maps/ips.py index b3f7884da..040d8207f 100644 --- a/src/cloudflare/resources/addressing/address_maps/ips.py +++ b/src/cloudflare/resources/addressing/address_maps/ips.py @@ -4,31 +4,23 @@ from __future__ import annotations import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.addressing.address_maps.ip_update_response import IPUpdateResponse - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from ....types.addressing.address_maps.ip_delete_response import IPDeleteResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._base_client import make_request_options from ....types.addressing.address_maps import ip_update_params +from ....types.addressing.address_maps.ip_delete_response import IPDeleteResponse +from ....types.addressing.address_maps.ip_update_response import IPUpdateResponse __all__ = ["IPsResource", "AsyncIPsResource"] diff --git a/src/cloudflare/resources/addressing/address_maps/zones.py b/src/cloudflare/resources/addressing/address_maps/zones.py index 5bfff8dd8..673d2d0a8 100644 --- a/src/cloudflare/resources/addressing/address_maps/zones.py +++ b/src/cloudflare/resources/addressing/address_maps/zones.py @@ -4,31 +4,23 @@ from __future__ import annotations import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.addressing.address_maps.zone_update_response import ZoneUpdateResponse - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from ....types.addressing.address_maps.zone_delete_response import ZoneDeleteResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._base_client import make_request_options from ....types.addressing.address_maps import zone_update_params +from ....types.addressing.address_maps.zone_delete_response import ZoneDeleteResponse +from ....types.addressing.address_maps.zone_update_response import ZoneUpdateResponse __all__ = ["ZonesResource", "AsyncZonesResource"] diff --git a/src/cloudflare/resources/addressing/addressing.py b/src/cloudflare/resources/addressing/addressing.py index efec3aca7..8157035d3 100644 --- a/src/cloudflare/resources/addressing/addressing.py +++ b/src/cloudflare/resources/addressing/addressing.py @@ -2,32 +2,13 @@ from __future__ import annotations -from .regional_hostnames.regional_hostnames import RegionalHostnamesResource, AsyncRegionalHostnamesResource - -from ..._compat import cached_property - -from .services import ServicesResource, AsyncServicesResource - -from .address_maps.address_maps import AddressMapsResource, AsyncAddressMapsResource - -from .loa_documents.loa_documents import LOADocumentsResource, AsyncLOADocumentsResource - -from .prefixes.prefixes import PrefixesResource, AsyncPrefixesResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from .regional_hostnames import ( - RegionalHostnamesResource, - AsyncRegionalHostnamesResource, - RegionalHostnamesResourceWithRawResponse, - AsyncRegionalHostnamesResourceWithRawResponse, - RegionalHostnamesResourceWithStreamingResponse, - AsyncRegionalHostnamesResourceWithStreamingResponse, +from .prefixes import ( + PrefixesResource, + AsyncPrefixesResource, + PrefixesResourceWithRawResponse, + AsyncPrefixesResourceWithRawResponse, + PrefixesResourceWithStreamingResponse, + AsyncPrefixesResourceWithStreamingResponse, ) from .services import ( ServicesResource, @@ -37,6 +18,8 @@ from .services import ( ServicesResourceWithStreamingResponse, AsyncServicesResourceWithStreamingResponse, ) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource from .address_maps import ( AddressMapsResource, AsyncAddressMapsResource, @@ -53,14 +36,18 @@ from .loa_documents import ( LOADocumentsResourceWithStreamingResponse, AsyncLOADocumentsResourceWithStreamingResponse, ) -from .prefixes import ( - PrefixesResource, - AsyncPrefixesResource, - PrefixesResourceWithRawResponse, - AsyncPrefixesResourceWithRawResponse, - PrefixesResourceWithStreamingResponse, - AsyncPrefixesResourceWithStreamingResponse, +from .prefixes.prefixes import PrefixesResource, AsyncPrefixesResource +from .regional_hostnames import ( + RegionalHostnamesResource, + AsyncRegionalHostnamesResource, + RegionalHostnamesResourceWithRawResponse, + AsyncRegionalHostnamesResourceWithRawResponse, + RegionalHostnamesResourceWithStreamingResponse, + AsyncRegionalHostnamesResourceWithStreamingResponse, ) +from .address_maps.address_maps import AddressMapsResource, AsyncAddressMapsResource +from .loa_documents.loa_documents import LOADocumentsResource, AsyncLOADocumentsResource +from .regional_hostnames.regional_hostnames import RegionalHostnamesResource, AsyncRegionalHostnamesResource __all__ = ["AddressingResource", "AsyncAddressingResource"] diff --git a/src/cloudflare/resources/addressing/loa_documents/__init__.py b/src/cloudflare/resources/addressing/loa_documents/__init__.py index 5412ec9ff..72f6dbba9 100644 --- a/src/cloudflare/resources/addressing/loa_documents/__init__.py +++ b/src/cloudflare/resources/addressing/loa_documents/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .downloads import DownloadsResource, AsyncDownloadsResource from .downloads import ( + DownloadsResource, + AsyncDownloadsResource, DownloadsResourceWithRawResponse, AsyncDownloadsResourceWithRawResponse, DownloadsResourceWithStreamingResponse, AsyncDownloadsResourceWithStreamingResponse, ) -from .loa_documents import LOADocumentsResource, AsyncLOADocumentsResource from .loa_documents import ( + LOADocumentsResource, + AsyncLOADocumentsResource, LOADocumentsResourceWithRawResponse, AsyncLOADocumentsResourceWithRawResponse, LOADocumentsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/addressing/loa_documents/downloads.py b/src/cloudflare/resources/addressing/loa_documents/downloads.py index 2d40fd0ca..5540d0053 100644 --- a/src/cloudflare/resources/addressing/loa_documents/downloads.py +++ b/src/cloudflare/resources/addressing/loa_documents/downloads.py @@ -2,33 +2,25 @@ from __future__ import annotations +from typing import Optional + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( BinaryAPIResponse, AsyncBinaryAPIResponse, - to_custom_raw_response_wrapper, - async_to_custom_raw_response_wrapper, - to_custom_streamed_response_wrapper, StreamedBinaryAPIResponse, - async_to_custom_streamed_response_wrapper, AsyncStreamedBinaryAPIResponse, + to_custom_raw_response_wrapper, + to_custom_streamed_response_wrapper, + async_to_custom_raw_response_wrapper, + async_to_custom_streamed_response_wrapper, ) - from ...._base_client import make_request_options -from typing import Optional - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params - __all__ = ["DownloadsResource", "AsyncDownloadsResource"] diff --git a/src/cloudflare/resources/addressing/loa_documents/loa_documents.py b/src/cloudflare/resources/addressing/loa_documents/loa_documents.py index 23c8578c1..a783c0551 100644 --- a/src/cloudflare/resources/addressing/loa_documents/loa_documents.py +++ b/src/cloudflare/resources/addressing/loa_documents/loa_documents.py @@ -2,37 +2,15 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .downloads import DownloadsResource, AsyncDownloadsResource - -from ...._compat import cached_property - -from ....types.addressing.loa_document_create_response import LOADocumentCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.addressing import loa_document_create_params from .downloads import ( DownloadsResource, AsyncDownloadsResource, @@ -41,8 +19,18 @@ from .downloads import ( DownloadsResourceWithStreamingResponse, AsyncDownloadsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.addressing import loa_document_create_params +from ....types.addressing.loa_document_create_response import LOADocumentCreateResponse __all__ = ["LOADocumentsResource", "AsyncLOADocumentsResource"] diff --git a/src/cloudflare/resources/addressing/prefixes/__init__.py b/src/cloudflare/resources/addressing/prefixes/__init__.py index f77217fcd..baf5dcefd 100644 --- a/src/cloudflare/resources/addressing/prefixes/__init__.py +++ b/src/cloudflare/resources/addressing/prefixes/__init__.py @@ -1,26 +1,29 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .bgp import BGPResource, AsyncBGPResource from .bgp import ( + BGPResource, + AsyncBGPResource, BGPResourceWithRawResponse, AsyncBGPResourceWithRawResponse, BGPResourceWithStreamingResponse, AsyncBGPResourceWithStreamingResponse, ) -from .delegations import DelegationsResource, AsyncDelegationsResource -from .delegations import ( - DelegationsResourceWithRawResponse, - AsyncDelegationsResourceWithRawResponse, - DelegationsResourceWithStreamingResponse, - AsyncDelegationsResourceWithStreamingResponse, -) -from .prefixes import PrefixesResource, AsyncPrefixesResource from .prefixes import ( + PrefixesResource, + AsyncPrefixesResource, PrefixesResourceWithRawResponse, AsyncPrefixesResourceWithRawResponse, PrefixesResourceWithStreamingResponse, AsyncPrefixesResourceWithStreamingResponse, ) +from .delegations import ( + DelegationsResource, + AsyncDelegationsResource, + DelegationsResourceWithRawResponse, + AsyncDelegationsResourceWithRawResponse, + DelegationsResourceWithStreamingResponse, + AsyncDelegationsResourceWithStreamingResponse, +) __all__ = [ "BGPResource", diff --git a/src/cloudflare/resources/addressing/prefixes/bgp/__init__.py b/src/cloudflare/resources/addressing/prefixes/bgp/__init__.py index 4caec220f..8c3709d72 100644 --- a/src/cloudflare/resources/addressing/prefixes/bgp/__init__.py +++ b/src/cloudflare/resources/addressing/prefixes/bgp/__init__.py @@ -1,33 +1,37 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .bindings import BindingsResource, AsyncBindingsResource +from .bgp import ( + BGPResource, + AsyncBGPResource, + BGPResourceWithRawResponse, + AsyncBGPResourceWithRawResponse, + BGPResourceWithStreamingResponse, + AsyncBGPResourceWithStreamingResponse, +) from .bindings import ( + BindingsResource, + AsyncBindingsResource, BindingsResourceWithRawResponse, AsyncBindingsResourceWithRawResponse, BindingsResourceWithStreamingResponse, AsyncBindingsResourceWithStreamingResponse, ) -from .prefixes import PrefixesResource, AsyncPrefixesResource from .prefixes import ( + PrefixesResource, + AsyncPrefixesResource, PrefixesResourceWithRawResponse, AsyncPrefixesResourceWithRawResponse, PrefixesResourceWithStreamingResponse, AsyncPrefixesResourceWithStreamingResponse, ) -from .statuses import StatusesResource, AsyncStatusesResource from .statuses import ( + StatusesResource, + AsyncStatusesResource, StatusesResourceWithRawResponse, AsyncStatusesResourceWithRawResponse, StatusesResourceWithStreamingResponse, AsyncStatusesResourceWithStreamingResponse, ) -from .bgp import BGPResource, AsyncBGPResource -from .bgp import ( - BGPResourceWithRawResponse, - AsyncBGPResourceWithRawResponse, - BGPResourceWithStreamingResponse, - AsyncBGPResourceWithStreamingResponse, -) __all__ = [ "BindingsResource", diff --git a/src/cloudflare/resources/addressing/prefixes/bgp/bgp.py b/src/cloudflare/resources/addressing/prefixes/bgp/bgp.py index 1e9f28675..4b5ec4fa6 100644 --- a/src/cloudflare/resources/addressing/prefixes/bgp/bgp.py +++ b/src/cloudflare/resources/addressing/prefixes/bgp/bgp.py @@ -2,21 +2,6 @@ from __future__ import annotations -from .bindings import BindingsResource, AsyncBindingsResource - -from ....._compat import cached_property - -from .prefixes import PrefixesResource, AsyncPrefixesResource - -from .statuses import StatusesResource, AsyncStatusesResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params from .bindings import ( BindingsResource, AsyncBindingsResource, @@ -41,6 +26,8 @@ from .statuses import ( StatusesResourceWithStreamingResponse, AsyncStatusesResourceWithStreamingResponse, ) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource __all__ = ["BGPResource", "AsyncBGPResource"] diff --git a/src/cloudflare/resources/addressing/prefixes/bgp/bindings.py b/src/cloudflare/resources/addressing/prefixes/bgp/bindings.py index 8bd2c12a0..a2c7b0f56 100644 --- a/src/cloudflare/resources/addressing/prefixes/bgp/bindings.py +++ b/src/cloudflare/resources/addressing/prefixes/bgp/bindings.py @@ -2,43 +2,29 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.addressing.prefixes.bgp.service_binding import ServiceBinding - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ....._base_client import make_request_options, AsyncPaginator - -from .....pagination import SyncSinglePage, AsyncSinglePage - -from .....types.addressing.prefixes.bgp.binding_delete_response import BindingDeleteResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from .....pagination import SyncSinglePage, AsyncSinglePage +from ....._base_client import AsyncPaginator, make_request_options from .....types.addressing.prefixes.bgp import binding_create_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .....types.addressing.prefixes.bgp.service_binding import ServiceBinding +from .....types.addressing.prefixes.bgp.binding_delete_response import BindingDeleteResponse __all__ = ["BindingsResource", "AsyncBindingsResource"] diff --git a/src/cloudflare/resources/addressing/prefixes/bgp/prefixes.py b/src/cloudflare/resources/addressing/prefixes/bgp/prefixes.py index fd445ef76..a2a444a4c 100644 --- a/src/cloudflare/resources/addressing/prefixes/bgp/prefixes.py +++ b/src/cloudflare/resources/addressing/prefixes/bgp/prefixes.py @@ -2,43 +2,28 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.addressing.prefixes.bgp.bgp_prefix import BGPPrefix - -from .....pagination import SyncSinglePage, AsyncSinglePage - -from ....._base_client import make_request_options, AsyncPaginator - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ....._wrappers import ResultWrapper +from .....pagination import SyncSinglePage, AsyncSinglePage +from ....._base_client import AsyncPaginator, make_request_options from .....types.addressing.prefixes.bgp import prefix_edit_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.addressing.prefixes.bgp import prefix_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .....types.addressing.prefixes.bgp.bgp_prefix import BGPPrefix __all__ = ["PrefixesResource", "AsyncPrefixesResource"] diff --git a/src/cloudflare/resources/addressing/prefixes/bgp/statuses.py b/src/cloudflare/resources/addressing/prefixes/bgp/statuses.py index fdb827b3e..065c28d42 100644 --- a/src/cloudflare/resources/addressing/prefixes/bgp/statuses.py +++ b/src/cloudflare/resources/addressing/prefixes/bgp/statuses.py @@ -2,41 +2,28 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.addressing.prefixes.bgp.status_edit_response import StatusEditResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ....._base_client import make_request_options - -from .....types.addressing.prefixes.bgp.status_get_response import StatusGetResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.addressing.prefixes.bgp import status_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .....types.addressing.prefixes.bgp.status_get_response import StatusGetResponse +from .....types.addressing.prefixes.bgp.status_edit_response import StatusEditResponse __all__ = ["StatusesResource", "AsyncStatusesResource"] diff --git a/src/cloudflare/resources/addressing/prefixes/delegations.py b/src/cloudflare/resources/addressing/prefixes/delegations.py index 8cb412cdb..1fed5c0a3 100644 --- a/src/cloudflare/resources/addressing/prefixes/delegations.py +++ b/src/cloudflare/resources/addressing/prefixes/delegations.py @@ -2,43 +2,29 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.addressing.prefixes.delegations import Delegations - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options, AsyncPaginator - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ....types.addressing.prefixes.delegation_delete_response import DelegationDeleteResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options from ....types.addressing.prefixes import delegation_create_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....types.addressing.prefixes.delegations import Delegations +from ....types.addressing.prefixes.delegation_delete_response import DelegationDeleteResponse __all__ = ["DelegationsResource", "AsyncDelegationsResource"] diff --git a/src/cloudflare/resources/addressing/prefixes/prefixes.py b/src/cloudflare/resources/addressing/prefixes/prefixes.py index 15bce6fb4..ad1efb4c6 100644 --- a/src/cloudflare/resources/addressing/prefixes/prefixes.py +++ b/src/cloudflare/resources/addressing/prefixes/prefixes.py @@ -2,44 +2,10 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .bgp.bgp import BGPResource, AsyncBGPResource - -from ...._compat import cached_property - -from .delegations import DelegationsResource, AsyncDelegationsResource - -from ....types.addressing.prefix import Prefix - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options, AsyncPaginator - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ....types.addressing.prefix_delete_response import PrefixDeleteResponse - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.addressing import prefix_create_params -from ....types.addressing import prefix_edit_params from .bgp import ( BGPResource, AsyncBGPResource, @@ -48,6 +14,13 @@ from .bgp import ( BGPResourceWithStreamingResponse, AsyncBGPResourceWithStreamingResponse, ) +from .bgp.bgp import BGPResource, AsyncBGPResource +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property from .delegations import ( DelegationsResource, AsyncDelegationsResource, @@ -56,12 +29,19 @@ from .delegations import ( DelegationsResourceWithStreamingResponse, AsyncDelegationsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.addressing import prefix_edit_params, prefix_create_params +from ....types.addressing.prefix import Prefix +from ....types.addressing.prefix_delete_response import PrefixDeleteResponse __all__ = ["PrefixesResource", "AsyncPrefixesResource"] diff --git a/src/cloudflare/resources/addressing/regional_hostnames/__init__.py b/src/cloudflare/resources/addressing/regional_hostnames/__init__.py index 470a56fe0..b81e8f7c3 100644 --- a/src/cloudflare/resources/addressing/regional_hostnames/__init__.py +++ b/src/cloudflare/resources/addressing/regional_hostnames/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .regions import RegionsResource, AsyncRegionsResource from .regions import ( + RegionsResource, + AsyncRegionsResource, RegionsResourceWithRawResponse, AsyncRegionsResourceWithRawResponse, RegionsResourceWithStreamingResponse, AsyncRegionsResourceWithStreamingResponse, ) -from .regional_hostnames import RegionalHostnamesResource, AsyncRegionalHostnamesResource from .regional_hostnames import ( + RegionalHostnamesResource, + AsyncRegionalHostnamesResource, RegionalHostnamesResourceWithRawResponse, AsyncRegionalHostnamesResourceWithRawResponse, RegionalHostnamesResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/addressing/regional_hostnames/regional_hostnames.py b/src/cloudflare/resources/addressing/regional_hostnames/regional_hostnames.py index aac637bbe..1c719b3da 100644 --- a/src/cloudflare/resources/addressing/regional_hostnames/regional_hostnames.py +++ b/src/cloudflare/resources/addressing/regional_hostnames/regional_hostnames.py @@ -2,48 +2,10 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .regions import RegionsResource, AsyncRegionsResource - -from ...._compat import cached_property - -from ....types.addressing.regional_hostname_create_response import RegionalHostnameCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.addressing.regional_hostname_list_response import RegionalHostnameListResponse - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ....types.addressing.regional_hostname_delete_response import RegionalHostnameDeleteResponse - -from ....types.addressing.regional_hostname_edit_response import RegionalHostnameEditResponse - -from ....types.addressing.regional_hostname_get_response import RegionalHostnameGetResponse - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.addressing import regional_hostname_create_params -from ....types.addressing import regional_hostname_edit_params from .regions import ( RegionsResource, AsyncRegionsResource, @@ -52,12 +14,28 @@ from .regions import ( RegionsResourceWithStreamingResponse, AsyncRegionsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.addressing import regional_hostname_edit_params, regional_hostname_create_params +from ....types.addressing.regional_hostname_get_response import RegionalHostnameGetResponse +from ....types.addressing.regional_hostname_edit_response import RegionalHostnameEditResponse +from ....types.addressing.regional_hostname_list_response import RegionalHostnameListResponse +from ....types.addressing.regional_hostname_create_response import RegionalHostnameCreateResponse +from ....types.addressing.regional_hostname_delete_response import RegionalHostnameDeleteResponse __all__ = ["RegionalHostnamesResource", "AsyncRegionalHostnamesResource"] diff --git a/src/cloudflare/resources/addressing/regional_hostnames/regions.py b/src/cloudflare/resources/addressing/regional_hostnames/regions.py index 60dee00c2..c3432d5cb 100644 --- a/src/cloudflare/resources/addressing/regional_hostnames/regions.py +++ b/src/cloudflare/resources/addressing/regional_hostnames/regions.py @@ -4,28 +4,18 @@ from __future__ import annotations import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.addressing.regional_hostnames.region_list_response import RegionListResponse - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ...._base_client import make_request_options, AsyncPaginator - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.addressing.regional_hostnames.region_list_response import RegionListResponse __all__ = ["RegionsResource", "AsyncRegionsResource"] diff --git a/src/cloudflare/resources/addressing/services.py b/src/cloudflare/resources/addressing/services.py index ce1d259ad..ff6ef55cf 100644 --- a/src/cloudflare/resources/addressing/services.py +++ b/src/cloudflare/resources/addressing/services.py @@ -4,28 +4,18 @@ from __future__ import annotations import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._compat import cached_property - -from ...types.addressing.service_list_response import ServiceListResponse - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from ..._base_client import make_request_options, AsyncPaginator - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options +from ...types.addressing.service_list_response import ServiceListResponse __all__ = ["ServicesResource", "AsyncServicesResource"] diff --git a/src/cloudflare/resources/ai_gateway/__init__.py b/src/cloudflare/resources/ai_gateway/__init__.py index 7048b8ffd..958837331 100644 --- a/src/cloudflare/resources/ai_gateway/__init__.py +++ b/src/cloudflare/resources/ai_gateway/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .logs import LogsResource, AsyncLogsResource from .logs import ( + LogsResource, + AsyncLogsResource, LogsResourceWithRawResponse, AsyncLogsResourceWithRawResponse, LogsResourceWithStreamingResponse, AsyncLogsResourceWithStreamingResponse, ) -from .ai_gateway import AIGatewayResource, AsyncAIGatewayResource from .ai_gateway import ( + AIGatewayResource, + AsyncAIGatewayResource, AIGatewayResourceWithRawResponse, AsyncAIGatewayResourceWithRawResponse, AIGatewayResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/ai_gateway/ai_gateway.py b/src/cloudflare/resources/ai_gateway/ai_gateway.py index 6bb372b67..50e669e18 100644 --- a/src/cloudflare/resources/ai_gateway/ai_gateway.py +++ b/src/cloudflare/resources/ai_gateway/ai_gateway.py @@ -2,51 +2,11 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx -from .logs import LogsResource, AsyncLogsResource - -from ..._compat import cached_property - -from ...types.ai_gateway.ai_gateway_create_response import AIGatewayCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from typing import Type, Optional - -from typing_extensions import Literal - -from ...types.ai_gateway.ai_gateway_update_response import AIGatewayUpdateResponse - -from ...types.ai_gateway.ai_gateway_list_response import AIGatewayListResponse - -from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ...types.ai_gateway.ai_gateway_delete_response import AIGatewayDeleteResponse - -from ...types.ai_gateway.ai_gateway_get_response import AIGatewayGetResponse - -from ..._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.ai_gateway import ai_gateway_create_params -from ...types.ai_gateway import ai_gateway_update_params -from ...types.ai_gateway import ai_gateway_list_params from .logs import ( LogsResource, AsyncLogsResource, @@ -55,14 +15,28 @@ from .logs import ( LogsResourceWithStreamingResponse, AsyncLogsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ..._wrappers import ResultWrapper +from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ..._base_client import AsyncPaginator, make_request_options +from ...types.ai_gateway import ai_gateway_list_params, ai_gateway_create_params, ai_gateway_update_params +from ...types.ai_gateway.ai_gateway_get_response import AIGatewayGetResponse +from ...types.ai_gateway.ai_gateway_list_response import AIGatewayListResponse +from ...types.ai_gateway.ai_gateway_create_response import AIGatewayCreateResponse +from ...types.ai_gateway.ai_gateway_delete_response import AIGatewayDeleteResponse +from ...types.ai_gateway.ai_gateway_update_response import AIGatewayUpdateResponse __all__ = ["AIGatewayResource", "AsyncAIGatewayResource"] diff --git a/src/cloudflare/resources/ai_gateway/logs.py b/src/cloudflare/resources/ai_gateway/logs.py index d1fcecd19..18eccd6b5 100644 --- a/src/cloudflare/resources/ai_gateway/logs.py +++ b/src/cloudflare/resources/ai_gateway/logs.py @@ -2,39 +2,26 @@ from __future__ import annotations +from typing import Union +from datetime import datetime +from typing_extensions import Literal + import httpx -from ..._compat import cached_property - -from ...types.ai_gateway.log_list_response import LogListResponse - -from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._utils import maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from typing import Union - -from datetime import datetime - +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ..._base_client import AsyncPaginator, make_request_options from ...types.ai_gateway import log_list_params +from ...types.ai_gateway.log_list_response import LogListResponse __all__ = ["LogsResource", "AsyncLogsResource"] diff --git a/src/cloudflare/resources/alerting/__init__.py b/src/cloudflare/resources/alerting/__init__.py index 4d0e53a9c..2bf1c17a8 100644 --- a/src/cloudflare/resources/alerting/__init__.py +++ b/src/cloudflare/resources/alerting/__init__.py @@ -1,39 +1,44 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .available_alerts import AvailableAlertsResource, AsyncAvailableAlertsResource -from .available_alerts import ( - AvailableAlertsResourceWithRawResponse, - AsyncAvailableAlertsResourceWithRawResponse, - AvailableAlertsResourceWithStreamingResponse, - AsyncAvailableAlertsResourceWithStreamingResponse, -) -from .destinations import DestinationsResource, AsyncDestinationsResource -from .destinations import ( - DestinationsResourceWithRawResponse, - AsyncDestinationsResourceWithRawResponse, - DestinationsResourceWithStreamingResponse, - AsyncDestinationsResourceWithStreamingResponse, -) -from .history import HistoryResource, AsyncHistoryResource from .history import ( + HistoryResource, + AsyncHistoryResource, HistoryResourceWithRawResponse, AsyncHistoryResourceWithRawResponse, HistoryResourceWithStreamingResponse, AsyncHistoryResourceWithStreamingResponse, ) -from .policies import PoliciesResource, AsyncPoliciesResource +from .alerting import ( + AlertingResource, + AsyncAlertingResource, + AlertingResourceWithRawResponse, + AsyncAlertingResourceWithRawResponse, + AlertingResourceWithStreamingResponse, + AsyncAlertingResourceWithStreamingResponse, +) from .policies import ( + PoliciesResource, + AsyncPoliciesResource, PoliciesResourceWithRawResponse, AsyncPoliciesResourceWithRawResponse, PoliciesResourceWithStreamingResponse, AsyncPoliciesResourceWithStreamingResponse, ) -from .alerting import AlertingResource, AsyncAlertingResource -from .alerting import ( - AlertingResourceWithRawResponse, - AsyncAlertingResourceWithRawResponse, - AlertingResourceWithStreamingResponse, - AsyncAlertingResourceWithStreamingResponse, +from .destinations import ( + DestinationsResource, + AsyncDestinationsResource, + DestinationsResourceWithRawResponse, + AsyncDestinationsResourceWithRawResponse, + DestinationsResourceWithStreamingResponse, + AsyncDestinationsResourceWithStreamingResponse, +) +from .available_alerts import ( + AvailableAlertsResource, + AsyncAvailableAlertsResource, + AvailableAlertsResourceWithRawResponse, + AsyncAvailableAlertsResourceWithRawResponse, + AvailableAlertsResourceWithStreamingResponse, + AsyncAvailableAlertsResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/alerting/alerting.py b/src/cloudflare/resources/alerting/alerting.py index 90b466d73..05d80699a 100644 --- a/src/cloudflare/resources/alerting/alerting.py +++ b/src/cloudflare/resources/alerting/alerting.py @@ -2,39 +2,6 @@ from __future__ import annotations -from .available_alerts import AvailableAlertsResource, AsyncAvailableAlertsResource - -from ..._compat import cached_property - -from .destinations.destinations import DestinationsResource, AsyncDestinationsResource - -from .history import HistoryResource, AsyncHistoryResource - -from .policies import PoliciesResource, AsyncPoliciesResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from .available_alerts import ( - AvailableAlertsResource, - AsyncAvailableAlertsResource, - AvailableAlertsResourceWithRawResponse, - AsyncAvailableAlertsResourceWithRawResponse, - AvailableAlertsResourceWithStreamingResponse, - AsyncAvailableAlertsResourceWithStreamingResponse, -) -from .destinations import ( - DestinationsResource, - AsyncDestinationsResource, - DestinationsResourceWithRawResponse, - AsyncDestinationsResourceWithRawResponse, - DestinationsResourceWithStreamingResponse, - AsyncDestinationsResourceWithStreamingResponse, -) from .history import ( HistoryResource, AsyncHistoryResource, @@ -51,6 +18,25 @@ from .policies import ( PoliciesResourceWithStreamingResponse, AsyncPoliciesResourceWithStreamingResponse, ) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from .destinations import ( + DestinationsResource, + AsyncDestinationsResource, + DestinationsResourceWithRawResponse, + AsyncDestinationsResourceWithRawResponse, + DestinationsResourceWithStreamingResponse, + AsyncDestinationsResourceWithStreamingResponse, +) +from .available_alerts import ( + AvailableAlertsResource, + AsyncAvailableAlertsResource, + AvailableAlertsResourceWithRawResponse, + AsyncAvailableAlertsResourceWithRawResponse, + AvailableAlertsResourceWithStreamingResponse, + AsyncAvailableAlertsResourceWithStreamingResponse, +) +from .destinations.destinations import DestinationsResource, AsyncDestinationsResource __all__ = ["AlertingResource", "AsyncAlertingResource"] diff --git a/src/cloudflare/resources/alerting/available_alerts.py b/src/cloudflare/resources/alerting/available_alerts.py index bda08fe92..8ededcc67 100644 --- a/src/cloudflare/resources/alerting/available_alerts.py +++ b/src/cloudflare/resources/alerting/available_alerts.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._compat import cached_property - -from ...types.alerting.available_alert_list_response import AvailableAlertListResponse - -from ..._wrappers import ResultWrapper - -from typing import Optional, Type - -from ..._base_client import make_request_options - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.alerting.available_alert_list_response import AvailableAlertListResponse __all__ = ["AvailableAlertsResource", "AsyncAvailableAlertsResource"] diff --git a/src/cloudflare/resources/alerting/destinations/__init__.py b/src/cloudflare/resources/alerting/destinations/__init__.py index a6b8b6950..611f1d5a2 100644 --- a/src/cloudflare/resources/alerting/destinations/__init__.py +++ b/src/cloudflare/resources/alerting/destinations/__init__.py @@ -1,28 +1,32 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .eligible import EligibleResource, AsyncEligibleResource from .eligible import ( + EligibleResource, + AsyncEligibleResource, EligibleResourceWithRawResponse, AsyncEligibleResourceWithRawResponse, EligibleResourceWithStreamingResponse, AsyncEligibleResourceWithStreamingResponse, ) -from .pagerduty import PagerdutyResource, AsyncPagerdutyResource -from .pagerduty import ( - PagerdutyResourceWithRawResponse, - AsyncPagerdutyResourceWithRawResponse, - PagerdutyResourceWithStreamingResponse, - AsyncPagerdutyResourceWithStreamingResponse, -) -from .webhooks import WebhooksResource, AsyncWebhooksResource from .webhooks import ( + WebhooksResource, + AsyncWebhooksResource, WebhooksResourceWithRawResponse, AsyncWebhooksResourceWithRawResponse, WebhooksResourceWithStreamingResponse, AsyncWebhooksResourceWithStreamingResponse, ) -from .destinations import DestinationsResource, AsyncDestinationsResource +from .pagerduty import ( + PagerdutyResource, + AsyncPagerdutyResource, + PagerdutyResourceWithRawResponse, + AsyncPagerdutyResourceWithRawResponse, + PagerdutyResourceWithStreamingResponse, + AsyncPagerdutyResourceWithStreamingResponse, +) from .destinations import ( + DestinationsResource, + AsyncDestinationsResource, DestinationsResourceWithRawResponse, AsyncDestinationsResourceWithRawResponse, DestinationsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/alerting/destinations/destinations.py b/src/cloudflare/resources/alerting/destinations/destinations.py index 884ae9b94..d5e0b713d 100644 --- a/src/cloudflare/resources/alerting/destinations/destinations.py +++ b/src/cloudflare/resources/alerting/destinations/destinations.py @@ -2,21 +2,6 @@ from __future__ import annotations -from .eligible import EligibleResource, AsyncEligibleResource - -from ...._compat import cached_property - -from .pagerduty import PagerdutyResource, AsyncPagerdutyResource - -from .webhooks import WebhooksResource, AsyncWebhooksResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params from .eligible import ( EligibleResource, AsyncEligibleResource, @@ -25,14 +10,6 @@ from .eligible import ( EligibleResourceWithStreamingResponse, AsyncEligibleResourceWithStreamingResponse, ) -from .pagerduty import ( - PagerdutyResource, - AsyncPagerdutyResource, - PagerdutyResourceWithRawResponse, - AsyncPagerdutyResourceWithRawResponse, - PagerdutyResourceWithStreamingResponse, - AsyncPagerdutyResourceWithStreamingResponse, -) from .webhooks import ( WebhooksResource, AsyncWebhooksResource, @@ -41,6 +18,16 @@ from .webhooks import ( WebhooksResourceWithStreamingResponse, AsyncWebhooksResourceWithStreamingResponse, ) +from .pagerduty import ( + PagerdutyResource, + AsyncPagerdutyResource, + PagerdutyResourceWithRawResponse, + AsyncPagerdutyResourceWithRawResponse, + PagerdutyResourceWithStreamingResponse, + AsyncPagerdutyResourceWithStreamingResponse, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource __all__ = ["DestinationsResource", "AsyncDestinationsResource"] diff --git a/src/cloudflare/resources/alerting/destinations/eligible.py b/src/cloudflare/resources/alerting/destinations/eligible.py index 0147d74be..9f330cc89 100644 --- a/src/cloudflare/resources/alerting/destinations/eligible.py +++ b/src/cloudflare/resources/alerting/destinations/eligible.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.alerting.destinations.eligible_get_response import EligibleGetResponse - -from ...._wrappers import ResultWrapper - -from typing import Optional, Type - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.alerting.destinations.eligible_get_response import EligibleGetResponse __all__ = ["EligibleResource", "AsyncEligibleResource"] diff --git a/src/cloudflare/resources/alerting/destinations/pagerduty.py b/src/cloudflare/resources/alerting/destinations/pagerduty.py index 01aff3f25..b6e4f112a 100644 --- a/src/cloudflare/resources/alerting/destinations/pagerduty.py +++ b/src/cloudflare/resources/alerting/destinations/pagerduty.py @@ -2,44 +2,25 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.alerting.destinations.pagerduty_create_response import PagerdutyCreateResponse - -from ...._wrappers import ResultWrapper - -from typing import Optional, Type - -from ...._base_client import make_request_options - -from ....types.alerting.destinations.pagerduty_delete_response import PagerdutyDeleteResponse - -from ....types.alerting.destinations.pagerduty_get_response import PagerdutyGetResponse - -from ....types.alerting.destinations.pagerduty_link_response import PagerdutyLinkResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.alerting.destinations.pagerduty_get_response import PagerdutyGetResponse +from ....types.alerting.destinations.pagerduty_link_response import PagerdutyLinkResponse +from ....types.alerting.destinations.pagerduty_create_response import PagerdutyCreateResponse +from ....types.alerting.destinations.pagerduty_delete_response import PagerdutyDeleteResponse __all__ = ["PagerdutyResource", "AsyncPagerdutyResource"] diff --git a/src/cloudflare/resources/alerting/destinations/webhooks.py b/src/cloudflare/resources/alerting/destinations/webhooks.py index 4e188d6ce..038ec8874 100644 --- a/src/cloudflare/resources/alerting/destinations/webhooks.py +++ b/src/cloudflare/resources/alerting/destinations/webhooks.py @@ -2,50 +2,31 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.alerting.destinations.webhook_create_response import WebhookCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.alerting.destinations.webhook_update_response import WebhookUpdateResponse - -from ....types.alerting.destinations.webhooks import Webhooks - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ....types.alerting.destinations.webhook_delete_response import WebhookDeleteResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.alerting.destinations import webhook_create_params -from ....types.alerting.destinations import webhook_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.alerting.destinations import webhook_create_params, webhook_update_params +from ....types.alerting.destinations.webhooks import Webhooks +from ....types.alerting.destinations.webhook_create_response import WebhookCreateResponse +from ....types.alerting.destinations.webhook_delete_response import WebhookDeleteResponse +from ....types.alerting.destinations.webhook_update_response import WebhookUpdateResponse __all__ = ["WebhooksResource", "AsyncWebhooksResource"] diff --git a/src/cloudflare/resources/alerting/history.py b/src/cloudflare/resources/alerting/history.py index 6c030972d..f36f2e692 100644 --- a/src/cloudflare/resources/alerting/history.py +++ b/src/cloudflare/resources/alerting/history.py @@ -2,37 +2,25 @@ from __future__ import annotations -import httpx - -from ..._compat import cached_property - -from ...types.alerting.history import History - -from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ..._utils import maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - from typing import Union - from datetime import datetime +import httpx + +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import maybe_transform +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ..._base_client import AsyncPaginator, make_request_options from ...types.alerting import history_list_params +from ...types.alerting.history import History __all__ = ["HistoryResource", "AsyncHistoryResource"] diff --git a/src/cloudflare/resources/alerting/policies.py b/src/cloudflare/resources/alerting/policies.py index c7764ef8c..b5c12f28d 100644 --- a/src/cloudflare/resources/alerting/policies.py +++ b/src/cloudflare/resources/alerting/policies.py @@ -2,60 +2,34 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.alerting.policy_create_response import PolicyCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from ...types.alerting.mechanism_param import MechanismParam - -from ...types.alerting.policy_filter_param import PolicyFilterParam - -from ...types.alerting.policy_update_response import PolicyUpdateResponse - -from ...types.alerting.policy import Policy - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from ...types.alerting.policy_delete_response import PolicyDeleteResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.alerting import policy_create_params -from ...types.alerting import policy_update_params -from ...types.alerting import Mechanism -from ...types.alerting import PolicyFilter -from ...types.alerting import PolicyFilter -from ...types.alerting import Mechanism -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options +from ...types.alerting import policy_create_params, policy_update_params +from ...types.alerting.policy import Policy +from ...types.alerting.mechanism_param import MechanismParam +from ...types.alerting.policy_filter_param import PolicyFilterParam +from ...types.alerting.policy_create_response import PolicyCreateResponse +from ...types.alerting.policy_delete_response import PolicyDeleteResponse +from ...types.alerting.policy_update_response import PolicyUpdateResponse __all__ = ["PoliciesResource", "AsyncPoliciesResource"] diff --git a/src/cloudflare/resources/api_gateway/__init__.py b/src/cloudflare/resources/api_gateway/__init__.py index eb96c37b0..c92d2837c 100644 --- a/src/cloudflare/resources/api_gateway/__init__.py +++ b/src/cloudflare/resources/api_gateway/__init__.py @@ -1,53 +1,60 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .configurations import ConfigurationsResource, AsyncConfigurationsResource -from .configurations import ( - ConfigurationsResourceWithRawResponse, - AsyncConfigurationsResourceWithRawResponse, - ConfigurationsResourceWithStreamingResponse, - AsyncConfigurationsResourceWithStreamingResponse, -) -from .discovery import DiscoveryResource, AsyncDiscoveryResource -from .discovery import ( - DiscoveryResourceWithRawResponse, - AsyncDiscoveryResourceWithRawResponse, - DiscoveryResourceWithStreamingResponse, - AsyncDiscoveryResourceWithStreamingResponse, -) -from .operations import OperationsResource, AsyncOperationsResource -from .operations import ( - OperationsResourceWithRawResponse, - AsyncOperationsResourceWithRawResponse, - OperationsResourceWithStreamingResponse, - AsyncOperationsResourceWithStreamingResponse, -) -from .schemas import SchemasResource, AsyncSchemasResource from .schemas import ( + SchemasResource, + AsyncSchemasResource, SchemasResourceWithRawResponse, AsyncSchemasResourceWithRawResponse, SchemasResourceWithStreamingResponse, AsyncSchemasResourceWithStreamingResponse, ) -from .settings import SettingsResource, AsyncSettingsResource from .settings import ( + SettingsResource, + AsyncSettingsResource, SettingsResourceWithRawResponse, AsyncSettingsResourceWithRawResponse, SettingsResourceWithStreamingResponse, AsyncSettingsResourceWithStreamingResponse, ) -from .user_schemas import UserSchemasResource, AsyncUserSchemasResource +from .discovery import ( + DiscoveryResource, + AsyncDiscoveryResource, + DiscoveryResourceWithRawResponse, + AsyncDiscoveryResourceWithRawResponse, + DiscoveryResourceWithStreamingResponse, + AsyncDiscoveryResourceWithStreamingResponse, +) +from .operations import ( + OperationsResource, + AsyncOperationsResource, + OperationsResourceWithRawResponse, + AsyncOperationsResourceWithRawResponse, + OperationsResourceWithStreamingResponse, + AsyncOperationsResourceWithStreamingResponse, +) +from .api_gateway import ( + APIGatewayResource, + AsyncAPIGatewayResource, + APIGatewayResourceWithRawResponse, + AsyncAPIGatewayResourceWithRawResponse, + APIGatewayResourceWithStreamingResponse, + AsyncAPIGatewayResourceWithStreamingResponse, +) from .user_schemas import ( + UserSchemasResource, + AsyncUserSchemasResource, UserSchemasResourceWithRawResponse, AsyncUserSchemasResourceWithRawResponse, UserSchemasResourceWithStreamingResponse, AsyncUserSchemasResourceWithStreamingResponse, ) -from .api_gateway import APIGatewayResource, AsyncAPIGatewayResource -from .api_gateway import ( - APIGatewayResourceWithRawResponse, - AsyncAPIGatewayResourceWithRawResponse, - APIGatewayResourceWithStreamingResponse, - AsyncAPIGatewayResourceWithStreamingResponse, +from .configurations import ( + ConfigurationsResource, + AsyncConfigurationsResource, + ConfigurationsResourceWithRawResponse, + AsyncConfigurationsResourceWithRawResponse, + ConfigurationsResourceWithStreamingResponse, + AsyncConfigurationsResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/api_gateway/api_gateway.py b/src/cloudflare/resources/api_gateway/api_gateway.py index 72653e950..5df1917d6 100644 --- a/src/cloudflare/resources/api_gateway/api_gateway.py +++ b/src/cloudflare/resources/api_gateway/api_gateway.py @@ -2,51 +2,6 @@ from __future__ import annotations -from .configurations import ConfigurationsResource, AsyncConfigurationsResource - -from ..._compat import cached_property - -from .discovery.discovery import DiscoveryResource, AsyncDiscoveryResource - -from .operations.operations import OperationsResource, AsyncOperationsResource - -from .schemas import SchemasResource, AsyncSchemasResource - -from .settings.settings import SettingsResource, AsyncSettingsResource - -from .user_schemas.user_schemas import UserSchemasResource, AsyncUserSchemasResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from .configurations import ( - ConfigurationsResource, - AsyncConfigurationsResource, - ConfigurationsResourceWithRawResponse, - AsyncConfigurationsResourceWithRawResponse, - ConfigurationsResourceWithStreamingResponse, - AsyncConfigurationsResourceWithStreamingResponse, -) -from .discovery import ( - DiscoveryResource, - AsyncDiscoveryResource, - DiscoveryResourceWithRawResponse, - AsyncDiscoveryResourceWithRawResponse, - DiscoveryResourceWithStreamingResponse, - AsyncDiscoveryResourceWithStreamingResponse, -) -from .operations import ( - OperationsResource, - AsyncOperationsResource, - OperationsResourceWithRawResponse, - AsyncOperationsResourceWithRawResponse, - OperationsResourceWithStreamingResponse, - AsyncOperationsResourceWithStreamingResponse, -) from .schemas import ( SchemasResource, AsyncSchemasResource, @@ -63,6 +18,24 @@ from .settings import ( SettingsResourceWithStreamingResponse, AsyncSettingsResourceWithStreamingResponse, ) +from ..._compat import cached_property +from .discovery import ( + DiscoveryResource, + AsyncDiscoveryResource, + DiscoveryResourceWithRawResponse, + AsyncDiscoveryResourceWithRawResponse, + DiscoveryResourceWithStreamingResponse, + AsyncDiscoveryResourceWithStreamingResponse, +) +from .operations import ( + OperationsResource, + AsyncOperationsResource, + OperationsResourceWithRawResponse, + AsyncOperationsResourceWithRawResponse, + OperationsResourceWithStreamingResponse, + AsyncOperationsResourceWithStreamingResponse, +) +from ..._resource import SyncAPIResource, AsyncAPIResource from .user_schemas import ( UserSchemasResource, AsyncUserSchemasResource, @@ -71,6 +44,18 @@ from .user_schemas import ( UserSchemasResourceWithStreamingResponse, AsyncUserSchemasResourceWithStreamingResponse, ) +from .configurations import ( + ConfigurationsResource, + AsyncConfigurationsResource, + ConfigurationsResourceWithRawResponse, + AsyncConfigurationsResourceWithRawResponse, + ConfigurationsResourceWithStreamingResponse, + AsyncConfigurationsResourceWithStreamingResponse, +) +from .settings.settings import SettingsResource, AsyncSettingsResource +from .discovery.discovery import DiscoveryResource, AsyncDiscoveryResource +from .operations.operations import OperationsResource, AsyncOperationsResource +from .user_schemas.user_schemas import UserSchemasResource, AsyncUserSchemasResource __all__ = ["APIGatewayResource", "AsyncAPIGatewayResource"] diff --git a/src/cloudflare/resources/api_gateway/configurations.py b/src/cloudflare/resources/api_gateway/configurations.py index e3ee861c8..efa78c997 100644 --- a/src/cloudflare/resources/api_gateway/configurations.py +++ b/src/cloudflare/resources/api_gateway/configurations.py @@ -2,44 +2,29 @@ from __future__ import annotations +from typing import List, Type, Iterable, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.api_gateway.configuration_update_response import ConfigurationUpdateResponse - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing import Iterable, Type, List - -from ...types.api_gateway.configuration import Configuration - -from ..._wrappers import ResultWrapper - -from typing_extensions import Literal - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ...types.api_gateway import configuration_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.api_gateway import configuration_update_params -from ...types.api_gateway import configuration_get_params -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.api_gateway import configuration_get_params, configuration_update_params +from ...types.api_gateway.configuration import Configuration +from ...types.api_gateway.configuration_update_response import ConfigurationUpdateResponse __all__ = ["ConfigurationsResource", "AsyncConfigurationsResource"] diff --git a/src/cloudflare/resources/api_gateway/discovery/__init__.py b/src/cloudflare/resources/api_gateway/discovery/__init__.py index edf3078fc..b126c44ef 100644 --- a/src/cloudflare/resources/api_gateway/discovery/__init__.py +++ b/src/cloudflare/resources/api_gateway/discovery/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .operations import OperationsResource, AsyncOperationsResource -from .operations import ( - OperationsResourceWithRawResponse, - AsyncOperationsResourceWithRawResponse, - OperationsResourceWithStreamingResponse, - AsyncOperationsResourceWithStreamingResponse, -) -from .discovery import DiscoveryResource, AsyncDiscoveryResource from .discovery import ( + DiscoveryResource, + AsyncDiscoveryResource, DiscoveryResourceWithRawResponse, AsyncDiscoveryResourceWithRawResponse, DiscoveryResourceWithStreamingResponse, AsyncDiscoveryResourceWithStreamingResponse, ) +from .operations import ( + OperationsResource, + AsyncOperationsResource, + OperationsResourceWithRawResponse, + AsyncOperationsResourceWithRawResponse, + OperationsResourceWithStreamingResponse, + AsyncOperationsResourceWithStreamingResponse, +) __all__ = [ "OperationsResource", diff --git a/src/cloudflare/resources/api_gateway/discovery/discovery.py b/src/cloudflare/resources/api_gateway/discovery/discovery.py index fd5e6d304..9decd5b42 100644 --- a/src/cloudflare/resources/api_gateway/discovery/discovery.py +++ b/src/cloudflare/resources/api_gateway/discovery/discovery.py @@ -2,34 +2,12 @@ from __future__ import annotations +from typing import Type, cast + import httpx -from .operations import OperationsResource, AsyncOperationsResource - +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.api_gateway.discovery_get_response import DiscoveryGetResponse - -from ...._wrappers import ResultWrapper - -from ...._base_client import make_request_options - -from typing import Type - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params from .operations import ( OperationsResource, AsyncOperationsResource, @@ -38,8 +16,16 @@ from .operations import ( OperationsResourceWithStreamingResponse, AsyncOperationsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.api_gateway.discovery_get_response import DiscoveryGetResponse __all__ = ["DiscoveryResource", "AsyncDiscoveryResource"] diff --git a/src/cloudflare/resources/api_gateway/discovery/operations.py b/src/cloudflare/resources/api_gateway/discovery/operations.py index dc3692d46..4f7fb29a4 100644 --- a/src/cloudflare/resources/api_gateway/discovery/operations.py +++ b/src/cloudflare/resources/api_gateway/discovery/operations.py @@ -2,44 +2,30 @@ from __future__ import annotations +from typing import List, Type, cast +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.api_gateway.discovery_operation import DiscoveryOperation - -from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from typing import List, Type - -from ....types.api_gateway.discovery.operation_edit_response import OperationEditResponse - -from ...._wrappers import ResultWrapper - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.api_gateway.discovery import operation_list_params -from ....types.api_gateway.discovery import operation_edit_params -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ...._base_client import AsyncPaginator, make_request_options +from ....types.api_gateway.discovery import operation_edit_params, operation_list_params +from ....types.api_gateway.discovery_operation import DiscoveryOperation +from ....types.api_gateway.discovery.operation_edit_response import OperationEditResponse __all__ = ["OperationsResource", "AsyncOperationsResource"] diff --git a/src/cloudflare/resources/api_gateway/operations/__init__.py b/src/cloudflare/resources/api_gateway/operations/__init__.py index 93f9c0ebb..d50a9df3f 100644 --- a/src/cloudflare/resources/api_gateway/operations/__init__.py +++ b/src/cloudflare/resources/api_gateway/operations/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .schema_validation import SchemaValidationResource, AsyncSchemaValidationResource -from .schema_validation import ( - SchemaValidationResourceWithRawResponse, - AsyncSchemaValidationResourceWithRawResponse, - SchemaValidationResourceWithStreamingResponse, - AsyncSchemaValidationResourceWithStreamingResponse, -) -from .operations import OperationsResource, AsyncOperationsResource from .operations import ( + OperationsResource, + AsyncOperationsResource, OperationsResourceWithRawResponse, AsyncOperationsResourceWithRawResponse, OperationsResourceWithStreamingResponse, AsyncOperationsResourceWithStreamingResponse, ) +from .schema_validation import ( + SchemaValidationResource, + AsyncSchemaValidationResource, + SchemaValidationResourceWithRawResponse, + AsyncSchemaValidationResourceWithRawResponse, + SchemaValidationResourceWithStreamingResponse, + AsyncSchemaValidationResourceWithStreamingResponse, +) __all__ = [ "SchemaValidationResource", diff --git a/src/cloudflare/resources/api_gateway/operations/operations.py b/src/cloudflare/resources/api_gateway/operations/operations.py index 367088daa..6d44a2b67 100644 --- a/src/cloudflare/resources/api_gateway/operations/operations.py +++ b/src/cloudflare/resources/api_gateway/operations/operations.py @@ -2,51 +2,27 @@ from __future__ import annotations +from typing import List, Type, Iterable, cast +from typing_extensions import Literal + import httpx -from .schema_validation import SchemaValidationResource, AsyncSchemaValidationResource - +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.api_gateway.operation_create_response import OperationCreateResponse - -from ...._wrappers import ResultWrapper - -from typing import Iterable, Type, List - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.api_gateway.operation_list_response import OperationListResponse - -from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from typing_extensions import Literal - -from ....types.api_gateway.operation_delete_response import OperationDeleteResponse - -from ....types.api_gateway.operation_get_response import OperationGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ....types.api_gateway import operation_create_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.api_gateway import operation_create_params -from ....types.api_gateway import operation_list_params -from ....types.api_gateway import operation_get_params +from ...._wrappers import ResultWrapper +from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ...._base_client import AsyncPaginator, make_request_options from .schema_validation import ( SchemaValidationResource, AsyncSchemaValidationResource, @@ -55,10 +31,11 @@ from .schema_validation import ( SchemaValidationResourceWithStreamingResponse, AsyncSchemaValidationResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....types.api_gateway import operation_get_params, operation_list_params, operation_create_params +from ....types.api_gateway.operation_get_response import OperationGetResponse +from ....types.api_gateway.operation_list_response import OperationListResponse +from ....types.api_gateway.operation_create_response import OperationCreateResponse +from ....types.api_gateway.operation_delete_response import OperationDeleteResponse __all__ = ["OperationsResource", "AsyncOperationsResource"] diff --git a/src/cloudflare/resources/api_gateway/operations/schema_validation.py b/src/cloudflare/resources/api_gateway/operations/schema_validation.py index 5babb6664..75fbceb4e 100644 --- a/src/cloudflare/resources/api_gateway/operations/schema_validation.py +++ b/src/cloudflare/resources/api_gateway/operations/schema_validation.py @@ -2,47 +2,35 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.api_gateway.operations.schema_validation_update_response import SchemaValidationUpdateResponse - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Optional, Type - -from typing_extensions import Literal - -from ....types.api_gateway.operations.settings_multiple_request import SettingsMultipleRequest - -from ...._wrappers import ResultWrapper - -from ....types.api_gateway.operations.settings_multiple_request_param import SettingsMultipleRequestParam - -from ....types.api_gateway.operations.schema_validation_get_response import SchemaValidationGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.api_gateway.operations import schema_validation_update_params -from ....types.api_gateway.operations import schema_validation_edit_params -from ....types.api_gateway.operations import SettingsMultipleRequest -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.api_gateway.operations import ( + SettingsMultipleRequest, + schema_validation_edit_params, + schema_validation_update_params, +) +from ....types.api_gateway.operations.settings_multiple_request import SettingsMultipleRequest +from ....types.api_gateway.operations.schema_validation_get_response import SchemaValidationGetResponse +from ....types.api_gateway.operations.settings_multiple_request_param import SettingsMultipleRequestParam +from ....types.api_gateway.operations.schema_validation_update_response import SchemaValidationUpdateResponse __all__ = ["SchemaValidationResource", "AsyncSchemaValidationResource"] diff --git a/src/cloudflare/resources/api_gateway/schemas.py b/src/cloudflare/resources/api_gateway/schemas.py index 9a2a335de..501680e88 100644 --- a/src/cloudflare/resources/api_gateway/schemas.py +++ b/src/cloudflare/resources/api_gateway/schemas.py @@ -2,39 +2,28 @@ from __future__ import annotations +from typing import List, Type, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.api_gateway.schema_list_response import SchemaListResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing import Type, List - -from typing_extensions import Literal - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.api_gateway import schema_list_params -from typing import cast -from typing import cast +from ...types.api_gateway.schema_list_response import SchemaListResponse __all__ = ["SchemasResource", "AsyncSchemasResource"] diff --git a/src/cloudflare/resources/api_gateway/settings/__init__.py b/src/cloudflare/resources/api_gateway/settings/__init__.py index 84c27c6c2..747e388f8 100644 --- a/src/cloudflare/resources/api_gateway/settings/__init__.py +++ b/src/cloudflare/resources/api_gateway/settings/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .schema_validation import SchemaValidationResource, AsyncSchemaValidationResource -from .schema_validation import ( - SchemaValidationResourceWithRawResponse, - AsyncSchemaValidationResourceWithRawResponse, - SchemaValidationResourceWithStreamingResponse, - AsyncSchemaValidationResourceWithStreamingResponse, -) -from .settings import SettingsResource, AsyncSettingsResource from .settings import ( + SettingsResource, + AsyncSettingsResource, SettingsResourceWithRawResponse, AsyncSettingsResourceWithRawResponse, SettingsResourceWithStreamingResponse, AsyncSettingsResourceWithStreamingResponse, ) +from .schema_validation import ( + SchemaValidationResource, + AsyncSchemaValidationResource, + SchemaValidationResourceWithRawResponse, + AsyncSchemaValidationResourceWithRawResponse, + SchemaValidationResourceWithStreamingResponse, + AsyncSchemaValidationResourceWithStreamingResponse, +) __all__ = [ "SchemaValidationResource", diff --git a/src/cloudflare/resources/api_gateway/settings/schema_validation.py b/src/cloudflare/resources/api_gateway/settings/schema_validation.py index 962a0ddaa..edfbacc90 100644 --- a/src/cloudflare/resources/api_gateway/settings/schema_validation.py +++ b/src/cloudflare/resources/api_gateway/settings/schema_validation.py @@ -2,36 +2,27 @@ from __future__ import annotations +from typing import Optional +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.api_gateway.settings.settings import Settings - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing_extensions import Literal - -from typing import Optional - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.api_gateway.settings import schema_validation_update_params -from ....types.api_gateway.settings import schema_validation_edit_params +from ...._base_client import make_request_options +from ....types.api_gateway.settings import schema_validation_edit_params, schema_validation_update_params +from ....types.api_gateway.settings.settings import Settings __all__ = ["SchemaValidationResource", "AsyncSchemaValidationResource"] diff --git a/src/cloudflare/resources/api_gateway/settings/settings.py b/src/cloudflare/resources/api_gateway/settings/settings.py index 5c5cfcbfb..867736cae 100644 --- a/src/cloudflare/resources/api_gateway/settings/settings.py +++ b/src/cloudflare/resources/api_gateway/settings/settings.py @@ -2,17 +2,8 @@ from __future__ import annotations -from .schema_validation import SchemaValidationResource, AsyncSchemaValidationResource - from ...._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params from .schema_validation import ( SchemaValidationResource, AsyncSchemaValidationResource, diff --git a/src/cloudflare/resources/api_gateway/user_schemas/__init__.py b/src/cloudflare/resources/api_gateway/user_schemas/__init__.py index 0b333e463..40bf47373 100644 --- a/src/cloudflare/resources/api_gateway/user_schemas/__init__.py +++ b/src/cloudflare/resources/api_gateway/user_schemas/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .operations import OperationsResource, AsyncOperationsResource from .operations import ( + OperationsResource, + AsyncOperationsResource, OperationsResourceWithRawResponse, AsyncOperationsResourceWithRawResponse, OperationsResourceWithStreamingResponse, AsyncOperationsResourceWithStreamingResponse, ) -from .user_schemas import UserSchemasResource, AsyncUserSchemasResource from .user_schemas import ( + UserSchemasResource, + AsyncUserSchemasResource, UserSchemasResourceWithRawResponse, AsyncUserSchemasResourceWithRawResponse, UserSchemasResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/api_gateway/user_schemas/operations.py b/src/cloudflare/resources/api_gateway/user_schemas/operations.py index 8b1e82c24..18cb925ea 100644 --- a/src/cloudflare/resources/api_gateway/user_schemas/operations.py +++ b/src/cloudflare/resources/api_gateway/user_schemas/operations.py @@ -2,39 +2,25 @@ from __future__ import annotations +from typing import Any, List, cast +from typing_extensions import Literal + import httpx -from ...._compat import cached_property - -from ....types.api_gateway.user_schemas.operation_list_response import OperationListResponse - -from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from typing import List - -from typing_extensions import Literal - +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ...._base_client import AsyncPaginator, make_request_options from ....types.api_gateway.user_schemas import operation_list_params -from typing import cast -from typing import cast +from ....types.api_gateway.user_schemas.operation_list_response import OperationListResponse __all__ = ["OperationsResource", "AsyncOperationsResource"] diff --git a/src/cloudflare/resources/api_gateway/user_schemas/user_schemas.py b/src/cloudflare/resources/api_gateway/user_schemas/user_schemas.py index 865e3eaa0..5f077cf33 100644 --- a/src/cloudflare/resources/api_gateway/user_schemas/user_schemas.py +++ b/src/cloudflare/resources/api_gateway/user_schemas/user_schemas.py @@ -2,50 +2,19 @@ from __future__ import annotations +from typing import Type, Mapping, cast +from typing_extensions import Literal + import httpx -from .operations import OperationsResource, AsyncOperationsResource - -from ...._compat import cached_property - -from ....types.api_gateway.schema_upload import SchemaUpload - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from typing import Type - -from ...._types import FileTypes - -from typing_extensions import Literal - -from ....types.api_gateway.public_schema import PublicSchema - -from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ....types.api_gateway.user_schema_delete_response import UserSchemaDeleteResponse - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes +from ...._utils import ( + extract_files, + maybe_transform, + deepcopy_minimal, + async_maybe_transform, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.api_gateway import user_schema_create_params -from ....types.api_gateway import user_schema_list_params -from ....types.api_gateway import user_schema_edit_params -from ....types.api_gateway import user_schema_get_params +from ...._compat import cached_property from .operations import ( OperationsResource, AsyncOperationsResource, @@ -54,12 +23,25 @@ from .operations import ( OperationsResourceWithStreamingResponse, AsyncOperationsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ...._base_client import AsyncPaginator, make_request_options +from ....types.api_gateway import ( + user_schema_get_params, + user_schema_edit_params, + user_schema_list_params, + user_schema_create_params, +) +from ....types.api_gateway.public_schema import PublicSchema +from ....types.api_gateway.schema_upload import SchemaUpload +from ....types.api_gateway.user_schema_delete_response import UserSchemaDeleteResponse __all__ = ["UserSchemasResource", "AsyncUserSchemasResource"] diff --git a/src/cloudflare/resources/argo/__init__.py b/src/cloudflare/resources/argo/__init__.py index a6537937e..060e54eae 100644 --- a/src/cloudflare/resources/argo/__init__.py +++ b/src/cloudflare/resources/argo/__init__.py @@ -1,26 +1,29 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .smart_routing import SmartRoutingResource, AsyncSmartRoutingResource +from .argo import ( + ArgoResource, + AsyncArgoResource, + ArgoResourceWithRawResponse, + AsyncArgoResourceWithRawResponse, + ArgoResourceWithStreamingResponse, + AsyncArgoResourceWithStreamingResponse, +) from .smart_routing import ( + SmartRoutingResource, + AsyncSmartRoutingResource, SmartRoutingResourceWithRawResponse, AsyncSmartRoutingResourceWithRawResponse, SmartRoutingResourceWithStreamingResponse, AsyncSmartRoutingResourceWithStreamingResponse, ) -from .tiered_caching import TieredCachingResource, AsyncTieredCachingResource from .tiered_caching import ( + TieredCachingResource, + AsyncTieredCachingResource, TieredCachingResourceWithRawResponse, AsyncTieredCachingResourceWithRawResponse, TieredCachingResourceWithStreamingResponse, AsyncTieredCachingResourceWithStreamingResponse, ) -from .argo import ArgoResource, AsyncArgoResource -from .argo import ( - ArgoResourceWithRawResponse, - AsyncArgoResourceWithRawResponse, - ArgoResourceWithStreamingResponse, - AsyncArgoResourceWithStreamingResponse, -) __all__ = [ "SmartRoutingResource", diff --git a/src/cloudflare/resources/argo/argo.py b/src/cloudflare/resources/argo/argo.py index 39171b385..f9ce9f32f 100644 --- a/src/cloudflare/resources/argo/argo.py +++ b/src/cloudflare/resources/argo/argo.py @@ -2,19 +2,8 @@ from __future__ import annotations -from .smart_routing import SmartRoutingResource, AsyncSmartRoutingResource - from ..._compat import cached_property - -from .tiered_caching import TieredCachingResource, AsyncTieredCachingResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .smart_routing import ( SmartRoutingResource, AsyncSmartRoutingResource, diff --git a/src/cloudflare/resources/argo/smart_routing.py b/src/cloudflare/resources/argo/smart_routing.py index b44337f72..66076b409 100644 --- a/src/cloudflare/resources/argo/smart_routing.py +++ b/src/cloudflare/resources/argo/smart_routing.py @@ -2,45 +2,29 @@ from __future__ import annotations +from typing import Any, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.argo.smart_routing_edit_response import SmartRoutingEditResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing_extensions import Literal - -from ...types.argo.smart_routing_get_response import SmartRoutingGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper from ...types.argo import smart_routing_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._base_client import make_request_options +from ...types.argo.smart_routing_get_response import SmartRoutingGetResponse +from ...types.argo.smart_routing_edit_response import SmartRoutingEditResponse __all__ = ["SmartRoutingResource", "AsyncSmartRoutingResource"] diff --git a/src/cloudflare/resources/argo/tiered_caching.py b/src/cloudflare/resources/argo/tiered_caching.py index 85d12c21b..97e355bc5 100644 --- a/src/cloudflare/resources/argo/tiered_caching.py +++ b/src/cloudflare/resources/argo/tiered_caching.py @@ -2,43 +2,29 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.argo.tiered_caching_edit_response import TieredCachingEditResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from typing_extensions import Literal - -from ...types.argo.tiered_caching_get_response import TieredCachingGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper from ...types.argo import tiered_caching_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._base_client import make_request_options +from ...types.argo.tiered_caching_get_response import TieredCachingGetResponse +from ...types.argo.tiered_caching_edit_response import TieredCachingEditResponse __all__ = ["TieredCachingResource", "AsyncTieredCachingResource"] diff --git a/src/cloudflare/resources/audit_logs.py b/src/cloudflare/resources/audit_logs.py index 862f4088a..5958b8541 100644 --- a/src/cloudflare/resources/audit_logs.py +++ b/src/cloudflare/resources/audit_logs.py @@ -2,41 +2,26 @@ from __future__ import annotations +from typing import Union +from datetime import datetime +from typing_extensions import Literal + import httpx -from .._compat import cached_property - -from ..types.shared.audit_log import AuditLog - -from ..pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven from .._utils import maybe_transform - -from .._base_client import make_request_options, AsyncPaginator - -from typing import Union - -from datetime import datetime - -from typing_extensions import Literal - +from .._compat import cached_property +from .._resource import SyncAPIResource, AsyncAPIResource from .._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ..types.audit_logs import audit_log_list_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from .._resource import SyncAPIResource, AsyncAPIResource -from ..types import shared_params +from ..pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from .._base_client import AsyncPaginator, make_request_options from ..types.audit_logs import audit_log_list_params +from ..types.shared.audit_log import AuditLog __all__ = ["AuditLogsResource", "AsyncAuditLogsResource"] diff --git a/src/cloudflare/resources/billing/__init__.py b/src/cloudflare/resources/billing/__init__.py index 49107b644..c16ec03c4 100644 --- a/src/cloudflare/resources/billing/__init__.py +++ b/src/cloudflare/resources/billing/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .profiles import ProfilesResource, AsyncProfilesResource -from .profiles import ( - ProfilesResourceWithRawResponse, - AsyncProfilesResourceWithRawResponse, - ProfilesResourceWithStreamingResponse, - AsyncProfilesResourceWithStreamingResponse, -) -from .billing import BillingResource, AsyncBillingResource from .billing import ( + BillingResource, + AsyncBillingResource, BillingResourceWithRawResponse, AsyncBillingResourceWithRawResponse, BillingResourceWithStreamingResponse, AsyncBillingResourceWithStreamingResponse, ) +from .profiles import ( + ProfilesResource, + AsyncProfilesResource, + ProfilesResourceWithRawResponse, + AsyncProfilesResourceWithRawResponse, + ProfilesResourceWithStreamingResponse, + AsyncProfilesResourceWithStreamingResponse, +) __all__ = [ "ProfilesResource", diff --git a/src/cloudflare/resources/billing/billing.py b/src/cloudflare/resources/billing/billing.py index f6e5a9a52..4eb4692ac 100644 --- a/src/cloudflare/resources/billing/billing.py +++ b/src/cloudflare/resources/billing/billing.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .profiles import ProfilesResource, AsyncProfilesResource - -from ..._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .profiles import ( ProfilesResource, AsyncProfilesResource, @@ -21,6 +10,8 @@ from .profiles import ( ProfilesResourceWithStreamingResponse, AsyncProfilesResourceWithStreamingResponse, ) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource __all__ = ["BillingResource", "AsyncBillingResource"] diff --git a/src/cloudflare/resources/billing/profiles.py b/src/cloudflare/resources/billing/profiles.py index 3a30bb9ba..e3a405a95 100644 --- a/src/cloudflare/resources/billing/profiles.py +++ b/src/cloudflare/resources/billing/profiles.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._compat import cached_property - -from ...types.billing.profile_get_response import ProfileGetResponse - -from ..._wrappers import ResultWrapper - -from ..._base_client import make_request_options - -from typing import Type - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.billing.profile_get_response import ProfileGetResponse __all__ = ["ProfilesResource", "AsyncProfilesResource"] diff --git a/src/cloudflare/resources/bot_management.py b/src/cloudflare/resources/bot_management.py index a9ccb1b41..bfdbaab09 100644 --- a/src/cloudflare/resources/bot_management.py +++ b/src/cloudflare/resources/bot_management.py @@ -2,47 +2,30 @@ from __future__ import annotations +from typing import Any, Optional, cast, overload +from typing_extensions import Literal + import httpx +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .._utils import ( + required_args, + maybe_transform, + async_maybe_transform, +) from .._compat import cached_property - -from typing_extensions import Literal - -from typing import Optional - -from ..types.bot_management.bot_management_update_response import BotManagementUpdateResponse - -from .._wrappers import ResultWrapper - -from .._utils import maybe_transform, async_maybe_transform - -from .._base_client import make_request_options - -from ..types.bot_management.bot_management_get_response import BotManagementGetResponse - +from .._resource import SyncAPIResource, AsyncAPIResource from .._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from .._resource import SyncAPIResource, AsyncAPIResource -from ..types import shared_params +from .._wrappers import ResultWrapper +from .._base_client import make_request_options from ..types.bot_management import bot_management_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..types.bot_management.bot_management_get_response import BotManagementGetResponse +from ..types.bot_management.bot_management_update_response import BotManagementUpdateResponse __all__ = ["BotManagementResource", "AsyncBotManagementResource"] diff --git a/src/cloudflare/resources/botnet_feed/__init__.py b/src/cloudflare/resources/botnet_feed/__init__.py index 1da165e46..851d69e45 100755 --- a/src/cloudflare/resources/botnet_feed/__init__.py +++ b/src/cloudflare/resources/botnet_feed/__init__.py @@ -1,21 +1,24 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .asn import ASNResource, AsyncASNResource from .asn import ( + ASNResource, + AsyncASNResource, ASNResourceWithRawResponse, AsyncASNResourceWithRawResponse, ASNResourceWithStreamingResponse, AsyncASNResourceWithStreamingResponse, ) -from .configs import ConfigsResource, AsyncConfigsResource from .configs import ( + ConfigsResource, + AsyncConfigsResource, ConfigsResourceWithRawResponse, AsyncConfigsResourceWithRawResponse, ConfigsResourceWithStreamingResponse, AsyncConfigsResourceWithStreamingResponse, ) -from .botnet_feed import BotnetFeedResource, AsyncBotnetFeedResource from .botnet_feed import ( + BotnetFeedResource, + AsyncBotnetFeedResource, BotnetFeedResourceWithRawResponse, AsyncBotnetFeedResourceWithRawResponse, BotnetFeedResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/botnet_feed/asn.py b/src/cloudflare/resources/botnet_feed/asn.py index cc0c1af5e..292a1e0de 100755 --- a/src/cloudflare/resources/botnet_feed/asn.py +++ b/src/cloudflare/resources/botnet_feed/asn.py @@ -2,43 +2,29 @@ from __future__ import annotations -import httpx - -from ..._compat import cached_property - -from ...types.botnet_feed.asn_day_report_response import ASNDayReportResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Union - -from ..._base_client import make_request_options - +from typing import Type, Union, Optional, cast from datetime import datetime -from ...types.botnet_feed.asn_full_report_response import ASNFullReportResponse +import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.botnet_feed import asn_day_report_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...types.botnet_feed.asn_day_report_response import ASNDayReportResponse +from ...types.botnet_feed.asn_full_report_response import ASNFullReportResponse __all__ = ["ASNResource", "AsyncASNResource"] diff --git a/src/cloudflare/resources/botnet_feed/botnet_feed.py b/src/cloudflare/resources/botnet_feed/botnet_feed.py index fc161003a..19a94a651 100755 --- a/src/cloudflare/resources/botnet_feed/botnet_feed.py +++ b/src/cloudflare/resources/botnet_feed/botnet_feed.py @@ -2,19 +2,6 @@ from __future__ import annotations -from .asn import ASNResource, AsyncASNResource - -from ..._compat import cached_property - -from .configs.configs import ConfigsResource, AsyncConfigsResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .asn import ( ASNResource, AsyncASNResource, @@ -31,6 +18,9 @@ from .configs import ( ConfigsResourceWithStreamingResponse, AsyncConfigsResourceWithStreamingResponse, ) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from .configs.configs import ConfigsResource, AsyncConfigsResource __all__ = ["BotnetFeedResource", "AsyncBotnetFeedResource"] diff --git a/src/cloudflare/resources/botnet_feed/configs/__init__.py b/src/cloudflare/resources/botnet_feed/configs/__init__.py index 931b94a39..8aa884197 100755 --- a/src/cloudflare/resources/botnet_feed/configs/__init__.py +++ b/src/cloudflare/resources/botnet_feed/configs/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .asn import ASNResource, AsyncASNResource from .asn import ( + ASNResource, + AsyncASNResource, ASNResourceWithRawResponse, AsyncASNResourceWithRawResponse, ASNResourceWithStreamingResponse, AsyncASNResourceWithStreamingResponse, ) -from .configs import ConfigsResource, AsyncConfigsResource from .configs import ( + ConfigsResource, + AsyncConfigsResource, ConfigsResourceWithRawResponse, AsyncConfigsResourceWithRawResponse, ConfigsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/botnet_feed/configs/asn.py b/src/cloudflare/resources/botnet_feed/configs/asn.py index 003c0ac64..edb9de206 100755 --- a/src/cloudflare/resources/botnet_feed/configs/asn.py +++ b/src/cloudflare/resources/botnet_feed/configs/asn.py @@ -2,38 +2,23 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.botnet_feed.configs.asn_delete_response import ASNDeleteResponse - -from ...._wrappers import ResultWrapper - -from typing import Optional, Type - -from ...._base_client import make_request_options - -from ....types.botnet_feed.configs.asn_get_response import ASNGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.botnet_feed.configs.asn_get_response import ASNGetResponse +from ....types.botnet_feed.configs.asn_delete_response import ASNDeleteResponse __all__ = ["ASNResource", "AsyncASNResource"] diff --git a/src/cloudflare/resources/botnet_feed/configs/configs.py b/src/cloudflare/resources/botnet_feed/configs/configs.py index 0d8ef50b8..edf80bc22 100755 --- a/src/cloudflare/resources/botnet_feed/configs/configs.py +++ b/src/cloudflare/resources/botnet_feed/configs/configs.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .asn import ASNResource, AsyncASNResource - -from ...._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params from .asn import ( ASNResource, AsyncASNResource, @@ -21,6 +10,8 @@ from .asn import ( ASNResourceWithStreamingResponse, AsyncASNResourceWithStreamingResponse, ) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource __all__ = ["ConfigsResource", "AsyncConfigsResource"] diff --git a/src/cloudflare/resources/brand_protection.py b/src/cloudflare/resources/brand_protection.py index 727b7fd45..1e14fc3a8 100644 --- a/src/cloudflare/resources/brand_protection.py +++ b/src/cloudflare/resources/brand_protection.py @@ -2,42 +2,28 @@ from __future__ import annotations +from typing import List, Type, Iterable, Optional, cast + import httpx +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .._utils import ( + maybe_transform, + async_maybe_transform, +) from .._compat import cached_property - -from ..types.brand_protection.submit import Submit - -from .._wrappers import ResultWrapper - -from .._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, List, Iterable - -from .._base_client import make_request_options - -from ..types.brand_protection.info import Info - +from .._resource import SyncAPIResource, AsyncAPIResource from .._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from .._resource import SyncAPIResource, AsyncAPIResource -from ..types import shared_params -from ..types.brand_protection import brand_protection_submit_params -from ..types.brand_protection import brand_protection_url_info_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .._wrappers import ResultWrapper +from .._base_client import make_request_options +from ..types.brand_protection import brand_protection_submit_params, brand_protection_url_info_params +from ..types.brand_protection.info import Info +from ..types.brand_protection.submit import Submit __all__ = ["BrandProtectionResource", "AsyncBrandProtectionResource"] diff --git a/src/cloudflare/resources/cache/__init__.py b/src/cloudflare/resources/cache/__init__.py index 7ccc64698..faa73ad77 100644 --- a/src/cloudflare/resources/cache/__init__.py +++ b/src/cloudflare/resources/cache/__init__.py @@ -1,40 +1,45 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .cache_reserve import CacheReserveResource, AsyncCacheReserveResource -from .cache_reserve import ( - CacheReserveResourceWithRawResponse, - AsyncCacheReserveResourceWithRawResponse, - CacheReserveResourceWithStreamingResponse, - AsyncCacheReserveResourceWithStreamingResponse, +from .cache import ( + CacheResource, + AsyncCacheResource, + CacheResourceWithRawResponse, + AsyncCacheResourceWithRawResponse, + CacheResourceWithStreamingResponse, + AsyncCacheResourceWithStreamingResponse, ) -from .smart_tiered_cache import SmartTieredCacheResource, AsyncSmartTieredCacheResource -from .smart_tiered_cache import ( - SmartTieredCacheResourceWithRawResponse, - AsyncSmartTieredCacheResourceWithRawResponse, - SmartTieredCacheResourceWithStreamingResponse, - AsyncSmartTieredCacheResourceWithStreamingResponse, -) -from .variants import VariantsResource, AsyncVariantsResource from .variants import ( + VariantsResource, + AsyncVariantsResource, VariantsResourceWithRawResponse, AsyncVariantsResourceWithRawResponse, VariantsResourceWithStreamingResponse, AsyncVariantsResourceWithStreamingResponse, ) -from .regional_tiered_cache import RegionalTieredCacheResource, AsyncRegionalTieredCacheResource +from .cache_reserve import ( + CacheReserveResource, + AsyncCacheReserveResource, + CacheReserveResourceWithRawResponse, + AsyncCacheReserveResourceWithRawResponse, + CacheReserveResourceWithStreamingResponse, + AsyncCacheReserveResourceWithStreamingResponse, +) +from .smart_tiered_cache import ( + SmartTieredCacheResource, + AsyncSmartTieredCacheResource, + SmartTieredCacheResourceWithRawResponse, + AsyncSmartTieredCacheResourceWithRawResponse, + SmartTieredCacheResourceWithStreamingResponse, + AsyncSmartTieredCacheResourceWithStreamingResponse, +) from .regional_tiered_cache import ( + RegionalTieredCacheResource, + AsyncRegionalTieredCacheResource, RegionalTieredCacheResourceWithRawResponse, AsyncRegionalTieredCacheResourceWithRawResponse, RegionalTieredCacheResourceWithStreamingResponse, AsyncRegionalTieredCacheResourceWithStreamingResponse, ) -from .cache import CacheResource, AsyncCacheResource -from .cache import ( - CacheResourceWithRawResponse, - AsyncCacheResourceWithRawResponse, - CacheResourceWithStreamingResponse, - AsyncCacheResourceWithStreamingResponse, -) __all__ = [ "CacheReserveResource", diff --git a/src/cloudflare/resources/cache/cache.py b/src/cloudflare/resources/cache/cache.py index bdef46c39..ad1bbcf2b 100644 --- a/src/cloudflare/resources/cache/cache.py +++ b/src/cloudflare/resources/cache/cache.py @@ -2,60 +2,15 @@ from __future__ import annotations +from typing import List, Type, Iterable, Optional, cast, overload + import httpx -from .cache_reserve import CacheReserveResource, AsyncCacheReserveResource - -from ..._compat import cached_property - -from .smart_tiered_cache import SmartTieredCacheResource, AsyncSmartTieredCacheResource - -from .variants import VariantsResource, AsyncVariantsResource - -from .regional_tiered_cache import RegionalTieredCacheResource, AsyncRegionalTieredCacheResource - -from typing import List, Optional, Iterable, Type - -from ...types.cache.cache_purge_response import CachePurgeResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from ..._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -from ...types.cache import cache_purge_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.cache import cache_purge_params -from .cache_reserve import ( - CacheReserveResource, - AsyncCacheReserveResource, - CacheReserveResourceWithRawResponse, - AsyncCacheReserveResourceWithRawResponse, - CacheReserveResourceWithStreamingResponse, - AsyncCacheReserveResourceWithStreamingResponse, -) -from .smart_tiered_cache import ( - SmartTieredCacheResource, - AsyncSmartTieredCacheResource, - SmartTieredCacheResourceWithRawResponse, - AsyncSmartTieredCacheResourceWithRawResponse, - SmartTieredCacheResourceWithStreamingResponse, - AsyncSmartTieredCacheResourceWithStreamingResponse, +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + required_args, + maybe_transform, + async_maybe_transform, ) from .variants import ( VariantsResource, @@ -65,6 +20,33 @@ from .variants import ( VariantsResourceWithStreamingResponse, AsyncVariantsResourceWithStreamingResponse, ) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ..._wrappers import ResultWrapper +from ...types.cache import cache_purge_params +from .cache_reserve import ( + CacheReserveResource, + AsyncCacheReserveResource, + CacheReserveResourceWithRawResponse, + AsyncCacheReserveResourceWithRawResponse, + CacheReserveResourceWithStreamingResponse, + AsyncCacheReserveResourceWithStreamingResponse, +) +from ..._base_client import make_request_options +from .smart_tiered_cache import ( + SmartTieredCacheResource, + AsyncSmartTieredCacheResource, + SmartTieredCacheResourceWithRawResponse, + AsyncSmartTieredCacheResourceWithRawResponse, + SmartTieredCacheResourceWithStreamingResponse, + AsyncSmartTieredCacheResourceWithStreamingResponse, +) from .regional_tiered_cache import ( RegionalTieredCacheResource, AsyncRegionalTieredCacheResource, @@ -73,8 +55,7 @@ from .regional_tiered_cache import ( RegionalTieredCacheResourceWithStreamingResponse, AsyncRegionalTieredCacheResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from ...types.cache.cache_purge_response import CachePurgeResponse __all__ = ["CacheResource", "AsyncCacheResource"] diff --git a/src/cloudflare/resources/cache/cache_reserve.py b/src/cloudflare/resources/cache/cache_reserve.py index 1a45f4985..f84bb1a08 100644 --- a/src/cloudflare/resources/cache/cache_reserve.py +++ b/src/cloudflare/resources/cache/cache_reserve.py @@ -2,52 +2,31 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.cache.cache_reserve_clear_response import CacheReserveClearResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from ...types.cache.cache_reserve_edit_response import CacheReserveEditResponse - -from typing_extensions import Literal - -from ...types.cache.cache_reserve_get_response import CacheReserveGetResponse - -from ...types.cache.cache_reserve_status_response import CacheReserveStatusResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.cache import cache_reserve_clear_params -from ...types.cache import cache_reserve_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...types.cache import cache_reserve_edit_params, cache_reserve_clear_params +from ..._base_client import make_request_options +from ...types.cache.cache_reserve_get_response import CacheReserveGetResponse +from ...types.cache.cache_reserve_edit_response import CacheReserveEditResponse +from ...types.cache.cache_reserve_clear_response import CacheReserveClearResponse +from ...types.cache.cache_reserve_status_response import CacheReserveStatusResponse __all__ = ["CacheReserveResource", "AsyncCacheReserveResource"] diff --git a/src/cloudflare/resources/cache/regional_tiered_cache.py b/src/cloudflare/resources/cache/regional_tiered_cache.py index fc6fea296..f38828fcc 100644 --- a/src/cloudflare/resources/cache/regional_tiered_cache.py +++ b/src/cloudflare/resources/cache/regional_tiered_cache.py @@ -2,43 +2,29 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.cache.regional_tiered_cache_edit_response import RegionalTieredCacheEditResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from typing_extensions import Literal - -from ...types.cache.regional_tiered_cache_get_response import RegionalTieredCacheGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper from ...types.cache import regional_tiered_cache_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._base_client import make_request_options +from ...types.cache.regional_tiered_cache_get_response import RegionalTieredCacheGetResponse +from ...types.cache.regional_tiered_cache_edit_response import RegionalTieredCacheEditResponse __all__ = ["RegionalTieredCacheResource", "AsyncRegionalTieredCacheResource"] diff --git a/src/cloudflare/resources/cache/smart_tiered_cache.py b/src/cloudflare/resources/cache/smart_tiered_cache.py index d3e1c36e4..d94237740 100644 --- a/src/cloudflare/resources/cache/smart_tiered_cache.py +++ b/src/cloudflare/resources/cache/smart_tiered_cache.py @@ -2,47 +2,30 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.cache.smart_tiered_cache_delete_response import SmartTieredCacheDeleteResponse - -from ..._wrappers import ResultWrapper - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from ...types.cache.smart_tiered_cache_edit_response import SmartTieredCacheEditResponse - -from ..._utils import maybe_transform, async_maybe_transform - -from typing_extensions import Literal - -from ...types.cache.smart_tiered_cache_get_response import SmartTieredCacheGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper from ...types.cache import smart_tiered_cache_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._base_client import make_request_options +from ...types.cache.smart_tiered_cache_get_response import SmartTieredCacheGetResponse +from ...types.cache.smart_tiered_cache_edit_response import SmartTieredCacheEditResponse +from ...types.cache.smart_tiered_cache_delete_response import SmartTieredCacheDeleteResponse __all__ = ["SmartTieredCacheResource", "AsyncSmartTieredCacheResource"] diff --git a/src/cloudflare/resources/cache/variants.py b/src/cloudflare/resources/cache/variants.py index 92e9f48d1..6d044ec5a 100644 --- a/src/cloudflare/resources/cache/variants.py +++ b/src/cloudflare/resources/cache/variants.py @@ -2,47 +2,29 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.cache.cache_variant import CacheVariant - -from ..._wrappers import ResultWrapper - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from ...types.cache.variant_edit_response import VariantEditResponse - -from ..._utils import maybe_transform, async_maybe_transform - -from ...types.cache.variant_get_response import VariantGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ..._wrappers import ResultWrapper from ...types.cache import variant_edit_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.cache import variant_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._base_client import make_request_options +from ...types.cache.cache_variant import CacheVariant +from ...types.cache.variant_get_response import VariantGetResponse +from ...types.cache.variant_edit_response import VariantEditResponse __all__ = ["VariantsResource", "AsyncVariantsResource"] diff --git a/src/cloudflare/resources/calls/__init__.py b/src/cloudflare/resources/calls/__init__.py index cb9700914..2d00a1bdd 100644 --- a/src/cloudflare/resources/calls/__init__.py +++ b/src/cloudflare/resources/calls/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .turn import TURNResource, AsyncTURNResource from .turn import ( + TURNResource, + AsyncTURNResource, TURNResourceWithRawResponse, AsyncTURNResourceWithRawResponse, TURNResourceWithStreamingResponse, AsyncTURNResourceWithStreamingResponse, ) -from .calls import CallsResource, AsyncCallsResource from .calls import ( + CallsResource, + AsyncCallsResource, CallsResourceWithRawResponse, AsyncCallsResourceWithRawResponse, CallsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/calls/calls.py b/src/cloudflare/resources/calls/calls.py index 2991c2c42..2e6a89aaf 100644 --- a/src/cloudflare/resources/calls/calls.py +++ b/src/cloudflare/resources/calls/calls.py @@ -2,44 +2,10 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .turn.turn import TURNResource, AsyncTURNResource - -from ..._compat import cached_property - -from ...types.calls.calls_app_with_secret import CallsAppWithSecret - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options, AsyncPaginator - -from ...types.calls.calls_app import CallsApp - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from ...types.calls.call_list_response import CallListResponse - -from ..._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.calls import call_create_params -from ...types.calls import call_update_params from .turn import ( TURNResource, AsyncTURNResource, @@ -48,14 +14,27 @@ from .turn import ( TURNResourceWithStreamingResponse, AsyncTURNResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) +from ..._compat import cached_property +from .turn.turn import TURNResource, AsyncTURNResource +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from ...types.calls import call_create_params, call_update_params +from ..._base_client import AsyncPaginator, make_request_options +from ...types.calls.calls_app import CallsApp +from ...types.calls.call_list_response import CallListResponse +from ...types.calls.calls_app_with_secret import CallsAppWithSecret __all__ = ["CallsResource", "AsyncCallsResource"] diff --git a/src/cloudflare/resources/calls/turn/__init__.py b/src/cloudflare/resources/calls/turn/__init__.py index 08e4511b2..4ad11d459 100644 --- a/src/cloudflare/resources/calls/turn/__init__.py +++ b/src/cloudflare/resources/calls/turn/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .keys import KeysResource, AsyncKeysResource from .keys import ( + KeysResource, + AsyncKeysResource, KeysResourceWithRawResponse, AsyncKeysResourceWithRawResponse, KeysResourceWithStreamingResponse, AsyncKeysResourceWithStreamingResponse, ) -from .turn import TURNResource, AsyncTURNResource from .turn import ( + TURNResource, + AsyncTURNResource, TURNResourceWithRawResponse, AsyncTURNResourceWithRawResponse, TURNResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/calls/turn/keys.py b/src/cloudflare/resources/calls/turn/keys.py index f63d611a3..bd7dd6712 100644 --- a/src/cloudflare/resources/calls/turn/keys.py +++ b/src/cloudflare/resources/calls/turn/keys.py @@ -2,52 +2,32 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.calls.turn.key_create_response import KeyCreateResponse - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from ...._wrappers import ResultWrapper - -from typing import Optional, Type - -from ....types.calls.turn.key_update_response import KeyUpdateResponse - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ....types.calls.turn.key_list_response import KeyListResponse - -from ....types.calls.turn.key_delete_response import KeyDeleteResponse - -from ....types.calls.turn.key_get_response import KeyGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.calls.turn import key_create_params -from ....types.calls.turn import key_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.calls.turn import key_create_params, key_update_params +from ....types.calls.turn.key_get_response import KeyGetResponse +from ....types.calls.turn.key_list_response import KeyListResponse +from ....types.calls.turn.key_create_response import KeyCreateResponse +from ....types.calls.turn.key_delete_response import KeyDeleteResponse +from ....types.calls.turn.key_update_response import KeyUpdateResponse __all__ = ["KeysResource", "AsyncKeysResource"] diff --git a/src/cloudflare/resources/calls/turn/turn.py b/src/cloudflare/resources/calls/turn/turn.py index 82d3df006..830fa7f66 100644 --- a/src/cloudflare/resources/calls/turn/turn.py +++ b/src/cloudflare/resources/calls/turn/turn.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .keys import KeysResource, AsyncKeysResource - -from ...._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params from .keys import ( KeysResource, AsyncKeysResource, @@ -21,6 +10,8 @@ from .keys import ( KeysResourceWithStreamingResponse, AsyncKeysResourceWithStreamingResponse, ) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource __all__ = ["TURNResource", "AsyncTURNResource"] diff --git a/src/cloudflare/resources/certificate_authorities/__init__.py b/src/cloudflare/resources/certificate_authorities/__init__.py index 0847805b7..8a27c3297 100644 --- a/src/cloudflare/resources/certificate_authorities/__init__.py +++ b/src/cloudflare/resources/certificate_authorities/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .hostname_associations import HostnameAssociationsResource, AsyncHostnameAssociationsResource from .hostname_associations import ( + HostnameAssociationsResource, + AsyncHostnameAssociationsResource, HostnameAssociationsResourceWithRawResponse, AsyncHostnameAssociationsResourceWithRawResponse, HostnameAssociationsResourceWithStreamingResponse, AsyncHostnameAssociationsResourceWithStreamingResponse, ) -from .certificate_authorities import CertificateAuthoritiesResource, AsyncCertificateAuthoritiesResource from .certificate_authorities import ( + CertificateAuthoritiesResource, + AsyncCertificateAuthoritiesResource, CertificateAuthoritiesResourceWithRawResponse, AsyncCertificateAuthoritiesResourceWithRawResponse, CertificateAuthoritiesResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/certificate_authorities/certificate_authorities.py b/src/cloudflare/resources/certificate_authorities/certificate_authorities.py index 8a3d8190a..f5ff3cbf4 100644 --- a/src/cloudflare/resources/certificate_authorities/certificate_authorities.py +++ b/src/cloudflare/resources/certificate_authorities/certificate_authorities.py @@ -2,17 +2,8 @@ from __future__ import annotations -from .hostname_associations import HostnameAssociationsResource, AsyncHostnameAssociationsResource - from ..._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .hostname_associations import ( HostnameAssociationsResource, AsyncHostnameAssociationsResource, diff --git a/src/cloudflare/resources/certificate_authorities/hostname_associations.py b/src/cloudflare/resources/certificate_authorities/hostname_associations.py index 590528e29..486b39770 100644 --- a/src/cloudflare/resources/certificate_authorities/hostname_associations.py +++ b/src/cloudflare/resources/certificate_authorities/hostname_associations.py @@ -2,44 +2,29 @@ from __future__ import annotations +from typing import List, Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.certificate_authorities.hostname_association_update_response import HostnameAssociationUpdateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, List - -from ..._base_client import make_request_options - -from ...types.certificate_authorities.hostname_association import HostnameAssociation - -from ...types.certificate_authorities.hostname_association_get_response import HostnameAssociationGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.certificate_authorities import hostname_association_update_params -from ...types.certificate_authorities import hostname_association_get_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.certificate_authorities import hostname_association_get_params, hostname_association_update_params +from ...types.certificate_authorities.hostname_association import HostnameAssociation +from ...types.certificate_authorities.hostname_association_get_response import HostnameAssociationGetResponse +from ...types.certificate_authorities.hostname_association_update_response import HostnameAssociationUpdateResponse __all__ = ["HostnameAssociationsResource", "AsyncHostnameAssociationsResource"] diff --git a/src/cloudflare/resources/challenges/__init__.py b/src/cloudflare/resources/challenges/__init__.py index 29eddd31a..92f2f7a07 100644 --- a/src/cloudflare/resources/challenges/__init__.py +++ b/src/cloudflare/resources/challenges/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .widgets import WidgetsResource, AsyncWidgetsResource from .widgets import ( + WidgetsResource, + AsyncWidgetsResource, WidgetsResourceWithRawResponse, AsyncWidgetsResourceWithRawResponse, WidgetsResourceWithStreamingResponse, AsyncWidgetsResourceWithStreamingResponse, ) -from .challenges import ChallengesResource, AsyncChallengesResource from .challenges import ( + ChallengesResource, + AsyncChallengesResource, ChallengesResourceWithRawResponse, AsyncChallengesResourceWithRawResponse, ChallengesResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/challenges/challenges.py b/src/cloudflare/resources/challenges/challenges.py index 8dc12e3ce..b64b5c4df 100644 --- a/src/cloudflare/resources/challenges/challenges.py +++ b/src/cloudflare/resources/challenges/challenges.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .widgets import WidgetsResource, AsyncWidgetsResource - -from ..._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .widgets import ( WidgetsResource, AsyncWidgetsResource, @@ -21,6 +10,8 @@ from .widgets import ( WidgetsResourceWithStreamingResponse, AsyncWidgetsResourceWithStreamingResponse, ) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource __all__ = ["ChallengesResource", "AsyncChallengesResource"] diff --git a/src/cloudflare/resources/challenges/widgets.py b/src/cloudflare/resources/challenges/widgets.py index d755ccb99..95cf49944 100644 --- a/src/cloudflare/resources/challenges/widgets.py +++ b/src/cloudflare/resources/challenges/widgets.py @@ -2,56 +2,36 @@ from __future__ import annotations +from typing import List, Type, Optional, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.challenges.widget import Widget - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, List - -from ..._base_client import make_request_options, AsyncPaginator - -from ...types.challenges.widget_domain import WidgetDomain - -from typing_extensions import Literal - -from ...types.challenges.widget_list_response import WidgetListResponse - -from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.challenges import widget_create_params -from ...types.challenges import widget_update_params -from ...types.challenges import widget_list_params -from ...types.challenges import widget_rotate_secret_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ..._base_client import AsyncPaginator, make_request_options +from ...types.challenges import ( + widget_list_params, + widget_create_params, + widget_update_params, + widget_rotate_secret_params, +) +from ...types.challenges.widget import Widget +from ...types.challenges.widget_domain import WidgetDomain +from ...types.challenges.widget_list_response import WidgetListResponse __all__ = ["WidgetsResource", "AsyncWidgetsResource"] diff --git a/src/cloudflare/resources/client_certificates.py b/src/cloudflare/resources/client_certificates.py index 72c639dca..238739406 100644 --- a/src/cloudflare/resources/client_certificates.py +++ b/src/cloudflare/resources/client_certificates.py @@ -2,48 +2,29 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .._utils import ( + maybe_transform, + async_maybe_transform, +) from .._compat import cached_property - -from ..types.client_certificates.client_certificate import ClientCertificate - -from .._wrappers import ResultWrapper - -from .._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from .._base_client import make_request_options, AsyncPaginator - -from ..pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from typing_extensions import Literal - +from .._resource import SyncAPIResource, AsyncAPIResource from .._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from .._resource import SyncAPIResource, AsyncAPIResource -from ..types import shared_params -from ..types.client_certificates import client_certificate_create_params -from ..types.client_certificates import client_certificate_list_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .._wrappers import ResultWrapper +from ..pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from .._base_client import AsyncPaginator, make_request_options +from ..types.client_certificates import client_certificate_list_params, client_certificate_create_params +from ..types.client_certificates.client_certificate import ClientCertificate __all__ = ["ClientCertificatesResource", "AsyncClientCertificatesResource"] diff --git a/src/cloudflare/resources/cloud_connector/__init__.py b/src/cloudflare/resources/cloud_connector/__init__.py index 066c4a13f..da4c14aec 100644 --- a/src/cloudflare/resources/cloud_connector/__init__.py +++ b/src/cloudflare/resources/cloud_connector/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .rules import RulesResource, AsyncRulesResource from .rules import ( + RulesResource, + AsyncRulesResource, RulesResourceWithRawResponse, AsyncRulesResourceWithRawResponse, RulesResourceWithStreamingResponse, AsyncRulesResourceWithStreamingResponse, ) -from .cloud_connector import CloudConnectorResource, AsyncCloudConnectorResource from .cloud_connector import ( + CloudConnectorResource, + AsyncCloudConnectorResource, CloudConnectorResourceWithRawResponse, AsyncCloudConnectorResourceWithRawResponse, CloudConnectorResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/cloud_connector/cloud_connector.py b/src/cloudflare/resources/cloud_connector/cloud_connector.py index fd2500993..f95e76646 100644 --- a/src/cloudflare/resources/cloud_connector/cloud_connector.py +++ b/src/cloudflare/resources/cloud_connector/cloud_connector.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .rules import RulesResource, AsyncRulesResource - -from ..._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .rules import ( RulesResource, AsyncRulesResource, @@ -21,6 +10,8 @@ from .rules import ( RulesResourceWithStreamingResponse, AsyncRulesResourceWithStreamingResponse, ) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource __all__ = ["CloudConnectorResource", "AsyncCloudConnectorResource"] diff --git a/src/cloudflare/resources/cloud_connector/rules.py b/src/cloudflare/resources/cloud_connector/rules.py index 4e5cbb331..5bcb96623 100644 --- a/src/cloudflare/resources/cloud_connector/rules.py +++ b/src/cloudflare/resources/cloud_connector/rules.py @@ -2,43 +2,29 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.cloud_connector.rule_update_response import RuleUpdateResponse - -from ..._wrappers import ResultWrapper - -from typing import Iterable, Optional, Type - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from ...types.cloud_connector.rule_list_response import RuleListResponse - -from ...pagination import SyncSinglePage, AsyncSinglePage - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options from ...types.cloud_connector import rule_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.cloud_connector import rule_update_params -from typing import cast -from typing import cast +from ...types.cloud_connector.rule_list_response import RuleListResponse +from ...types.cloud_connector.rule_update_response import RuleUpdateResponse __all__ = ["RulesResource", "AsyncRulesResource"] diff --git a/src/cloudflare/resources/cloudforce_one/__init__.py b/src/cloudflare/resources/cloudforce_one/__init__.py index 43a7952d3..328074fc4 100644 --- a/src/cloudflare/resources/cloudforce_one/__init__.py +++ b/src/cloudflare/resources/cloudforce_one/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .requests import RequestsResource, AsyncRequestsResource from .requests import ( + RequestsResource, + AsyncRequestsResource, RequestsResourceWithRawResponse, AsyncRequestsResourceWithRawResponse, RequestsResourceWithStreamingResponse, AsyncRequestsResourceWithStreamingResponse, ) -from .cloudforce_one import CloudforceOneResource, AsyncCloudforceOneResource from .cloudforce_one import ( + CloudforceOneResource, + AsyncCloudforceOneResource, CloudforceOneResourceWithRawResponse, AsyncCloudforceOneResourceWithRawResponse, CloudforceOneResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/cloudforce_one/cloudforce_one.py b/src/cloudflare/resources/cloudforce_one/cloudforce_one.py index fc828d13f..9c8929e4f 100644 --- a/src/cloudflare/resources/cloudforce_one/cloudforce_one.py +++ b/src/cloudflare/resources/cloudforce_one/cloudforce_one.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .requests.requests import RequestsResource, AsyncRequestsResource - -from ..._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .requests import ( RequestsResource, AsyncRequestsResource, @@ -21,6 +10,9 @@ from .requests import ( RequestsResourceWithStreamingResponse, AsyncRequestsResourceWithStreamingResponse, ) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from .requests.requests import RequestsResource, AsyncRequestsResource __all__ = ["CloudforceOneResource", "AsyncCloudforceOneResource"] diff --git a/src/cloudflare/resources/cloudforce_one/requests/__init__.py b/src/cloudflare/resources/cloudforce_one/requests/__init__.py index 639f04cb7..16dfad6eb 100644 --- a/src/cloudflare/resources/cloudforce_one/requests/__init__.py +++ b/src/cloudflare/resources/cloudforce_one/requests/__init__.py @@ -1,21 +1,24 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .message import MessageResource, AsyncMessageResource from .message import ( + MessageResource, + AsyncMessageResource, MessageResourceWithRawResponse, AsyncMessageResourceWithRawResponse, MessageResourceWithStreamingResponse, AsyncMessageResourceWithStreamingResponse, ) -from .priority import PriorityResource, AsyncPriorityResource from .priority import ( + PriorityResource, + AsyncPriorityResource, PriorityResourceWithRawResponse, AsyncPriorityResourceWithRawResponse, PriorityResourceWithStreamingResponse, AsyncPriorityResourceWithStreamingResponse, ) -from .requests import RequestsResource, AsyncRequestsResource from .requests import ( + RequestsResource, + AsyncRequestsResource, RequestsResourceWithRawResponse, AsyncRequestsResourceWithRawResponse, RequestsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/cloudforce_one/requests/message.py b/src/cloudflare/resources/cloudforce_one/requests/message.py index 1e002e39a..843882611 100644 --- a/src/cloudflare/resources/cloudforce_one/requests/message.py +++ b/src/cloudflare/resources/cloudforce_one/requests/message.py @@ -2,51 +2,31 @@ from __future__ import annotations +from typing import Type, Union, Optional, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.cloudforce_one.requests.message import Message - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Union - -from ...._base_client import make_request_options - -from typing_extensions import Literal - -from ....types.cloudforce_one.requests.message_delete_response import MessageDeleteResponse - -from ....types.cloudforce_one.requests.message_get_response import MessageGetResponse - -from datetime import datetime - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.cloudforce_one.requests import message_create_params -from ....types.cloudforce_one.requests import message_update_params -from ....types.cloudforce_one.requests import message_get_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.cloudforce_one.requests import message_get_params, message_create_params, message_update_params +from ....types.cloudforce_one.requests.message import Message +from ....types.cloudforce_one.requests.message_get_response import MessageGetResponse +from ....types.cloudforce_one.requests.message_delete_response import MessageDeleteResponse __all__ = ["MessageResource", "AsyncMessageResource"] diff --git a/src/cloudflare/resources/cloudforce_one/requests/priority.py b/src/cloudflare/resources/cloudforce_one/requests/priority.py index 40a4b8388..956da5319 100644 --- a/src/cloudflare/resources/cloudforce_one/requests/priority.py +++ b/src/cloudflare/resources/cloudforce_one/requests/priority.py @@ -2,54 +2,32 @@ from __future__ import annotations +from typing import List, Type, Optional, cast +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.cloudforce_one.requests.priority import Priority - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, List - -from ...._base_client import make_request_options - -from ....types.cloudforce_one.requests.label import Label - -from typing_extensions import Literal - -from ....types.cloudforce_one.item import Item - -from ....types.cloudforce_one.requests.priority_delete_response import PriorityDeleteResponse - -from ....types.cloudforce_one.quota import Quota - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.cloudforce_one.requests import priority_create_params -from ....types.cloudforce_one.requests import priority_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.cloudforce_one.item import Item +from ....types.cloudforce_one.quota import Quota +from ....types.cloudforce_one.requests import priority_create_params, priority_update_params +from ....types.cloudforce_one.requests.label import Label +from ....types.cloudforce_one.requests.priority import Priority +from ....types.cloudforce_one.requests.priority_delete_response import PriorityDeleteResponse __all__ = ["PriorityResource", "AsyncPriorityResource"] diff --git a/src/cloudflare/resources/cloudforce_one/requests/requests.py b/src/cloudflare/resources/cloudforce_one/requests/requests.py index de32577f5..8d16022f5 100644 --- a/src/cloudflare/resources/cloudforce_one/requests/requests.py +++ b/src/cloudflare/resources/cloudforce_one/requests/requests.py @@ -2,57 +2,12 @@ from __future__ import annotations +from typing import Type, Union, Optional, cast +from datetime import datetime +from typing_extensions import Literal + import httpx -from .message import MessageResource, AsyncMessageResource - -from ...._compat import cached_property - -from .priority import PriorityResource, AsyncPriorityResource - -from ....types.cloudforce_one.item import Item - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Union - -from ...._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from ....types.cloudforce_one.list_item import ListItem - -from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from datetime import datetime - -from ....types.cloudforce_one.request_delete_response import RequestDeleteResponse - -from ....types.cloudforce_one.request_constants import RequestConstants - -from ....types.cloudforce_one.quota import Quota - -from ....types.cloudforce_one.request_types import RequestTypes - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.cloudforce_one import request_create_params -from ....types.cloudforce_one import request_update_params -from ....types.cloudforce_one import request_list_params from .message import ( MessageResource, AsyncMessageResource, @@ -69,18 +24,29 @@ from .priority import ( PriorityResourceWithStreamingResponse, AsyncPriorityResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ...._base_client import AsyncPaginator, make_request_options +from ....types.cloudforce_one import request_list_params, request_create_params, request_update_params +from ....types.cloudforce_one.item import Item +from ....types.cloudforce_one.quota import Quota +from ....types.cloudforce_one.list_item import ListItem +from ....types.cloudforce_one.request_types import RequestTypes +from ....types.cloudforce_one.request_constants import RequestConstants +from ....types.cloudforce_one.request_delete_response import RequestDeleteResponse __all__ = ["RequestsResource", "AsyncRequestsResource"] diff --git a/src/cloudflare/resources/custom_certificates/__init__.py b/src/cloudflare/resources/custom_certificates/__init__.py index 5d35156fb..42a32ed70 100644 --- a/src/cloudflare/resources/custom_certificates/__init__.py +++ b/src/cloudflare/resources/custom_certificates/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .prioritize import PrioritizeResource, AsyncPrioritizeResource from .prioritize import ( + PrioritizeResource, + AsyncPrioritizeResource, PrioritizeResourceWithRawResponse, AsyncPrioritizeResourceWithRawResponse, PrioritizeResourceWithStreamingResponse, AsyncPrioritizeResourceWithStreamingResponse, ) -from .custom_certificates import CustomCertificatesResource, AsyncCustomCertificatesResource from .custom_certificates import ( + CustomCertificatesResource, + AsyncCustomCertificatesResource, CustomCertificatesResourceWithRawResponse, AsyncCustomCertificatesResourceWithRawResponse, CustomCertificatesResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/custom_certificates/custom_certificates.py b/src/cloudflare/resources/custom_certificates/custom_certificates.py index 4171afe0b..9ef6067f4 100644 --- a/src/cloudflare/resources/custom_certificates/custom_certificates.py +++ b/src/cloudflare/resources/custom_certificates/custom_certificates.py @@ -2,53 +2,17 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx -from .prioritize import PrioritizeResource, AsyncPrioritizeResource - -from ..._compat import cached_property - -from ...types.custom_certificates.custom_certificate import CustomCertificate - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options, AsyncPaginator - -from ...types.custom_hostnames.bundle_method import BundleMethod - -from ...types.custom_certificates.geo_restrictions_param import GeoRestrictionsParam - -from typing_extensions import Literal - -from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ...types.custom_certificates.custom_certificate_delete_response import CustomCertificateDeleteResponse - -from ..._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.custom_certificates import custom_certificate_create_params -from ...types.custom_certificates import custom_certificate_list_params -from ...types.custom_certificates import custom_certificate_edit_params -from ...types.custom_hostnames import BundleMethod -from ...types.custom_certificates import GeoRestrictions -from ...types.custom_hostnames import BundleMethod -from ...types.custom_certificates import GeoRestrictions +from ..._compat import cached_property from .prioritize import ( PrioritizeResource, AsyncPrioritizeResource, @@ -57,14 +21,26 @@ from .prioritize import ( PrioritizeResourceWithStreamingResponse, AsyncPrioritizeResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ..._wrappers import ResultWrapper +from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ..._base_client import AsyncPaginator, make_request_options +from ...types.custom_hostnames import BundleMethod +from ...types.custom_certificates import ( + custom_certificate_edit_params, + custom_certificate_list_params, + custom_certificate_create_params, +) +from ...types.custom_hostnames.bundle_method import BundleMethod +from ...types.custom_certificates.custom_certificate import CustomCertificate +from ...types.custom_certificates.geo_restrictions_param import GeoRestrictionsParam +from ...types.custom_certificates.custom_certificate_delete_response import CustomCertificateDeleteResponse __all__ = ["CustomCertificatesResource", "AsyncCustomCertificatesResource"] diff --git a/src/cloudflare/resources/custom_certificates/prioritize.py b/src/cloudflare/resources/custom_certificates/prioritize.py index 63d7b65c3..c16c625fb 100644 --- a/src/cloudflare/resources/custom_certificates/prioritize.py +++ b/src/cloudflare/resources/custom_certificates/prioritize.py @@ -2,39 +2,27 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.custom_certificates.prioritize_update_response import PrioritizeUpdateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Iterable - -from ..._base_client import make_request_options - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.custom_certificates import prioritize_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.custom_certificates import prioritize_update_params -from typing import cast -from typing import cast +from ...types.custom_certificates.prioritize_update_response import PrioritizeUpdateResponse __all__ = ["PrioritizeResource", "AsyncPrioritizeResource"] diff --git a/src/cloudflare/resources/custom_hostnames/__init__.py b/src/cloudflare/resources/custom_hostnames/__init__.py index 44e196879..333e88548 100644 --- a/src/cloudflare/resources/custom_hostnames/__init__.py +++ b/src/cloudflare/resources/custom_hostnames/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .fallback_origin import FallbackOriginResource, AsyncFallbackOriginResource from .fallback_origin import ( + FallbackOriginResource, + AsyncFallbackOriginResource, FallbackOriginResourceWithRawResponse, AsyncFallbackOriginResourceWithRawResponse, FallbackOriginResourceWithStreamingResponse, AsyncFallbackOriginResourceWithStreamingResponse, ) -from .custom_hostnames import CustomHostnamesResource, AsyncCustomHostnamesResource from .custom_hostnames import ( + CustomHostnamesResource, + AsyncCustomHostnamesResource, CustomHostnamesResourceWithRawResponse, AsyncCustomHostnamesResourceWithRawResponse, CustomHostnamesResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/custom_hostnames/custom_hostnames.py b/src/cloudflare/resources/custom_hostnames/custom_hostnames.py index 1d48da192..64f36eb8d 100644 --- a/src/cloudflare/resources/custom_hostnames/custom_hostnames.py +++ b/src/cloudflare/resources/custom_hostnames/custom_hostnames.py @@ -2,53 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx -from .fallback_origin import FallbackOriginResource, AsyncFallbackOriginResource - +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.custom_hostnames.custom_hostname_create_response import CustomHostnameCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options, AsyncPaginator - -from ...types.custom_hostnames.custom_hostname_list_response import CustomHostnameListResponse - -from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from typing_extensions import Literal - -from ...types.custom_hostnames.custom_hostname_delete_response import CustomHostnameDeleteResponse - -from ...types.custom_hostnames.custom_hostname_edit_response import CustomHostnameEditResponse - -from ...types.custom_hostnames.custom_hostname_get_response import CustomHostnameGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ...types.custom_hostnames import custom_hostname_create_params, custom_hostname_edit_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.custom_hostnames import custom_hostname_create_params -from ...types.custom_hostnames import custom_hostname_list_params -from ...types.custom_hostnames import custom_hostname_edit_params +from ..._wrappers import ResultWrapper +from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ..._base_client import AsyncPaginator, make_request_options from .fallback_origin import ( FallbackOriginResource, AsyncFallbackOriginResource, @@ -57,12 +31,16 @@ from .fallback_origin import ( FallbackOriginResourceWithStreamingResponse, AsyncFallbackOriginResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...types.custom_hostnames import ( + custom_hostname_edit_params, + custom_hostname_list_params, + custom_hostname_create_params, +) +from ...types.custom_hostnames.custom_hostname_get_response import CustomHostnameGetResponse +from ...types.custom_hostnames.custom_hostname_edit_response import CustomHostnameEditResponse +from ...types.custom_hostnames.custom_hostname_list_response import CustomHostnameListResponse +from ...types.custom_hostnames.custom_hostname_create_response import CustomHostnameCreateResponse +from ...types.custom_hostnames.custom_hostname_delete_response import CustomHostnameDeleteResponse __all__ = ["CustomHostnamesResource", "AsyncCustomHostnamesResource"] diff --git a/src/cloudflare/resources/custom_hostnames/fallback_origin.py b/src/cloudflare/resources/custom_hostnames/fallback_origin.py index 525c09cbd..216abe383 100644 --- a/src/cloudflare/resources/custom_hostnames/fallback_origin.py +++ b/src/cloudflare/resources/custom_hostnames/fallback_origin.py @@ -2,45 +2,29 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.custom_hostnames.fallback_origin_update_response import FallbackOriginUpdateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from ...types.custom_hostnames.fallback_origin_delete_response import FallbackOriginDeleteResponse - -from ...types.custom_hostnames.fallback_origin_get_response import FallbackOriginGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.custom_hostnames import fallback_origin_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...types.custom_hostnames.fallback_origin_get_response import FallbackOriginGetResponse +from ...types.custom_hostnames.fallback_origin_delete_response import FallbackOriginDeleteResponse +from ...types.custom_hostnames.fallback_origin_update_response import FallbackOriginUpdateResponse __all__ = ["FallbackOriginResource", "AsyncFallbackOriginResource"] diff --git a/src/cloudflare/resources/custom_nameservers.py b/src/cloudflare/resources/custom_nameservers.py index fe4cb9de6..29c581ade 100644 --- a/src/cloudflare/resources/custom_nameservers.py +++ b/src/cloudflare/resources/custom_nameservers.py @@ -2,49 +2,30 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .._utils import ( + maybe_transform, + async_maybe_transform, +) from .._compat import cached_property - -from ..types.custom_nameservers.custom_nameserver import CustomNameserver - -from .._wrappers import ResultWrapper - -from .._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from .._base_client import make_request_options - -from ..types.custom_nameservers.custom_nameserver_delete_response import CustomNameserverDeleteResponse - -from ..types.custom_nameservers.custom_nameserver_availabilty_response import CustomNameserverAvailabiltyResponse - -from ..types.custom_nameservers.custom_nameserver_get_response import CustomNameserverGetResponse - +from .._resource import SyncAPIResource, AsyncAPIResource from .._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from .._resource import SyncAPIResource, AsyncAPIResource -from ..types import shared_params +from .._wrappers import ResultWrapper +from .._base_client import make_request_options from ..types.custom_nameservers import custom_nameserver_create_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..types.custom_nameservers.custom_nameserver import CustomNameserver +from ..types.custom_nameservers.custom_nameserver_get_response import CustomNameserverGetResponse +from ..types.custom_nameservers.custom_nameserver_delete_response import CustomNameserverDeleteResponse +from ..types.custom_nameservers.custom_nameserver_availabilty_response import CustomNameserverAvailabiltyResponse __all__ = ["CustomNameserversResource", "AsyncCustomNameserversResource"] diff --git a/src/cloudflare/resources/d1/__init__.py b/src/cloudflare/resources/d1/__init__.py index c879b50f9..f23835240 100644 --- a/src/cloudflare/resources/d1/__init__.py +++ b/src/cloudflare/resources/d1/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .database import DatabaseResource, AsyncDatabaseResource -from .database import ( - DatabaseResourceWithRawResponse, - AsyncDatabaseResourceWithRawResponse, - DatabaseResourceWithStreamingResponse, - AsyncDatabaseResourceWithStreamingResponse, -) -from .d1 import D1Resource, AsyncD1Resource from .d1 import ( + D1Resource, + AsyncD1Resource, D1ResourceWithRawResponse, AsyncD1ResourceWithRawResponse, D1ResourceWithStreamingResponse, AsyncD1ResourceWithStreamingResponse, ) +from .database import ( + DatabaseResource, + AsyncDatabaseResource, + DatabaseResourceWithRawResponse, + AsyncDatabaseResourceWithRawResponse, + DatabaseResourceWithStreamingResponse, + AsyncDatabaseResourceWithStreamingResponse, +) __all__ = [ "DatabaseResource", diff --git a/src/cloudflare/resources/d1/d1.py b/src/cloudflare/resources/d1/d1.py index 641c9c36e..713183e81 100644 --- a/src/cloudflare/resources/d1/d1.py +++ b/src/cloudflare/resources/d1/d1.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .database import DatabaseResource, AsyncDatabaseResource - -from ..._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .database import ( DatabaseResource, AsyncDatabaseResource, @@ -21,6 +10,8 @@ from .database import ( DatabaseResourceWithStreamingResponse, AsyncDatabaseResourceWithStreamingResponse, ) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource __all__ = ["D1Resource", "AsyncD1Resource"] diff --git a/src/cloudflare/resources/d1/database.py b/src/cloudflare/resources/d1/database.py index a0001c933..d4e8484eb 100644 --- a/src/cloudflare/resources/d1/database.py +++ b/src/cloudflare/resources/d1/database.py @@ -2,70 +2,42 @@ from __future__ import annotations +from typing import List, Type, Optional, cast, overload +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + required_args, + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.d1.d1 import D1 - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from typing import Type, Optional, List - -from typing_extensions import Literal - -from ...types.d1.database_list_response import DatabaseListResponse - -from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ...types.d1.database_export_response import DatabaseExportResponse - -from ...types.d1.database_import_response import DatabaseImportResponse - -from ...types.d1.database_query_response import DatabaseQueryResponse - -from ...types.d1.database_raw_response import DatabaseRawResponse - +from ...types.d1 import ( + database_raw_params, + database_list_params, + database_query_params, + database_create_params, + database_export_params, + database_import_params, +) +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ...types.d1 import database_export_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.d1 import database_create_params -from ...types.d1 import database_list_params -from ...types.d1 import database_export_params -from ...types.d1 import database_import_params -from ...types.d1 import database_query_params -from ...types.d1 import database_raw_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ...types.d1.d1 import D1 +from ..._base_client import AsyncPaginator, make_request_options +from ...types.d1.database_raw_response import DatabaseRawResponse +from ...types.d1.database_list_response import DatabaseListResponse +from ...types.d1.database_query_response import DatabaseQueryResponse +from ...types.d1.database_export_response import DatabaseExportResponse +from ...types.d1.database_import_response import DatabaseImportResponse __all__ = ["DatabaseResource", "AsyncDatabaseResource"] diff --git a/src/cloudflare/resources/dcv_delegation.py b/src/cloudflare/resources/dcv_delegation.py index a2beb06a4..127c13a15 100644 --- a/src/cloudflare/resources/dcv_delegation.py +++ b/src/cloudflare/resources/dcv_delegation.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven from .._compat import cached_property - -from ..types.dcv_delegation.dcv_delegation_uuid import DCVDelegationUUID - -from .._wrappers import ResultWrapper - -from typing import Optional, Type - -from .._base_client import make_request_options - +from .._resource import SyncAPIResource, AsyncAPIResource from .._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from .._resource import SyncAPIResource, AsyncAPIResource -from ..types import shared_params -from typing import cast -from typing import cast +from .._wrappers import ResultWrapper +from .._base_client import make_request_options +from ..types.dcv_delegation.dcv_delegation_uuid import DCVDelegationUUID __all__ = ["DCVDelegationResource", "AsyncDCVDelegationResource"] diff --git a/src/cloudflare/resources/diagnostics/__init__.py b/src/cloudflare/resources/diagnostics/__init__.py index 41a795606..4ccc6dce7 100644 --- a/src/cloudflare/resources/diagnostics/__init__.py +++ b/src/cloudflare/resources/diagnostics/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .traceroutes import TraceroutesResource, AsyncTraceroutesResource -from .traceroutes import ( - TraceroutesResourceWithRawResponse, - AsyncTraceroutesResourceWithRawResponse, - TraceroutesResourceWithStreamingResponse, - AsyncTraceroutesResourceWithStreamingResponse, -) -from .diagnostics import DiagnosticsResource, AsyncDiagnosticsResource from .diagnostics import ( + DiagnosticsResource, + AsyncDiagnosticsResource, DiagnosticsResourceWithRawResponse, AsyncDiagnosticsResourceWithRawResponse, DiagnosticsResourceWithStreamingResponse, AsyncDiagnosticsResourceWithStreamingResponse, ) +from .traceroutes import ( + TraceroutesResource, + AsyncTraceroutesResource, + TraceroutesResourceWithRawResponse, + AsyncTraceroutesResourceWithRawResponse, + TraceroutesResourceWithStreamingResponse, + AsyncTraceroutesResourceWithStreamingResponse, +) __all__ = [ "TraceroutesResource", diff --git a/src/cloudflare/resources/diagnostics/diagnostics.py b/src/cloudflare/resources/diagnostics/diagnostics.py index eb1403c92..629321688 100644 --- a/src/cloudflare/resources/diagnostics/diagnostics.py +++ b/src/cloudflare/resources/diagnostics/diagnostics.py @@ -2,17 +2,8 @@ from __future__ import annotations -from .traceroutes import TraceroutesResource, AsyncTraceroutesResource - from ..._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .traceroutes import ( TraceroutesResource, AsyncTraceroutesResource, diff --git a/src/cloudflare/resources/diagnostics/traceroutes.py b/src/cloudflare/resources/diagnostics/traceroutes.py index 1c0e27444..617413579 100644 --- a/src/cloudflare/resources/diagnostics/traceroutes.py +++ b/src/cloudflare/resources/diagnostics/traceroutes.py @@ -2,39 +2,27 @@ from __future__ import annotations +from typing import List, Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.diagnostics.traceroute_create_response import TracerouteCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, List - -from ..._base_client import make_request_options - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.diagnostics import traceroute_create_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.diagnostics import traceroute_create_params -from typing import cast -from typing import cast +from ...types.diagnostics.traceroute_create_response import TracerouteCreateResponse __all__ = ["TraceroutesResource", "AsyncTraceroutesResource"] diff --git a/src/cloudflare/resources/dns/__init__.py b/src/cloudflare/resources/dns/__init__.py index 3109f2cc0..7e394f001 100644 --- a/src/cloudflare/resources/dns/__init__.py +++ b/src/cloudflare/resources/dns/__init__.py @@ -1,39 +1,44 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .records import RecordsResource, AsyncRecordsResource +from .dns import ( + DNSResource, + AsyncDNSResource, + DNSResourceWithRawResponse, + AsyncDNSResourceWithRawResponse, + DNSResourceWithStreamingResponse, + AsyncDNSResourceWithStreamingResponse, +) from .records import ( + RecordsResource, + AsyncRecordsResource, RecordsResourceWithRawResponse, AsyncRecordsResourceWithRawResponse, RecordsResourceWithStreamingResponse, AsyncRecordsResourceWithStreamingResponse, ) -from .settings import SettingsResource, AsyncSettingsResource -from .settings import ( - SettingsResourceWithRawResponse, - AsyncSettingsResourceWithRawResponse, - SettingsResourceWithStreamingResponse, - AsyncSettingsResourceWithStreamingResponse, -) -from .analytics import AnalyticsResource, AsyncAnalyticsResource -from .analytics import ( - AnalyticsResourceWithRawResponse, - AsyncAnalyticsResourceWithRawResponse, - AnalyticsResourceWithStreamingResponse, - AsyncAnalyticsResourceWithStreamingResponse, -) -from .firewall import FirewallResource, AsyncFirewallResource from .firewall import ( + FirewallResource, + AsyncFirewallResource, FirewallResourceWithRawResponse, AsyncFirewallResourceWithRawResponse, FirewallResourceWithStreamingResponse, AsyncFirewallResourceWithStreamingResponse, ) -from .dns import DNSResource, AsyncDNSResource -from .dns import ( - DNSResourceWithRawResponse, - AsyncDNSResourceWithRawResponse, - DNSResourceWithStreamingResponse, - AsyncDNSResourceWithStreamingResponse, +from .settings import ( + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, +) +from .analytics import ( + AnalyticsResource, + AsyncAnalyticsResource, + AnalyticsResourceWithRawResponse, + AsyncAnalyticsResourceWithRawResponse, + AnalyticsResourceWithStreamingResponse, + AsyncAnalyticsResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/dns/analytics/__init__.py b/src/cloudflare/resources/dns/analytics/__init__.py index 725a18c21..05639f9f7 100644 --- a/src/cloudflare/resources/dns/analytics/__init__.py +++ b/src/cloudflare/resources/dns/analytics/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .reports import ReportsResource, AsyncReportsResource from .reports import ( + ReportsResource, + AsyncReportsResource, ReportsResourceWithRawResponse, AsyncReportsResourceWithRawResponse, ReportsResourceWithStreamingResponse, AsyncReportsResourceWithStreamingResponse, ) -from .analytics import AnalyticsResource, AsyncAnalyticsResource from .analytics import ( + AnalyticsResource, + AsyncAnalyticsResource, AnalyticsResourceWithRawResponse, AsyncAnalyticsResourceWithRawResponse, AnalyticsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/dns/analytics/analytics.py b/src/cloudflare/resources/dns/analytics/analytics.py index c655b1af7..c08523958 100644 --- a/src/cloudflare/resources/dns/analytics/analytics.py +++ b/src/cloudflare/resources/dns/analytics/analytics.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .reports.reports import ReportsResource, AsyncReportsResource - -from ...._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params from .reports import ( ReportsResource, AsyncReportsResource, @@ -21,6 +10,9 @@ from .reports import ( ReportsResourceWithStreamingResponse, AsyncReportsResourceWithStreamingResponse, ) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from .reports.reports import ReportsResource, AsyncReportsResource __all__ = ["AnalyticsResource", "AsyncAnalyticsResource"] diff --git a/src/cloudflare/resources/dns/analytics/reports/__init__.py b/src/cloudflare/resources/dns/analytics/reports/__init__.py index 346413819..998dba42f 100644 --- a/src/cloudflare/resources/dns/analytics/reports/__init__.py +++ b/src/cloudflare/resources/dns/analytics/reports/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .bytimes import BytimesResource, AsyncBytimesResource from .bytimes import ( + BytimesResource, + AsyncBytimesResource, BytimesResourceWithRawResponse, AsyncBytimesResourceWithRawResponse, BytimesResourceWithStreamingResponse, AsyncBytimesResourceWithStreamingResponse, ) -from .reports import ReportsResource, AsyncReportsResource from .reports import ( + ReportsResource, + AsyncReportsResource, ReportsResourceWithRawResponse, AsyncReportsResourceWithRawResponse, ReportsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/dns/analytics/reports/bytimes.py b/src/cloudflare/resources/dns/analytics/reports/bytimes.py index ce06056e4..2832c5b67 100644 --- a/src/cloudflare/resources/dns/analytics/reports/bytimes.py +++ b/src/cloudflare/resources/dns/analytics/reports/bytimes.py @@ -2,42 +2,30 @@ from __future__ import annotations -import httpx - -from ....._compat import cached_property - -from .....types.dns.analytics.reports.by_time import ByTime - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Union - -from ....._base_client import make_request_options - +from typing import Type, Union, Optional, cast from datetime import datetime -from .....types.dns.firewall.delta import Delta +import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.dns.analytics.reports import bytime_get_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.dns.firewall import Delta -from typing import cast -from typing import cast +from .....types.dns.firewall.delta import Delta +from .....types.dns.analytics.reports import bytime_get_params +from .....types.dns.analytics.reports.by_time import ByTime __all__ = ["BytimesResource", "AsyncBytimesResource"] diff --git a/src/cloudflare/resources/dns/analytics/reports/reports.py b/src/cloudflare/resources/dns/analytics/reports/reports.py index d769451e1..6faf0eead 100644 --- a/src/cloudflare/resources/dns/analytics/reports/reports.py +++ b/src/cloudflare/resources/dns/analytics/reports/reports.py @@ -2,39 +2,11 @@ from __future__ import annotations -import httpx - -from .bytimes import BytimesResource, AsyncBytimesResource - -from ....._compat import cached_property - -from .....types.dns.analytics.report import Report - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Union - -from ....._base_client import make_request_options - +from typing import Type, Union, Optional, cast from datetime import datetime -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) +import httpx -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.dns.analytics import report_get_params from .bytimes import ( BytimesResource, AsyncBytimesResource, @@ -43,8 +15,23 @@ from .bytimes import ( BytimesResourceWithStreamingResponse, AsyncBytimesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.dns.analytics import report_get_params +from .....types.dns.analytics.report import Report __all__ = ["ReportsResource", "AsyncReportsResource"] diff --git a/src/cloudflare/resources/dns/dns.py b/src/cloudflare/resources/dns/dns.py index 6cb024b4f..7f758f9e9 100644 --- a/src/cloudflare/resources/dns/dns.py +++ b/src/cloudflare/resources/dns/dns.py @@ -2,23 +2,6 @@ from __future__ import annotations -from .records import RecordsResource, AsyncRecordsResource - -from ..._compat import cached_property - -from .settings import SettingsResource, AsyncSettingsResource - -from .analytics.analytics import AnalyticsResource, AsyncAnalyticsResource - -from .firewall.firewall import FirewallResource, AsyncFirewallResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .records import ( RecordsResource, AsyncRecordsResource, @@ -27,22 +10,6 @@ from .records import ( RecordsResourceWithStreamingResponse, AsyncRecordsResourceWithStreamingResponse, ) -from .settings import ( - SettingsResource, - AsyncSettingsResource, - SettingsResourceWithRawResponse, - AsyncSettingsResourceWithRawResponse, - SettingsResourceWithStreamingResponse, - AsyncSettingsResourceWithStreamingResponse, -) -from .analytics import ( - AnalyticsResource, - AsyncAnalyticsResource, - AnalyticsResourceWithRawResponse, - AsyncAnalyticsResourceWithRawResponse, - AnalyticsResourceWithStreamingResponse, - AsyncAnalyticsResourceWithStreamingResponse, -) from .firewall import ( FirewallResource, AsyncFirewallResource, @@ -51,6 +18,26 @@ from .firewall import ( FirewallResourceWithStreamingResponse, AsyncFirewallResourceWithStreamingResponse, ) +from .settings import ( + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, +) +from ..._compat import cached_property +from .analytics import ( + AnalyticsResource, + AsyncAnalyticsResource, + AnalyticsResourceWithRawResponse, + AsyncAnalyticsResourceWithRawResponse, + AnalyticsResourceWithStreamingResponse, + AsyncAnalyticsResourceWithStreamingResponse, +) +from ..._resource import SyncAPIResource, AsyncAPIResource +from .firewall.firewall import FirewallResource, AsyncFirewallResource +from .analytics.analytics import AnalyticsResource, AsyncAnalyticsResource __all__ = ["DNSResource", "AsyncDNSResource"] diff --git a/src/cloudflare/resources/dns/firewall/__init__.py b/src/cloudflare/resources/dns/firewall/__init__.py index 5dbf854ee..0d9d0b6aa 100644 --- a/src/cloudflare/resources/dns/firewall/__init__.py +++ b/src/cloudflare/resources/dns/firewall/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .analytics import AnalyticsResource, AsyncAnalyticsResource -from .analytics import ( - AnalyticsResourceWithRawResponse, - AsyncAnalyticsResourceWithRawResponse, - AnalyticsResourceWithStreamingResponse, - AsyncAnalyticsResourceWithStreamingResponse, -) -from .firewall import FirewallResource, AsyncFirewallResource from .firewall import ( + FirewallResource, + AsyncFirewallResource, FirewallResourceWithRawResponse, AsyncFirewallResourceWithRawResponse, FirewallResourceWithStreamingResponse, AsyncFirewallResourceWithStreamingResponse, ) +from .analytics import ( + AnalyticsResource, + AsyncAnalyticsResource, + AnalyticsResourceWithRawResponse, + AsyncAnalyticsResourceWithRawResponse, + AnalyticsResourceWithStreamingResponse, + AsyncAnalyticsResourceWithStreamingResponse, +) __all__ = [ "AnalyticsResource", diff --git a/src/cloudflare/resources/dns/firewall/analytics/__init__.py b/src/cloudflare/resources/dns/firewall/analytics/__init__.py index 725a18c21..05639f9f7 100644 --- a/src/cloudflare/resources/dns/firewall/analytics/__init__.py +++ b/src/cloudflare/resources/dns/firewall/analytics/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .reports import ReportsResource, AsyncReportsResource from .reports import ( + ReportsResource, + AsyncReportsResource, ReportsResourceWithRawResponse, AsyncReportsResourceWithRawResponse, ReportsResourceWithStreamingResponse, AsyncReportsResourceWithStreamingResponse, ) -from .analytics import AnalyticsResource, AsyncAnalyticsResource from .analytics import ( + AnalyticsResource, + AsyncAnalyticsResource, AnalyticsResourceWithRawResponse, AsyncAnalyticsResourceWithRawResponse, AnalyticsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/dns/firewall/analytics/analytics.py b/src/cloudflare/resources/dns/firewall/analytics/analytics.py index 2f61874e4..14e9b86b1 100644 --- a/src/cloudflare/resources/dns/firewall/analytics/analytics.py +++ b/src/cloudflare/resources/dns/firewall/analytics/analytics.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .reports.reports import ReportsResource, AsyncReportsResource - -from ....._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params from .reports import ( ReportsResource, AsyncReportsResource, @@ -21,6 +10,9 @@ from .reports import ( ReportsResourceWithStreamingResponse, AsyncReportsResourceWithStreamingResponse, ) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource +from .reports.reports import ReportsResource, AsyncReportsResource __all__ = ["AnalyticsResource", "AsyncAnalyticsResource"] diff --git a/src/cloudflare/resources/dns/firewall/analytics/reports/__init__.py b/src/cloudflare/resources/dns/firewall/analytics/reports/__init__.py index 346413819..998dba42f 100644 --- a/src/cloudflare/resources/dns/firewall/analytics/reports/__init__.py +++ b/src/cloudflare/resources/dns/firewall/analytics/reports/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .bytimes import BytimesResource, AsyncBytimesResource from .bytimes import ( + BytimesResource, + AsyncBytimesResource, BytimesResourceWithRawResponse, AsyncBytimesResourceWithRawResponse, BytimesResourceWithStreamingResponse, AsyncBytimesResourceWithStreamingResponse, ) -from .reports import ReportsResource, AsyncReportsResource from .reports import ( + ReportsResource, + AsyncReportsResource, ReportsResourceWithRawResponse, AsyncReportsResourceWithRawResponse, ReportsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/dns/firewall/analytics/reports/bytimes.py b/src/cloudflare/resources/dns/firewall/analytics/reports/bytimes.py index 123faef43..f11dd11b4 100644 --- a/src/cloudflare/resources/dns/firewall/analytics/reports/bytimes.py +++ b/src/cloudflare/resources/dns/firewall/analytics/reports/bytimes.py @@ -2,42 +2,30 @@ from __future__ import annotations -import httpx - -from ......_compat import cached_property - -from ......types.dns.analytics.reports.by_time import ByTime - -from ......_wrappers import ResultWrapper - -from ......_utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Union - -from ......_base_client import make_request_options - +from typing import Type, Union, Optional, cast from datetime import datetime -from ......types.dns.firewall.delta import Delta +import httpx +from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ......_utils import ( + maybe_transform, + async_maybe_transform, +) +from ......_compat import cached_property +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......_resource import SyncAPIResource, AsyncAPIResource -from ......types import shared_params -from ......types.dns.firewall.analytics.reports import bytime_get_params +from ......_wrappers import ResultWrapper +from ......_base_client import make_request_options from ......types.dns.firewall import Delta -from typing import cast -from typing import cast +from ......types.dns.firewall.delta import Delta +from ......types.dns.analytics.reports.by_time import ByTime +from ......types.dns.firewall.analytics.reports import bytime_get_params __all__ = ["BytimesResource", "AsyncBytimesResource"] diff --git a/src/cloudflare/resources/dns/firewall/analytics/reports/reports.py b/src/cloudflare/resources/dns/firewall/analytics/reports/reports.py index 5c3df4d77..387bdb32b 100644 --- a/src/cloudflare/resources/dns/firewall/analytics/reports/reports.py +++ b/src/cloudflare/resources/dns/firewall/analytics/reports/reports.py @@ -2,39 +2,11 @@ from __future__ import annotations -import httpx - -from .bytimes import BytimesResource, AsyncBytimesResource - -from ......_compat import cached_property - -from ......types.dns.analytics.report import Report - -from ......_wrappers import ResultWrapper - -from ......_utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Union - -from ......_base_client import make_request_options - +from typing import Type, Union, Optional, cast from datetime import datetime -from ......_response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) +import httpx -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......_resource import SyncAPIResource, AsyncAPIResource -from ......types import shared_params -from ......types.dns.firewall.analytics import report_get_params from .bytimes import ( BytimesResource, AsyncBytimesResource, @@ -43,8 +15,23 @@ from .bytimes import ( BytimesResourceWithStreamingResponse, AsyncBytimesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ......_utils import ( + maybe_transform, + async_maybe_transform, +) +from ......_compat import cached_property +from ......_resource import SyncAPIResource, AsyncAPIResource +from ......_response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ......_wrappers import ResultWrapper +from ......_base_client import make_request_options +from ......types.dns.analytics.report import Report +from ......types.dns.firewall.analytics import report_get_params __all__ = ["ReportsResource", "AsyncReportsResource"] diff --git a/src/cloudflare/resources/dns/firewall/firewall.py b/src/cloudflare/resources/dns/firewall/firewall.py index 87351dff5..69a1bee0d 100644 --- a/src/cloudflare/resources/dns/firewall/firewall.py +++ b/src/cloudflare/resources/dns/firewall/firewall.py @@ -2,55 +2,15 @@ from __future__ import annotations +from typing import List, Type, Optional, cast + import httpx -from .analytics.analytics import AnalyticsResource, AsyncAnalyticsResource - -from ...._compat import cached_property - -from ....types.dns.firewall_create_response import FirewallCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, List - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.dns.upstream_ips import UpstreamIPs - -from ....types.dns.attack_mitigation_param import AttackMitigationParam - -from ....types.dns.firewall_list_response import FirewallListResponse - -from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ....types.dns.firewall_delete_response import FirewallDeleteResponse - -from ....types.dns.firewall_edit_response import FirewallEditResponse - -from ....types.dns.firewall_get_response import FirewallGetResponse - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.dns import firewall_create_params -from ....types.dns import firewall_list_params -from ....types.dns import firewall_edit_params -from ....types.dns import AttackMitigation -from ....types.dns import AttackMitigation from .analytics import ( AnalyticsResource, AsyncAnalyticsResource, @@ -59,14 +19,26 @@ from .analytics import ( AnalyticsResourceWithStreamingResponse, AsyncAnalyticsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....types.dns import firewall_edit_params, firewall_list_params, firewall_create_params +from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ...._base_client import AsyncPaginator, make_request_options +from .analytics.analytics import AnalyticsResource, AsyncAnalyticsResource +from ....types.dns.upstream_ips import UpstreamIPs +from ....types.dns.firewall_get_response import FirewallGetResponse +from ....types.dns.firewall_edit_response import FirewallEditResponse +from ....types.dns.firewall_list_response import FirewallListResponse +from ....types.dns.attack_mitigation_param import AttackMitigationParam +from ....types.dns.firewall_create_response import FirewallCreateResponse +from ....types.dns.firewall_delete_response import FirewallDeleteResponse __all__ = ["FirewallResource", "AsyncFirewallResource"] diff --git a/src/cloudflare/resources/dns/records.py b/src/cloudflare/resources/dns/records.py index 117f2f5f5..67a554727 100644 --- a/src/cloudflare/resources/dns/records.py +++ b/src/cloudflare/resources/dns/records.py @@ -2,79 +2,45 @@ from __future__ import annotations +from typing import Type, Optional, cast, overload +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + required_args, + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from typing_extensions import Literal - -from typing import Optional, Type - -from ...types.dns.record_create_response import RecordCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from ...types.dns.record_update_response import RecordUpdateResponse - -from ...types.dns.record_list_response import RecordListResponse - -from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ...types.shared.sort_direction import SortDirection - -from ...types.dns.record_delete_response import RecordDeleteResponse - -from ...types.dns.record_edit_response import RecordEditResponse - -from ...types.dns.record_export_response import RecordExportResponse - -from ...types.dns.record_get_response import RecordGetResponse - -from ...types.dns.record_import_response import RecordImportResponse - -from ...types.dns.record_scan_response import RecordScanResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ...types.dns import record_create_params, record_update_params, record_list_params, record_edit_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.dns import record_create_params -from ...types.dns import record_update_params -from ...types.dns import record_list_params -from ...types.dns import record_edit_params -from ...types.dns import record_import_params -from ...types.dns import record_scan_params -from ...types import shared -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...types.dns import ( + record_edit_params, + record_list_params, + record_scan_params, + record_create_params, + record_import_params, + record_update_params, +) +from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ..._base_client import AsyncPaginator, make_request_options +from ...types.shared.sort_direction import SortDirection +from ...types.dns.record_get_response import RecordGetResponse +from ...types.dns.record_edit_response import RecordEditResponse +from ...types.dns.record_list_response import RecordListResponse +from ...types.dns.record_scan_response import RecordScanResponse +from ...types.dns.record_create_response import RecordCreateResponse +from ...types.dns.record_delete_response import RecordDeleteResponse +from ...types.dns.record_import_response import RecordImportResponse +from ...types.dns.record_update_response import RecordUpdateResponse __all__ = ["RecordsResource", "AsyncRecordsResource"] diff --git a/src/cloudflare/resources/dns/settings.py b/src/cloudflare/resources/dns/settings.py index e09f73d33..097801053 100644 --- a/src/cloudflare/resources/dns/settings.py +++ b/src/cloudflare/resources/dns/settings.py @@ -2,44 +2,29 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.dns.setting_edit_response import SettingEditResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from ...types.dns.dns_setting_param import DNSSettingParam - -from ...types.dns.setting_get_response import SettingGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper from ...types.dns import setting_edit_params -from ...types.dns import DNSSetting -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._base_client import make_request_options +from ...types.dns.dns_setting_param import DNSSettingParam +from ...types.dns.setting_get_response import SettingGetResponse +from ...types.dns.setting_edit_response import SettingEditResponse __all__ = ["SettingsResource", "AsyncSettingsResource"] diff --git a/src/cloudflare/resources/dnssec.py b/src/cloudflare/resources/dnssec.py index 9554470ec..577e7edfc 100644 --- a/src/cloudflare/resources/dnssec.py +++ b/src/cloudflare/resources/dnssec.py @@ -2,47 +2,29 @@ from __future__ import annotations +from typing import Any, Type, Optional, cast +from typing_extensions import Literal + import httpx +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .._utils import ( + maybe_transform, + async_maybe_transform, +) from .._compat import cached_property - -from ..types.dnssec.dnssec_delete_response import DNSSECDeleteResponse - -from .._wrappers import ResultWrapper - -from typing import Optional, Type - -from .._base_client import make_request_options - -from ..types.dnssec.dnssec import DNSSEC - -from .._utils import maybe_transform, async_maybe_transform - -from typing_extensions import Literal - +from .._resource import SyncAPIResource, AsyncAPIResource from .._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from .._resource import SyncAPIResource, AsyncAPIResource -from ..types import shared_params +from .._wrappers import ResultWrapper +from .._base_client import make_request_options from ..types.dnssec import dnssec_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..types.dnssec.dnssec import DNSSEC +from ..types.dnssec.dnssec_delete_response import DNSSECDeleteResponse __all__ = ["DNSSECResource", "AsyncDNSSECResource"] diff --git a/src/cloudflare/resources/durable_objects/__init__.py b/src/cloudflare/resources/durable_objects/__init__.py index 5923a4596..749de3c93 100644 --- a/src/cloudflare/resources/durable_objects/__init__.py +++ b/src/cloudflare/resources/durable_objects/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .namespaces import NamespacesResource, AsyncNamespacesResource from .namespaces import ( + NamespacesResource, + AsyncNamespacesResource, NamespacesResourceWithRawResponse, AsyncNamespacesResourceWithRawResponse, NamespacesResourceWithStreamingResponse, AsyncNamespacesResourceWithStreamingResponse, ) -from .durable_objects import DurableObjectsResource, AsyncDurableObjectsResource from .durable_objects import ( + DurableObjectsResource, + AsyncDurableObjectsResource, DurableObjectsResourceWithRawResponse, AsyncDurableObjectsResourceWithRawResponse, DurableObjectsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/durable_objects/durable_objects.py b/src/cloudflare/resources/durable_objects/durable_objects.py index 9fc4fc4af..97f13cd09 100644 --- a/src/cloudflare/resources/durable_objects/durable_objects.py +++ b/src/cloudflare/resources/durable_objects/durable_objects.py @@ -2,17 +2,7 @@ from __future__ import annotations -from .namespaces.namespaces import NamespacesResource, AsyncNamespacesResource - from ..._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .namespaces import ( NamespacesResource, AsyncNamespacesResource, @@ -21,6 +11,8 @@ from .namespaces import ( NamespacesResourceWithStreamingResponse, AsyncNamespacesResourceWithStreamingResponse, ) +from ..._resource import SyncAPIResource, AsyncAPIResource +from .namespaces.namespaces import NamespacesResource, AsyncNamespacesResource __all__ = ["DurableObjectsResource", "AsyncDurableObjectsResource"] diff --git a/src/cloudflare/resources/durable_objects/namespaces/__init__.py b/src/cloudflare/resources/durable_objects/namespaces/__init__.py index c7d2b50e5..80b5be8b7 100644 --- a/src/cloudflare/resources/durable_objects/namespaces/__init__.py +++ b/src/cloudflare/resources/durable_objects/namespaces/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .objects import ObjectsResource, AsyncObjectsResource from .objects import ( + ObjectsResource, + AsyncObjectsResource, ObjectsResourceWithRawResponse, AsyncObjectsResourceWithRawResponse, ObjectsResourceWithStreamingResponse, AsyncObjectsResourceWithStreamingResponse, ) -from .namespaces import NamespacesResource, AsyncNamespacesResource from .namespaces import ( + NamespacesResource, + AsyncNamespacesResource, NamespacesResourceWithRawResponse, AsyncNamespacesResourceWithRawResponse, NamespacesResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/durable_objects/namespaces/namespaces.py b/src/cloudflare/resources/durable_objects/namespaces/namespaces.py index 81bd65c33..c663cfe15 100644 --- a/src/cloudflare/resources/durable_objects/namespaces/namespaces.py +++ b/src/cloudflare/resources/durable_objects/namespaces/namespaces.py @@ -4,30 +4,6 @@ from __future__ import annotations import httpx -from .objects import ObjectsResource, AsyncObjectsResource - -from ...._compat import cached_property - -from ....types.durable_objects.namespace import Namespace - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ...._base_client import make_request_options, AsyncPaginator - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params from .objects import ( ObjectsResource, AsyncObjectsResource, @@ -36,6 +12,18 @@ from .objects import ( ObjectsResourceWithStreamingResponse, AsyncObjectsResourceWithStreamingResponse, ) +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.durable_objects.namespace import Namespace __all__ = ["NamespacesResource", "AsyncNamespacesResource"] diff --git a/src/cloudflare/resources/durable_objects/namespaces/objects.py b/src/cloudflare/resources/durable_objects/namespaces/objects.py index b289a7b95..8203cafb0 100644 --- a/src/cloudflare/resources/durable_objects/namespaces/objects.py +++ b/src/cloudflare/resources/durable_objects/namespaces/objects.py @@ -4,31 +4,20 @@ from __future__ import annotations import httpx -from ...._compat import cached_property - -from ....types.durable_objects.namespaces.durable_object import DurableObject - -from ....pagination import SyncCursorLimitPagination, AsyncCursorLimitPagination - +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ....pagination import SyncCursorLimitPagination, AsyncCursorLimitPagination +from ...._base_client import AsyncPaginator, make_request_options from ....types.durable_objects.namespaces import object_list_params +from ....types.durable_objects.namespaces.durable_object import DurableObject __all__ = ["ObjectsResource", "AsyncObjectsResource"] diff --git a/src/cloudflare/resources/email_routing/__init__.py b/src/cloudflare/resources/email_routing/__init__.py index 54063114f..687b71862 100644 --- a/src/cloudflare/resources/email_routing/__init__.py +++ b/src/cloudflare/resources/email_routing/__init__.py @@ -1,28 +1,32 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .dns import DNSResource, AsyncDNSResource from .dns import ( + DNSResource, + AsyncDNSResource, DNSResourceWithRawResponse, AsyncDNSResourceWithRawResponse, DNSResourceWithStreamingResponse, AsyncDNSResourceWithStreamingResponse, ) -from .rules import RulesResource, AsyncRulesResource from .rules import ( + RulesResource, + AsyncRulesResource, RulesResourceWithRawResponse, AsyncRulesResourceWithRawResponse, RulesResourceWithStreamingResponse, AsyncRulesResourceWithStreamingResponse, ) -from .addresses import AddressesResource, AsyncAddressesResource from .addresses import ( + AddressesResource, + AsyncAddressesResource, AddressesResourceWithRawResponse, AsyncAddressesResourceWithRawResponse, AddressesResourceWithStreamingResponse, AsyncAddressesResourceWithStreamingResponse, ) -from .email_routing import EmailRoutingResource, AsyncEmailRoutingResource from .email_routing import ( + EmailRoutingResource, + AsyncEmailRoutingResource, EmailRoutingResourceWithRawResponse, AsyncEmailRoutingResourceWithRawResponse, EmailRoutingResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/email_routing/addresses.py b/src/cloudflare/resources/email_routing/addresses.py index 6f18114e0..1380671cc 100644 --- a/src/cloudflare/resources/email_routing/addresses.py +++ b/src/cloudflare/resources/email_routing/addresses.py @@ -2,46 +2,29 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.email_routing.address import Address - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options, AsyncPaginator - -from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from typing_extensions import Literal - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.email_routing import address_create_params -from ...types.email_routing import address_list_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ..._base_client import AsyncPaginator, make_request_options +from ...types.email_routing import address_list_params, address_create_params +from ...types.email_routing.address import Address __all__ = ["AddressesResource", "AsyncAddressesResource"] diff --git a/src/cloudflare/resources/email_routing/dns.py b/src/cloudflare/resources/email_routing/dns.py index 99453aa3d..625a77cb8 100644 --- a/src/cloudflare/resources/email_routing/dns.py +++ b/src/cloudflare/resources/email_routing/dns.py @@ -2,42 +2,23 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._compat import cached_property - -from ...types.email_routing.settings import Settings - -from ..._wrappers import ResultWrapper - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from ...types.email_routing.dns_get_response import DNSGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.email_routing.settings import Settings +from ...types.email_routing.dns_get_response import DNSGetResponse __all__ = ["DNSResource", "AsyncDNSResource"] diff --git a/src/cloudflare/resources/email_routing/email_routing.py b/src/cloudflare/resources/email_routing/email_routing.py index 4bd971e9a..3e30433ea 100644 --- a/src/cloudflare/resources/email_routing/email_routing.py +++ b/src/cloudflare/resources/email_routing/email_routing.py @@ -2,42 +2,10 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .dns import DNSResource, AsyncDNSResource - -from ..._compat import cached_property - -from .rules.rules import RulesResource, AsyncRulesResource - -from .addresses import AddressesResource, AsyncAddressesResource - -from ...types.email_routing.settings import Settings - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from ..._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.email_routing import email_routing_disable_params -from ...types.email_routing import email_routing_enable_params from .dns import ( DNSResource, AsyncDNSResource, @@ -54,6 +22,12 @@ from .rules import ( RulesResourceWithStreamingResponse, AsyncRulesResourceWithStreamingResponse, ) +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) +from ..._compat import cached_property from .addresses import ( AddressesResource, AsyncAddressesResource, @@ -62,12 +36,18 @@ from .addresses import ( AddressesResourceWithStreamingResponse, AsyncAddressesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ..._wrappers import ResultWrapper +from .rules.rules import RulesResource, AsyncRulesResource +from ..._base_client import make_request_options +from ...types.email_routing import email_routing_enable_params, email_routing_disable_params +from ...types.email_routing.settings import Settings __all__ = ["EmailRoutingResource", "AsyncEmailRoutingResource"] diff --git a/src/cloudflare/resources/email_routing/rules/__init__.py b/src/cloudflare/resources/email_routing/rules/__init__.py index 4d8fdfa5b..16e5a3929 100644 --- a/src/cloudflare/resources/email_routing/rules/__init__.py +++ b/src/cloudflare/resources/email_routing/rules/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .catch_alls import CatchAllsResource, AsyncCatchAllsResource -from .catch_alls import ( - CatchAllsResourceWithRawResponse, - AsyncCatchAllsResourceWithRawResponse, - CatchAllsResourceWithStreamingResponse, - AsyncCatchAllsResourceWithStreamingResponse, -) -from .rules import RulesResource, AsyncRulesResource from .rules import ( + RulesResource, + AsyncRulesResource, RulesResourceWithRawResponse, AsyncRulesResourceWithRawResponse, RulesResourceWithStreamingResponse, AsyncRulesResourceWithStreamingResponse, ) +from .catch_alls import ( + CatchAllsResource, + AsyncCatchAllsResource, + CatchAllsResourceWithRawResponse, + AsyncCatchAllsResourceWithRawResponse, + CatchAllsResourceWithStreamingResponse, + AsyncCatchAllsResourceWithStreamingResponse, +) __all__ = [ "CatchAllsResource", diff --git a/src/cloudflare/resources/email_routing/rules/catch_alls.py b/src/cloudflare/resources/email_routing/rules/catch_alls.py index 0f77920fb..5034e4387 100644 --- a/src/cloudflare/resources/email_routing/rules/catch_alls.py +++ b/src/cloudflare/resources/email_routing/rules/catch_alls.py @@ -2,47 +2,31 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.email_routing.rules.catch_all_update_response import CatchAllUpdateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Iterable - -from ...._base_client import make_request_options - -from ....types.email_routing.rules.catch_all_action_param import CatchAllActionParam - -from ....types.email_routing.rules.catch_all_matcher_param import CatchAllMatcherParam - -from typing_extensions import Literal - -from ....types.email_routing.rules.catch_all_get_response import CatchAllGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.email_routing.rules import catch_all_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....types.email_routing.rules.catch_all_action_param import CatchAllActionParam +from ....types.email_routing.rules.catch_all_get_response import CatchAllGetResponse +from ....types.email_routing.rules.catch_all_matcher_param import CatchAllMatcherParam +from ....types.email_routing.rules.catch_all_update_response import CatchAllUpdateResponse __all__ = ["CatchAllsResource", "AsyncCatchAllsResource"] diff --git a/src/cloudflare/resources/email_routing/rules/rules.py b/src/cloudflare/resources/email_routing/rules/rules.py index 9f4327b8a..016a6572a 100644 --- a/src/cloudflare/resources/email_routing/rules/rules.py +++ b/src/cloudflare/resources/email_routing/rules/rules.py @@ -2,47 +2,17 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast +from typing_extensions import Literal + import httpx -from .catch_alls import CatchAllsResource, AsyncCatchAllsResource - -from ...._compat import cached_property - -from ....types.email_routing.email_routing_rule import EmailRoutingRule - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Iterable - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.email_routing.action_param import ActionParam - -from ....types.email_routing.matcher_param import MatcherParam - -from typing_extensions import Literal - -from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.email_routing import rule_create_params -from ....types.email_routing import rule_update_params -from ....types.email_routing import rule_list_params +from ...._compat import cached_property from .catch_alls import ( CatchAllsResource, AsyncCatchAllsResource, @@ -51,14 +21,20 @@ from .catch_alls import ( CatchAllsResourceWithStreamingResponse, AsyncCatchAllsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ...._base_client import AsyncPaginator, make_request_options +from ....types.email_routing import rule_list_params, rule_create_params, rule_update_params +from ....types.email_routing.action_param import ActionParam +from ....types.email_routing.matcher_param import MatcherParam +from ....types.email_routing.email_routing_rule import EmailRoutingRule __all__ = ["RulesResource", "AsyncRulesResource"] diff --git a/src/cloudflare/resources/email_security/__init__.py b/src/cloudflare/resources/email_security/__init__.py index 128641127..c531ca257 100644 --- a/src/cloudflare/resources/email_security/__init__.py +++ b/src/cloudflare/resources/email_security/__init__.py @@ -1,28 +1,32 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .investigate import InvestigateResource, AsyncInvestigateResource -from .investigate import ( - InvestigateResourceWithRawResponse, - AsyncInvestigateResourceWithRawResponse, - InvestigateResourceWithStreamingResponse, - AsyncInvestigateResourceWithStreamingResponse, -) -from .phishguard import PhishguardResource, AsyncPhishguardResource -from .phishguard import ( - PhishguardResourceWithRawResponse, - AsyncPhishguardResourceWithRawResponse, - PhishguardResourceWithStreamingResponse, - AsyncPhishguardResourceWithStreamingResponse, -) -from .settings import SettingsResource, AsyncSettingsResource from .settings import ( + SettingsResource, + AsyncSettingsResource, SettingsResourceWithRawResponse, AsyncSettingsResourceWithRawResponse, SettingsResourceWithStreamingResponse, AsyncSettingsResourceWithStreamingResponse, ) -from .email_security import EmailSecurityResource, AsyncEmailSecurityResource +from .phishguard import ( + PhishguardResource, + AsyncPhishguardResource, + PhishguardResourceWithRawResponse, + AsyncPhishguardResourceWithRawResponse, + PhishguardResourceWithStreamingResponse, + AsyncPhishguardResourceWithStreamingResponse, +) +from .investigate import ( + InvestigateResource, + AsyncInvestigateResource, + InvestigateResourceWithRawResponse, + AsyncInvestigateResourceWithRawResponse, + InvestigateResourceWithStreamingResponse, + AsyncInvestigateResourceWithStreamingResponse, +) from .email_security import ( + EmailSecurityResource, + AsyncEmailSecurityResource, EmailSecurityResourceWithRawResponse, AsyncEmailSecurityResourceWithRawResponse, EmailSecurityResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/email_security/email_security.py b/src/cloudflare/resources/email_security/email_security.py index 485c62b4b..37d507c92 100644 --- a/src/cloudflare/resources/email_security/email_security.py +++ b/src/cloudflare/resources/email_security/email_security.py @@ -2,37 +2,6 @@ from __future__ import annotations -from .investigate import InvestigateResource, AsyncInvestigateResource - -from ..._compat import cached_property - -from .phishguard import PhishguardResource, AsyncPhishguardResource - -from .settings.settings import SettingsResource, AsyncSettingsResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from .investigate import ( - InvestigateResource, - AsyncInvestigateResource, - InvestigateResourceWithRawResponse, - AsyncInvestigateResourceWithRawResponse, - InvestigateResourceWithStreamingResponse, - AsyncInvestigateResourceWithStreamingResponse, -) -from .phishguard import ( - PhishguardResource, - AsyncPhishguardResource, - PhishguardResourceWithRawResponse, - AsyncPhishguardResourceWithRawResponse, - PhishguardResourceWithStreamingResponse, - AsyncPhishguardResourceWithStreamingResponse, -) from .settings import ( SettingsResource, AsyncSettingsResource, @@ -41,6 +10,25 @@ from .settings import ( SettingsResourceWithStreamingResponse, AsyncSettingsResourceWithStreamingResponse, ) +from ..._compat import cached_property +from .phishguard import ( + PhishguardResource, + AsyncPhishguardResource, + PhishguardResourceWithRawResponse, + AsyncPhishguardResourceWithRawResponse, + PhishguardResourceWithStreamingResponse, + AsyncPhishguardResourceWithStreamingResponse, +) +from ..._resource import SyncAPIResource, AsyncAPIResource +from .investigate import ( + InvestigateResource, + AsyncInvestigateResource, + InvestigateResourceWithRawResponse, + AsyncInvestigateResourceWithRawResponse, + InvestigateResourceWithStreamingResponse, + AsyncInvestigateResourceWithStreamingResponse, +) +from .settings.settings import SettingsResource, AsyncSettingsResource __all__ = ["EmailSecurityResource", "AsyncEmailSecurityResource"] diff --git a/src/cloudflare/resources/email_security/investigate.py b/src/cloudflare/resources/email_security/investigate.py index 8fa110e34..31900daa1 100644 --- a/src/cloudflare/resources/email_security/investigate.py +++ b/src/cloudflare/resources/email_security/investigate.py @@ -2,61 +2,32 @@ from __future__ import annotations +from typing import Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx -from ..._compat import cached_property - -from ...types.email_security.investigate_list_response import InvestigateListResponse - -from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._utils import maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from typing import Union, Type - -from datetime import datetime - -from typing_extensions import Literal - -from ...types.email_security.investigate_detections_response import InvestigateDetectionsResponse - -from ..._wrappers import ResultWrapper - -from ...types.email_security.investigate_get_response import InvestigateGetResponse - -from ...types.email_security.investigate_preview_response import InvestigatePreviewResponse - -from ...types.email_security.investigate_raw_response import InvestigateRawResponse - -from ...types.email_security.investigate_trace_response import InvestigateTraceResponse - +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper +from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ..._base_client import AsyncPaginator, make_request_options from ...types.email_security import investigate_list_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...types.email_security.investigate_get_response import InvestigateGetResponse +from ...types.email_security.investigate_raw_response import InvestigateRawResponse +from ...types.email_security.investigate_list_response import InvestigateListResponse +from ...types.email_security.investigate_trace_response import InvestigateTraceResponse +from ...types.email_security.investigate_preview_response import InvestigatePreviewResponse +from ...types.email_security.investigate_detections_response import InvestigateDetectionsResponse __all__ = ["InvestigateResource", "AsyncInvestigateResource"] diff --git a/src/cloudflare/resources/email_security/phishguard.py b/src/cloudflare/resources/email_security/phishguard.py index 65d0877f6..1208887eb 100644 --- a/src/cloudflare/resources/email_security/phishguard.py +++ b/src/cloudflare/resources/email_security/phishguard.py @@ -2,37 +2,25 @@ from __future__ import annotations -import httpx - -from ..._compat import cached_property - -from ...types.email_security.phishguard_list_response import PhishguardListResponse - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from ..._utils import maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - from typing import Union - from datetime import date +import httpx + +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import maybe_transform +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options from ...types.email_security import phishguard_list_params +from ...types.email_security.phishguard_list_response import PhishguardListResponse __all__ = ["PhishguardResource", "AsyncPhishguardResource"] diff --git a/src/cloudflare/resources/email_security/settings/__init__.py b/src/cloudflare/resources/email_security/settings/__init__.py index 9082fa712..2ed151a18 100644 --- a/src/cloudflare/resources/email_security/settings/__init__.py +++ b/src/cloudflare/resources/email_security/settings/__init__.py @@ -1,46 +1,52 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .allow_patterns import AllowPatternsResource, AsyncAllowPatternsResource -from .allow_patterns import ( - AllowPatternsResourceWithRawResponse, - AsyncAllowPatternsResourceWithRawResponse, - AllowPatternsResourceWithStreamingResponse, - AsyncAllowPatternsResourceWithStreamingResponse, -) -from .block_senders import BlockSendersResource, AsyncBlockSendersResource -from .block_senders import ( - BlockSendersResourceWithRawResponse, - AsyncBlockSendersResourceWithRawResponse, - BlockSendersResourceWithStreamingResponse, - AsyncBlockSendersResourceWithStreamingResponse, -) -from .domains import DomainsResource, AsyncDomainsResource from .domains import ( + DomainsResource, + AsyncDomainsResource, DomainsResourceWithRawResponse, AsyncDomainsResourceWithRawResponse, DomainsResourceWithStreamingResponse, AsyncDomainsResourceWithStreamingResponse, ) -from .impersonation_registry import ImpersonationRegistryResource, AsyncImpersonationRegistryResource -from .impersonation_registry import ( - ImpersonationRegistryResourceWithRawResponse, - AsyncImpersonationRegistryResourceWithRawResponse, - ImpersonationRegistryResourceWithStreamingResponse, - AsyncImpersonationRegistryResourceWithStreamingResponse, +from .settings import ( + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, +) +from .block_senders import ( + BlockSendersResource, + AsyncBlockSendersResource, + BlockSendersResourceWithRawResponse, + AsyncBlockSendersResourceWithRawResponse, + BlockSendersResourceWithStreamingResponse, + AsyncBlockSendersResourceWithStreamingResponse, +) +from .allow_patterns import ( + AllowPatternsResource, + AsyncAllowPatternsResource, + AllowPatternsResourceWithRawResponse, + AsyncAllowPatternsResourceWithRawResponse, + AllowPatternsResourceWithStreamingResponse, + AsyncAllowPatternsResourceWithStreamingResponse, ) -from .trusted_domains import TrustedDomainsResource, AsyncTrustedDomainsResource from .trusted_domains import ( + TrustedDomainsResource, + AsyncTrustedDomainsResource, TrustedDomainsResourceWithRawResponse, AsyncTrustedDomainsResourceWithRawResponse, TrustedDomainsResourceWithStreamingResponse, AsyncTrustedDomainsResourceWithStreamingResponse, ) -from .settings import SettingsResource, AsyncSettingsResource -from .settings import ( - SettingsResourceWithRawResponse, - AsyncSettingsResourceWithRawResponse, - SettingsResourceWithStreamingResponse, - AsyncSettingsResourceWithStreamingResponse, +from .impersonation_registry import ( + ImpersonationRegistryResource, + AsyncImpersonationRegistryResource, + ImpersonationRegistryResourceWithRawResponse, + AsyncImpersonationRegistryResourceWithRawResponse, + ImpersonationRegistryResourceWithStreamingResponse, + AsyncImpersonationRegistryResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/email_security/settings/allow_patterns.py b/src/cloudflare/resources/email_security/settings/allow_patterns.py index cda71ef1f..5e1be0d56 100644 --- a/src/cloudflare/resources/email_security/settings/allow_patterns.py +++ b/src/cloudflare/resources/email_security/settings/allow_patterns.py @@ -2,61 +2,38 @@ from __future__ import annotations +from typing import Any, Type, Iterable, Optional, cast, overload +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + required_args, + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from typing_extensions import Literal - -from typing import Optional, Iterable, Type - -from ....types.email_security.settings.allow_pattern_create_response import AllowPatternCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.email_security.settings.allow_pattern_list_response import AllowPatternListResponse - -from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ....types.email_security.settings.allow_pattern_delete_response import AllowPatternDeleteResponse - -from ....types.email_security.settings.allow_pattern_edit_response import AllowPatternEditResponse - -from ....types.email_security.settings.allow_pattern_get_response import AllowPatternGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ....types.email_security.settings import allow_pattern_create_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.email_security.settings import allow_pattern_create_params -from ....types.email_security.settings import allow_pattern_list_params -from ....types.email_security.settings import allow_pattern_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ...._base_client import AsyncPaginator, make_request_options +from ....types.email_security.settings import ( + allow_pattern_edit_params, + allow_pattern_list_params, + allow_pattern_create_params, +) +from ....types.email_security.settings.allow_pattern_get_response import AllowPatternGetResponse +from ....types.email_security.settings.allow_pattern_edit_response import AllowPatternEditResponse +from ....types.email_security.settings.allow_pattern_list_response import AllowPatternListResponse +from ....types.email_security.settings.allow_pattern_create_response import AllowPatternCreateResponse +from ....types.email_security.settings.allow_pattern_delete_response import AllowPatternDeleteResponse __all__ = ["AllowPatternsResource", "AsyncAllowPatternsResource"] diff --git a/src/cloudflare/resources/email_security/settings/block_senders.py b/src/cloudflare/resources/email_security/settings/block_senders.py index 9962602c6..282498b7d 100644 --- a/src/cloudflare/resources/email_security/settings/block_senders.py +++ b/src/cloudflare/resources/email_security/settings/block_senders.py @@ -2,61 +2,38 @@ from __future__ import annotations +from typing import Any, Type, Iterable, Optional, cast, overload +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + required_args, + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from typing_extensions import Literal - -from typing import Optional, Iterable, Type - -from ....types.email_security.settings.block_sender_create_response import BlockSenderCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.email_security.settings.block_sender_list_response import BlockSenderListResponse - -from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ....types.email_security.settings.block_sender_delete_response import BlockSenderDeleteResponse - -from ....types.email_security.settings.block_sender_edit_response import BlockSenderEditResponse - -from ....types.email_security.settings.block_sender_get_response import BlockSenderGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ....types.email_security.settings import block_sender_create_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.email_security.settings import block_sender_create_params -from ....types.email_security.settings import block_sender_list_params -from ....types.email_security.settings import block_sender_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ...._base_client import AsyncPaginator, make_request_options +from ....types.email_security.settings import ( + block_sender_edit_params, + block_sender_list_params, + block_sender_create_params, +) +from ....types.email_security.settings.block_sender_get_response import BlockSenderGetResponse +from ....types.email_security.settings.block_sender_edit_response import BlockSenderEditResponse +from ....types.email_security.settings.block_sender_list_response import BlockSenderListResponse +from ....types.email_security.settings.block_sender_create_response import BlockSenderCreateResponse +from ....types.email_security.settings.block_sender_delete_response import BlockSenderDeleteResponse __all__ = ["BlockSendersResource", "AsyncBlockSendersResource"] diff --git a/src/cloudflare/resources/email_security/settings/domains.py b/src/cloudflare/resources/email_security/settings/domains.py index 99b90674f..f0e6cb0bf 100644 --- a/src/cloudflare/resources/email_security/settings/domains.py +++ b/src/cloudflare/resources/email_security/settings/domains.py @@ -2,48 +2,31 @@ from __future__ import annotations +from typing import List, Type, Optional, cast +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.email_security.settings.domain_list_response import DomainListResponse - -from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from typing import List, Type, Optional - -from ....types.email_security.settings.domain_delete_response import DomainDeleteResponse - -from ...._wrappers import ResultWrapper - -from ....types.email_security.settings.domain_edit_response import DomainEditResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.email_security.settings import domain_list_params -from ....types.email_security.settings import domain_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ...._base_client import AsyncPaginator, make_request_options +from ....types.email_security.settings import domain_edit_params, domain_list_params +from ....types.email_security.settings.domain_edit_response import DomainEditResponse +from ....types.email_security.settings.domain_list_response import DomainListResponse +from ....types.email_security.settings.domain_delete_response import DomainDeleteResponse __all__ = ["DomainsResource", "AsyncDomainsResource"] diff --git a/src/cloudflare/resources/email_security/settings/impersonation_registry.py b/src/cloudflare/resources/email_security/settings/impersonation_registry.py index 417bcbbd9..415d821e2 100644 --- a/src/cloudflare/resources/email_security/settings/impersonation_registry.py +++ b/src/cloudflare/resources/email_security/settings/impersonation_registry.py @@ -2,61 +2,38 @@ from __future__ import annotations +from typing import Any, Type, Iterable, Optional, cast, overload +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + required_args, + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.email_security.settings.impersonation_registry_create_response import ImpersonationRegistryCreateResponse - -from typing import Iterable, Type, Optional - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.email_security.settings.impersonation_registry_list_response import ImpersonationRegistryListResponse - -from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from typing_extensions import Literal - -from ....types.email_security.settings.impersonation_registry_delete_response import ImpersonationRegistryDeleteResponse - -from ....types.email_security.settings.impersonation_registry_edit_response import ImpersonationRegistryEditResponse - -from ....types.email_security.settings.impersonation_registry_get_response import ImpersonationRegistryGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ....types.email_security.settings import impersonation_registry_create_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.email_security.settings import impersonation_registry_create_params -from ....types.email_security.settings import impersonation_registry_list_params -from ....types.email_security.settings import impersonation_registry_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ...._base_client import AsyncPaginator, make_request_options +from ....types.email_security.settings import ( + impersonation_registry_edit_params, + impersonation_registry_list_params, + impersonation_registry_create_params, +) +from ....types.email_security.settings.impersonation_registry_get_response import ImpersonationRegistryGetResponse +from ....types.email_security.settings.impersonation_registry_edit_response import ImpersonationRegistryEditResponse +from ....types.email_security.settings.impersonation_registry_list_response import ImpersonationRegistryListResponse +from ....types.email_security.settings.impersonation_registry_create_response import ImpersonationRegistryCreateResponse +from ....types.email_security.settings.impersonation_registry_delete_response import ImpersonationRegistryDeleteResponse __all__ = ["ImpersonationRegistryResource", "AsyncImpersonationRegistryResource"] diff --git a/src/cloudflare/resources/email_security/settings/settings.py b/src/cloudflare/resources/email_security/settings/settings.py index 50751023d..e9012e3a4 100644 --- a/src/cloudflare/resources/email_security/settings/settings.py +++ b/src/cloudflare/resources/email_security/settings/settings.py @@ -2,41 +2,6 @@ from __future__ import annotations -from .allow_patterns import AllowPatternsResource, AsyncAllowPatternsResource - -from ...._compat import cached_property - -from .block_senders import BlockSendersResource, AsyncBlockSendersResource - -from .domains import DomainsResource, AsyncDomainsResource - -from .impersonation_registry import ImpersonationRegistryResource, AsyncImpersonationRegistryResource - -from .trusted_domains import TrustedDomainsResource, AsyncTrustedDomainsResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from .allow_patterns import ( - AllowPatternsResource, - AsyncAllowPatternsResource, - AllowPatternsResourceWithRawResponse, - AsyncAllowPatternsResourceWithRawResponse, - AllowPatternsResourceWithStreamingResponse, - AsyncAllowPatternsResourceWithStreamingResponse, -) -from .block_senders import ( - BlockSendersResource, - AsyncBlockSendersResource, - BlockSendersResourceWithRawResponse, - AsyncBlockSendersResourceWithRawResponse, - BlockSendersResourceWithStreamingResponse, - AsyncBlockSendersResourceWithStreamingResponse, -) from .domains import ( DomainsResource, AsyncDomainsResource, @@ -45,13 +10,23 @@ from .domains import ( DomainsResourceWithStreamingResponse, AsyncDomainsResourceWithStreamingResponse, ) -from .impersonation_registry import ( - ImpersonationRegistryResource, - AsyncImpersonationRegistryResource, - ImpersonationRegistryResourceWithRawResponse, - AsyncImpersonationRegistryResourceWithRawResponse, - ImpersonationRegistryResourceWithStreamingResponse, - AsyncImpersonationRegistryResourceWithStreamingResponse, +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from .block_senders import ( + BlockSendersResource, + AsyncBlockSendersResource, + BlockSendersResourceWithRawResponse, + AsyncBlockSendersResourceWithRawResponse, + BlockSendersResourceWithStreamingResponse, + AsyncBlockSendersResourceWithStreamingResponse, +) +from .allow_patterns import ( + AllowPatternsResource, + AsyncAllowPatternsResource, + AllowPatternsResourceWithRawResponse, + AsyncAllowPatternsResourceWithRawResponse, + AllowPatternsResourceWithStreamingResponse, + AsyncAllowPatternsResourceWithStreamingResponse, ) from .trusted_domains import ( TrustedDomainsResource, @@ -61,6 +36,14 @@ from .trusted_domains import ( TrustedDomainsResourceWithStreamingResponse, AsyncTrustedDomainsResourceWithStreamingResponse, ) +from .impersonation_registry import ( + ImpersonationRegistryResource, + AsyncImpersonationRegistryResource, + ImpersonationRegistryResourceWithRawResponse, + AsyncImpersonationRegistryResourceWithRawResponse, + ImpersonationRegistryResourceWithStreamingResponse, + AsyncImpersonationRegistryResourceWithStreamingResponse, +) __all__ = ["SettingsResource", "AsyncSettingsResource"] diff --git a/src/cloudflare/resources/email_security/settings/trusted_domains.py b/src/cloudflare/resources/email_security/settings/trusted_domains.py index 7a7af0443..84a557a14 100644 --- a/src/cloudflare/resources/email_security/settings/trusted_domains.py +++ b/src/cloudflare/resources/email_security/settings/trusted_domains.py @@ -2,61 +2,38 @@ from __future__ import annotations +from typing import Any, Type, Iterable, Optional, cast, overload +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + required_args, + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from typing import Optional, Iterable, Type - -from ....types.email_security.settings.trusted_domain_create_response import TrustedDomainCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.email_security.settings.trusted_domain_list_response import TrustedDomainListResponse - -from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from typing_extensions import Literal - -from ....types.email_security.settings.trusted_domain_delete_response import TrustedDomainDeleteResponse - -from ....types.email_security.settings.trusted_domain_edit_response import TrustedDomainEditResponse - -from ....types.email_security.settings.trusted_domain_get_response import TrustedDomainGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ....types.email_security.settings import trusted_domain_create_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.email_security.settings import trusted_domain_create_params -from ....types.email_security.settings import trusted_domain_list_params -from ....types.email_security.settings import trusted_domain_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ...._base_client import AsyncPaginator, make_request_options +from ....types.email_security.settings import ( + trusted_domain_edit_params, + trusted_domain_list_params, + trusted_domain_create_params, +) +from ....types.email_security.settings.trusted_domain_get_response import TrustedDomainGetResponse +from ....types.email_security.settings.trusted_domain_edit_response import TrustedDomainEditResponse +from ....types.email_security.settings.trusted_domain_list_response import TrustedDomainListResponse +from ....types.email_security.settings.trusted_domain_create_response import TrustedDomainCreateResponse +from ....types.email_security.settings.trusted_domain_delete_response import TrustedDomainDeleteResponse __all__ = ["TrustedDomainsResource", "AsyncTrustedDomainsResource"] diff --git a/src/cloudflare/resources/event_notifications/__init__.py b/src/cloudflare/resources/event_notifications/__init__.py index ea90210d6..b0d56c216 100644 --- a/src/cloudflare/resources/event_notifications/__init__.py +++ b/src/cloudflare/resources/event_notifications/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .r2 import R2Resource, AsyncR2Resource from .r2 import ( + R2Resource, + AsyncR2Resource, R2ResourceWithRawResponse, AsyncR2ResourceWithRawResponse, R2ResourceWithStreamingResponse, AsyncR2ResourceWithStreamingResponse, ) -from .event_notifications import EventNotificationsResource, AsyncEventNotificationsResource from .event_notifications import ( + EventNotificationsResource, + AsyncEventNotificationsResource, EventNotificationsResourceWithRawResponse, AsyncEventNotificationsResourceWithRawResponse, EventNotificationsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/event_notifications/event_notifications.py b/src/cloudflare/resources/event_notifications/event_notifications.py index 22131f9a4..d0ed187d7 100644 --- a/src/cloudflare/resources/event_notifications/event_notifications.py +++ b/src/cloudflare/resources/event_notifications/event_notifications.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .r2.r2 import R2Resource, AsyncR2Resource - -from ..._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .r2 import ( R2Resource, AsyncR2Resource, @@ -21,6 +10,9 @@ from .r2 import ( R2ResourceWithStreamingResponse, AsyncR2ResourceWithStreamingResponse, ) +from .r2.r2 import R2Resource, AsyncR2Resource +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource __all__ = ["EventNotificationsResource", "AsyncEventNotificationsResource"] diff --git a/src/cloudflare/resources/event_notifications/r2/__init__.py b/src/cloudflare/resources/event_notifications/r2/__init__.py index 3d5715ec9..6d6123f2e 100644 --- a/src/cloudflare/resources/event_notifications/r2/__init__.py +++ b/src/cloudflare/resources/event_notifications/r2/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .configuration import ConfigurationResource, AsyncConfigurationResource -from .configuration import ( - ConfigurationResourceWithRawResponse, - AsyncConfigurationResourceWithRawResponse, - ConfigurationResourceWithStreamingResponse, - AsyncConfigurationResourceWithStreamingResponse, -) -from .r2 import R2Resource, AsyncR2Resource from .r2 import ( + R2Resource, + AsyncR2Resource, R2ResourceWithRawResponse, AsyncR2ResourceWithRawResponse, R2ResourceWithStreamingResponse, AsyncR2ResourceWithStreamingResponse, ) +from .configuration import ( + ConfigurationResource, + AsyncConfigurationResource, + ConfigurationResourceWithRawResponse, + AsyncConfigurationResourceWithRawResponse, + ConfigurationResourceWithStreamingResponse, + AsyncConfigurationResourceWithStreamingResponse, +) __all__ = [ "ConfigurationResource", diff --git a/src/cloudflare/resources/event_notifications/r2/configuration/__init__.py b/src/cloudflare/resources/event_notifications/r2/configuration/__init__.py index 27de641c0..500f08ff7 100644 --- a/src/cloudflare/resources/event_notifications/r2/configuration/__init__.py +++ b/src/cloudflare/resources/event_notifications/r2/configuration/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .queues import QueuesResource, AsyncQueuesResource from .queues import ( + QueuesResource, + AsyncQueuesResource, QueuesResourceWithRawResponse, AsyncQueuesResourceWithRawResponse, QueuesResourceWithStreamingResponse, AsyncQueuesResourceWithStreamingResponse, ) -from .configuration import ConfigurationResource, AsyncConfigurationResource from .configuration import ( + ConfigurationResource, + AsyncConfigurationResource, ConfigurationResourceWithRawResponse, AsyncConfigurationResourceWithRawResponse, ConfigurationResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/event_notifications/r2/configuration/configuration.py b/src/cloudflare/resources/event_notifications/r2/configuration/configuration.py index 4cc0afe47..c1c541c1d 100644 --- a/src/cloudflare/resources/event_notifications/r2/configuration/configuration.py +++ b/src/cloudflare/resources/event_notifications/r2/configuration/configuration.py @@ -2,34 +2,10 @@ from __future__ import annotations +from typing import Type, cast + import httpx -from .queues import QueuesResource, AsyncQueuesResource - -from ....._compat import cached_property - -from .....types.event_notifications.r2.configuration_get_response import ConfigurationGetResponse - -from ....._wrappers import ResultWrapper - -from ....._base_client import make_request_options - -from typing import Type - -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params from .queues import ( QueuesResource, AsyncQueuesResource, @@ -38,8 +14,18 @@ from .queues import ( QueuesResourceWithStreamingResponse, AsyncQueuesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.event_notifications.r2.configuration_get_response import ConfigurationGetResponse __all__ = ["ConfigurationResource", "AsyncConfigurationResource"] diff --git a/src/cloudflare/resources/event_notifications/r2/configuration/queues.py b/src/cloudflare/resources/event_notifications/r2/configuration/queues.py index c5641e5e1..6b4d28e53 100644 --- a/src/cloudflare/resources/event_notifications/r2/configuration/queues.py +++ b/src/cloudflare/resources/event_notifications/r2/configuration/queues.py @@ -2,45 +2,28 @@ from __future__ import annotations +from typing import Any, Type, Iterable, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.event_notifications.r2.configuration.queue_update_response import QueueUpdateResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, Iterable - -from .....types.event_notifications.r2.configuration.queue_delete_response import QueueDeleteResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.event_notifications.r2.configuration import queue_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.event_notifications.r2.configuration import queue_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .....types.event_notifications.r2.configuration.queue_delete_response import QueueDeleteResponse +from .....types.event_notifications.r2.configuration.queue_update_response import QueueUpdateResponse __all__ = ["QueuesResource", "AsyncQueuesResource"] diff --git a/src/cloudflare/resources/event_notifications/r2/r2.py b/src/cloudflare/resources/event_notifications/r2/r2.py index f14e0688c..4103c51b0 100644 --- a/src/cloudflare/resources/event_notifications/r2/r2.py +++ b/src/cloudflare/resources/event_notifications/r2/r2.py @@ -2,17 +2,8 @@ from __future__ import annotations -from .configuration.configuration import ConfigurationResource, AsyncConfigurationResource - from ...._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params from .configuration import ( ConfigurationResource, AsyncConfigurationResource, @@ -21,6 +12,7 @@ from .configuration import ( ConfigurationResourceWithStreamingResponse, AsyncConfigurationResourceWithStreamingResponse, ) +from .configuration.configuration import ConfigurationResource, AsyncConfigurationResource __all__ = ["R2Resource", "AsyncR2Resource"] diff --git a/src/cloudflare/resources/filters.py b/src/cloudflare/resources/filters.py index d89e5ec8c..9dbe0fec1 100644 --- a/src/cloudflare/resources/filters.py +++ b/src/cloudflare/resources/filters.py @@ -3,50 +3,29 @@ from __future__ import annotations import typing_extensions +from typing import Type, Optional, cast import httpx +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .._utils import ( + maybe_transform, + async_maybe_transform, +) from .._compat import cached_property - -from ..types.filters.filter_create_response import FilterCreateResponse - -from .._wrappers import ResultWrapper - -from .._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from .._base_client import make_request_options, AsyncPaginator - -from ..types.filters.firewall_filter import FirewallFilter - -from ..pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +from .._resource import SyncAPIResource, AsyncAPIResource from .._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from .._resource import SyncAPIResource, AsyncAPIResource -from ..types import shared_params -from ..types.filters import filter_create_params -from ..types.filters import filter_update_params -from ..types.filters import filter_list_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .._wrappers import ResultWrapper +from ..pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from .._base_client import AsyncPaginator, make_request_options +from ..types.filters import filter_list_params, filter_create_params, filter_update_params +from ..types.filters.firewall_filter import FirewallFilter +from ..types.filters.filter_create_response import FilterCreateResponse __all__ = ["FiltersResource", "AsyncFiltersResource"] diff --git a/src/cloudflare/resources/firewall/__init__.py b/src/cloudflare/resources/firewall/__init__.py index 71c9caa79..cc405a6f6 100644 --- a/src/cloudflare/resources/firewall/__init__.py +++ b/src/cloudflare/resources/firewall/__init__.py @@ -1,47 +1,53 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .lockdowns import LockdownsResource, AsyncLockdownsResource -from .lockdowns import ( - LockdownsResourceWithRawResponse, - AsyncLockdownsResourceWithRawResponse, - LockdownsResourceWithStreamingResponse, - AsyncLockdownsResourceWithStreamingResponse, -) -from .rules import RulesResource, AsyncRulesResource -from .rules import ( - RulesResourceWithRawResponse, - AsyncRulesResourceWithRawResponse, - RulesResourceWithStreamingResponse, - AsyncRulesResourceWithStreamingResponse, -) -from .access_rules import AccessRulesResource, AsyncAccessRulesResource -from .access_rules import ( - AccessRulesResourceWithRawResponse, - AsyncAccessRulesResourceWithRawResponse, - AccessRulesResourceWithStreamingResponse, - AsyncAccessRulesResourceWithStreamingResponse, -) -from .ua_rules import UARulesResource, AsyncUARulesResource -from .ua_rules import ( - UARulesResourceWithRawResponse, - AsyncUARulesResourceWithRawResponse, - UARulesResourceWithStreamingResponse, - AsyncUARulesResourceWithStreamingResponse, -) -from .waf import WAFResource, AsyncWAFResource from .waf import ( + WAFResource, + AsyncWAFResource, WAFResourceWithRawResponse, AsyncWAFResourceWithRawResponse, WAFResourceWithStreamingResponse, AsyncWAFResourceWithStreamingResponse, ) -from .firewall import FirewallResource, AsyncFirewallResource +from .rules import ( + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, +) from .firewall import ( + FirewallResource, + AsyncFirewallResource, FirewallResourceWithRawResponse, AsyncFirewallResourceWithRawResponse, FirewallResourceWithStreamingResponse, AsyncFirewallResourceWithStreamingResponse, ) +from .ua_rules import ( + UARulesResource, + AsyncUARulesResource, + UARulesResourceWithRawResponse, + AsyncUARulesResourceWithRawResponse, + UARulesResourceWithStreamingResponse, + AsyncUARulesResourceWithStreamingResponse, +) +from .lockdowns import ( + LockdownsResource, + AsyncLockdownsResource, + LockdownsResourceWithRawResponse, + AsyncLockdownsResourceWithRawResponse, + LockdownsResourceWithStreamingResponse, + AsyncLockdownsResourceWithStreamingResponse, +) +from .access_rules import ( + AccessRulesResource, + AsyncAccessRulesResource, + AccessRulesResourceWithRawResponse, + AsyncAccessRulesResourceWithRawResponse, + AccessRulesResourceWithStreamingResponse, + AsyncAccessRulesResourceWithStreamingResponse, +) __all__ = [ "LockdownsResource", diff --git a/src/cloudflare/resources/firewall/access_rules.py b/src/cloudflare/resources/firewall/access_rules.py index 389f51f40..63c68d5a5 100644 --- a/src/cloudflare/resources/firewall/access_rules.py +++ b/src/cloudflare/resources/firewall/access_rules.py @@ -2,63 +2,32 @@ from __future__ import annotations +from typing import Any, Type, Optional, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.firewall.access_rule_create_response import AccessRuleCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ...types.firewall.access_rule_delete_response import AccessRuleDeleteResponse - -from typing import Optional, Type - -from ...types.firewall.access_rule_edit_response import AccessRuleEditResponse - -from ...types.firewall.access_rule_get_response import AccessRuleGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ...types.firewall import access_rule_create_params, access_rule_list_params, access_rule_edit_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.firewall import access_rule_create_params -from ...types.firewall import access_rule_list_params -from ...types.firewall import access_rule_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ..._base_client import AsyncPaginator, make_request_options +from ...types.firewall import access_rule_edit_params, access_rule_list_params, access_rule_create_params +from ...types.firewall.access_rule_get_response import AccessRuleGetResponse +from ...types.firewall.access_rule_edit_response import AccessRuleEditResponse +from ...types.firewall.access_rule_create_response import AccessRuleCreateResponse +from ...types.firewall.access_rule_delete_response import AccessRuleDeleteResponse __all__ = ["AccessRulesResource", "AsyncAccessRulesResource"] diff --git a/src/cloudflare/resources/firewall/firewall.py b/src/cloudflare/resources/firewall/firewall.py index 2796012cd..77990b247 100644 --- a/src/cloudflare/resources/firewall/firewall.py +++ b/src/cloudflare/resources/firewall/firewall.py @@ -2,32 +2,13 @@ from __future__ import annotations -from .lockdowns import LockdownsResource, AsyncLockdownsResource - -from ..._compat import cached_property - -from .rules import RulesResource, AsyncRulesResource - -from .access_rules import AccessRulesResource, AsyncAccessRulesResource - -from .ua_rules import UARulesResource, AsyncUARulesResource - -from .waf.waf import WAFResource, AsyncWAFResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from .lockdowns import ( - LockdownsResource, - AsyncLockdownsResource, - LockdownsResourceWithRawResponse, - AsyncLockdownsResourceWithRawResponse, - LockdownsResourceWithStreamingResponse, - AsyncLockdownsResourceWithStreamingResponse, +from .waf import ( + WAFResource, + AsyncWAFResource, + WAFResourceWithRawResponse, + AsyncWAFResourceWithRawResponse, + WAFResourceWithStreamingResponse, + AsyncWAFResourceWithStreamingResponse, ) from .rules import ( RulesResource, @@ -37,14 +18,7 @@ from .rules import ( RulesResourceWithStreamingResponse, AsyncRulesResourceWithStreamingResponse, ) -from .access_rules import ( - AccessRulesResource, - AsyncAccessRulesResource, - AccessRulesResourceWithRawResponse, - AsyncAccessRulesResourceWithRawResponse, - AccessRulesResourceWithStreamingResponse, - AsyncAccessRulesResourceWithStreamingResponse, -) +from .waf.waf import WAFResource, AsyncWAFResource from .ua_rules import ( UARulesResource, AsyncUARulesResource, @@ -53,13 +27,23 @@ from .ua_rules import ( UARulesResourceWithStreamingResponse, AsyncUARulesResourceWithStreamingResponse, ) -from .waf import ( - WAFResource, - AsyncWAFResource, - WAFResourceWithRawResponse, - AsyncWAFResourceWithRawResponse, - WAFResourceWithStreamingResponse, - AsyncWAFResourceWithStreamingResponse, +from ..._compat import cached_property +from .lockdowns import ( + LockdownsResource, + AsyncLockdownsResource, + LockdownsResourceWithRawResponse, + AsyncLockdownsResourceWithRawResponse, + LockdownsResourceWithStreamingResponse, + AsyncLockdownsResourceWithStreamingResponse, +) +from ..._resource import SyncAPIResource, AsyncAPIResource +from .access_rules import ( + AccessRulesResource, + AsyncAccessRulesResource, + AccessRulesResourceWithRawResponse, + AsyncAccessRulesResourceWithRawResponse, + AccessRulesResourceWithStreamingResponse, + AsyncAccessRulesResourceWithStreamingResponse, ) __all__ = ["FirewallResource", "AsyncFirewallResource"] diff --git a/src/cloudflare/resources/firewall/lockdowns.py b/src/cloudflare/resources/firewall/lockdowns.py index 836c0074a..b32005455 100644 --- a/src/cloudflare/resources/firewall/lockdowns.py +++ b/src/cloudflare/resources/firewall/lockdowns.py @@ -2,57 +2,32 @@ from __future__ import annotations -import httpx - -from ..._compat import cached_property - -from ...types.firewall.lockdown import Lockdown - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from typing import Type, List, Union, Optional - -from ...types.firewall.configuration_param import ConfigurationParam - -from ...types.firewall.waf.override_url import OverrideURL - -from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +from typing import List, Type, Union, Optional, cast from datetime import datetime -from ...types.firewall.lockdown_delete_response import LockdownDeleteResponse +import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.firewall import lockdown_create_params -from ...types.firewall import lockdown_update_params -from ...types.firewall import lockdown_list_params -from ...types.firewall import Configuration -from ...types.firewall import Configuration -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ..._base_client import AsyncPaginator, make_request_options +from ...types.firewall import lockdown_list_params, lockdown_create_params, lockdown_update_params +from ...types.firewall.lockdown import Lockdown +from ...types.firewall.waf.override_url import OverrideURL +from ...types.firewall.configuration_param import ConfigurationParam +from ...types.firewall.lockdown_delete_response import LockdownDeleteResponse __all__ = ["LockdownsResource", "AsyncLockdownsResource"] diff --git a/src/cloudflare/resources/firewall/rules.py b/src/cloudflare/resources/firewall/rules.py index 338c746dc..3c7a789a5 100644 --- a/src/cloudflare/resources/firewall/rules.py +++ b/src/cloudflare/resources/firewall/rules.py @@ -3,61 +3,31 @@ from __future__ import annotations import typing_extensions +from typing import Type, Optional, cast import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.firewall.rule_create_response import RuleCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options, AsyncPaginator - -from ...types.filters.firewall_filter_param import FirewallFilterParam - -from ...types.firewall.firewall_rule import FirewallRule - -from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ...types.firewall.rule_edit_response import RuleEditResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ...types.firewall import rule_create_params, rule_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.firewall import rule_create_params -from ...types.firewall import rule_update_params -from ...types.firewall import rule_list_params -from ...types.firewall import rule_get_params -from ...types.filters import FirewallFilter -from ...types.filters import FirewallFilter -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ..._base_client import AsyncPaginator, make_request_options +from ...types.firewall import rule_get_params, rule_list_params, rule_create_params, rule_update_params +from ...types.firewall.firewall_rule import FirewallRule +from ...types.firewall.rule_edit_response import RuleEditResponse +from ...types.filters.firewall_filter_param import FirewallFilterParam +from ...types.firewall.rule_create_response import RuleCreateResponse __all__ = ["RulesResource", "AsyncRulesResource"] diff --git a/src/cloudflare/resources/firewall/ua_rules.py b/src/cloudflare/resources/firewall/ua_rules.py index 6416bf22e..03ea98b56 100644 --- a/src/cloudflare/resources/firewall/ua_rules.py +++ b/src/cloudflare/resources/firewall/ua_rules.py @@ -2,65 +2,33 @@ from __future__ import annotations +from typing import Any, Type, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.firewall.ua_rule_create_response import UARuleCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from ...types.firewall.ua_rule_update_response import UARuleUpdateResponse - -from ...types.firewall.ua_rule_list_response import UARuleListResponse - -from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ...types.firewall.ua_rule_delete_response import UARuleDeleteResponse - -from typing import Type - -from ...types.firewall.ua_rule_get_response import UARuleGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ...types.firewall import ua_rule_create_params, ua_rule_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.firewall import ua_rule_create_params -from ...types.firewall import ua_rule_update_params -from ...types.firewall import ua_rule_list_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ..._base_client import AsyncPaginator, make_request_options +from ...types.firewall import ua_rule_list_params, ua_rule_create_params, ua_rule_update_params +from ...types.firewall.ua_rule_get_response import UARuleGetResponse +from ...types.firewall.ua_rule_list_response import UARuleListResponse +from ...types.firewall.ua_rule_create_response import UARuleCreateResponse +from ...types.firewall.ua_rule_delete_response import UARuleDeleteResponse +from ...types.firewall.ua_rule_update_response import UARuleUpdateResponse __all__ = ["UARulesResource", "AsyncUARulesResource"] diff --git a/src/cloudflare/resources/firewall/waf/__init__.py b/src/cloudflare/resources/firewall/waf/__init__.py index deb8ad705..03886bfc2 100644 --- a/src/cloudflare/resources/firewall/waf/__init__.py +++ b/src/cloudflare/resources/firewall/waf/__init__.py @@ -1,25 +1,28 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .overrides import OverridesResource, AsyncOverridesResource -from .overrides import ( - OverridesResourceWithRawResponse, - AsyncOverridesResourceWithRawResponse, - OverridesResourceWithStreamingResponse, - AsyncOverridesResourceWithStreamingResponse, +from .waf import ( + WAFResource, + AsyncWAFResource, + WAFResourceWithRawResponse, + AsyncWAFResourceWithRawResponse, + WAFResourceWithStreamingResponse, + AsyncWAFResourceWithStreamingResponse, ) -from .packages import PackagesResource, AsyncPackagesResource from .packages import ( + PackagesResource, + AsyncPackagesResource, PackagesResourceWithRawResponse, AsyncPackagesResourceWithRawResponse, PackagesResourceWithStreamingResponse, AsyncPackagesResourceWithStreamingResponse, ) -from .waf import WAFResource, AsyncWAFResource -from .waf import ( - WAFResourceWithRawResponse, - AsyncWAFResourceWithRawResponse, - WAFResourceWithStreamingResponse, - AsyncWAFResourceWithStreamingResponse, +from .overrides import ( + OverridesResource, + AsyncOverridesResource, + OverridesResourceWithRawResponse, + AsyncOverridesResourceWithRawResponse, + OverridesResourceWithStreamingResponse, + AsyncOverridesResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/firewall/waf/overrides.py b/src/cloudflare/resources/firewall/waf/overrides.py index adeeda2c4..66353156b 100644 --- a/src/cloudflare/resources/firewall/waf/overrides.py +++ b/src/cloudflare/resources/firewall/waf/overrides.py @@ -2,57 +2,36 @@ from __future__ import annotations +from typing import List, Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.firewall.waf.override import Override - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from typing import Type, List, Optional - -from ....types.firewall.waf.override_url import OverrideURL - -from ....types.firewall.waf.rewrite_action_param import RewriteActionParam - -from ....types.firewall.waf.waf_rule_param import WAFRuleParam - -from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ....types.firewall.waf.override_delete_response import OverrideDeleteResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.firewall.waf import override_create_params -from ....types.firewall.waf import override_update_params -from ....types.firewall.waf import override_list_params -from ....types.firewall.waf import RewriteAction -from ....types.firewall.waf import WAFRule -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ...._base_client import AsyncPaginator, make_request_options +from ....types.firewall.waf import ( + override_list_params, + override_create_params, + override_update_params, +) +from ....types.firewall.waf.override import Override +from ....types.firewall.waf.override_url import OverrideURL +from ....types.firewall.waf.waf_rule_param import WAFRuleParam +from ....types.firewall.waf.rewrite_action_param import RewriteActionParam +from ....types.firewall.waf.override_delete_response import OverrideDeleteResponse __all__ = ["OverridesResource", "AsyncOverridesResource"] diff --git a/src/cloudflare/resources/firewall/waf/packages/__init__.py b/src/cloudflare/resources/firewall/waf/packages/__init__.py index f0f3d69b3..2398adf26 100644 --- a/src/cloudflare/resources/firewall/waf/packages/__init__.py +++ b/src/cloudflare/resources/firewall/waf/packages/__init__.py @@ -1,21 +1,24 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .groups import GroupsResource, AsyncGroupsResource -from .groups import ( - GroupsResourceWithRawResponse, - AsyncGroupsResourceWithRawResponse, - GroupsResourceWithStreamingResponse, - AsyncGroupsResourceWithStreamingResponse, -) -from .rules import RulesResource, AsyncRulesResource from .rules import ( + RulesResource, + AsyncRulesResource, RulesResourceWithRawResponse, AsyncRulesResourceWithRawResponse, RulesResourceWithStreamingResponse, AsyncRulesResourceWithStreamingResponse, ) -from .packages import PackagesResource, AsyncPackagesResource +from .groups import ( + GroupsResource, + AsyncGroupsResource, + GroupsResourceWithRawResponse, + AsyncGroupsResourceWithRawResponse, + GroupsResourceWithStreamingResponse, + AsyncGroupsResourceWithStreamingResponse, +) from .packages import ( + PackagesResource, + AsyncPackagesResource, PackagesResourceWithRawResponse, AsyncPackagesResourceWithRawResponse, PackagesResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/firewall/waf/packages/groups.py b/src/cloudflare/resources/firewall/waf/packages/groups.py index aab315bc2..a38352970 100644 --- a/src/cloudflare/resources/firewall/waf/packages/groups.py +++ b/src/cloudflare/resources/firewall/waf/packages/groups.py @@ -2,50 +2,31 @@ from __future__ import annotations +from typing import Any, cast +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.firewall.waf.packages.group import Group - -from .....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from .....types.firewall.waf.packages.group_edit_response import GroupEditResponse - -from ....._wrappers import ResultWrapper - -from .....types.firewall.waf.packages.group_get_response import GroupGetResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.firewall.waf.packages import group_list_params -from .....types.firewall.waf.packages import group_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._wrappers import ResultWrapper +from .....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ....._base_client import AsyncPaginator, make_request_options +from .....types.firewall.waf.packages import group_edit_params, group_list_params +from .....types.firewall.waf.packages.group import Group +from .....types.firewall.waf.packages.group_get_response import GroupGetResponse +from .....types.firewall.waf.packages.group_edit_response import GroupEditResponse __all__ = ["GroupsResource", "AsyncGroupsResource"] diff --git a/src/cloudflare/resources/firewall/waf/packages/packages.py b/src/cloudflare/resources/firewall/waf/packages/packages.py index 38e760d1b..b4d5b6232 100644 --- a/src/cloudflare/resources/firewall/waf/packages/packages.py +++ b/src/cloudflare/resources/firewall/waf/packages/packages.py @@ -2,49 +2,11 @@ from __future__ import annotations +from typing import Any, cast +from typing_extensions import Literal + import httpx -from .groups import GroupsResource, AsyncGroupsResource - -from ....._compat import cached_property - -from .rules import RulesResource, AsyncRulesResource - -from .....types.firewall.waf.package_list_response import PackageListResponse - -from .....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ....._utils import maybe_transform - -from ....._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from .....types.firewall.waf.package_get_response import PackageGetResponse - -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.firewall.waf import package_list_params -from .groups import ( - GroupsResource, - AsyncGroupsResource, - GroupsResourceWithRawResponse, - AsyncGroupsResourceWithRawResponse, - GroupsResourceWithStreamingResponse, - AsyncGroupsResourceWithStreamingResponse, -) from .rules import ( RulesResource, AsyncRulesResource, @@ -53,12 +15,29 @@ from .rules import ( RulesResourceWithStreamingResponse, AsyncRulesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .groups import ( + GroupsResource, + AsyncGroupsResource, + GroupsResourceWithRawResponse, + AsyncGroupsResourceWithRawResponse, + GroupsResourceWithStreamingResponse, + AsyncGroupsResourceWithStreamingResponse, +) +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import maybe_transform +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from .....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ....._base_client import AsyncPaginator, make_request_options +from .....types.firewall.waf import package_list_params +from .....types.firewall.waf.package_get_response import PackageGetResponse +from .....types.firewall.waf.package_list_response import PackageListResponse __all__ = ["PackagesResource", "AsyncPackagesResource"] diff --git a/src/cloudflare/resources/firewall/waf/packages/rules.py b/src/cloudflare/resources/firewall/waf/packages/rules.py index 036ff78ba..697ce9315 100644 --- a/src/cloudflare/resources/firewall/waf/packages/rules.py +++ b/src/cloudflare/resources/firewall/waf/packages/rules.py @@ -2,52 +2,31 @@ from __future__ import annotations +from typing import Any, cast +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.firewall.waf.packages.rule_list_response import RuleListResponse - -from .....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from .....types.firewall.waf.packages.rule_edit_response import RuleEditResponse - -from ....._wrappers import ResultWrapper - -from .....types.firewall.waf.packages.rule_get_response import RuleGetResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.firewall.waf.packages import rule_list_params -from .....types.firewall.waf.packages import rule_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._wrappers import ResultWrapper +from .....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ....._base_client import AsyncPaginator, make_request_options +from .....types.firewall.waf.packages import rule_edit_params, rule_list_params +from .....types.firewall.waf.packages.rule_get_response import RuleGetResponse +from .....types.firewall.waf.packages.rule_edit_response import RuleEditResponse +from .....types.firewall.waf.packages.rule_list_response import RuleListResponse __all__ = ["RulesResource", "AsyncRulesResource"] diff --git a/src/cloudflare/resources/firewall/waf/waf.py b/src/cloudflare/resources/firewall/waf/waf.py index 4561bb3d4..1a4ec2286 100644 --- a/src/cloudflare/resources/firewall/waf/waf.py +++ b/src/cloudflare/resources/firewall/waf/waf.py @@ -2,27 +2,6 @@ from __future__ import annotations -from .overrides import OverridesResource, AsyncOverridesResource - -from ...._compat import cached_property - -from .packages.packages import PackagesResource, AsyncPackagesResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from .overrides import ( - OverridesResource, - AsyncOverridesResource, - OverridesResourceWithRawResponse, - AsyncOverridesResourceWithRawResponse, - OverridesResourceWithStreamingResponse, - AsyncOverridesResourceWithStreamingResponse, -) from .packages import ( PackagesResource, AsyncPackagesResource, @@ -31,6 +10,17 @@ from .packages import ( PackagesResourceWithStreamingResponse, AsyncPackagesResourceWithStreamingResponse, ) +from .overrides import ( + OverridesResource, + AsyncOverridesResource, + OverridesResourceWithRawResponse, + AsyncOverridesResourceWithRawResponse, + OverridesResourceWithStreamingResponse, + AsyncOverridesResourceWithStreamingResponse, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from .packages.packages import PackagesResource, AsyncPackagesResource __all__ = ["WAFResource", "AsyncWAFResource"] diff --git a/src/cloudflare/resources/healthchecks/__init__.py b/src/cloudflare/resources/healthchecks/__init__.py index 55b0b96b6..33ddb832b 100644 --- a/src/cloudflare/resources/healthchecks/__init__.py +++ b/src/cloudflare/resources/healthchecks/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .previews import PreviewsResource, AsyncPreviewsResource from .previews import ( + PreviewsResource, + AsyncPreviewsResource, PreviewsResourceWithRawResponse, AsyncPreviewsResourceWithRawResponse, PreviewsResourceWithStreamingResponse, AsyncPreviewsResourceWithStreamingResponse, ) -from .healthchecks import HealthchecksResource, AsyncHealthchecksResource from .healthchecks import ( + HealthchecksResource, + AsyncHealthchecksResource, HealthchecksResourceWithRawResponse, AsyncHealthchecksResourceWithRawResponse, HealthchecksResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/healthchecks/healthchecks.py b/src/cloudflare/resources/healthchecks/healthchecks.py index e71a54d2f..46a8fc73d 100644 --- a/src/cloudflare/resources/healthchecks/healthchecks.py +++ b/src/cloudflare/resources/healthchecks/healthchecks.py @@ -2,56 +2,15 @@ from __future__ import annotations +from typing import List, Type, Optional, cast + import httpx -from .previews import PreviewsResource, AsyncPreviewsResource - -from ..._compat import cached_property - -from ...types.healthchecks.healthcheck import Healthcheck - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from typing import Type, Optional, List - -from ...types.healthchecks.check_region import CheckRegion - -from ...types.healthchecks.http_configuration_param import HTTPConfigurationParam - -from ...types.healthchecks.tcp_configuration_param import TCPConfigurationParam - -from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ...types.healthchecks.healthcheck_delete_response import HealthcheckDeleteResponse - -from ..._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.healthchecks import healthcheck_create_params -from ...types.healthchecks import healthcheck_update_params -from ...types.healthchecks import healthcheck_list_params -from ...types.healthchecks import healthcheck_edit_params -from ...types.healthchecks import HTTPConfiguration -from ...types.healthchecks import TCPConfiguration -from ...types.healthchecks import HTTPConfiguration -from ...types.healthchecks import TCPConfiguration -from ...types.healthchecks import HTTPConfiguration -from ...types.healthchecks import TCPConfiguration from .previews import ( PreviewsResource, AsyncPreviewsResource, @@ -60,16 +19,28 @@ from .previews import ( PreviewsResourceWithStreamingResponse, AsyncPreviewsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ..._wrappers import ResultWrapper +from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ..._base_client import AsyncPaginator, make_request_options +from ...types.healthchecks import ( + healthcheck_edit_params, + healthcheck_list_params, + healthcheck_create_params, + healthcheck_update_params, +) +from ...types.healthchecks.healthcheck import Healthcheck +from ...types.healthchecks.check_region import CheckRegion +from ...types.healthchecks.tcp_configuration_param import TCPConfigurationParam +from ...types.healthchecks.http_configuration_param import HTTPConfigurationParam +from ...types.healthchecks.healthcheck_delete_response import HealthcheckDeleteResponse __all__ = ["HealthchecksResource", "AsyncHealthchecksResource"] diff --git a/src/cloudflare/resources/healthchecks/previews.py b/src/cloudflare/resources/healthchecks/previews.py index 71f4fb8f1..d65931567 100644 --- a/src/cloudflare/resources/healthchecks/previews.py +++ b/src/cloudflare/resources/healthchecks/previews.py @@ -2,51 +2,31 @@ from __future__ import annotations +from typing import List, Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.healthchecks.healthcheck import Healthcheck - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing import Type, Optional, List - -from ...types.healthchecks.check_region import CheckRegion - -from ...types.healthchecks.http_configuration_param import HTTPConfigurationParam - -from ...types.healthchecks.tcp_configuration_param import TCPConfigurationParam - -from ...types.healthchecks.preview_delete_response import PreviewDeleteResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.healthchecks import preview_create_params -from ...types.healthchecks import HTTPConfiguration -from ...types.healthchecks import TCPConfiguration -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...types.healthchecks.healthcheck import Healthcheck +from ...types.healthchecks.check_region import CheckRegion +from ...types.healthchecks.preview_delete_response import PreviewDeleteResponse +from ...types.healthchecks.tcp_configuration_param import TCPConfigurationParam +from ...types.healthchecks.http_configuration_param import HTTPConfigurationParam __all__ = ["PreviewsResource", "AsyncPreviewsResource"] diff --git a/src/cloudflare/resources/hostnames/__init__.py b/src/cloudflare/resources/hostnames/__init__.py index aa9c6d54b..52ba53610 100644 --- a/src/cloudflare/resources/hostnames/__init__.py +++ b/src/cloudflare/resources/hostnames/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .settings import SettingsResource, AsyncSettingsResource from .settings import ( + SettingsResource, + AsyncSettingsResource, SettingsResourceWithRawResponse, AsyncSettingsResourceWithRawResponse, SettingsResourceWithStreamingResponse, AsyncSettingsResourceWithStreamingResponse, ) -from .hostnames import HostnamesResource, AsyncHostnamesResource from .hostnames import ( + HostnamesResource, + AsyncHostnamesResource, HostnamesResourceWithRawResponse, AsyncHostnamesResourceWithRawResponse, HostnamesResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/hostnames/hostnames.py b/src/cloudflare/resources/hostnames/hostnames.py index bcace4350..8b2b6c2da 100644 --- a/src/cloudflare/resources/hostnames/hostnames.py +++ b/src/cloudflare/resources/hostnames/hostnames.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .settings.settings import SettingsResource, AsyncSettingsResource - -from ..._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .settings import ( SettingsResource, AsyncSettingsResource, @@ -21,6 +10,9 @@ from .settings import ( SettingsResourceWithStreamingResponse, AsyncSettingsResourceWithStreamingResponse, ) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from .settings.settings import SettingsResource, AsyncSettingsResource __all__ = ["HostnamesResource", "AsyncHostnamesResource"] diff --git a/src/cloudflare/resources/hostnames/settings/__init__.py b/src/cloudflare/resources/hostnames/settings/__init__.py index 8d0d07a3c..b23f0392a 100644 --- a/src/cloudflare/resources/hostnames/settings/__init__.py +++ b/src/cloudflare/resources/hostnames/settings/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .tls import TLSResource, AsyncTLSResource from .tls import ( + TLSResource, + AsyncTLSResource, TLSResourceWithRawResponse, AsyncTLSResourceWithRawResponse, TLSResourceWithStreamingResponse, AsyncTLSResourceWithStreamingResponse, ) -from .settings import SettingsResource, AsyncSettingsResource from .settings import ( + SettingsResource, + AsyncSettingsResource, SettingsResourceWithRawResponse, AsyncSettingsResourceWithRawResponse, SettingsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/hostnames/settings/settings.py b/src/cloudflare/resources/hostnames/settings/settings.py index d490ac70e..9f31fc518 100644 --- a/src/cloudflare/resources/hostnames/settings/settings.py +++ b/src/cloudflare/resources/hostnames/settings/settings.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .tls import TLSResource, AsyncTLSResource - -from ...._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params from .tls import ( TLSResource, AsyncTLSResource, @@ -21,6 +10,8 @@ from .tls import ( TLSResourceWithStreamingResponse, AsyncTLSResourceWithStreamingResponse, ) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource __all__ = ["SettingsResource", "AsyncSettingsResource"] diff --git a/src/cloudflare/resources/hostnames/settings/tls.py b/src/cloudflare/resources/hostnames/settings/tls.py index 231f1541e..32cf20e4e 100644 --- a/src/cloudflare/resources/hostnames/settings/tls.py +++ b/src/cloudflare/resources/hostnames/settings/tls.py @@ -2,50 +2,31 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.hostnames.settings.setting import Setting - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options - -from typing_extensions import Literal - -from ....types.hostnames.settings.setting_value_param import SettingValueParam - -from ....types.hostnames.settings.tls_delete_response import TLSDeleteResponse - -from ....types.hostnames.settings.tls_get_response import TLSGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.hostnames.settings import tls_update_params -from ....types.hostnames.settings import SettingValue -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....types.hostnames.settings.setting import Setting +from ....types.hostnames.settings.tls_get_response import TLSGetResponse +from ....types.hostnames.settings.setting_value_param import SettingValueParam +from ....types.hostnames.settings.tls_delete_response import TLSDeleteResponse __all__ = ["TLSResource", "AsyncTLSResource"] diff --git a/src/cloudflare/resources/hyperdrive/__init__.py b/src/cloudflare/resources/hyperdrive/__init__.py index b110aa870..525d22370 100644 --- a/src/cloudflare/resources/hyperdrive/__init__.py +++ b/src/cloudflare/resources/hyperdrive/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .configs import ConfigsResource, AsyncConfigsResource from .configs import ( + ConfigsResource, + AsyncConfigsResource, ConfigsResourceWithRawResponse, AsyncConfigsResourceWithRawResponse, ConfigsResourceWithStreamingResponse, AsyncConfigsResourceWithStreamingResponse, ) -from .hyperdrive import HyperdriveResource, AsyncHyperdriveResource from .hyperdrive import ( + HyperdriveResource, + AsyncHyperdriveResource, HyperdriveResourceWithRawResponse, AsyncHyperdriveResourceWithRawResponse, HyperdriveResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/hyperdrive/configs.py b/src/cloudflare/resources/hyperdrive/configs.py index ed0c4605a..dd93b5f9a 100644 --- a/src/cloudflare/resources/hyperdrive/configs.py +++ b/src/cloudflare/resources/hyperdrive/configs.py @@ -2,60 +2,30 @@ from __future__ import annotations +from typing import Any, Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.hyperdrive.hyperdrive import Hyperdrive - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options, AsyncPaginator - -from ...types.hyperdrive.configuration_param import ConfigurationParam - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from ...types.hyperdrive.config_delete_response import ConfigDeleteResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ...types.hyperdrive import config_create_params, config_update_params, config_edit_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.hyperdrive import config_create_params -from ...types.hyperdrive import config_update_params -from ...types.hyperdrive import config_edit_params -from ...types.hyperdrive import Configuration -from ...types.hyperdrive import Configuration -from ...types.hyperdrive import Configuration -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options +from ...types.hyperdrive import config_edit_params, config_create_params, config_update_params +from ...types.hyperdrive.hyperdrive import Hyperdrive +from ...types.hyperdrive.configuration_param import ConfigurationParam +from ...types.hyperdrive.config_delete_response import ConfigDeleteResponse __all__ = ["ConfigsResource", "AsyncConfigsResource"] diff --git a/src/cloudflare/resources/hyperdrive/hyperdrive.py b/src/cloudflare/resources/hyperdrive/hyperdrive.py index 8099578a7..fbca61fe4 100644 --- a/src/cloudflare/resources/hyperdrive/hyperdrive.py +++ b/src/cloudflare/resources/hyperdrive/hyperdrive.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .configs import ConfigsResource, AsyncConfigsResource - -from ..._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .configs import ( ConfigsResource, AsyncConfigsResource, @@ -21,6 +10,8 @@ from .configs import ( ConfigsResourceWithStreamingResponse, AsyncConfigsResourceWithStreamingResponse, ) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource __all__ = ["HyperdriveResource", "AsyncHyperdriveResource"] diff --git a/src/cloudflare/resources/iam/__init__.py b/src/cloudflare/resources/iam/__init__.py index 22b7a414e..a233360f7 100644 --- a/src/cloudflare/resources/iam/__init__.py +++ b/src/cloudflare/resources/iam/__init__.py @@ -1,25 +1,28 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .permission_groups import PermissionGroupsResource, AsyncPermissionGroupsResource -from .permission_groups import ( - PermissionGroupsResourceWithRawResponse, - AsyncPermissionGroupsResourceWithRawResponse, - PermissionGroupsResourceWithStreamingResponse, - AsyncPermissionGroupsResourceWithStreamingResponse, +from .iam import ( + IAMResource, + AsyncIAMResource, + IAMResourceWithRawResponse, + AsyncIAMResourceWithRawResponse, + IAMResourceWithStreamingResponse, + AsyncIAMResourceWithStreamingResponse, ) -from .resource_groups import ResourceGroupsResource, AsyncResourceGroupsResource from .resource_groups import ( + ResourceGroupsResource, + AsyncResourceGroupsResource, ResourceGroupsResourceWithRawResponse, AsyncResourceGroupsResourceWithRawResponse, ResourceGroupsResourceWithStreamingResponse, AsyncResourceGroupsResourceWithStreamingResponse, ) -from .iam import IAMResource, AsyncIAMResource -from .iam import ( - IAMResourceWithRawResponse, - AsyncIAMResourceWithRawResponse, - IAMResourceWithStreamingResponse, - AsyncIAMResourceWithStreamingResponse, +from .permission_groups import ( + PermissionGroupsResource, + AsyncPermissionGroupsResource, + PermissionGroupsResourceWithRawResponse, + AsyncPermissionGroupsResourceWithRawResponse, + PermissionGroupsResourceWithStreamingResponse, + AsyncPermissionGroupsResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/iam/iam.py b/src/cloudflare/resources/iam/iam.py index bb89a90d0..c8dd72b1c 100644 --- a/src/cloudflare/resources/iam/iam.py +++ b/src/cloudflare/resources/iam/iam.py @@ -2,27 +2,8 @@ from __future__ import annotations -from .permission_groups import PermissionGroupsResource, AsyncPermissionGroupsResource - from ..._compat import cached_property - -from .resource_groups import ResourceGroupsResource, AsyncResourceGroupsResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from .permission_groups import ( - PermissionGroupsResource, - AsyncPermissionGroupsResource, - PermissionGroupsResourceWithRawResponse, - AsyncPermissionGroupsResourceWithRawResponse, - PermissionGroupsResourceWithStreamingResponse, - AsyncPermissionGroupsResourceWithStreamingResponse, -) from .resource_groups import ( ResourceGroupsResource, AsyncResourceGroupsResource, @@ -31,6 +12,14 @@ from .resource_groups import ( ResourceGroupsResourceWithStreamingResponse, AsyncResourceGroupsResourceWithStreamingResponse, ) +from .permission_groups import ( + PermissionGroupsResource, + AsyncPermissionGroupsResource, + PermissionGroupsResourceWithRawResponse, + AsyncPermissionGroupsResourceWithRawResponse, + PermissionGroupsResourceWithStreamingResponse, + AsyncPermissionGroupsResourceWithStreamingResponse, +) __all__ = ["IAMResource", "AsyncIAMResource"] diff --git a/src/cloudflare/resources/iam/permission_groups.py b/src/cloudflare/resources/iam/permission_groups.py index 61fae781d..a73299d11 100644 --- a/src/cloudflare/resources/iam/permission_groups.py +++ b/src/cloudflare/resources/iam/permission_groups.py @@ -4,31 +4,20 @@ from __future__ import annotations import httpx -from ..._compat import cached_property - -from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._utils import maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from ...types.iam.permission_group_get_response import PermissionGroupGetResponse - +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from ...types.iam import permission_group_list_params +from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ..._base_client import AsyncPaginator, make_request_options +from ...types.iam.permission_group_get_response import PermissionGroupGetResponse __all__ = ["PermissionGroupsResource", "AsyncPermissionGroupsResource"] diff --git a/src/cloudflare/resources/iam/resource_groups.py b/src/cloudflare/resources/iam/resource_groups.py index 0e55bad54..d31ccfb2b 100644 --- a/src/cloudflare/resources/iam/resource_groups.py +++ b/src/cloudflare/resources/iam/resource_groups.py @@ -2,49 +2,31 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.iam.resource_group_create_response import ResourceGroupCreateResponse - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from ...types.iam.resource_group_update_response import ResourceGroupUpdateResponse - -from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ...types.iam.resource_group_delete_response import ResourceGroupDeleteResponse - -from ..._wrappers import ResultWrapper - -from typing import Optional, Type - -from ...types.iam.resource_group_get_response import ResourceGroupGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ...types.iam import resource_group_create_params, resource_group_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.iam import resource_group_create_params -from ...types.iam import resource_group_update_params -from ...types.iam import resource_group_list_params -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...types.iam import resource_group_list_params, resource_group_create_params, resource_group_update_params +from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ..._base_client import AsyncPaginator, make_request_options +from ...types.iam.resource_group_get_response import ResourceGroupGetResponse +from ...types.iam.resource_group_create_response import ResourceGroupCreateResponse +from ...types.iam.resource_group_delete_response import ResourceGroupDeleteResponse +from ...types.iam.resource_group_update_response import ResourceGroupUpdateResponse __all__ = ["ResourceGroupsResource", "AsyncResourceGroupsResource"] diff --git a/src/cloudflare/resources/images/__init__.py b/src/cloudflare/resources/images/__init__.py index 5c28f9fa5..5f6c36d97 100644 --- a/src/cloudflare/resources/images/__init__.py +++ b/src/cloudflare/resources/images/__init__.py @@ -1,21 +1,24 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .v1 import V1Resource, AsyncV1Resource from .v1 import ( + V1Resource, + AsyncV1Resource, V1ResourceWithRawResponse, AsyncV1ResourceWithRawResponse, V1ResourceWithStreamingResponse, AsyncV1ResourceWithStreamingResponse, ) -from .v2 import V2Resource, AsyncV2Resource from .v2 import ( + V2Resource, + AsyncV2Resource, V2ResourceWithRawResponse, AsyncV2ResourceWithRawResponse, V2ResourceWithStreamingResponse, AsyncV2ResourceWithStreamingResponse, ) -from .images import ImagesResource, AsyncImagesResource from .images import ( + ImagesResource, + AsyncImagesResource, ImagesResourceWithRawResponse, AsyncImagesResourceWithRawResponse, ImagesResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/images/images.py b/src/cloudflare/resources/images/images.py index e6744bfab..211ccd371 100644 --- a/src/cloudflare/resources/images/images.py +++ b/src/cloudflare/resources/images/images.py @@ -2,19 +2,6 @@ from __future__ import annotations -from .v1.v1 import V1Resource, AsyncV1Resource - -from ..._compat import cached_property - -from .v2.v2 import V2Resource, AsyncV2Resource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .v1 import ( V1Resource, AsyncV1Resource, @@ -31,6 +18,10 @@ from .v2 import ( V2ResourceWithStreamingResponse, AsyncV2ResourceWithStreamingResponse, ) +from .v1.v1 import V1Resource, AsyncV1Resource +from .v2.v2 import V2Resource, AsyncV2Resource +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource __all__ = ["ImagesResource", "AsyncImagesResource"] diff --git a/src/cloudflare/resources/images/v1/__init__.py b/src/cloudflare/resources/images/v1/__init__.py index a65fb68f1..8f34624ef 100644 --- a/src/cloudflare/resources/images/v1/__init__.py +++ b/src/cloudflare/resources/images/v1/__init__.py @@ -1,39 +1,44 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .keys import KeysResource, AsyncKeysResource +from .v1 import ( + V1Resource, + AsyncV1Resource, + V1ResourceWithRawResponse, + AsyncV1ResourceWithRawResponse, + V1ResourceWithStreamingResponse, + AsyncV1ResourceWithStreamingResponse, +) from .keys import ( + KeysResource, + AsyncKeysResource, KeysResourceWithRawResponse, AsyncKeysResourceWithRawResponse, KeysResourceWithStreamingResponse, AsyncKeysResourceWithStreamingResponse, ) -from .stats import StatsResource, AsyncStatsResource -from .stats import ( - StatsResourceWithRawResponse, - AsyncStatsResourceWithRawResponse, - StatsResourceWithStreamingResponse, - AsyncStatsResourceWithStreamingResponse, -) -from .variants import VariantsResource, AsyncVariantsResource -from .variants import ( - VariantsResourceWithRawResponse, - AsyncVariantsResourceWithRawResponse, - VariantsResourceWithStreamingResponse, - AsyncVariantsResourceWithStreamingResponse, -) -from .blobs import BlobsResource, AsyncBlobsResource from .blobs import ( + BlobsResource, + AsyncBlobsResource, BlobsResourceWithRawResponse, AsyncBlobsResourceWithRawResponse, BlobsResourceWithStreamingResponse, AsyncBlobsResourceWithStreamingResponse, ) -from .v1 import V1Resource, AsyncV1Resource -from .v1 import ( - V1ResourceWithRawResponse, - AsyncV1ResourceWithRawResponse, - V1ResourceWithStreamingResponse, - AsyncV1ResourceWithStreamingResponse, +from .stats import ( + StatsResource, + AsyncStatsResource, + StatsResourceWithRawResponse, + AsyncStatsResourceWithRawResponse, + StatsResourceWithStreamingResponse, + AsyncStatsResourceWithStreamingResponse, +) +from .variants import ( + VariantsResource, + AsyncVariantsResource, + VariantsResourceWithRawResponse, + AsyncVariantsResourceWithRawResponse, + VariantsResourceWithStreamingResponse, + AsyncVariantsResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/images/v1/blobs.py b/src/cloudflare/resources/images/v1/blobs.py index f457daec0..d8e492724 100644 --- a/src/cloudflare/resources/images/v1/blobs.py +++ b/src/cloudflare/resources/images/v1/blobs.py @@ -4,29 +4,21 @@ from __future__ import annotations import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( BinaryAPIResponse, AsyncBinaryAPIResponse, - to_custom_raw_response_wrapper, - async_to_custom_raw_response_wrapper, - to_custom_streamed_response_wrapper, StreamedBinaryAPIResponse, - async_to_custom_streamed_response_wrapper, AsyncStreamedBinaryAPIResponse, + to_custom_raw_response_wrapper, + to_custom_streamed_response_wrapper, + async_to_custom_raw_response_wrapper, + async_to_custom_streamed_response_wrapper, ) - from ...._base_client import make_request_options -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params - __all__ = ["BlobsResource", "AsyncBlobsResource"] diff --git a/src/cloudflare/resources/images/v1/keys.py b/src/cloudflare/resources/images/v1/keys.py index 17602afd4..fb2704fbc 100644 --- a/src/cloudflare/resources/images/v1/keys.py +++ b/src/cloudflare/resources/images/v1/keys.py @@ -2,42 +2,24 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.images.v1.key_update_response import KeyUpdateResponse - -from ...._wrappers import ResultWrapper - -from ...._base_client import make_request_options - -from typing import Type - -from ....types.images.v1.key_list_response import KeyListResponse - -from ....types.images.v1.key_delete_response import KeyDeleteResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.images.v1.key_list_response import KeyListResponse +from ....types.images.v1.key_delete_response import KeyDeleteResponse +from ....types.images.v1.key_update_response import KeyUpdateResponse __all__ = ["KeysResource", "AsyncKeysResource"] diff --git a/src/cloudflare/resources/images/v1/stats.py b/src/cloudflare/resources/images/v1/stats.py index 5eaaec480..bff97af42 100644 --- a/src/cloudflare/resources/images/v1/stats.py +++ b/src/cloudflare/resources/images/v1/stats.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.images.v1.stat import Stat - -from ...._wrappers import ResultWrapper - -from ...._base_client import make_request_options - -from typing import Type - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.images.v1.stat import Stat __all__ = ["StatsResource", "AsyncStatsResource"] diff --git a/src/cloudflare/resources/images/v1/v1.py b/src/cloudflare/resources/images/v1/v1.py index 74f996007..094a8bb73 100644 --- a/src/cloudflare/resources/images/v1/v1.py +++ b/src/cloudflare/resources/images/v1/v1.py @@ -2,51 +2,10 @@ from __future__ import annotations +from typing import Any, Type, cast + import httpx -from .keys import KeysResource, AsyncKeysResource - -from ...._compat import cached_property - -from .stats import StatsResource, AsyncStatsResource - -from .variants import VariantsResource, AsyncVariantsResource - -from .blobs import BlobsResource, AsyncBlobsResource - -from ....types.images.image import Image - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from typing import Type - -from ....types.images.v1_list_response import V1ListResponse - -from ....pagination import SyncV4PagePagination, AsyncV4PagePagination - -from ....types.images.v1_delete_response import V1DeleteResponse - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.images import v1_create_params -from ....types.images import v1_list_params -from ....types.images import v1_edit_params from .keys import ( KeysResource, AsyncKeysResource, @@ -55,6 +14,14 @@ from .keys import ( KeysResourceWithStreamingResponse, AsyncKeysResourceWithStreamingResponse, ) +from .blobs import ( + BlobsResource, + AsyncBlobsResource, + BlobsResourceWithRawResponse, + AsyncBlobsResourceWithRawResponse, + BlobsResourceWithStreamingResponse, + AsyncBlobsResourceWithStreamingResponse, +) from .stats import ( StatsResource, AsyncStatsResource, @@ -71,24 +38,26 @@ from .variants import ( VariantsResourceWithStreamingResponse, AsyncVariantsResourceWithStreamingResponse, ) -from .blobs import ( - BlobsResource, - AsyncBlobsResource, - BlobsResourceWithRawResponse, - AsyncBlobsResourceWithRawResponse, - BlobsResourceWithStreamingResponse, - AsyncBlobsResourceWithStreamingResponse, +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....pagination import SyncV4PagePagination, AsyncV4PagePagination +from ...._base_client import AsyncPaginator, make_request_options +from ....types.images import v1_edit_params, v1_list_params, v1_create_params +from ....types.images.image import Image +from ....types.images.v1_list_response import V1ListResponse +from ....types.images.v1_delete_response import V1DeleteResponse __all__ = ["V1Resource", "AsyncV1Resource"] diff --git a/src/cloudflare/resources/images/v1/variants.py b/src/cloudflare/resources/images/v1/variants.py index 85cd4b657..e81e9a49c 100644 --- a/src/cloudflare/resources/images/v1/variants.py +++ b/src/cloudflare/resources/images/v1/variants.py @@ -2,58 +2,31 @@ from __future__ import annotations +from typing import Any, Type, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.images.v1.variant_create_response import VariantCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type - -from ....types.images.v1.variant import Variant - -from ....types.images.v1.variant_delete_response import VariantDeleteResponse - -from ....types.images.v1.variant_edit_response import VariantEditResponse - -from ....types.images.v1.variant_get_response import VariantGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ....types.images.v1 import variant_create_params, variant_edit_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.images.v1 import variant_create_params -from ....types.images.v1 import variant_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.images.v1 import variant_edit_params, variant_create_params +from ....types.images.v1.variant import Variant +from ....types.images.v1.variant_get_response import VariantGetResponse +from ....types.images.v1.variant_edit_response import VariantEditResponse +from ....types.images.v1.variant_create_response import VariantCreateResponse +from ....types.images.v1.variant_delete_response import VariantDeleteResponse __all__ = ["VariantsResource", "AsyncVariantsResource"] diff --git a/src/cloudflare/resources/images/v2/__init__.py b/src/cloudflare/resources/images/v2/__init__.py index b54b49b10..aa1ac4704 100644 --- a/src/cloudflare/resources/images/v2/__init__.py +++ b/src/cloudflare/resources/images/v2/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .direct_uploads import DirectUploadsResource, AsyncDirectUploadsResource -from .direct_uploads import ( - DirectUploadsResourceWithRawResponse, - AsyncDirectUploadsResourceWithRawResponse, - DirectUploadsResourceWithStreamingResponse, - AsyncDirectUploadsResourceWithStreamingResponse, -) -from .v2 import V2Resource, AsyncV2Resource from .v2 import ( + V2Resource, + AsyncV2Resource, V2ResourceWithRawResponse, AsyncV2ResourceWithRawResponse, V2ResourceWithStreamingResponse, AsyncV2ResourceWithStreamingResponse, ) +from .direct_uploads import ( + DirectUploadsResource, + AsyncDirectUploadsResource, + DirectUploadsResourceWithRawResponse, + AsyncDirectUploadsResourceWithRawResponse, + DirectUploadsResourceWithStreamingResponse, + AsyncDirectUploadsResourceWithStreamingResponse, +) __all__ = [ "DirectUploadsResource", diff --git a/src/cloudflare/resources/images/v2/direct_uploads.py b/src/cloudflare/resources/images/v2/direct_uploads.py index e4fd27c1c..85950b687 100644 --- a/src/cloudflare/resources/images/v2/direct_uploads.py +++ b/src/cloudflare/resources/images/v2/direct_uploads.py @@ -2,39 +2,28 @@ from __future__ import annotations -import httpx - -from ...._compat import cached_property - -from ....types.images.v2.direct_upload_create_response import DirectUploadCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, Union - +from typing import Type, Union, cast from datetime import datetime +import httpx + +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.images.v2 import direct_upload_create_params -from typing import cast -from typing import cast +from ....types.images.v2.direct_upload_create_response import DirectUploadCreateResponse __all__ = ["DirectUploadsResource", "AsyncDirectUploadsResource"] diff --git a/src/cloudflare/resources/images/v2/v2.py b/src/cloudflare/resources/images/v2/v2.py index 251a1dbba..2aba06568 100644 --- a/src/cloudflare/resources/images/v2/v2.py +++ b/src/cloudflare/resources/images/v2/v2.py @@ -2,39 +2,25 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx -from .direct_uploads import DirectUploadsResource, AsyncDirectUploadsResource - +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.images.v2_list_response import V2ListResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, Optional - -from typing_extensions import Literal - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.images import v2_list_params +from ...._wrappers import ResultWrapper from .direct_uploads import ( DirectUploadsResource, AsyncDirectUploadsResource, @@ -43,8 +29,9 @@ from .direct_uploads import ( DirectUploadsResourceWithStreamingResponse, AsyncDirectUploadsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from ...._base_client import make_request_options +from ....types.images import v2_list_params +from ....types.images.v2_list_response import V2ListResponse __all__ = ["V2Resource", "AsyncV2Resource"] diff --git a/src/cloudflare/resources/intel/__init__.py b/src/cloudflare/resources/intel/__init__.py index 71507e84e..126ee686d 100644 --- a/src/cloudflare/resources/intel/__init__.py +++ b/src/cloudflare/resources/intel/__init__.py @@ -1,89 +1,101 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .asn import ASNResource, AsyncASNResource from .asn import ( + ASNResource, + AsyncASNResource, ASNResourceWithRawResponse, AsyncASNResourceWithRawResponse, ASNResourceWithStreamingResponse, AsyncASNResourceWithStreamingResponse, ) -from .dns import DNSResource, AsyncDNSResource from .dns import ( + DNSResource, + AsyncDNSResource, DNSResourceWithRawResponse, AsyncDNSResourceWithRawResponse, DNSResourceWithStreamingResponse, AsyncDNSResourceWithStreamingResponse, ) -from .domains import DomainsResource, AsyncDomainsResource -from .domains import ( - DomainsResourceWithRawResponse, - AsyncDomainsResourceWithRawResponse, - DomainsResourceWithStreamingResponse, - AsyncDomainsResourceWithStreamingResponse, -) -from .domain_history import DomainHistoryResource, AsyncDomainHistoryResource -from .domain_history import ( - DomainHistoryResourceWithRawResponse, - AsyncDomainHistoryResourceWithRawResponse, - DomainHistoryResourceWithStreamingResponse, - AsyncDomainHistoryResourceWithStreamingResponse, -) -from .ips import IPsResource, AsyncIPsResource from .ips import ( + IPsResource, + AsyncIPsResource, IPsResourceWithRawResponse, AsyncIPsResourceWithRawResponse, IPsResourceWithStreamingResponse, AsyncIPsResourceWithStreamingResponse, ) -from .ip_lists import IPListsResource, AsyncIPListsResource -from .ip_lists import ( - IPListsResourceWithRawResponse, - AsyncIPListsResourceWithRawResponse, - IPListsResourceWithStreamingResponse, - AsyncIPListsResourceWithStreamingResponse, +from .intel import ( + IntelResource, + AsyncIntelResource, + IntelResourceWithRawResponse, + AsyncIntelResourceWithRawResponse, + IntelResourceWithStreamingResponse, + AsyncIntelResourceWithStreamingResponse, ) -from .miscategorizations import MiscategorizationsResource, AsyncMiscategorizationsResource -from .miscategorizations import ( - MiscategorizationsResourceWithRawResponse, - AsyncMiscategorizationsResourceWithRawResponse, - MiscategorizationsResourceWithStreamingResponse, - AsyncMiscategorizationsResourceWithStreamingResponse, -) -from .whois import WhoisResource, AsyncWhoisResource from .whois import ( + WhoisResource, + AsyncWhoisResource, WhoisResourceWithRawResponse, AsyncWhoisResourceWithRawResponse, WhoisResourceWithStreamingResponse, AsyncWhoisResourceWithStreamingResponse, ) -from .indicator_feeds import IndicatorFeedsResource, AsyncIndicatorFeedsResource -from .indicator_feeds import ( - IndicatorFeedsResourceWithRawResponse, - AsyncIndicatorFeedsResourceWithRawResponse, - IndicatorFeedsResourceWithStreamingResponse, - AsyncIndicatorFeedsResourceWithStreamingResponse, +from .domains import ( + DomainsResource, + AsyncDomainsResource, + DomainsResourceWithRawResponse, + AsyncDomainsResourceWithRawResponse, + DomainsResourceWithStreamingResponse, + AsyncDomainsResourceWithStreamingResponse, +) +from .ip_lists import ( + IPListsResource, + AsyncIPListsResource, + IPListsResourceWithRawResponse, + AsyncIPListsResourceWithRawResponse, + IPListsResourceWithStreamingResponse, + AsyncIPListsResourceWithStreamingResponse, ) -from .sinkholes import SinkholesResource, AsyncSinkholesResource from .sinkholes import ( + SinkholesResource, + AsyncSinkholesResource, SinkholesResourceWithRawResponse, AsyncSinkholesResourceWithRawResponse, SinkholesResourceWithStreamingResponse, AsyncSinkholesResourceWithStreamingResponse, ) -from .attack_surface_report import AttackSurfaceReportResource, AsyncAttackSurfaceReportResource +from .domain_history import ( + DomainHistoryResource, + AsyncDomainHistoryResource, + DomainHistoryResourceWithRawResponse, + AsyncDomainHistoryResourceWithRawResponse, + DomainHistoryResourceWithStreamingResponse, + AsyncDomainHistoryResourceWithStreamingResponse, +) +from .indicator_feeds import ( + IndicatorFeedsResource, + AsyncIndicatorFeedsResource, + IndicatorFeedsResourceWithRawResponse, + AsyncIndicatorFeedsResourceWithRawResponse, + IndicatorFeedsResourceWithStreamingResponse, + AsyncIndicatorFeedsResourceWithStreamingResponse, +) +from .miscategorizations import ( + MiscategorizationsResource, + AsyncMiscategorizationsResource, + MiscategorizationsResourceWithRawResponse, + AsyncMiscategorizationsResourceWithRawResponse, + MiscategorizationsResourceWithStreamingResponse, + AsyncMiscategorizationsResourceWithStreamingResponse, +) from .attack_surface_report import ( + AttackSurfaceReportResource, + AsyncAttackSurfaceReportResource, AttackSurfaceReportResourceWithRawResponse, AsyncAttackSurfaceReportResourceWithRawResponse, AttackSurfaceReportResourceWithStreamingResponse, AsyncAttackSurfaceReportResourceWithStreamingResponse, ) -from .intel import IntelResource, AsyncIntelResource -from .intel import ( - IntelResourceWithRawResponse, - AsyncIntelResourceWithRawResponse, - IntelResourceWithStreamingResponse, - AsyncIntelResourceWithStreamingResponse, -) __all__ = [ "ASNResource", diff --git a/src/cloudflare/resources/intel/asn/__init__.py b/src/cloudflare/resources/intel/asn/__init__.py index 412294d79..9136f2a9e 100644 --- a/src/cloudflare/resources/intel/asn/__init__.py +++ b/src/cloudflare/resources/intel/asn/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .subnets import SubnetsResource, AsyncSubnetsResource -from .subnets import ( - SubnetsResourceWithRawResponse, - AsyncSubnetsResourceWithRawResponse, - SubnetsResourceWithStreamingResponse, - AsyncSubnetsResourceWithStreamingResponse, -) -from .asn import ASNResource, AsyncASNResource from .asn import ( + ASNResource, + AsyncASNResource, ASNResourceWithRawResponse, AsyncASNResourceWithRawResponse, ASNResourceWithStreamingResponse, AsyncASNResourceWithStreamingResponse, ) +from .subnets import ( + SubnetsResource, + AsyncSubnetsResource, + SubnetsResourceWithRawResponse, + AsyncSubnetsResourceWithRawResponse, + SubnetsResourceWithStreamingResponse, + AsyncSubnetsResourceWithStreamingResponse, +) __all__ = [ "SubnetsResource", diff --git a/src/cloudflare/resources/intel/asn/asn.py b/src/cloudflare/resources/intel/asn/asn.py index 3a647cfda..d8084c9b2 100644 --- a/src/cloudflare/resources/intel/asn/asn.py +++ b/src/cloudflare/resources/intel/asn/asn.py @@ -2,35 +2,10 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .subnets import SubnetsResource, AsyncSubnetsResource - -from ...._compat import cached_property - -from ...._wrappers import ResultWrapper - -from typing import Optional, Type - -from ....types.shared.asn import ASN - -from ...._base_client import make_request_options - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types import shared from .subnets import ( SubnetsResource, AsyncSubnetsResource, @@ -39,8 +14,18 @@ from .subnets import ( SubnetsResourceWithStreamingResponse, AsyncSubnetsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.shared.asn import ASN __all__ = ["ASNResource", "AsyncASNResource"] diff --git a/src/cloudflare/resources/intel/asn/subnets.py b/src/cloudflare/resources/intel/asn/subnets.py index 4dc3026f4..0bc5182e2 100644 --- a/src/cloudflare/resources/intel/asn/subnets.py +++ b/src/cloudflare/resources/intel/asn/subnets.py @@ -4,29 +4,18 @@ from __future__ import annotations import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.intel.asn.subnet_get_response import SubnetGetResponse - -from ...._base_client import make_request_options - -from ....types.shared.asn import ASN - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types import shared +from ...._base_client import make_request_options +from ....types.shared.asn import ASN +from ....types.intel.asn.subnet_get_response import SubnetGetResponse __all__ = ["SubnetsResource", "AsyncSubnetsResource"] diff --git a/src/cloudflare/resources/intel/attack_surface_report/__init__.py b/src/cloudflare/resources/intel/attack_surface_report/__init__.py index df7656baf..2ea1be535 100644 --- a/src/cloudflare/resources/intel/attack_surface_report/__init__.py +++ b/src/cloudflare/resources/intel/attack_surface_report/__init__.py @@ -1,21 +1,24 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .issue_types import IssueTypesResource, AsyncIssueTypesResource -from .issue_types import ( - IssueTypesResourceWithRawResponse, - AsyncIssueTypesResourceWithRawResponse, - IssueTypesResourceWithStreamingResponse, - AsyncIssueTypesResourceWithStreamingResponse, -) -from .issues import IssuesResource, AsyncIssuesResource from .issues import ( + IssuesResource, + AsyncIssuesResource, IssuesResourceWithRawResponse, AsyncIssuesResourceWithRawResponse, IssuesResourceWithStreamingResponse, AsyncIssuesResourceWithStreamingResponse, ) -from .attack_surface_report import AttackSurfaceReportResource, AsyncAttackSurfaceReportResource +from .issue_types import ( + IssueTypesResource, + AsyncIssueTypesResource, + IssueTypesResourceWithRawResponse, + AsyncIssueTypesResourceWithRawResponse, + IssueTypesResourceWithStreamingResponse, + AsyncIssueTypesResourceWithStreamingResponse, +) from .attack_surface_report import ( + AttackSurfaceReportResource, + AsyncAttackSurfaceReportResource, AttackSurfaceReportResourceWithRawResponse, AsyncAttackSurfaceReportResourceWithRawResponse, AttackSurfaceReportResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/intel/attack_surface_report/attack_surface_report.py b/src/cloudflare/resources/intel/attack_surface_report/attack_surface_report.py index 72af38f7e..0cb2fabd7 100644 --- a/src/cloudflare/resources/intel/attack_surface_report/attack_surface_report.py +++ b/src/cloudflare/resources/intel/attack_surface_report/attack_surface_report.py @@ -2,27 +2,6 @@ from __future__ import annotations -from .issue_types import IssueTypesResource, AsyncIssueTypesResource - -from ...._compat import cached_property - -from .issues import IssuesResource, AsyncIssuesResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from .issue_types import ( - IssueTypesResource, - AsyncIssueTypesResource, - IssueTypesResourceWithRawResponse, - AsyncIssueTypesResourceWithRawResponse, - IssueTypesResourceWithStreamingResponse, - AsyncIssueTypesResourceWithStreamingResponse, -) from .issues import ( IssuesResource, AsyncIssuesResource, @@ -31,6 +10,16 @@ from .issues import ( IssuesResourceWithStreamingResponse, AsyncIssuesResourceWithStreamingResponse, ) +from ...._compat import cached_property +from .issue_types import ( + IssueTypesResource, + AsyncIssueTypesResource, + IssueTypesResourceWithRawResponse, + AsyncIssueTypesResourceWithRawResponse, + IssueTypesResourceWithStreamingResponse, + AsyncIssueTypesResourceWithStreamingResponse, +) +from ...._resource import SyncAPIResource, AsyncAPIResource __all__ = ["AttackSurfaceReportResource", "AsyncAttackSurfaceReportResource"] diff --git a/src/cloudflare/resources/intel/attack_surface_report/issue_types.py b/src/cloudflare/resources/intel/attack_surface_report/issue_types.py index d74b8efd8..c29c09235 100644 --- a/src/cloudflare/resources/intel/attack_surface_report/issue_types.py +++ b/src/cloudflare/resources/intel/attack_surface_report/issue_types.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.intel.attack_surface_report.issue_type_get_response import IssueTypeGetResponse - -from ...._wrappers import ResultWrapper - -from typing import Optional, Type - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.intel.attack_surface_report.issue_type_get_response import IssueTypeGetResponse __all__ = ["IssueTypesResource", "AsyncIssueTypesResource"] diff --git a/src/cloudflare/resources/intel/attack_surface_report/issues.py b/src/cloudflare/resources/intel/attack_surface_report/issues.py index 728b94826..104549993 100644 --- a/src/cloudflare/resources/intel/attack_surface_report/issues.py +++ b/src/cloudflare/resources/intel/attack_surface_report/issues.py @@ -2,63 +2,40 @@ from __future__ import annotations +from typing import Any, List, Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.intel.attack_surface_report.issue_list_response import IssueListResponse - -from ....pagination import SyncV4PagePagination, AsyncV4PagePagination - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from typing import List, Optional, Type - -from ....types.intel.attack_surface_report.issue_type import IssueType - -from ....types.intel.attack_surface_report.severity_query_param import SeverityQueryParam - -from ....types.intel.attack_surface_report.issue_class_response import IssueClassResponse - -from ...._wrappers import ResultWrapper - -from ....types.intel.attack_surface_report.issue_dismiss_response import IssueDismissResponse - -from ....types.intel.attack_surface_report.issue_severity_response import IssueSeverityResponse - -from ....types.intel.attack_surface_report.issue_type_response import IssueTypeResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.intel.attack_surface_report import issue_list_params -from ....types.intel.attack_surface_report import issue_class_params -from ....types.intel.attack_surface_report import issue_dismiss_params -from ....types.intel.attack_surface_report import issue_severity_params -from ....types.intel.attack_surface_report import issue_type_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncV4PagePagination, AsyncV4PagePagination +from ...._base_client import AsyncPaginator, make_request_options +from ....types.intel.attack_surface_report import ( + issue_list_params, + issue_type_params, + issue_class_params, + issue_dismiss_params, + issue_severity_params, +) +from ....types.intel.attack_surface_report.issue_type import IssueType +from ....types.intel.attack_surface_report.issue_list_response import IssueListResponse +from ....types.intel.attack_surface_report.issue_type_response import IssueTypeResponse +from ....types.intel.attack_surface_report.issue_class_response import IssueClassResponse +from ....types.intel.attack_surface_report.severity_query_param import SeverityQueryParam +from ....types.intel.attack_surface_report.issue_dismiss_response import IssueDismissResponse +from ....types.intel.attack_surface_report.issue_severity_response import IssueSeverityResponse __all__ = ["IssuesResource", "AsyncIssuesResource"] diff --git a/src/cloudflare/resources/intel/dns.py b/src/cloudflare/resources/intel/dns.py index 955003de0..94c5cc0f8 100644 --- a/src/cloudflare/resources/intel/dns.py +++ b/src/cloudflare/resources/intel/dns.py @@ -4,33 +4,20 @@ from __future__ import annotations import httpx -from ..._compat import cached_property - -from ...types.intel.dns_list_response import DNSListResponse - -from ...pagination import SyncV4PagePagination, AsyncV4PagePagination - +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._utils import maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ...types.intel import dns_list_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ...pagination import SyncV4PagePagination, AsyncV4PagePagination from ...types.intel import dns_list_params +from ..._base_client import AsyncPaginator, make_request_options +from ...types.intel.dns_list_response import DNSListResponse __all__ = ["DNSResource", "AsyncDNSResource"] diff --git a/src/cloudflare/resources/intel/domain_history.py b/src/cloudflare/resources/intel/domain_history.py index 9f1ba111c..819f4154b 100644 --- a/src/cloudflare/resources/intel/domain_history.py +++ b/src/cloudflare/resources/intel/domain_history.py @@ -2,37 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.intel.domain_history_get_response import DomainHistoryGetResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper from ...types.intel import domain_history_get_params -from typing import cast -from typing import cast +from ..._base_client import make_request_options +from ...types.intel.domain_history_get_response import DomainHistoryGetResponse __all__ = ["DomainHistoryResource", "AsyncDomainHistoryResource"] diff --git a/src/cloudflare/resources/intel/domains/__init__.py b/src/cloudflare/resources/intel/domains/__init__.py index 9a66355ef..41e193161 100644 --- a/src/cloudflare/resources/intel/domains/__init__.py +++ b/src/cloudflare/resources/intel/domains/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .bulks import BulksResource, AsyncBulksResource from .bulks import ( + BulksResource, + AsyncBulksResource, BulksResourceWithRawResponse, AsyncBulksResourceWithRawResponse, BulksResourceWithStreamingResponse, AsyncBulksResourceWithStreamingResponse, ) -from .domains import DomainsResource, AsyncDomainsResource from .domains import ( + DomainsResource, + AsyncDomainsResource, DomainsResourceWithRawResponse, AsyncDomainsResourceWithRawResponse, DomainsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/intel/domains/bulks.py b/src/cloudflare/resources/intel/domains/bulks.py index bd5098987..86a51260b 100644 --- a/src/cloudflare/resources/intel/domains/bulks.py +++ b/src/cloudflare/resources/intel/domains/bulks.py @@ -2,37 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.intel.domains.bulk_get_response import BulkGetResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.intel.domains import bulk_get_params -from typing import cast -from typing import cast +from ....types.intel.domains.bulk_get_response import BulkGetResponse __all__ = ["BulksResource", "AsyncBulksResource"] diff --git a/src/cloudflare/resources/intel/domains/domains.py b/src/cloudflare/resources/intel/domains/domains.py index 8f7f996dd..18d75cbf4 100644 --- a/src/cloudflare/resources/intel/domains/domains.py +++ b/src/cloudflare/resources/intel/domains/domains.py @@ -2,37 +2,10 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .bulks import BulksResource, AsyncBulksResource - -from ...._compat import cached_property - -from ....types.intel.domain import Domain - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.intel import domain_get_params from .bulks import ( BulksResource, AsyncBulksResource, @@ -41,8 +14,23 @@ from .bulks import ( BulksResourceWithStreamingResponse, AsyncBulksResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....types.intel import domain_get_params +from ...._base_client import make_request_options +from ....types.intel.domain import Domain __all__ = ["DomainsResource", "AsyncDomainsResource"] diff --git a/src/cloudflare/resources/intel/indicator_feeds/__init__.py b/src/cloudflare/resources/intel/indicator_feeds/__init__.py index dd29fbb69..edfb059c6 100644 --- a/src/cloudflare/resources/intel/indicator_feeds/__init__.py +++ b/src/cloudflare/resources/intel/indicator_feeds/__init__.py @@ -1,28 +1,32 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .snapshots import SnapshotsResource, AsyncSnapshotsResource -from .snapshots import ( - SnapshotsResourceWithRawResponse, - AsyncSnapshotsResourceWithRawResponse, - SnapshotsResourceWithStreamingResponse, - AsyncSnapshotsResourceWithStreamingResponse, -) -from .permissions import PermissionsResource, AsyncPermissionsResource -from .permissions import ( - PermissionsResourceWithRawResponse, - AsyncPermissionsResourceWithRawResponse, - PermissionsResourceWithStreamingResponse, - AsyncPermissionsResourceWithStreamingResponse, -) -from .downloads import DownloadsResource, AsyncDownloadsResource from .downloads import ( + DownloadsResource, + AsyncDownloadsResource, DownloadsResourceWithRawResponse, AsyncDownloadsResourceWithRawResponse, DownloadsResourceWithStreamingResponse, AsyncDownloadsResourceWithStreamingResponse, ) -from .indicator_feeds import IndicatorFeedsResource, AsyncIndicatorFeedsResource +from .snapshots import ( + SnapshotsResource, + AsyncSnapshotsResource, + SnapshotsResourceWithRawResponse, + AsyncSnapshotsResourceWithRawResponse, + SnapshotsResourceWithStreamingResponse, + AsyncSnapshotsResourceWithStreamingResponse, +) +from .permissions import ( + PermissionsResource, + AsyncPermissionsResource, + PermissionsResourceWithRawResponse, + AsyncPermissionsResourceWithRawResponse, + PermissionsResourceWithStreamingResponse, + AsyncPermissionsResourceWithStreamingResponse, +) from .indicator_feeds import ( + IndicatorFeedsResource, + AsyncIndicatorFeedsResource, IndicatorFeedsResourceWithRawResponse, AsyncIndicatorFeedsResourceWithRawResponse, IndicatorFeedsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/intel/indicator_feeds/downloads.py b/src/cloudflare/resources/intel/indicator_feeds/downloads.py index 3b383179f..884e4d84f 100644 --- a/src/cloudflare/resources/intel/indicator_feeds/downloads.py +++ b/src/cloudflare/resources/intel/indicator_feeds/downloads.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.intel.indicator_feeds.download_get_response import DownloadGetResponse - -from ...._wrappers import ResultWrapper - -from typing import Optional, Type - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.intel.indicator_feeds.download_get_response import DownloadGetResponse __all__ = ["DownloadsResource", "AsyncDownloadsResource"] diff --git a/src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py b/src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py index ad1b8747e..17e97c92e 100644 --- a/src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py +++ b/src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py @@ -2,67 +2,14 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .snapshots import SnapshotsResource, AsyncSnapshotsResource - -from ...._compat import cached_property - -from .permissions import PermissionsResource, AsyncPermissionsResource - -from .downloads import DownloadsResource, AsyncDownloadsResource - -from ....types.intel.indicator_feed_create_response import IndicatorFeedCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.intel.indicator_feed_update_response import IndicatorFeedUpdateResponse - -from ....types.intel.indicator_feed_list_response import IndicatorFeedListResponse - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ....types.intel.indicator_feed_data_response import IndicatorFeedDataResponse - -from ....types.intel.indicator_feed_get_response import IndicatorFeedGetResponse - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.intel import indicator_feed_create_params -from ....types.intel import indicator_feed_update_params -from .snapshots import ( - SnapshotsResource, - AsyncSnapshotsResource, - SnapshotsResourceWithRawResponse, - AsyncSnapshotsResourceWithRawResponse, - SnapshotsResourceWithStreamingResponse, - AsyncSnapshotsResourceWithStreamingResponse, -) -from .permissions import ( - PermissionsResource, - AsyncPermissionsResource, - PermissionsResourceWithRawResponse, - AsyncPermissionsResourceWithRawResponse, - PermissionsResourceWithStreamingResponse, - AsyncPermissionsResourceWithStreamingResponse, +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, ) from .downloads import ( DownloadsResource, @@ -72,12 +19,38 @@ from .downloads import ( DownloadsResourceWithStreamingResponse, AsyncDownloadsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .snapshots import ( + SnapshotsResource, + AsyncSnapshotsResource, + SnapshotsResourceWithRawResponse, + AsyncSnapshotsResourceWithRawResponse, + SnapshotsResourceWithStreamingResponse, + AsyncSnapshotsResourceWithStreamingResponse, +) +from ...._compat import cached_property +from .permissions import ( + PermissionsResource, + AsyncPermissionsResource, + PermissionsResourceWithRawResponse, + AsyncPermissionsResourceWithRawResponse, + PermissionsResourceWithStreamingResponse, + AsyncPermissionsResourceWithStreamingResponse, +) +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ....types.intel import indicator_feed_create_params, indicator_feed_update_params +from ...._base_client import AsyncPaginator, make_request_options +from ....types.intel.indicator_feed_get_response import IndicatorFeedGetResponse +from ....types.intel.indicator_feed_list_response import IndicatorFeedListResponse +from ....types.intel.indicator_feed_create_response import IndicatorFeedCreateResponse +from ....types.intel.indicator_feed_update_response import IndicatorFeedUpdateResponse __all__ = ["IndicatorFeedsResource", "AsyncIndicatorFeedsResource"] diff --git a/src/cloudflare/resources/intel/indicator_feeds/permissions.py b/src/cloudflare/resources/intel/indicator_feeds/permissions.py index 4e156b506..cba5e239a 100644 --- a/src/cloudflare/resources/intel/indicator_feeds/permissions.py +++ b/src/cloudflare/resources/intel/indicator_feeds/permissions.py @@ -2,46 +2,29 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.intel.indicator_feeds.permission_create_response import PermissionCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options - -from ....types.intel.indicator_feeds.permission_list_response import PermissionListResponse - -from ....types.intel.indicator_feeds.permission_delete_response import PermissionDeleteResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.intel.indicator_feeds import permission_create_params -from ....types.intel.indicator_feeds import permission_delete_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.intel.indicator_feeds import permission_create_params, permission_delete_params +from ....types.intel.indicator_feeds.permission_list_response import PermissionListResponse +from ....types.intel.indicator_feeds.permission_create_response import PermissionCreateResponse +from ....types.intel.indicator_feeds.permission_delete_response import PermissionDeleteResponse __all__ = ["PermissionsResource", "AsyncPermissionsResource"] diff --git a/src/cloudflare/resources/intel/indicator_feeds/snapshots.py b/src/cloudflare/resources/intel/indicator_feeds/snapshots.py index da100001f..b2e4466cc 100644 --- a/src/cloudflare/resources/intel/indicator_feeds/snapshots.py +++ b/src/cloudflare/resources/intel/indicator_feeds/snapshots.py @@ -2,37 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.intel.indicator_feeds.snapshot_update_response import SnapshotUpdateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.intel.indicator_feeds import snapshot_update_params -from typing import cast -from typing import cast +from ....types.intel.indicator_feeds.snapshot_update_response import SnapshotUpdateResponse __all__ = ["SnapshotsResource", "AsyncSnapshotsResource"] diff --git a/src/cloudflare/resources/intel/intel.py b/src/cloudflare/resources/intel/intel.py index 7bd46e84f..5dc3092ce 100644 --- a/src/cloudflare/resources/intel/intel.py +++ b/src/cloudflare/resources/intel/intel.py @@ -2,37 +2,6 @@ from __future__ import annotations -from .asn.asn import ASNResource, AsyncASNResource - -from ..._compat import cached_property - -from .dns import DNSResource, AsyncDNSResource - -from .domains.domains import DomainsResource, AsyncDomainsResource - -from .domain_history import DomainHistoryResource, AsyncDomainHistoryResource - -from .ips import IPsResource, AsyncIPsResource - -from .ip_lists import IPListsResource, AsyncIPListsResource - -from .miscategorizations import MiscategorizationsResource, AsyncMiscategorizationsResource - -from .whois import WhoisResource, AsyncWhoisResource - -from .indicator_feeds.indicator_feeds import IndicatorFeedsResource, AsyncIndicatorFeedsResource - -from .sinkholes import SinkholesResource, AsyncSinkholesResource - -from .attack_surface_report.attack_surface_report import AttackSurfaceReportResource, AsyncAttackSurfaceReportResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .asn import ( ASNResource, AsyncASNResource, @@ -49,22 +18,6 @@ from .dns import ( DNSResourceWithStreamingResponse, AsyncDNSResourceWithStreamingResponse, ) -from .domains import ( - DomainsResource, - AsyncDomainsResource, - DomainsResourceWithRawResponse, - AsyncDomainsResourceWithRawResponse, - DomainsResourceWithStreamingResponse, - AsyncDomainsResourceWithStreamingResponse, -) -from .domain_history import ( - DomainHistoryResource, - AsyncDomainHistoryResource, - DomainHistoryResourceWithRawResponse, - AsyncDomainHistoryResourceWithRawResponse, - DomainHistoryResourceWithStreamingResponse, - AsyncDomainHistoryResourceWithStreamingResponse, -) from .ips import ( IPsResource, AsyncIPsResource, @@ -73,22 +26,6 @@ from .ips import ( IPsResourceWithStreamingResponse, AsyncIPsResourceWithStreamingResponse, ) -from .ip_lists import ( - IPListsResource, - AsyncIPListsResource, - IPListsResourceWithRawResponse, - AsyncIPListsResourceWithRawResponse, - IPListsResourceWithStreamingResponse, - AsyncIPListsResourceWithStreamingResponse, -) -from .miscategorizations import ( - MiscategorizationsResource, - AsyncMiscategorizationsResource, - MiscategorizationsResourceWithRawResponse, - AsyncMiscategorizationsResourceWithRawResponse, - MiscategorizationsResourceWithStreamingResponse, - AsyncMiscategorizationsResourceWithStreamingResponse, -) from .whois import ( WhoisResource, AsyncWhoisResource, @@ -97,6 +34,42 @@ from .whois import ( WhoisResourceWithStreamingResponse, AsyncWhoisResourceWithStreamingResponse, ) +from .asn.asn import ASNResource, AsyncASNResource +from .domains import ( + DomainsResource, + AsyncDomainsResource, + DomainsResourceWithRawResponse, + AsyncDomainsResourceWithRawResponse, + DomainsResourceWithStreamingResponse, + AsyncDomainsResourceWithStreamingResponse, +) +from .ip_lists import ( + IPListsResource, + AsyncIPListsResource, + IPListsResourceWithRawResponse, + AsyncIPListsResourceWithRawResponse, + IPListsResourceWithStreamingResponse, + AsyncIPListsResourceWithStreamingResponse, +) +from ..._compat import cached_property +from .sinkholes import ( + SinkholesResource, + AsyncSinkholesResource, + SinkholesResourceWithRawResponse, + AsyncSinkholesResourceWithRawResponse, + SinkholesResourceWithStreamingResponse, + AsyncSinkholesResourceWithStreamingResponse, +) +from ..._resource import SyncAPIResource, AsyncAPIResource +from .domain_history import ( + DomainHistoryResource, + AsyncDomainHistoryResource, + DomainHistoryResourceWithRawResponse, + AsyncDomainHistoryResourceWithRawResponse, + DomainHistoryResourceWithStreamingResponse, + AsyncDomainHistoryResourceWithStreamingResponse, +) +from .domains.domains import DomainsResource, AsyncDomainsResource from .indicator_feeds import ( IndicatorFeedsResource, AsyncIndicatorFeedsResource, @@ -105,13 +78,13 @@ from .indicator_feeds import ( IndicatorFeedsResourceWithStreamingResponse, AsyncIndicatorFeedsResourceWithStreamingResponse, ) -from .sinkholes import ( - SinkholesResource, - AsyncSinkholesResource, - SinkholesResourceWithRawResponse, - AsyncSinkholesResourceWithRawResponse, - SinkholesResourceWithStreamingResponse, - AsyncSinkholesResourceWithStreamingResponse, +from .miscategorizations import ( + MiscategorizationsResource, + AsyncMiscategorizationsResource, + MiscategorizationsResourceWithRawResponse, + AsyncMiscategorizationsResourceWithRawResponse, + MiscategorizationsResourceWithStreamingResponse, + AsyncMiscategorizationsResourceWithStreamingResponse, ) from .attack_surface_report import ( AttackSurfaceReportResource, @@ -121,6 +94,8 @@ from .attack_surface_report import ( AttackSurfaceReportResourceWithStreamingResponse, AsyncAttackSurfaceReportResourceWithStreamingResponse, ) +from .indicator_feeds.indicator_feeds import IndicatorFeedsResource, AsyncIndicatorFeedsResource +from .attack_surface_report.attack_surface_report import AttackSurfaceReportResource, AsyncAttackSurfaceReportResource __all__ = ["IntelResource", "AsyncIntelResource"] diff --git a/src/cloudflare/resources/intel/ip_lists.py b/src/cloudflare/resources/intel/ip_lists.py index 1168729c4..71a5e24ea 100644 --- a/src/cloudflare/resources/intel/ip_lists.py +++ b/src/cloudflare/resources/intel/ip_lists.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._compat import cached_property - -from ...types.intel.ip_list_get_response import IPListGetResponse - -from ..._wrappers import ResultWrapper - -from typing import Optional, Type - -from ..._base_client import make_request_options - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.intel.ip_list_get_response import IPListGetResponse __all__ = ["IPListsResource", "AsyncIPListsResource"] diff --git a/src/cloudflare/resources/intel/ips.py b/src/cloudflare/resources/intel/ips.py index 9248452bd..b652e3a48 100644 --- a/src/cloudflare/resources/intel/ips.py +++ b/src/cloudflare/resources/intel/ips.py @@ -2,37 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.intel.ip_get_response import IPGetResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper from ...types.intel import ip_get_params -from typing import cast -from typing import cast +from ..._base_client import make_request_options +from ...types.intel.ip_get_response import IPGetResponse __all__ = ["IPsResource", "AsyncIPsResource"] diff --git a/src/cloudflare/resources/intel/miscategorizations.py b/src/cloudflare/resources/intel/miscategorizations.py index cf732e531..f9a797664 100644 --- a/src/cloudflare/resources/intel/miscategorizations.py +++ b/src/cloudflare/resources/intel/miscategorizations.py @@ -2,35 +2,27 @@ from __future__ import annotations +from typing import Iterable +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.intel.miscategorization_create_response import MiscategorizationCreateResponse - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing import Iterable - -from typing_extensions import Literal - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from ...types.intel import miscategorization_create_params +from ..._base_client import make_request_options +from ...types.intel.miscategorization_create_response import MiscategorizationCreateResponse __all__ = ["MiscategorizationsResource", "AsyncMiscategorizationsResource"] diff --git a/src/cloudflare/resources/intel/sinkholes.py b/src/cloudflare/resources/intel/sinkholes.py index c1026b423..42afd8a78 100644 --- a/src/cloudflare/resources/intel/sinkholes.py +++ b/src/cloudflare/resources/intel/sinkholes.py @@ -4,28 +4,18 @@ from __future__ import annotations import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._compat import cached_property - -from ...types.intel.sinkhole import Sinkhole - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from ..._base_client import make_request_options, AsyncPaginator - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options +from ...types.intel.sinkhole import Sinkhole __all__ = ["SinkholesResource", "AsyncSinkholesResource"] diff --git a/src/cloudflare/resources/intel/whois.py b/src/cloudflare/resources/intel/whois.py index e0ec3f83e..ebef795bb 100644 --- a/src/cloudflare/resources/intel/whois.py +++ b/src/cloudflare/resources/intel/whois.py @@ -2,37 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.intel.whois_get_response import WhoisGetResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper from ...types.intel import whois_get_params -from typing import cast -from typing import cast +from ..._base_client import make_request_options +from ...types.intel.whois_get_response import WhoisGetResponse __all__ = ["WhoisResource", "AsyncWhoisResource"] diff --git a/src/cloudflare/resources/ips.py b/src/cloudflare/resources/ips.py index f31f44688..9beb8f865 100644 --- a/src/cloudflare/resources/ips.py +++ b/src/cloudflare/resources/ips.py @@ -2,39 +2,27 @@ from __future__ import annotations +from typing import Any, Optional, cast + import httpx +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .._utils import ( + maybe_transform, + async_maybe_transform, +) from .._compat import cached_property - -from ..types.ips.ip_list_response import IPListResponse - -from .._wrappers import ResultWrapper - -from typing import Optional - -from .._utils import maybe_transform, async_maybe_transform - -from .._base_client import make_request_options - +from .._resource import SyncAPIResource, AsyncAPIResource from .._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from .._resource import SyncAPIResource, AsyncAPIResource -from ..types import shared_params +from .._wrappers import ResultWrapper from ..types.ips import ip_list_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .._base_client import make_request_options +from ..types.ips.ip_list_response import IPListResponse __all__ = ["IPsResource", "AsyncIPsResource"] diff --git a/src/cloudflare/resources/keyless_certificates.py b/src/cloudflare/resources/keyless_certificates.py index 5df0f8e0c..8aec29d7a 100644 --- a/src/cloudflare/resources/keyless_certificates.py +++ b/src/cloudflare/resources/keyless_certificates.py @@ -2,55 +2,32 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .._utils import ( + maybe_transform, + async_maybe_transform, +) from .._compat import cached_property - -from ..types.keyless_certificates.keyless_certificate import KeylessCertificate - -from .._wrappers import ResultWrapper - -from .._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from .._base_client import make_request_options, AsyncPaginator - -from ..types.custom_hostnames.bundle_method import BundleMethod - -from ..types.keyless_certificates.tunnel_param import TunnelParam - -from ..pagination import SyncSinglePage, AsyncSinglePage - -from ..types.keyless_certificates.keyless_certificate_delete_response import KeylessCertificateDeleteResponse - +from .._resource import SyncAPIResource, AsyncAPIResource from .._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from .._resource import SyncAPIResource, AsyncAPIResource -from ..types import shared_params -from ..types.keyless_certificates import keyless_certificate_create_params -from ..types.keyless_certificates import keyless_certificate_edit_params +from .._wrappers import ResultWrapper +from ..pagination import SyncSinglePage, AsyncSinglePage +from .._base_client import AsyncPaginator, make_request_options from ..types.custom_hostnames import BundleMethod -from ..types.keyless_certificates import Tunnel -from ..types.keyless_certificates import Tunnel -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..types.keyless_certificates import keyless_certificate_edit_params, keyless_certificate_create_params +from ..types.custom_hostnames.bundle_method import BundleMethod +from ..types.keyless_certificates.tunnel_param import TunnelParam +from ..types.keyless_certificates.keyless_certificate import KeylessCertificate +from ..types.keyless_certificates.keyless_certificate_delete_response import KeylessCertificateDeleteResponse __all__ = ["KeylessCertificatesResource", "AsyncKeylessCertificatesResource"] diff --git a/src/cloudflare/resources/kv/__init__.py b/src/cloudflare/resources/kv/__init__.py index c63ec4a19..e79d23bdd 100644 --- a/src/cloudflare/resources/kv/__init__.py +++ b/src/cloudflare/resources/kv/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .namespaces import NamespacesResource, AsyncNamespacesResource -from .namespaces import ( - NamespacesResourceWithRawResponse, - AsyncNamespacesResourceWithRawResponse, - NamespacesResourceWithStreamingResponse, - AsyncNamespacesResourceWithStreamingResponse, -) -from .kv import KVResource, AsyncKVResource from .kv import ( + KVResource, + AsyncKVResource, KVResourceWithRawResponse, AsyncKVResourceWithRawResponse, KVResourceWithStreamingResponse, AsyncKVResourceWithStreamingResponse, ) +from .namespaces import ( + NamespacesResource, + AsyncNamespacesResource, + NamespacesResourceWithRawResponse, + AsyncNamespacesResourceWithRawResponse, + NamespacesResourceWithStreamingResponse, + AsyncNamespacesResourceWithStreamingResponse, +) __all__ = [ "NamespacesResource", diff --git a/src/cloudflare/resources/kv/kv.py b/src/cloudflare/resources/kv/kv.py index f2dd023af..4adb24ff8 100644 --- a/src/cloudflare/resources/kv/kv.py +++ b/src/cloudflare/resources/kv/kv.py @@ -2,17 +2,7 @@ from __future__ import annotations -from .namespaces.namespaces import NamespacesResource, AsyncNamespacesResource - from ..._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .namespaces import ( NamespacesResource, AsyncNamespacesResource, @@ -21,6 +11,8 @@ from .namespaces import ( NamespacesResourceWithStreamingResponse, AsyncNamespacesResourceWithStreamingResponse, ) +from ..._resource import SyncAPIResource, AsyncAPIResource +from .namespaces.namespaces import NamespacesResource, AsyncNamespacesResource __all__ = ["KVResource", "AsyncKVResource"] diff --git a/src/cloudflare/resources/kv/namespaces/__init__.py b/src/cloudflare/resources/kv/namespaces/__init__.py index 1c3e82862..0784dbb31 100644 --- a/src/cloudflare/resources/kv/namespaces/__init__.py +++ b/src/cloudflare/resources/kv/namespaces/__init__.py @@ -1,35 +1,40 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .bulk import BulkResource, AsyncBulkResource from .bulk import ( + BulkResource, + AsyncBulkResource, BulkResourceWithRawResponse, AsyncBulkResourceWithRawResponse, BulkResourceWithStreamingResponse, AsyncBulkResourceWithStreamingResponse, ) -from .keys import KeysResource, AsyncKeysResource from .keys import ( + KeysResource, + AsyncKeysResource, KeysResourceWithRawResponse, AsyncKeysResourceWithRawResponse, KeysResourceWithStreamingResponse, AsyncKeysResourceWithStreamingResponse, ) -from .metadata import MetadataResource, AsyncMetadataResource -from .metadata import ( - MetadataResourceWithRawResponse, - AsyncMetadataResourceWithRawResponse, - MetadataResourceWithStreamingResponse, - AsyncMetadataResourceWithStreamingResponse, -) -from .values import ValuesResource, AsyncValuesResource from .values import ( + ValuesResource, + AsyncValuesResource, ValuesResourceWithRawResponse, AsyncValuesResourceWithRawResponse, ValuesResourceWithStreamingResponse, AsyncValuesResourceWithStreamingResponse, ) -from .namespaces import NamespacesResource, AsyncNamespacesResource +from .metadata import ( + MetadataResource, + AsyncMetadataResource, + MetadataResourceWithRawResponse, + AsyncMetadataResourceWithRawResponse, + MetadataResourceWithStreamingResponse, + AsyncMetadataResourceWithStreamingResponse, +) from .namespaces import ( + NamespacesResource, + AsyncNamespacesResource, NamespacesResourceWithRawResponse, AsyncNamespacesResourceWithRawResponse, NamespacesResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/kv/namespaces/bulk.py b/src/cloudflare/resources/kv/namespaces/bulk.py index 08e9a0d56..50cde69ec 100644 --- a/src/cloudflare/resources/kv/namespaces/bulk.py +++ b/src/cloudflare/resources/kv/namespaces/bulk.py @@ -2,40 +2,27 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ...._wrappers import ResultWrapper - -from typing import Iterable, Optional, Type - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.kv.namespaces import bulk_update_params -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.kv.namespaces import bulk_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast - __all__ = ["BulkResource", "AsyncBulkResource"] diff --git a/src/cloudflare/resources/kv/namespaces/keys.py b/src/cloudflare/resources/kv/namespaces/keys.py index 15348c3b3..c61d663f9 100644 --- a/src/cloudflare/resources/kv/namespaces/keys.py +++ b/src/cloudflare/resources/kv/namespaces/keys.py @@ -4,31 +4,20 @@ from __future__ import annotations import httpx -from ...._compat import cached_property - -from ....types.kv.namespaces.key import Key - -from ....pagination import SyncCursorLimitPagination, AsyncCursorLimitPagination - +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ....pagination import SyncCursorLimitPagination, AsyncCursorLimitPagination +from ...._base_client import AsyncPaginator, make_request_options from ....types.kv.namespaces import key_list_params +from ....types.kv.namespaces.key import Key __all__ = ["KeysResource", "AsyncKeysResource"] diff --git a/src/cloudflare/resources/kv/namespaces/metadata.py b/src/cloudflare/resources/kv/namespaces/metadata.py index f690abb58..1aef3f072 100644 --- a/src/cloudflare/resources/kv/namespaces/metadata.py +++ b/src/cloudflare/resources/kv/namespaces/metadata.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.kv.namespaces.metadata_get_response import MetadataGetResponse - -from ...._wrappers import ResultWrapper - -from typing import Optional, Type - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.kv.namespaces.metadata_get_response import MetadataGetResponse __all__ = ["MetadataResource", "AsyncMetadataResource"] diff --git a/src/cloudflare/resources/kv/namespaces/namespaces.py b/src/cloudflare/resources/kv/namespaces/namespaces.py index 6e3a72779..c9efbcb07 100644 --- a/src/cloudflare/resources/kv/namespaces/namespaces.py +++ b/src/cloudflare/resources/kv/namespaces/namespaces.py @@ -2,49 +2,11 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx -from .bulk import BulkResource, AsyncBulkResource - -from ...._compat import cached_property - -from .keys import KeysResource, AsyncKeysResource - -from .metadata import MetadataResource, AsyncMetadataResource - -from .values import ValuesResource, AsyncValuesResource - -from ....types.kv.namespace import Namespace - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options, AsyncPaginator - -from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from typing_extensions import Literal - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.kv import namespace_create_params -from ....types.kv import namespace_update_params -from ....types.kv import namespace_list_params from .bulk import ( BulkResource, AsyncBulkResource, @@ -61,14 +23,6 @@ from .keys import ( KeysResourceWithStreamingResponse, AsyncKeysResourceWithStreamingResponse, ) -from .metadata import ( - MetadataResource, - AsyncMetadataResource, - MetadataResourceWithRawResponse, - AsyncMetadataResourceWithRawResponse, - MetadataResourceWithStreamingResponse, - AsyncMetadataResourceWithStreamingResponse, -) from .values import ( ValuesResource, AsyncValuesResource, @@ -77,14 +31,32 @@ from .values import ( ValuesResourceWithStreamingResponse, AsyncValuesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .metadata import ( + MetadataResource, + AsyncMetadataResource, + MetadataResourceWithRawResponse, + AsyncMetadataResourceWithRawResponse, + MetadataResourceWithStreamingResponse, + AsyncMetadataResourceWithStreamingResponse, +) +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property +from ....types.kv import namespace_list_params, namespace_create_params, namespace_update_params +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ...._base_client import AsyncPaginator, make_request_options +from ....types.kv.namespace import Namespace __all__ = ["NamespacesResource", "AsyncNamespacesResource"] diff --git a/src/cloudflare/resources/kv/namespaces/values.py b/src/cloudflare/resources/kv/namespaces/values.py index 73610ab25..a00ebe688 100644 --- a/src/cloudflare/resources/kv/namespaces/values.py +++ b/src/cloudflare/resources/kv/namespaces/values.py @@ -2,45 +2,34 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( BinaryAPIResponse, AsyncBinaryAPIResponse, - to_raw_response_wrapper, - to_custom_raw_response_wrapper, - async_to_raw_response_wrapper, - async_to_custom_raw_response_wrapper, - to_streamed_response_wrapper, - to_custom_streamed_response_wrapper, StreamedBinaryAPIResponse, - async_to_streamed_response_wrapper, - async_to_custom_streamed_response_wrapper, AsyncStreamedBinaryAPIResponse, + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + to_custom_raw_response_wrapper, + async_to_streamed_response_wrapper, + to_custom_streamed_response_wrapper, + async_to_custom_raw_response_wrapper, + async_to_custom_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.kv.namespaces import value_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast __all__ = ["ValuesResource", "AsyncValuesResource"] diff --git a/src/cloudflare/resources/load_balancers/__init__.py b/src/cloudflare/resources/load_balancers/__init__.py index 951961260..a6ca61a9b 100644 --- a/src/cloudflare/resources/load_balancers/__init__.py +++ b/src/cloudflare/resources/load_balancers/__init__.py @@ -1,42 +1,48 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .monitors import MonitorsResource, AsyncMonitorsResource -from .monitors import ( - MonitorsResourceWithRawResponse, - AsyncMonitorsResourceWithRawResponse, - MonitorsResourceWithStreamingResponse, - AsyncMonitorsResourceWithStreamingResponse, -) -from .pools import PoolsResource, AsyncPoolsResource from .pools import ( + PoolsResource, + AsyncPoolsResource, PoolsResourceWithRawResponse, AsyncPoolsResourceWithRawResponse, PoolsResourceWithStreamingResponse, AsyncPoolsResourceWithStreamingResponse, ) -from .previews import PreviewsResource, AsyncPreviewsResource -from .previews import ( - PreviewsResourceWithRawResponse, - AsyncPreviewsResourceWithRawResponse, - PreviewsResourceWithStreamingResponse, - AsyncPreviewsResourceWithStreamingResponse, -) -from .regions import RegionsResource, AsyncRegionsResource from .regions import ( + RegionsResource, + AsyncRegionsResource, RegionsResourceWithRawResponse, AsyncRegionsResourceWithRawResponse, RegionsResourceWithStreamingResponse, AsyncRegionsResourceWithStreamingResponse, ) -from .searches import SearchesResource, AsyncSearchesResource +from .monitors import ( + MonitorsResource, + AsyncMonitorsResource, + MonitorsResourceWithRawResponse, + AsyncMonitorsResourceWithRawResponse, + MonitorsResourceWithStreamingResponse, + AsyncMonitorsResourceWithStreamingResponse, +) +from .previews import ( + PreviewsResource, + AsyncPreviewsResource, + PreviewsResourceWithRawResponse, + AsyncPreviewsResourceWithRawResponse, + PreviewsResourceWithStreamingResponse, + AsyncPreviewsResourceWithStreamingResponse, +) from .searches import ( + SearchesResource, + AsyncSearchesResource, SearchesResourceWithRawResponse, AsyncSearchesResourceWithRawResponse, SearchesResourceWithStreamingResponse, AsyncSearchesResourceWithStreamingResponse, ) -from .load_balancers import LoadBalancersResource, AsyncLoadBalancersResource from .load_balancers import ( + LoadBalancersResource, + AsyncLoadBalancersResource, LoadBalancersResourceWithRawResponse, AsyncLoadBalancersResourceWithRawResponse, LoadBalancersResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/load_balancers/load_balancers.py b/src/cloudflare/resources/load_balancers/load_balancers.py index f0e920656..b2fd27f5e 100644 --- a/src/cloudflare/resources/load_balancers/load_balancers.py +++ b/src/cloudflare/resources/load_balancers/load_balancers.py @@ -2,93 +2,10 @@ from __future__ import annotations +from typing import Dict, List, Type, Iterable, cast + import httpx -from .monitors.monitors import MonitorsResource, AsyncMonitorsResource - -from ..._compat import cached_property - -from .pools.pools import PoolsResource, AsyncPoolsResource - -from .previews import PreviewsResource, AsyncPreviewsResource - -from .regions import RegionsResource, AsyncRegionsResource - -from .searches import SearchesResource, AsyncSearchesResource - -from ...types.load_balancers.load_balancer import LoadBalancer - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from typing import Type, List, Dict, Iterable - -from ...types.load_balancers.default_pools import DefaultPools - -from ...types.load_balancers.adaptive_routing_param import AdaptiveRoutingParam - -from ...types.load_balancers.location_strategy_param import LocationStrategyParam - -from ...types.load_balancers.random_steering_param import RandomSteeringParam - -from ...types.load_balancers.rules_param import RulesParam - -from ...types.load_balancers.session_affinity import SessionAffinity - -from ...types.load_balancers.session_affinity_attributes_param import SessionAffinityAttributesParam - -from ...types.load_balancers.steering_policy import SteeringPolicy - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from ...types.load_balancers.load_balancer_delete_response import LoadBalancerDeleteResponse - -from ..._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.load_balancers import load_balancer_create_params -from ...types.load_balancers import load_balancer_update_params -from ...types.load_balancers import load_balancer_edit_params -from ...types.load_balancers import AdaptiveRouting -from ...types.load_balancers import LocationStrategy -from ...types.load_balancers import RandomSteering -from ...types.load_balancers import SessionAffinity -from ...types.load_balancers import SessionAffinityAttributes -from ...types.load_balancers import SteeringPolicy -from ...types.load_balancers import AdaptiveRouting -from ...types.load_balancers import LocationStrategy -from ...types.load_balancers import RandomSteering -from ...types.load_balancers import SessionAffinity -from ...types.load_balancers import SessionAffinityAttributes -from ...types.load_balancers import SteeringPolicy -from ...types.load_balancers import AdaptiveRouting -from ...types.load_balancers import LocationStrategy -from ...types.load_balancers import RandomSteering -from ...types.load_balancers import SessionAffinity -from ...types.load_balancers import SessionAffinityAttributes -from ...types.load_balancers import SteeringPolicy -from .monitors import ( - MonitorsResource, - AsyncMonitorsResource, - MonitorsResourceWithRawResponse, - AsyncMonitorsResourceWithRawResponse, - MonitorsResourceWithStreamingResponse, - AsyncMonitorsResourceWithStreamingResponse, -) from .pools import ( PoolsResource, AsyncPoolsResource, @@ -97,14 +14,6 @@ from .pools import ( PoolsResourceWithStreamingResponse, AsyncPoolsResourceWithStreamingResponse, ) -from .previews import ( - PreviewsResource, - AsyncPreviewsResource, - PreviewsResourceWithRawResponse, - AsyncPreviewsResourceWithRawResponse, - PreviewsResourceWithStreamingResponse, - AsyncPreviewsResourceWithStreamingResponse, -) from .regions import ( RegionsResource, AsyncRegionsResource, @@ -113,6 +22,27 @@ from .regions import ( RegionsResourceWithStreamingResponse, AsyncRegionsResourceWithStreamingResponse, ) +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) +from .monitors import ( + MonitorsResource, + AsyncMonitorsResource, + MonitorsResourceWithRawResponse, + AsyncMonitorsResourceWithRawResponse, + MonitorsResourceWithStreamingResponse, + AsyncMonitorsResourceWithStreamingResponse, +) +from .previews import ( + PreviewsResource, + AsyncPreviewsResource, + PreviewsResourceWithRawResponse, + AsyncPreviewsResourceWithRawResponse, + PreviewsResourceWithStreamingResponse, + AsyncPreviewsResourceWithStreamingResponse, +) from .searches import ( SearchesResource, AsyncSearchesResource, @@ -121,16 +51,36 @@ from .searches import ( SearchesResourceWithStreamingResponse, AsyncSearchesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ..._wrappers import ResultWrapper +from .pools.pools import PoolsResource, AsyncPoolsResource +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options +from .monitors.monitors import MonitorsResource, AsyncMonitorsResource +from ...types.load_balancers import ( + SteeringPolicy, + SessionAffinity, + load_balancer_edit_params, + load_balancer_create_params, + load_balancer_update_params, +) +from ...types.load_balancers.rules_param import RulesParam +from ...types.load_balancers.default_pools import DefaultPools +from ...types.load_balancers.load_balancer import LoadBalancer +from ...types.load_balancers.steering_policy import SteeringPolicy +from ...types.load_balancers.session_affinity import SessionAffinity +from ...types.load_balancers.random_steering_param import RandomSteeringParam +from ...types.load_balancers.adaptive_routing_param import AdaptiveRoutingParam +from ...types.load_balancers.location_strategy_param import LocationStrategyParam +from ...types.load_balancers.load_balancer_delete_response import LoadBalancerDeleteResponse +from ...types.load_balancers.session_affinity_attributes_param import SessionAffinityAttributesParam __all__ = ["LoadBalancersResource", "AsyncLoadBalancersResource"] diff --git a/src/cloudflare/resources/load_balancers/monitors/__init__.py b/src/cloudflare/resources/load_balancers/monitors/__init__.py index 27e9c4e4a..a0f096d59 100644 --- a/src/cloudflare/resources/load_balancers/monitors/__init__.py +++ b/src/cloudflare/resources/load_balancers/monitors/__init__.py @@ -1,26 +1,29 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .previews import PreviewsResource, AsyncPreviewsResource +from .monitors import ( + MonitorsResource, + AsyncMonitorsResource, + MonitorsResourceWithRawResponse, + AsyncMonitorsResourceWithRawResponse, + MonitorsResourceWithStreamingResponse, + AsyncMonitorsResourceWithStreamingResponse, +) from .previews import ( + PreviewsResource, + AsyncPreviewsResource, PreviewsResourceWithRawResponse, AsyncPreviewsResourceWithRawResponse, PreviewsResourceWithStreamingResponse, AsyncPreviewsResourceWithStreamingResponse, ) -from .references import ReferencesResource, AsyncReferencesResource from .references import ( + ReferencesResource, + AsyncReferencesResource, ReferencesResourceWithRawResponse, AsyncReferencesResourceWithRawResponse, ReferencesResourceWithStreamingResponse, AsyncReferencesResourceWithStreamingResponse, ) -from .monitors import MonitorsResource, AsyncMonitorsResource -from .monitors import ( - MonitorsResourceWithRawResponse, - AsyncMonitorsResourceWithRawResponse, - MonitorsResourceWithStreamingResponse, - AsyncMonitorsResourceWithStreamingResponse, -) __all__ = [ "PreviewsResource", diff --git a/src/cloudflare/resources/load_balancers/monitors/monitors.py b/src/cloudflare/resources/load_balancers/monitors/monitors.py index 6dd22942d..26f5c403d 100644 --- a/src/cloudflare/resources/load_balancers/monitors/monitors.py +++ b/src/cloudflare/resources/load_balancers/monitors/monitors.py @@ -2,47 +2,11 @@ from __future__ import annotations +from typing import Dict, List, Type, cast +from typing_extensions import Literal + import httpx -from .previews import PreviewsResource, AsyncPreviewsResource - -from ...._compat import cached_property - -from .references import ReferencesResource, AsyncReferencesResource - -from ....types.load_balancers.monitor import Monitor - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from typing import Type, Dict, List - -from typing_extensions import Literal - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ....types.load_balancers.monitor_delete_response import MonitorDeleteResponse - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.load_balancers import monitor_create_params -from ....types.load_balancers import monitor_update_params -from ....types.load_balancers import monitor_edit_params from .previews import ( PreviewsResource, AsyncPreviewsResource, @@ -51,6 +15,12 @@ from .previews import ( PreviewsResourceWithStreamingResponse, AsyncPreviewsResourceWithStreamingResponse, ) +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property from .references import ( ReferencesResource, AsyncReferencesResource, @@ -59,16 +29,19 @@ from .references import ( ReferencesResourceWithStreamingResponse, AsyncReferencesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.load_balancers import monitor_edit_params, monitor_create_params, monitor_update_params +from ....types.load_balancers.monitor import Monitor +from ....types.load_balancers.monitor_delete_response import MonitorDeleteResponse __all__ = ["MonitorsResource", "AsyncMonitorsResource"] diff --git a/src/cloudflare/resources/load_balancers/monitors/previews.py b/src/cloudflare/resources/load_balancers/monitors/previews.py index 53bb6f109..d65067dbf 100644 --- a/src/cloudflare/resources/load_balancers/monitors/previews.py +++ b/src/cloudflare/resources/load_balancers/monitors/previews.py @@ -2,39 +2,28 @@ from __future__ import annotations +from typing import Dict, List, Type, cast +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.load_balancers.monitors.preview_create_response import PreviewCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, Dict, List - -from typing_extensions import Literal - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.load_balancers.monitors import preview_create_params -from typing import cast -from typing import cast +from ....types.load_balancers.monitors.preview_create_response import PreviewCreateResponse __all__ = ["PreviewsResource", "AsyncPreviewsResource"] diff --git a/src/cloudflare/resources/load_balancers/monitors/references.py b/src/cloudflare/resources/load_balancers/monitors/references.py index b7baca8c4..b4b419825 100644 --- a/src/cloudflare/resources/load_balancers/monitors/references.py +++ b/src/cloudflare/resources/load_balancers/monitors/references.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.load_balancers.monitors.reference_get_response import ReferenceGetResponse - -from ...._wrappers import ResultWrapper - -from ...._base_client import make_request_options - -from typing import Type - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.load_balancers.monitors.reference_get_response import ReferenceGetResponse __all__ = ["ReferencesResource", "AsyncReferencesResource"] diff --git a/src/cloudflare/resources/load_balancers/pools/__init__.py b/src/cloudflare/resources/load_balancers/pools/__init__.py index 1f339f82f..1af722d27 100644 --- a/src/cloudflare/resources/load_balancers/pools/__init__.py +++ b/src/cloudflare/resources/load_balancers/pools/__init__.py @@ -1,26 +1,29 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .health import HealthResource, AsyncHealthResource +from .pools import ( + PoolsResource, + AsyncPoolsResource, + PoolsResourceWithRawResponse, + AsyncPoolsResourceWithRawResponse, + PoolsResourceWithStreamingResponse, + AsyncPoolsResourceWithStreamingResponse, +) from .health import ( + HealthResource, + AsyncHealthResource, HealthResourceWithRawResponse, AsyncHealthResourceWithRawResponse, HealthResourceWithStreamingResponse, AsyncHealthResourceWithStreamingResponse, ) -from .references import ReferencesResource, AsyncReferencesResource from .references import ( + ReferencesResource, + AsyncReferencesResource, ReferencesResourceWithRawResponse, AsyncReferencesResourceWithRawResponse, ReferencesResourceWithStreamingResponse, AsyncReferencesResourceWithStreamingResponse, ) -from .pools import PoolsResource, AsyncPoolsResource -from .pools import ( - PoolsResourceWithRawResponse, - AsyncPoolsResourceWithRawResponse, - PoolsResourceWithStreamingResponse, - AsyncPoolsResourceWithStreamingResponse, -) __all__ = [ "HealthResource", diff --git a/src/cloudflare/resources/load_balancers/pools/health.py b/src/cloudflare/resources/load_balancers/pools/health.py index 59389c54b..f2e5be447 100644 --- a/src/cloudflare/resources/load_balancers/pools/health.py +++ b/src/cloudflare/resources/load_balancers/pools/health.py @@ -2,43 +2,29 @@ from __future__ import annotations +from typing import Dict, List, Type, cast +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.load_balancers.pools.health_create_response import HealthCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, Dict, List - -from typing_extensions import Literal - -from ....types.load_balancers.pools.health_get_response import HealthGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.load_balancers.pools import health_create_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....types.load_balancers.pools.health_get_response import HealthGetResponse +from ....types.load_balancers.pools.health_create_response import HealthCreateResponse __all__ = ["HealthResource", "AsyncHealthResource"] diff --git a/src/cloudflare/resources/load_balancers/pools/pools.py b/src/cloudflare/resources/load_balancers/pools/pools.py index f6001d30e..16c0c13be 100644 --- a/src/cloudflare/resources/load_balancers/pools/pools.py +++ b/src/cloudflare/resources/load_balancers/pools/pools.py @@ -2,65 +2,10 @@ from __future__ import annotations +from typing import List, Type, Iterable, Optional, cast + import httpx -from .health import HealthResource, AsyncHealthResource - -from ...._compat import cached_property - -from .references import ReferencesResource, AsyncReferencesResource - -from ....types.load_balancers.pool import Pool - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from typing import Type, Iterable, Optional, List - -from ....types.load_balancers.origin_param import OriginParam - -from ....types.load_balancers.load_shedding_param import LoadSheddingParam - -from ....types.load_balancers.notification_filter_param import NotificationFilterParam - -from ....types.load_balancers.origin_steering_param import OriginSteeringParam - -from ....types.load_balancers.check_region import CheckRegion - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ....types.load_balancers.pool_delete_response import PoolDeleteResponse - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.load_balancers import pool_create_params -from ....types.load_balancers import pool_update_params -from ....types.load_balancers import pool_list_params -from ....types.load_balancers import pool_edit_params -from ....types.load_balancers import LoadShedding -from ....types.load_balancers import NotificationFilter -from ....types.load_balancers import OriginSteering -from ....types.load_balancers import LoadShedding -from ....types.load_balancers import NotificationFilter -from ....types.load_balancers import OriginSteering -from ....types.load_balancers import LoadShedding -from ....types.load_balancers import NotificationFilter -from ....types.load_balancers import OriginSteering from .health import ( HealthResource, AsyncHealthResource, @@ -69,6 +14,12 @@ from .health import ( HealthResourceWithStreamingResponse, AsyncHealthResourceWithStreamingResponse, ) +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property from .references import ( ReferencesResource, AsyncReferencesResource, @@ -77,16 +28,29 @@ from .references import ( ReferencesResourceWithStreamingResponse, AsyncReferencesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.load_balancers import ( + pool_edit_params, + pool_list_params, + pool_create_params, + pool_update_params, +) +from ....types.load_balancers.pool import Pool +from ....types.load_balancers.check_region import CheckRegion +from ....types.load_balancers.origin_param import OriginParam +from ....types.load_balancers.load_shedding_param import LoadSheddingParam +from ....types.load_balancers.pool_delete_response import PoolDeleteResponse +from ....types.load_balancers.origin_steering_param import OriginSteeringParam +from ....types.load_balancers.notification_filter_param import NotificationFilterParam __all__ = ["PoolsResource", "AsyncPoolsResource"] diff --git a/src/cloudflare/resources/load_balancers/pools/references.py b/src/cloudflare/resources/load_balancers/pools/references.py index 6eca4e609..2f8e84aad 100644 --- a/src/cloudflare/resources/load_balancers/pools/references.py +++ b/src/cloudflare/resources/load_balancers/pools/references.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.load_balancers.pools.reference_get_response import ReferenceGetResponse - -from ...._wrappers import ResultWrapper - -from ...._base_client import make_request_options - -from typing import Type - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.load_balancers.pools.reference_get_response import ReferenceGetResponse __all__ = ["ReferencesResource", "AsyncReferencesResource"] diff --git a/src/cloudflare/resources/load_balancers/previews.py b/src/cloudflare/resources/load_balancers/previews.py index e4adb4ed7..a444e682d 100644 --- a/src/cloudflare/resources/load_balancers/previews.py +++ b/src/cloudflare/resources/load_balancers/previews.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._compat import cached_property - -from ...types.load_balancers.preview_get_response import PreviewGetResponse - -from ..._wrappers import ResultWrapper - -from ..._base_client import make_request_options - -from typing import Type - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.load_balancers.preview_get_response import PreviewGetResponse __all__ = ["PreviewsResource", "AsyncPreviewsResource"] diff --git a/src/cloudflare/resources/load_balancers/regions.py b/src/cloudflare/resources/load_balancers/regions.py index e24088ee0..38b0f38de 100644 --- a/src/cloudflare/resources/load_balancers/regions.py +++ b/src/cloudflare/resources/load_balancers/regions.py @@ -2,45 +2,29 @@ from __future__ import annotations +from typing import Any, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.load_balancers.region_list_response import RegionListResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from ...types.load_balancers.region_get_response import RegionGetResponse - -from typing_extensions import Literal - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.load_balancers import region_list_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...types.load_balancers.region_get_response import RegionGetResponse +from ...types.load_balancers.region_list_response import RegionListResponse __all__ = ["RegionsResource", "AsyncRegionsResource"] diff --git a/src/cloudflare/resources/load_balancers/searches.py b/src/cloudflare/resources/load_balancers/searches.py index a57ce3ea5..a587c3cda 100644 --- a/src/cloudflare/resources/load_balancers/searches.py +++ b/src/cloudflare/resources/load_balancers/searches.py @@ -2,39 +2,27 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.load_balancers.search_get_response import SearchGetResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing import Type - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.load_balancers import search_get_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.load_balancers import search_get_params -from typing import cast -from typing import cast +from ...types.load_balancers.search_get_response import SearchGetResponse __all__ = ["SearchesResource", "AsyncSearchesResource"] diff --git a/src/cloudflare/resources/logpush/__init__.py b/src/cloudflare/resources/logpush/__init__.py index 39834f29f..a1e3be0cc 100644 --- a/src/cloudflare/resources/logpush/__init__.py +++ b/src/cloudflare/resources/logpush/__init__.py @@ -1,46 +1,52 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .datasets import DatasetsResource, AsyncDatasetsResource -from .datasets import ( - DatasetsResourceWithRawResponse, - AsyncDatasetsResourceWithRawResponse, - DatasetsResourceWithStreamingResponse, - AsyncDatasetsResourceWithStreamingResponse, -) -from .edge import EdgeResource, AsyncEdgeResource from .edge import ( + EdgeResource, + AsyncEdgeResource, EdgeResourceWithRawResponse, AsyncEdgeResourceWithRawResponse, EdgeResourceWithStreamingResponse, AsyncEdgeResourceWithStreamingResponse, ) -from .jobs import JobsResource, AsyncJobsResource from .jobs import ( + JobsResource, + AsyncJobsResource, JobsResourceWithRawResponse, AsyncJobsResourceWithRawResponse, JobsResourceWithStreamingResponse, AsyncJobsResourceWithStreamingResponse, ) -from .ownership import OwnershipResource, AsyncOwnershipResource -from .ownership import ( - OwnershipResourceWithRawResponse, - AsyncOwnershipResourceWithRawResponse, - OwnershipResourceWithStreamingResponse, - AsyncOwnershipResourceWithStreamingResponse, +from .logpush import ( + LogpushResource, + AsyncLogpushResource, + LogpushResourceWithRawResponse, + AsyncLogpushResourceWithRawResponse, + LogpushResourceWithStreamingResponse, + AsyncLogpushResourceWithStreamingResponse, +) +from .datasets import ( + DatasetsResource, + AsyncDatasetsResource, + DatasetsResourceWithRawResponse, + AsyncDatasetsResourceWithRawResponse, + DatasetsResourceWithStreamingResponse, + AsyncDatasetsResourceWithStreamingResponse, ) -from .validate import ValidateResource, AsyncValidateResource from .validate import ( + ValidateResource, + AsyncValidateResource, ValidateResourceWithRawResponse, AsyncValidateResourceWithRawResponse, ValidateResourceWithStreamingResponse, AsyncValidateResourceWithStreamingResponse, ) -from .logpush import LogpushResource, AsyncLogpushResource -from .logpush import ( - LogpushResourceWithRawResponse, - AsyncLogpushResourceWithRawResponse, - LogpushResourceWithStreamingResponse, - AsyncLogpushResourceWithStreamingResponse, +from .ownership import ( + OwnershipResource, + AsyncOwnershipResource, + OwnershipResourceWithRawResponse, + AsyncOwnershipResourceWithRawResponse, + OwnershipResourceWithStreamingResponse, + AsyncOwnershipResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/logpush/datasets/__init__.py b/src/cloudflare/resources/logpush/datasets/__init__.py index 26c9a09d0..55ef58eac 100644 --- a/src/cloudflare/resources/logpush/datasets/__init__.py +++ b/src/cloudflare/resources/logpush/datasets/__init__.py @@ -1,21 +1,24 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .fields import FieldsResource, AsyncFieldsResource -from .fields import ( - FieldsResourceWithRawResponse, - AsyncFieldsResourceWithRawResponse, - FieldsResourceWithStreamingResponse, - AsyncFieldsResourceWithStreamingResponse, -) -from .jobs import JobsResource, AsyncJobsResource from .jobs import ( + JobsResource, + AsyncJobsResource, JobsResourceWithRawResponse, AsyncJobsResourceWithRawResponse, JobsResourceWithStreamingResponse, AsyncJobsResourceWithStreamingResponse, ) -from .datasets import DatasetsResource, AsyncDatasetsResource +from .fields import ( + FieldsResource, + AsyncFieldsResource, + FieldsResourceWithRawResponse, + AsyncFieldsResourceWithRawResponse, + FieldsResourceWithStreamingResponse, + AsyncFieldsResourceWithStreamingResponse, +) from .datasets import ( + DatasetsResource, + AsyncDatasetsResource, DatasetsResourceWithRawResponse, AsyncDatasetsResourceWithRawResponse, DatasetsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/logpush/datasets/datasets.py b/src/cloudflare/resources/logpush/datasets/datasets.py index e8a351e3c..e2218d3f1 100644 --- a/src/cloudflare/resources/logpush/datasets/datasets.py +++ b/src/cloudflare/resources/logpush/datasets/datasets.py @@ -2,27 +2,6 @@ from __future__ import annotations -from .fields import FieldsResource, AsyncFieldsResource - -from ...._compat import cached_property - -from .jobs import JobsResource, AsyncJobsResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from .fields import ( - FieldsResource, - AsyncFieldsResource, - FieldsResourceWithRawResponse, - AsyncFieldsResourceWithRawResponse, - FieldsResourceWithStreamingResponse, - AsyncFieldsResourceWithStreamingResponse, -) from .jobs import ( JobsResource, AsyncJobsResource, @@ -31,6 +10,16 @@ from .jobs import ( JobsResourceWithStreamingResponse, AsyncJobsResourceWithStreamingResponse, ) +from .fields import ( + FieldsResource, + AsyncFieldsResource, + FieldsResourceWithRawResponse, + AsyncFieldsResourceWithRawResponse, + FieldsResourceWithStreamingResponse, + AsyncFieldsResourceWithStreamingResponse, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource __all__ = ["DatasetsResource", "AsyncDatasetsResource"] diff --git a/src/cloudflare/resources/logpush/datasets/fields.py b/src/cloudflare/resources/logpush/datasets/fields.py index 90a47f9b0..5e661edf5 100644 --- a/src/cloudflare/resources/logpush/datasets/fields.py +++ b/src/cloudflare/resources/logpush/datasets/fields.py @@ -2,32 +2,21 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ...._wrappers import ResultWrapper - -from typing import Optional, Type - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options __all__ = ["FieldsResource", "AsyncFieldsResource"] diff --git a/src/cloudflare/resources/logpush/datasets/jobs.py b/src/cloudflare/resources/logpush/datasets/jobs.py index 3c0adbaed..f96da336d 100644 --- a/src/cloudflare/resources/logpush/datasets/jobs.py +++ b/src/cloudflare/resources/logpush/datasets/jobs.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.logpush.datasets.job_get_response import JobGetResponse - -from ...._wrappers import ResultWrapper - -from typing import Optional, Type - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.logpush.datasets.job_get_response import JobGetResponse __all__ = ["JobsResource", "AsyncJobsResource"] diff --git a/src/cloudflare/resources/logpush/edge.py b/src/cloudflare/resources/logpush/edge.py index 0d878bae9..a708f47cf 100644 --- a/src/cloudflare/resources/logpush/edge.py +++ b/src/cloudflare/resources/logpush/edge.py @@ -2,41 +2,28 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.logpush.instant_logpush_job import InstantLogpushJob - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from ...types.logpush.edge_get_response import EdgeGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.logpush import edge_create_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...types.logpush.edge_get_response import EdgeGetResponse +from ...types.logpush.instant_logpush_job import InstantLogpushJob __all__ = ["EdgeResource", "AsyncEdgeResource"] diff --git a/src/cloudflare/resources/logpush/jobs.py b/src/cloudflare/resources/logpush/jobs.py index a754a244e..7c13f6811 100644 --- a/src/cloudflare/resources/logpush/jobs.py +++ b/src/cloudflare/resources/logpush/jobs.py @@ -2,54 +2,31 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.logpush.logpush_job import LogpushJob - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from ...types.logpush.output_options_param import OutputOptionsParam - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from ...types.logpush.job_delete_response import JobDeleteResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.logpush import job_create_params -from ...types.logpush import job_update_params -from ...types.logpush import OutputOptions -from ...types.logpush import OutputOptions -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options +from ...types.logpush import job_create_params, job_update_params +from ...types.logpush.logpush_job import LogpushJob +from ...types.logpush.job_delete_response import JobDeleteResponse +from ...types.logpush.output_options_param import OutputOptionsParam __all__ = ["JobsResource", "AsyncJobsResource"] diff --git a/src/cloudflare/resources/logpush/logpush.py b/src/cloudflare/resources/logpush/logpush.py index b0c4fee2e..4b316a9b9 100644 --- a/src/cloudflare/resources/logpush/logpush.py +++ b/src/cloudflare/resources/logpush/logpush.py @@ -2,33 +2,6 @@ from __future__ import annotations -from .datasets.datasets import DatasetsResource, AsyncDatasetsResource - -from ..._compat import cached_property - -from .edge import EdgeResource, AsyncEdgeResource - -from .jobs import JobsResource, AsyncJobsResource - -from .ownership import OwnershipResource, AsyncOwnershipResource - -from .validate import ValidateResource, AsyncValidateResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from .datasets import ( - DatasetsResource, - AsyncDatasetsResource, - DatasetsResourceWithRawResponse, - AsyncDatasetsResourceWithRawResponse, - DatasetsResourceWithStreamingResponse, - AsyncDatasetsResourceWithStreamingResponse, -) from .edge import ( EdgeResource, AsyncEdgeResource, @@ -45,13 +18,13 @@ from .jobs import ( JobsResourceWithStreamingResponse, AsyncJobsResourceWithStreamingResponse, ) -from .ownership import ( - OwnershipResource, - AsyncOwnershipResource, - OwnershipResourceWithRawResponse, - AsyncOwnershipResourceWithRawResponse, - OwnershipResourceWithStreamingResponse, - AsyncOwnershipResourceWithStreamingResponse, +from .datasets import ( + DatasetsResource, + AsyncDatasetsResource, + DatasetsResourceWithRawResponse, + AsyncDatasetsResourceWithRawResponse, + DatasetsResourceWithStreamingResponse, + AsyncDatasetsResourceWithStreamingResponse, ) from .validate import ( ValidateResource, @@ -61,6 +34,17 @@ from .validate import ( ValidateResourceWithStreamingResponse, AsyncValidateResourceWithStreamingResponse, ) +from ..._compat import cached_property +from .ownership import ( + OwnershipResource, + AsyncOwnershipResource, + OwnershipResourceWithRawResponse, + AsyncOwnershipResourceWithRawResponse, + OwnershipResourceWithStreamingResponse, + AsyncOwnershipResourceWithStreamingResponse, +) +from ..._resource import SyncAPIResource, AsyncAPIResource +from .datasets.datasets import DatasetsResource, AsyncDatasetsResource __all__ = ["LogpushResource", "AsyncLogpushResource"] diff --git a/src/cloudflare/resources/logpush/ownership.py b/src/cloudflare/resources/logpush/ownership.py index 8e837745f..42cf9a9ab 100644 --- a/src/cloudflare/resources/logpush/ownership.py +++ b/src/cloudflare/resources/logpush/ownership.py @@ -2,42 +2,28 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.logpush.ownership_create_response import OwnershipCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from ...types.logpush.ownership_validation import OwnershipValidation - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.logpush import ownership_create_params -from ...types.logpush import ownership_validate_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.logpush import ownership_create_params, ownership_validate_params +from ...types.logpush.ownership_validation import OwnershipValidation +from ...types.logpush.ownership_create_response import OwnershipCreateResponse __all__ = ["OwnershipResource", "AsyncOwnershipResource"] diff --git a/src/cloudflare/resources/logpush/validate.py b/src/cloudflare/resources/logpush/validate.py index f53fdf10b..2de975b95 100644 --- a/src/cloudflare/resources/logpush/validate.py +++ b/src/cloudflare/resources/logpush/validate.py @@ -2,42 +2,28 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.logpush.validate_destination_response import ValidateDestinationResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from ...types.logpush.validate_origin_response import ValidateOriginResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.logpush import validate_destination_params -from ...types.logpush import validate_origin_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.logpush import validate_origin_params, validate_destination_params +from ...types.logpush.validate_origin_response import ValidateOriginResponse +from ...types.logpush.validate_destination_response import ValidateDestinationResponse __all__ = ["ValidateResource", "AsyncValidateResource"] diff --git a/src/cloudflare/resources/logs/__init__.py b/src/cloudflare/resources/logs/__init__.py index 407a929c4..758397ab1 100644 --- a/src/cloudflare/resources/logs/__init__.py +++ b/src/cloudflare/resources/logs/__init__.py @@ -1,33 +1,37 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .control import ControlResource, AsyncControlResource -from .control import ( - ControlResourceWithRawResponse, - AsyncControlResourceWithRawResponse, - ControlResourceWithStreamingResponse, - AsyncControlResourceWithStreamingResponse, +from .logs import ( + LogsResource, + AsyncLogsResource, + LogsResourceWithRawResponse, + AsyncLogsResourceWithRawResponse, + LogsResourceWithStreamingResponse, + AsyncLogsResourceWithStreamingResponse, ) -from .rayid import RayIDResource, AsyncRayIDResource from .rayid import ( + RayIDResource, + AsyncRayIDResource, RayIDResourceWithRawResponse, AsyncRayIDResourceWithRawResponse, RayIDResourceWithStreamingResponse, AsyncRayIDResourceWithStreamingResponse, ) -from .received import ReceivedResource, AsyncReceivedResource +from .control import ( + ControlResource, + AsyncControlResource, + ControlResourceWithRawResponse, + AsyncControlResourceWithRawResponse, + ControlResourceWithStreamingResponse, + AsyncControlResourceWithStreamingResponse, +) from .received import ( + ReceivedResource, + AsyncReceivedResource, ReceivedResourceWithRawResponse, AsyncReceivedResourceWithRawResponse, ReceivedResourceWithStreamingResponse, AsyncReceivedResourceWithStreamingResponse, ) -from .logs import LogsResource, AsyncLogsResource -from .logs import ( - LogsResourceWithRawResponse, - AsyncLogsResourceWithRawResponse, - LogsResourceWithStreamingResponse, - AsyncLogsResourceWithStreamingResponse, -) __all__ = [ "ControlResource", diff --git a/src/cloudflare/resources/logs/control/__init__.py b/src/cloudflare/resources/logs/control/__init__.py index a97e64013..a762ffc32 100644 --- a/src/cloudflare/resources/logs/control/__init__.py +++ b/src/cloudflare/resources/logs/control/__init__.py @@ -1,26 +1,29 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .retention import RetentionResource, AsyncRetentionResource -from .retention import ( - RetentionResourceWithRawResponse, - AsyncRetentionResourceWithRawResponse, - RetentionResourceWithStreamingResponse, - AsyncRetentionResourceWithStreamingResponse, -) -from .cmb import CmbResource, AsyncCmbResource from .cmb import ( + CmbResource, + AsyncCmbResource, CmbResourceWithRawResponse, AsyncCmbResourceWithRawResponse, CmbResourceWithStreamingResponse, AsyncCmbResourceWithStreamingResponse, ) -from .control import ControlResource, AsyncControlResource from .control import ( + ControlResource, + AsyncControlResource, ControlResourceWithRawResponse, AsyncControlResourceWithRawResponse, ControlResourceWithStreamingResponse, AsyncControlResourceWithStreamingResponse, ) +from .retention import ( + RetentionResource, + AsyncRetentionResource, + RetentionResourceWithRawResponse, + AsyncRetentionResourceWithRawResponse, + RetentionResourceWithStreamingResponse, + AsyncRetentionResourceWithStreamingResponse, +) __all__ = [ "RetentionResource", diff --git a/src/cloudflare/resources/logs/control/cmb/__init__.py b/src/cloudflare/resources/logs/control/cmb/__init__.py index c4bfbb53c..870349941 100644 --- a/src/cloudflare/resources/logs/control/cmb/__init__.py +++ b/src/cloudflare/resources/logs/control/cmb/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .config import ConfigResource, AsyncConfigResource -from .config import ( - ConfigResourceWithRawResponse, - AsyncConfigResourceWithRawResponse, - ConfigResourceWithStreamingResponse, - AsyncConfigResourceWithStreamingResponse, -) -from .cmb import CmbResource, AsyncCmbResource from .cmb import ( + CmbResource, + AsyncCmbResource, CmbResourceWithRawResponse, AsyncCmbResourceWithRawResponse, CmbResourceWithStreamingResponse, AsyncCmbResourceWithStreamingResponse, ) +from .config import ( + ConfigResource, + AsyncConfigResource, + ConfigResourceWithRawResponse, + AsyncConfigResourceWithRawResponse, + ConfigResourceWithStreamingResponse, + AsyncConfigResourceWithStreamingResponse, +) __all__ = [ "ConfigResource", diff --git a/src/cloudflare/resources/logs/control/cmb/cmb.py b/src/cloudflare/resources/logs/control/cmb/cmb.py index b694093ec..c24d2105c 100644 --- a/src/cloudflare/resources/logs/control/cmb/cmb.py +++ b/src/cloudflare/resources/logs/control/cmb/cmb.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .config import ConfigResource, AsyncConfigResource - -from ....._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params from .config import ( ConfigResource, AsyncConfigResource, @@ -21,6 +10,8 @@ from .config import ( ConfigResourceWithStreamingResponse, AsyncConfigResourceWithStreamingResponse, ) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource __all__ = ["CmbResource", "AsyncCmbResource"] diff --git a/src/cloudflare/resources/logs/control/cmb/config.py b/src/cloudflare/resources/logs/control/cmb/config.py index a1041cda2..ac19a9921 100644 --- a/src/cloudflare/resources/logs/control/cmb/config.py +++ b/src/cloudflare/resources/logs/control/cmb/config.py @@ -2,41 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.logs.control.cmb.cmb_config import CmbConfig - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ....._base_client import make_request_options - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.logs.control.cmb import config_create_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .....types.logs.control.cmb.cmb_config import CmbConfig __all__ = ["ConfigResource", "AsyncConfigResource"] diff --git a/src/cloudflare/resources/logs/control/control.py b/src/cloudflare/resources/logs/control/control.py index 60c57001c..b642e31a5 100644 --- a/src/cloudflare/resources/logs/control/control.py +++ b/src/cloudflare/resources/logs/control/control.py @@ -2,27 +2,6 @@ from __future__ import annotations -from .retention import RetentionResource, AsyncRetentionResource - -from ...._compat import cached_property - -from .cmb.cmb import CmbResource, AsyncCmbResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from .retention import ( - RetentionResource, - AsyncRetentionResource, - RetentionResourceWithRawResponse, - AsyncRetentionResourceWithRawResponse, - RetentionResourceWithStreamingResponse, - AsyncRetentionResourceWithStreamingResponse, -) from .cmb import ( CmbResource, AsyncCmbResource, @@ -31,6 +10,17 @@ from .cmb import ( CmbResourceWithStreamingResponse, AsyncCmbResourceWithStreamingResponse, ) +from .cmb.cmb import CmbResource, AsyncCmbResource +from .retention import ( + RetentionResource, + AsyncRetentionResource, + RetentionResourceWithRawResponse, + AsyncRetentionResourceWithRawResponse, + RetentionResourceWithStreamingResponse, + AsyncRetentionResourceWithStreamingResponse, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource __all__ = ["ControlResource", "AsyncControlResource"] diff --git a/src/cloudflare/resources/logs/control/retention.py b/src/cloudflare/resources/logs/control/retention.py index 159c6591d..f54f9953c 100644 --- a/src/cloudflare/resources/logs/control/retention.py +++ b/src/cloudflare/resources/logs/control/retention.py @@ -2,41 +2,28 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.logs.control.retention_create_response import RetentionCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options - -from ....types.logs.control.retention_get_response import RetentionGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.logs.control import retention_create_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....types.logs.control.retention_get_response import RetentionGetResponse +from ....types.logs.control.retention_create_response import RetentionCreateResponse __all__ = ["RetentionResource", "AsyncRetentionResource"] diff --git a/src/cloudflare/resources/logs/logs.py b/src/cloudflare/resources/logs/logs.py index 0996b504e..b868582e3 100644 --- a/src/cloudflare/resources/logs/logs.py +++ b/src/cloudflare/resources/logs/logs.py @@ -2,29 +2,6 @@ from __future__ import annotations -from .control.control import ControlResource, AsyncControlResource - -from ..._compat import cached_property - -from .rayid import RayIDResource, AsyncRayIDResource - -from .received.received import ReceivedResource, AsyncReceivedResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from .control import ( - ControlResource, - AsyncControlResource, - ControlResourceWithRawResponse, - AsyncControlResourceWithRawResponse, - ControlResourceWithStreamingResponse, - AsyncControlResourceWithStreamingResponse, -) from .rayid import ( RayIDResource, AsyncRayIDResource, @@ -33,6 +10,14 @@ from .rayid import ( RayIDResourceWithStreamingResponse, AsyncRayIDResourceWithStreamingResponse, ) +from .control import ( + ControlResource, + AsyncControlResource, + ControlResourceWithRawResponse, + AsyncControlResourceWithRawResponse, + ControlResourceWithStreamingResponse, + AsyncControlResourceWithStreamingResponse, +) from .received import ( ReceivedResource, AsyncReceivedResource, @@ -41,6 +26,10 @@ from .received import ( ReceivedResourceWithStreamingResponse, AsyncReceivedResourceWithStreamingResponse, ) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from .control.control import ControlResource, AsyncControlResource +from .received.received import ReceivedResource, AsyncReceivedResource __all__ = ["LogsResource", "AsyncLogsResource"] diff --git a/src/cloudflare/resources/logs/rayid.py b/src/cloudflare/resources/logs/rayid.py index 02dfef2bc..5d83ae982 100644 --- a/src/cloudflare/resources/logs/rayid.py +++ b/src/cloudflare/resources/logs/rayid.py @@ -2,37 +2,27 @@ from __future__ import annotations +from typing import Any, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.logs.rayid_get_response import RayIDGetResponse - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing_extensions import Literal - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from ...types.logs import rayid_get_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._base_client import make_request_options +from ...types.logs.rayid_get_response import RayIDGetResponse __all__ = ["RayIDResource", "AsyncRayIDResource"] diff --git a/src/cloudflare/resources/logs/received/__init__.py b/src/cloudflare/resources/logs/received/__init__.py index a59b7410f..dc6b4c74f 100644 --- a/src/cloudflare/resources/logs/received/__init__.py +++ b/src/cloudflare/resources/logs/received/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .fields import FieldsResource, AsyncFieldsResource from .fields import ( + FieldsResource, + AsyncFieldsResource, FieldsResourceWithRawResponse, AsyncFieldsResourceWithRawResponse, FieldsResourceWithStreamingResponse, AsyncFieldsResourceWithStreamingResponse, ) -from .received import ReceivedResource, AsyncReceivedResource from .received import ( + ReceivedResource, + AsyncReceivedResource, ReceivedResourceWithRawResponse, AsyncReceivedResourceWithRawResponse, ReceivedResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/logs/received/fields.py b/src/cloudflare/resources/logs/received/fields.py index 07a450900..08434c8ea 100644 --- a/src/cloudflare/resources/logs/received/fields.py +++ b/src/cloudflare/resources/logs/received/fields.py @@ -4,26 +4,17 @@ from __future__ import annotations import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.logs.received.field_get_response import FieldGetResponse - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._base_client import make_request_options +from ....types.logs.received.field_get_response import FieldGetResponse __all__ = ["FieldsResource", "AsyncFieldsResource"] diff --git a/src/cloudflare/resources/logs/received/received.py b/src/cloudflare/resources/logs/received/received.py index 985a848b9..ae313f1a1 100644 --- a/src/cloudflare/resources/logs/received/received.py +++ b/src/cloudflare/resources/logs/received/received.py @@ -2,37 +2,11 @@ from __future__ import annotations +from typing import Any, Union, cast +from typing_extensions import Literal + import httpx -from .fields import FieldsResource, AsyncFieldsResource - -from ...._compat import cached_property - -from ....types.logs.received_get_response import ReceivedGetResponse - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Union - -from typing_extensions import Literal - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.logs import received_get_params from .fields import ( FieldsResource, AsyncFieldsResource, @@ -41,10 +15,22 @@ from .fields import ( FieldsResourceWithStreamingResponse, AsyncFieldsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....types.logs import received_get_params +from ...._base_client import make_request_options +from ....types.logs.received_get_response import ReceivedGetResponse __all__ = ["ReceivedResource", "AsyncReceivedResource"] diff --git a/src/cloudflare/resources/magic_network_monitoring/__init__.py b/src/cloudflare/resources/magic_network_monitoring/__init__.py index 2e18b23c3..ddc8bc54f 100644 --- a/src/cloudflare/resources/magic_network_monitoring/__init__.py +++ b/src/cloudflare/resources/magic_network_monitoring/__init__.py @@ -1,21 +1,24 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .configs import ConfigsResource, AsyncConfigsResource -from .configs import ( - ConfigsResourceWithRawResponse, - AsyncConfigsResourceWithRawResponse, - ConfigsResourceWithStreamingResponse, - AsyncConfigsResourceWithStreamingResponse, -) -from .rules import RulesResource, AsyncRulesResource from .rules import ( + RulesResource, + AsyncRulesResource, RulesResourceWithRawResponse, AsyncRulesResourceWithRawResponse, RulesResourceWithStreamingResponse, AsyncRulesResourceWithStreamingResponse, ) -from .magic_network_monitoring import MagicNetworkMonitoringResource, AsyncMagicNetworkMonitoringResource +from .configs import ( + ConfigsResource, + AsyncConfigsResource, + ConfigsResourceWithRawResponse, + AsyncConfigsResourceWithRawResponse, + ConfigsResourceWithStreamingResponse, + AsyncConfigsResourceWithStreamingResponse, +) from .magic_network_monitoring import ( + MagicNetworkMonitoringResource, + AsyncMagicNetworkMonitoringResource, MagicNetworkMonitoringResourceWithRawResponse, AsyncMagicNetworkMonitoringResourceWithRawResponse, MagicNetworkMonitoringResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/magic_network_monitoring/configs/__init__.py b/src/cloudflare/resources/magic_network_monitoring/configs/__init__.py index e809bf7ec..cd21fef80 100644 --- a/src/cloudflare/resources/magic_network_monitoring/configs/__init__.py +++ b/src/cloudflare/resources/magic_network_monitoring/configs/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .full import FullResource, AsyncFullResource from .full import ( + FullResource, + AsyncFullResource, FullResourceWithRawResponse, AsyncFullResourceWithRawResponse, FullResourceWithStreamingResponse, AsyncFullResourceWithStreamingResponse, ) -from .configs import ConfigsResource, AsyncConfigsResource from .configs import ( + ConfigsResource, + AsyncConfigsResource, ConfigsResourceWithRawResponse, AsyncConfigsResourceWithRawResponse, ConfigsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/magic_network_monitoring/configs/configs.py b/src/cloudflare/resources/magic_network_monitoring/configs/configs.py index 046c7414c..ea4fc1e11 100644 --- a/src/cloudflare/resources/magic_network_monitoring/configs/configs.py +++ b/src/cloudflare/resources/magic_network_monitoring/configs/configs.py @@ -2,39 +2,10 @@ from __future__ import annotations +from typing import Type, cast + import httpx -from .full import FullResource, AsyncFullResource - -from ...._compat import cached_property - -from ....types.magic_network_monitoring.configuration import Configuration - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.magic_network_monitoring import config_create_params -from ....types.magic_network_monitoring import config_update_params -from ....types.magic_network_monitoring import config_edit_params from .full import ( FullResource, AsyncFullResource, @@ -43,16 +14,23 @@ from .full import ( FullResourceWithStreamingResponse, AsyncFullResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.magic_network_monitoring import config_edit_params, config_create_params, config_update_params +from ....types.magic_network_monitoring.configuration import Configuration __all__ = ["ConfigsResource", "AsyncConfigsResource"] diff --git a/src/cloudflare/resources/magic_network_monitoring/configs/full.py b/src/cloudflare/resources/magic_network_monitoring/configs/full.py index 0cf0cfd6d..3e7c2df80 100644 --- a/src/cloudflare/resources/magic_network_monitoring/configs/full.py +++ b/src/cloudflare/resources/magic_network_monitoring/configs/full.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.magic_network_monitoring.configuration import Configuration - -from ...._wrappers import ResultWrapper - -from ...._base_client import make_request_options - -from typing import Type - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.magic_network_monitoring.configuration import Configuration __all__ = ["FullResource", "AsyncFullResource"] diff --git a/src/cloudflare/resources/magic_network_monitoring/magic_network_monitoring.py b/src/cloudflare/resources/magic_network_monitoring/magic_network_monitoring.py index 852273f45..528cbaa79 100644 --- a/src/cloudflare/resources/magic_network_monitoring/magic_network_monitoring.py +++ b/src/cloudflare/resources/magic_network_monitoring/magic_network_monitoring.py @@ -2,27 +2,6 @@ from __future__ import annotations -from .configs.configs import ConfigsResource, AsyncConfigsResource - -from ..._compat import cached_property - -from .rules.rules import RulesResource, AsyncRulesResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from .configs import ( - ConfigsResource, - AsyncConfigsResource, - ConfigsResourceWithRawResponse, - AsyncConfigsResourceWithRawResponse, - ConfigsResourceWithStreamingResponse, - AsyncConfigsResourceWithStreamingResponse, -) from .rules import ( RulesResource, AsyncRulesResource, @@ -31,6 +10,18 @@ from .rules import ( RulesResourceWithStreamingResponse, AsyncRulesResourceWithStreamingResponse, ) +from .configs import ( + ConfigsResource, + AsyncConfigsResource, + ConfigsResourceWithRawResponse, + AsyncConfigsResourceWithRawResponse, + ConfigsResourceWithStreamingResponse, + AsyncConfigsResourceWithStreamingResponse, +) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from .rules.rules import RulesResource, AsyncRulesResource +from .configs.configs import ConfigsResource, AsyncConfigsResource __all__ = ["MagicNetworkMonitoringResource", "AsyncMagicNetworkMonitoringResource"] diff --git a/src/cloudflare/resources/magic_network_monitoring/rules/__init__.py b/src/cloudflare/resources/magic_network_monitoring/rules/__init__.py index b69cfbf39..00d12a6e5 100644 --- a/src/cloudflare/resources/magic_network_monitoring/rules/__init__.py +++ b/src/cloudflare/resources/magic_network_monitoring/rules/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .advertisements import AdvertisementsResource, AsyncAdvertisementsResource -from .advertisements import ( - AdvertisementsResourceWithRawResponse, - AsyncAdvertisementsResourceWithRawResponse, - AdvertisementsResourceWithStreamingResponse, - AsyncAdvertisementsResourceWithStreamingResponse, -) -from .rules import RulesResource, AsyncRulesResource from .rules import ( + RulesResource, + AsyncRulesResource, RulesResourceWithRawResponse, AsyncRulesResourceWithRawResponse, RulesResourceWithStreamingResponse, AsyncRulesResourceWithStreamingResponse, ) +from .advertisements import ( + AdvertisementsResource, + AsyncAdvertisementsResource, + AdvertisementsResourceWithRawResponse, + AsyncAdvertisementsResourceWithRawResponse, + AdvertisementsResourceWithStreamingResponse, + AsyncAdvertisementsResourceWithStreamingResponse, +) __all__ = [ "AdvertisementsResource", diff --git a/src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py b/src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py index fd61e4f94..b50a63f27 100644 --- a/src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py +++ b/src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py @@ -2,37 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.magic_network_monitoring.rules.advertisement import Advertisement - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.magic_network_monitoring.rules import advertisement_edit_params -from typing import cast -from typing import cast +from ....types.magic_network_monitoring.rules.advertisement import Advertisement __all__ = ["AdvertisementsResource", "AsyncAdvertisementsResource"] diff --git a/src/cloudflare/resources/magic_network_monitoring/rules/rules.py b/src/cloudflare/resources/magic_network_monitoring/rules/rules.py index f1140da93..d963c020c 100644 --- a/src/cloudflare/resources/magic_network_monitoring/rules/rules.py +++ b/src/cloudflare/resources/magic_network_monitoring/rules/rules.py @@ -2,41 +2,25 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .advertisements import AdvertisementsResource, AsyncAdvertisementsResource - +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.magic_network_monitoring.magic_network_monitoring_rule import MagicNetworkMonitoringRule - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options, AsyncPaginator - -from ....pagination import SyncSinglePage, AsyncSinglePage - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.magic_network_monitoring import rule_create_params -from ....types.magic_network_monitoring import rule_update_params -from ....types.magic_network_monitoring import rule_edit_params +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage from .advertisements import ( AdvertisementsResource, AsyncAdvertisementsResource, @@ -45,16 +29,9 @@ from .advertisements import ( AdvertisementsResourceWithStreamingResponse, AsyncAdvertisementsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._base_client import AsyncPaginator, make_request_options +from ....types.magic_network_monitoring import rule_edit_params, rule_create_params, rule_update_params +from ....types.magic_network_monitoring.magic_network_monitoring_rule import MagicNetworkMonitoringRule __all__ = ["RulesResource", "AsyncRulesResource"] diff --git a/src/cloudflare/resources/magic_transit/__init__.py b/src/cloudflare/resources/magic_transit/__init__.py index 466bdd59d..db6f2e65c 100644 --- a/src/cloudflare/resources/magic_transit/__init__.py +++ b/src/cloudflare/resources/magic_transit/__init__.py @@ -1,61 +1,69 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .apps import AppsResource, AsyncAppsResource from .apps import ( + AppsResource, + AsyncAppsResource, AppsResourceWithRawResponse, AsyncAppsResourceWithRawResponse, AppsResourceWithStreamingResponse, AsyncAppsResourceWithStreamingResponse, ) -from .cf_interconnects import CfInterconnectsResource, AsyncCfInterconnectsResource -from .cf_interconnects import ( - CfInterconnectsResourceWithRawResponse, - AsyncCfInterconnectsResourceWithRawResponse, - CfInterconnectsResourceWithStreamingResponse, - AsyncCfInterconnectsResourceWithStreamingResponse, -) -from .gre_tunnels import GRETunnelsResource, AsyncGRETunnelsResource -from .gre_tunnels import ( - GRETunnelsResourceWithRawResponse, - AsyncGRETunnelsResourceWithRawResponse, - GRETunnelsResourceWithStreamingResponse, - AsyncGRETunnelsResourceWithStreamingResponse, -) -from .ipsec_tunnels import IPSECTunnelsResource, AsyncIPSECTunnelsResource -from .ipsec_tunnels import ( - IPSECTunnelsResourceWithRawResponse, - AsyncIPSECTunnelsResourceWithRawResponse, - IPSECTunnelsResourceWithStreamingResponse, - AsyncIPSECTunnelsResourceWithStreamingResponse, -) -from .routes import RoutesResource, AsyncRoutesResource -from .routes import ( - RoutesResourceWithRawResponse, - AsyncRoutesResourceWithRawResponse, - RoutesResourceWithStreamingResponse, - AsyncRoutesResourceWithStreamingResponse, -) -from .sites import SitesResource, AsyncSitesResource from .sites import ( + SitesResource, + AsyncSitesResource, SitesResourceWithRawResponse, AsyncSitesResourceWithRawResponse, SitesResourceWithStreamingResponse, AsyncSitesResourceWithStreamingResponse, ) -from .connectors import ConnectorsResource, AsyncConnectorsResource +from .routes import ( + RoutesResource, + AsyncRoutesResource, + RoutesResourceWithRawResponse, + AsyncRoutesResourceWithRawResponse, + RoutesResourceWithStreamingResponse, + AsyncRoutesResourceWithStreamingResponse, +) from .connectors import ( + ConnectorsResource, + AsyncConnectorsResource, ConnectorsResourceWithRawResponse, AsyncConnectorsResourceWithRawResponse, ConnectorsResourceWithStreamingResponse, AsyncConnectorsResourceWithStreamingResponse, ) -from .magic_transit import MagicTransitResource, AsyncMagicTransitResource +from .gre_tunnels import ( + GRETunnelsResource, + AsyncGRETunnelsResource, + GRETunnelsResourceWithRawResponse, + AsyncGRETunnelsResourceWithRawResponse, + GRETunnelsResourceWithStreamingResponse, + AsyncGRETunnelsResourceWithStreamingResponse, +) +from .ipsec_tunnels import ( + IPSECTunnelsResource, + AsyncIPSECTunnelsResource, + IPSECTunnelsResourceWithRawResponse, + AsyncIPSECTunnelsResourceWithRawResponse, + IPSECTunnelsResourceWithStreamingResponse, + AsyncIPSECTunnelsResourceWithStreamingResponse, +) from .magic_transit import ( + MagicTransitResource, + AsyncMagicTransitResource, MagicTransitResourceWithRawResponse, AsyncMagicTransitResourceWithRawResponse, MagicTransitResourceWithStreamingResponse, AsyncMagicTransitResourceWithStreamingResponse, ) +from .cf_interconnects import ( + CfInterconnectsResource, + AsyncCfInterconnectsResource, + CfInterconnectsResourceWithRawResponse, + AsyncCfInterconnectsResourceWithRawResponse, + CfInterconnectsResourceWithStreamingResponse, + AsyncCfInterconnectsResourceWithStreamingResponse, +) __all__ = [ "AppsResource", diff --git a/src/cloudflare/resources/magic_transit/apps.py b/src/cloudflare/resources/magic_transit/apps.py index a9c22ee18..d2f727e82 100644 --- a/src/cloudflare/resources/magic_transit/apps.py +++ b/src/cloudflare/resources/magic_transit/apps.py @@ -2,52 +2,32 @@ from __future__ import annotations +from typing import Any, Type, Optional, cast, overload + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + required_args, + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from typing import Optional, Type - -from ...types.magic_transit.app_create_response import AppCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from ...types.magic_transit.app_update_response import AppUpdateResponse - -from ...types.magic_transit.app_list_response import AppListResponse - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from ...types.magic_transit.app_delete_response import AppDeleteResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.magic_transit import app_create_params -from ...types.magic_transit import app_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options +from ...types.magic_transit import app_create_params, app_update_params +from ...types.magic_transit.app_list_response import AppListResponse +from ...types.magic_transit.app_create_response import AppCreateResponse +from ...types.magic_transit.app_delete_response import AppDeleteResponse +from ...types.magic_transit.app_update_response import AppUpdateResponse __all__ = ["AppsResource", "AsyncAppsResource"] diff --git a/src/cloudflare/resources/magic_transit/cf_interconnects.py b/src/cloudflare/resources/magic_transit/cf_interconnects.py index 0ef8e2fc4..1b8f95585 100644 --- a/src/cloudflare/resources/magic_transit/cf_interconnects.py +++ b/src/cloudflare/resources/magic_transit/cf_interconnects.py @@ -2,47 +2,29 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.magic_transit.cf_interconnect_update_response import CfInterconnectUpdateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing import Type - -from ...types.magic_transit.cf_interconnect_list_response import CfInterconnectListResponse - -from ...types.magic_transit.cf_interconnect_get_response import CfInterconnectGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.magic_transit import cf_interconnect_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.magic_transit import cf_interconnect_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...types.magic_transit.cf_interconnect_get_response import CfInterconnectGetResponse +from ...types.magic_transit.cf_interconnect_list_response import CfInterconnectListResponse +from ...types.magic_transit.cf_interconnect_update_response import CfInterconnectUpdateResponse __all__ = ["CfInterconnectsResource", "AsyncCfInterconnectsResource"] diff --git a/src/cloudflare/resources/magic_transit/connectors.py b/src/cloudflare/resources/magic_transit/connectors.py index a4012292a..0f881783b 100644 --- a/src/cloudflare/resources/magic_transit/connectors.py +++ b/src/cloudflare/resources/magic_transit/connectors.py @@ -2,50 +2,31 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.magic_transit.connector_update_response import ConnectorUpdateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from typing import Type - -from ...types.magic_transit.connector_list_response import ConnectorListResponse - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from ...types.magic_transit.connector_edit_response import ConnectorEditResponse - -from ...types.magic_transit.connector_get_response import ConnectorGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.magic_transit import connector_update_params -from ...types.magic_transit import connector_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options +from ...types.magic_transit import connector_edit_params, connector_update_params +from ...types.magic_transit.connector_get_response import ConnectorGetResponse +from ...types.magic_transit.connector_edit_response import ConnectorEditResponse +from ...types.magic_transit.connector_list_response import ConnectorListResponse +from ...types.magic_transit.connector_update_response import ConnectorUpdateResponse __all__ = ["ConnectorsResource", "AsyncConnectorsResource"] diff --git a/src/cloudflare/resources/magic_transit/gre_tunnels.py b/src/cloudflare/resources/magic_transit/gre_tunnels.py index 83aa010cd..32c927847 100644 --- a/src/cloudflare/resources/magic_transit/gre_tunnels.py +++ b/src/cloudflare/resources/magic_transit/gre_tunnels.py @@ -2,57 +2,32 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.magic_transit.gre_tunnel_create_response import GRETunnelCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing import Type - -from ...types.magic_transit.gre_tunnel_update_response import GRETunnelUpdateResponse - -from ...types.magic_transit.health_check_param import HealthCheckParam - -from ...types.magic_transit.gre_tunnel_list_response import GRETunnelListResponse - -from ...types.magic_transit.gre_tunnel_delete_response import GRETunnelDeleteResponse - -from ...types.magic_transit.gre_tunnel_get_response import GRETunnelGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.magic_transit import gre_tunnel_create_params -from ...types.magic_transit import gre_tunnel_update_params -from ...types.magic_transit import HealthCheck -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.magic_transit import gre_tunnel_create_params, gre_tunnel_update_params +from ...types.magic_transit.health_check_param import HealthCheckParam +from ...types.magic_transit.gre_tunnel_get_response import GRETunnelGetResponse +from ...types.magic_transit.gre_tunnel_list_response import GRETunnelListResponse +from ...types.magic_transit.gre_tunnel_create_response import GRETunnelCreateResponse +from ...types.magic_transit.gre_tunnel_delete_response import GRETunnelDeleteResponse +from ...types.magic_transit.gre_tunnel_update_response import GRETunnelUpdateResponse __all__ = ["GRETunnelsResource", "AsyncGRETunnelsResource"] diff --git a/src/cloudflare/resources/magic_transit/ipsec_tunnels.py b/src/cloudflare/resources/magic_transit/ipsec_tunnels.py index bcc6434e4..f7b347a94 100644 --- a/src/cloudflare/resources/magic_transit/ipsec_tunnels.py +++ b/src/cloudflare/resources/magic_transit/ipsec_tunnels.py @@ -2,63 +2,37 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.magic_transit.ipsec_tunnel_create_response import IPSECTunnelCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing import Type - -from ...types.magic_transit.health_check_param import HealthCheckParam - -from ...types.magic_transit.ipsec_tunnel_update_response import IPSECTunnelUpdateResponse - -from ...types.magic_transit.ipsec_tunnel_list_response import IPSECTunnelListResponse - -from ...types.magic_transit.ipsec_tunnel_delete_response import IPSECTunnelDeleteResponse - -from ...types.magic_transit.ipsec_tunnel_get_response import IPSECTunnelGetResponse - -from ...types.magic_transit.ipsec_tunnel_psk_generate_response import IPSECTunnelPSKGenerateResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.magic_transit import ipsec_tunnel_create_params -from ...types.magic_transit import ipsec_tunnel_update_params -from ...types.magic_transit import ipsec_tunnel_psk_generate_params -from ...types.magic_transit import HealthCheck -from ...types.magic_transit import HealthCheck -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.magic_transit import ( + ipsec_tunnel_create_params, + ipsec_tunnel_update_params, + ipsec_tunnel_psk_generate_params, +) +from ...types.magic_transit.health_check_param import HealthCheckParam +from ...types.magic_transit.ipsec_tunnel_get_response import IPSECTunnelGetResponse +from ...types.magic_transit.ipsec_tunnel_list_response import IPSECTunnelListResponse +from ...types.magic_transit.ipsec_tunnel_create_response import IPSECTunnelCreateResponse +from ...types.magic_transit.ipsec_tunnel_delete_response import IPSECTunnelDeleteResponse +from ...types.magic_transit.ipsec_tunnel_update_response import IPSECTunnelUpdateResponse +from ...types.magic_transit.ipsec_tunnel_psk_generate_response import IPSECTunnelPSKGenerateResponse __all__ = ["IPSECTunnelsResource", "AsyncIPSECTunnelsResource"] diff --git a/src/cloudflare/resources/magic_transit/magic_transit.py b/src/cloudflare/resources/magic_transit/magic_transit.py index 541813678..7eeb84551 100644 --- a/src/cloudflare/resources/magic_transit/magic_transit.py +++ b/src/cloudflare/resources/magic_transit/magic_transit.py @@ -2,29 +2,6 @@ from __future__ import annotations -from .apps import AppsResource, AsyncAppsResource - -from ..._compat import cached_property - -from .cf_interconnects import CfInterconnectsResource, AsyncCfInterconnectsResource - -from .gre_tunnels import GRETunnelsResource, AsyncGRETunnelsResource - -from .ipsec_tunnels import IPSECTunnelsResource, AsyncIPSECTunnelsResource - -from .routes import RoutesResource, AsyncRoutesResource - -from .sites.sites import SitesResource, AsyncSitesResource - -from .connectors import ConnectorsResource, AsyncConnectorsResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .apps import ( AppsResource, AsyncAppsResource, @@ -33,38 +10,6 @@ from .apps import ( AppsResourceWithStreamingResponse, AsyncAppsResourceWithStreamingResponse, ) -from .cf_interconnects import ( - CfInterconnectsResource, - AsyncCfInterconnectsResource, - CfInterconnectsResourceWithRawResponse, - AsyncCfInterconnectsResourceWithRawResponse, - CfInterconnectsResourceWithStreamingResponse, - AsyncCfInterconnectsResourceWithStreamingResponse, -) -from .gre_tunnels import ( - GRETunnelsResource, - AsyncGRETunnelsResource, - GRETunnelsResourceWithRawResponse, - AsyncGRETunnelsResourceWithRawResponse, - GRETunnelsResourceWithStreamingResponse, - AsyncGRETunnelsResourceWithStreamingResponse, -) -from .ipsec_tunnels import ( - IPSECTunnelsResource, - AsyncIPSECTunnelsResource, - IPSECTunnelsResourceWithRawResponse, - AsyncIPSECTunnelsResourceWithRawResponse, - IPSECTunnelsResourceWithStreamingResponse, - AsyncIPSECTunnelsResourceWithStreamingResponse, -) -from .routes import ( - RoutesResource, - AsyncRoutesResource, - RoutesResourceWithRawResponse, - AsyncRoutesResourceWithRawResponse, - RoutesResourceWithStreamingResponse, - AsyncRoutesResourceWithStreamingResponse, -) from .sites import ( SitesResource, AsyncSitesResource, @@ -73,6 +18,15 @@ from .sites import ( SitesResourceWithStreamingResponse, AsyncSitesResourceWithStreamingResponse, ) +from .routes import ( + RoutesResource, + AsyncRoutesResource, + RoutesResourceWithRawResponse, + AsyncRoutesResourceWithRawResponse, + RoutesResourceWithStreamingResponse, + AsyncRoutesResourceWithStreamingResponse, +) +from ..._compat import cached_property from .connectors import ( ConnectorsResource, AsyncConnectorsResource, @@ -81,6 +35,32 @@ from .connectors import ( ConnectorsResourceWithStreamingResponse, AsyncConnectorsResourceWithStreamingResponse, ) +from ..._resource import SyncAPIResource, AsyncAPIResource +from .gre_tunnels import ( + GRETunnelsResource, + AsyncGRETunnelsResource, + GRETunnelsResourceWithRawResponse, + AsyncGRETunnelsResourceWithRawResponse, + GRETunnelsResourceWithStreamingResponse, + AsyncGRETunnelsResourceWithStreamingResponse, +) +from .sites.sites import SitesResource, AsyncSitesResource +from .ipsec_tunnels import ( + IPSECTunnelsResource, + AsyncIPSECTunnelsResource, + IPSECTunnelsResourceWithRawResponse, + AsyncIPSECTunnelsResourceWithRawResponse, + IPSECTunnelsResourceWithStreamingResponse, + AsyncIPSECTunnelsResourceWithStreamingResponse, +) +from .cf_interconnects import ( + CfInterconnectsResource, + AsyncCfInterconnectsResource, + CfInterconnectsResourceWithRawResponse, + AsyncCfInterconnectsResourceWithRawResponse, + CfInterconnectsResourceWithStreamingResponse, + AsyncCfInterconnectsResourceWithStreamingResponse, +) __all__ = ["MagicTransitResource", "AsyncMagicTransitResource"] diff --git a/src/cloudflare/resources/magic_transit/routes.py b/src/cloudflare/resources/magic_transit/routes.py index dbc41e548..7d122a07e 100644 --- a/src/cloudflare/resources/magic_transit/routes.py +++ b/src/cloudflare/resources/magic_transit/routes.py @@ -2,61 +2,33 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.magic_transit.route_create_response import RouteCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing import Type - -from ...types.magic_transit.route_update_response import RouteUpdateResponse - -from ...types.magic_transit.scope_param import ScopeParam - -from ...types.magic_transit.route_list_response import RouteListResponse - -from ...types.magic_transit.route_delete_response import RouteDeleteResponse - -from ...types.magic_transit.route_empty_response import RouteEmptyResponse - -from ...types.magic_transit.route_get_response import RouteGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.magic_transit import route_create_params -from ...types.magic_transit import route_update_params -from ...types.magic_transit import Scope -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.magic_transit import route_create_params, route_update_params +from ...types.magic_transit.scope_param import ScopeParam +from ...types.magic_transit.route_get_response import RouteGetResponse +from ...types.magic_transit.route_list_response import RouteListResponse +from ...types.magic_transit.route_empty_response import RouteEmptyResponse +from ...types.magic_transit.route_create_response import RouteCreateResponse +from ...types.magic_transit.route_delete_response import RouteDeleteResponse +from ...types.magic_transit.route_update_response import RouteUpdateResponse __all__ = ["RoutesResource", "AsyncRoutesResource"] diff --git a/src/cloudflare/resources/magic_transit/sites/__init__.py b/src/cloudflare/resources/magic_transit/sites/__init__.py index 2300c19e0..8a2a07f48 100644 --- a/src/cloudflare/resources/magic_transit/sites/__init__.py +++ b/src/cloudflare/resources/magic_transit/sites/__init__.py @@ -1,28 +1,32 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .acls import ACLsResource, AsyncACLsResource from .acls import ( + ACLsResource, + AsyncACLsResource, ACLsResourceWithRawResponse, AsyncACLsResourceWithRawResponse, ACLsResourceWithStreamingResponse, AsyncACLsResourceWithStreamingResponse, ) -from .lans import LANsResource, AsyncLANsResource from .lans import ( + LANsResource, + AsyncLANsResource, LANsResourceWithRawResponse, AsyncLANsResourceWithRawResponse, LANsResourceWithStreamingResponse, AsyncLANsResourceWithStreamingResponse, ) -from .wans import WANsResource, AsyncWANsResource from .wans import ( + WANsResource, + AsyncWANsResource, WANsResourceWithRawResponse, AsyncWANsResourceWithRawResponse, WANsResourceWithStreamingResponse, AsyncWANsResourceWithStreamingResponse, ) -from .sites import SitesResource, AsyncSitesResource from .sites import ( + SitesResource, + AsyncSitesResource, SitesResourceWithRawResponse, AsyncSitesResourceWithRawResponse, SitesResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/magic_transit/sites/acls.py b/src/cloudflare/resources/magic_transit/sites/acls.py index 000549026..b7957dd51 100644 --- a/src/cloudflare/resources/magic_transit/sites/acls.py +++ b/src/cloudflare/resources/magic_transit/sites/acls.py @@ -2,59 +2,30 @@ from __future__ import annotations +from typing import List, Type, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.magic_transit.sites.acl import ACL - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from typing import Type, List - -from ....types.magic_transit.sites.acl_configuration_param import ACLConfigurationParam - -from ....types.magic_transit.sites.allowed_protocol import AllowedProtocol - -from ....pagination import SyncSinglePage, AsyncSinglePage - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.magic_transit.sites import acl_create_params -from ....types.magic_transit.sites import acl_update_params -from ....types.magic_transit.sites import acl_edit_params -from ....types.magic_transit.sites import ACLConfiguration -from ....types.magic_transit.sites import ACLConfiguration -from ....types.magic_transit.sites import ACLConfiguration -from ....types.magic_transit.sites import ACLConfiguration -from ....types.magic_transit.sites import ACLConfiguration -from ....types.magic_transit.sites import ACLConfiguration -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.magic_transit.sites import acl_edit_params, acl_create_params, acl_update_params +from ....types.magic_transit.sites.acl import ACL +from ....types.magic_transit.sites.allowed_protocol import AllowedProtocol +from ....types.magic_transit.sites.acl_configuration_param import ACLConfigurationParam __all__ = ["ACLsResource", "AsyncACLsResource"] diff --git a/src/cloudflare/resources/magic_transit/sites/lans.py b/src/cloudflare/resources/magic_transit/sites/lans.py index 719ca5a33..8232dbc64 100644 --- a/src/cloudflare/resources/magic_transit/sites/lans.py +++ b/src/cloudflare/resources/magic_transit/sites/lans.py @@ -2,63 +2,36 @@ from __future__ import annotations +from typing import Type, Iterable, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.magic_transit.sites.lan_create_response import LANCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from typing import Type, Iterable - -from ....types.magic_transit.sites.nat_param import NatParam - -from ....types.magic_transit.sites.routed_subnet_param import RoutedSubnetParam - -from ....types.magic_transit.sites.lan_static_addressing_param import LANStaticAddressingParam - -from ....types.magic_transit.sites.lan import LAN - -from ....pagination import SyncSinglePage, AsyncSinglePage - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.magic_transit.sites import lan_create_params -from ....types.magic_transit.sites import lan_update_params -from ....types.magic_transit.sites import lan_edit_params -from ....types.magic_transit.sites import Nat -from ....types.magic_transit.sites import LANStaticAddressing -from ....types.magic_transit.sites import Nat -from ....types.magic_transit.sites import LANStaticAddressing -from ....types.magic_transit.sites import Nat -from ....types.magic_transit.sites import LANStaticAddressing -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.magic_transit.sites import ( + lan_edit_params, + lan_create_params, + lan_update_params, +) +from ....types.magic_transit.sites.lan import LAN +from ....types.magic_transit.sites.nat_param import NatParam +from ....types.magic_transit.sites.lan_create_response import LANCreateResponse +from ....types.magic_transit.sites.routed_subnet_param import RoutedSubnetParam +from ....types.magic_transit.sites.lan_static_addressing_param import LANStaticAddressingParam __all__ = ["LANsResource", "AsyncLANsResource"] diff --git a/src/cloudflare/resources/magic_transit/sites/sites.py b/src/cloudflare/resources/magic_transit/sites/sites.py index 09c542548..ac9dec96a 100644 --- a/src/cloudflare/resources/magic_transit/sites/sites.py +++ b/src/cloudflare/resources/magic_transit/sites/sites.py @@ -2,51 +2,10 @@ from __future__ import annotations +from typing import Type, cast + import httpx -from .acls import ACLsResource, AsyncACLsResource - -from ...._compat import cached_property - -from .lans import LANsResource, AsyncLANsResource - -from .wans import WANsResource, AsyncWANsResource - -from ....types.magic_transit.site import Site - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from typing import Type - -from ....types.magic_transit.site_location_param import SiteLocationParam - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.magic_transit import site_create_params -from ....types.magic_transit import site_update_params -from ....types.magic_transit import site_list_params -from ....types.magic_transit import site_edit_params -from ....types.magic_transit import SiteLocation -from ....types.magic_transit import SiteLocation -from ....types.magic_transit import SiteLocation from .acls import ( ACLsResource, AsyncACLsResource, @@ -71,16 +30,30 @@ from .wans import ( WANsResourceWithStreamingResponse, AsyncWANsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.magic_transit import ( + site_edit_params, + site_list_params, + site_create_params, + site_update_params, +) +from ....types.magic_transit.site import Site +from ....types.magic_transit.site_location_param import SiteLocationParam __all__ = ["SitesResource", "AsyncSitesResource"] diff --git a/src/cloudflare/resources/magic_transit/sites/wans.py b/src/cloudflare/resources/magic_transit/sites/wans.py index 450b90c76..eb7364a3e 100644 --- a/src/cloudflare/resources/magic_transit/sites/wans.py +++ b/src/cloudflare/resources/magic_transit/sites/wans.py @@ -2,56 +2,30 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.magic_transit.sites.wan_create_response import WANCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from typing import Type - -from ....types.magic_transit.sites.wan_static_addressing_param import WANStaticAddressingParam - -from ....types.magic_transit.sites.wan import WAN - -from ....pagination import SyncSinglePage, AsyncSinglePage - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.magic_transit.sites import wan_create_params -from ....types.magic_transit.sites import wan_update_params -from ....types.magic_transit.sites import wan_edit_params -from ....types.magic_transit.sites import WANStaticAddressing -from ....types.magic_transit.sites import WANStaticAddressing -from ....types.magic_transit.sites import WANStaticAddressing -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.magic_transit.sites import wan_edit_params, wan_create_params, wan_update_params +from ....types.magic_transit.sites.wan import WAN +from ....types.magic_transit.sites.wan_create_response import WANCreateResponse +from ....types.magic_transit.sites.wan_static_addressing_param import WANStaticAddressingParam __all__ = ["WANsResource", "AsyncWANsResource"] diff --git a/src/cloudflare/resources/managed_headers.py b/src/cloudflare/resources/managed_headers.py index af8af545c..6f625e31c 100644 --- a/src/cloudflare/resources/managed_headers.py +++ b/src/cloudflare/resources/managed_headers.py @@ -2,37 +2,28 @@ from __future__ import annotations -import httpx - -from .._compat import cached_property - -from ..types.managed_headers.managed_header_list_response import ManagedHeaderListResponse - -from .._base_client import make_request_options - -from ..types.managed_headers.managed_header_edit_response import ManagedHeaderEditResponse - -from .._utils import maybe_transform, async_maybe_transform - from typing import Iterable -from ..types.managed_headers.request_model_param import RequestModelParam +import httpx +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .._utils import ( + maybe_transform, + async_maybe_transform, +) +from .._compat import cached_property +from .._resource import SyncAPIResource, AsyncAPIResource from .._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from .._resource import SyncAPIResource, AsyncAPIResource -from ..types import shared_params +from .._base_client import make_request_options from ..types.managed_headers import managed_header_edit_params +from ..types.managed_headers.request_model_param import RequestModelParam +from ..types.managed_headers.managed_header_edit_response import ManagedHeaderEditResponse +from ..types.managed_headers.managed_header_list_response import ManagedHeaderListResponse __all__ = ["ManagedHeadersResource", "AsyncManagedHeadersResource"] diff --git a/src/cloudflare/resources/memberships.py b/src/cloudflare/resources/memberships.py index cc3599646..eee160809 100644 --- a/src/cloudflare/resources/memberships.py +++ b/src/cloudflare/resources/memberships.py @@ -2,54 +2,32 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .._utils import ( + maybe_transform, + async_maybe_transform, +) from .._compat import cached_property - -from ..types.memberships.membership_update_response import MembershipUpdateResponse - -from .._wrappers import ResultWrapper - -from .._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from .._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from ..types.memberships.membership import Membership - -from ..pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ..types.memberships.membership_delete_response import MembershipDeleteResponse - -from ..types.memberships.membership_get_response import MembershipGetResponse - +from .._resource import SyncAPIResource, AsyncAPIResource from .._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ..types.memberships import membership_list_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from .._resource import SyncAPIResource, AsyncAPIResource -from ..types import shared_params -from ..types.memberships import membership_update_params -from ..types.memberships import membership_list_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .._wrappers import ResultWrapper +from ..pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from .._base_client import AsyncPaginator, make_request_options +from ..types.memberships import membership_list_params, membership_update_params +from ..types.memberships.membership import Membership +from ..types.memberships.membership_get_response import MembershipGetResponse +from ..types.memberships.membership_delete_response import MembershipDeleteResponse +from ..types.memberships.membership_update_response import MembershipUpdateResponse __all__ = ["MembershipsResource", "AsyncMembershipsResource"] diff --git a/src/cloudflare/resources/mtls_certificates/__init__.py b/src/cloudflare/resources/mtls_certificates/__init__.py index 99cb6df24..f149d9bd2 100644 --- a/src/cloudflare/resources/mtls_certificates/__init__.py +++ b/src/cloudflare/resources/mtls_certificates/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .associations import AssociationsResource, AsyncAssociationsResource from .associations import ( + AssociationsResource, + AsyncAssociationsResource, AssociationsResourceWithRawResponse, AsyncAssociationsResourceWithRawResponse, AssociationsResourceWithStreamingResponse, AsyncAssociationsResourceWithStreamingResponse, ) -from .mtls_certificates import MTLSCertificatesResource, AsyncMTLSCertificatesResource from .mtls_certificates import ( + MTLSCertificatesResource, + AsyncMTLSCertificatesResource, MTLSCertificatesResourceWithRawResponse, AsyncMTLSCertificatesResourceWithRawResponse, MTLSCertificatesResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/mtls_certificates/associations.py b/src/cloudflare/resources/mtls_certificates/associations.py index a5a07f080..89da4efe3 100644 --- a/src/cloudflare/resources/mtls_certificates/associations.py +++ b/src/cloudflare/resources/mtls_certificates/associations.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._compat import cached_property - -from ...types.mtls_certificates.association_get_response import AssociationGetResponse - -from ..._wrappers import ResultWrapper - -from typing import Optional, Type - -from ..._base_client import make_request_options - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.mtls_certificates.association_get_response import AssociationGetResponse __all__ = ["AssociationsResource", "AsyncAssociationsResource"] diff --git a/src/cloudflare/resources/mtls_certificates/mtls_certificates.py b/src/cloudflare/resources/mtls_certificates/mtls_certificates.py index 7e9535876..c9a0deacd 100644 --- a/src/cloudflare/resources/mtls_certificates/mtls_certificates.py +++ b/src/cloudflare/resources/mtls_certificates/mtls_certificates.py @@ -2,41 +2,25 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .associations import AssociationsResource, AsyncAssociationsResource - +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.mtls_certificates.mtls_certificate_create_response import MTLSCertificateCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options, AsyncPaginator - -from ...types.mtls_certificates.mtls_certificate import MTLSCertificate - -from ...pagination import SyncSinglePage, AsyncSinglePage - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.mtls_certificates import mtls_certificate_create_params +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage from .associations import ( AssociationsResource, AsyncAssociationsResource, @@ -45,12 +29,10 @@ from .associations import ( AssociationsResourceWithStreamingResponse, AsyncAssociationsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._base_client import AsyncPaginator, make_request_options +from ...types.mtls_certificates import mtls_certificate_create_params +from ...types.mtls_certificates.mtls_certificate import MTLSCertificate +from ...types.mtls_certificates.mtls_certificate_create_response import MTLSCertificateCreateResponse __all__ = ["MTLSCertificatesResource", "AsyncMTLSCertificatesResource"] diff --git a/src/cloudflare/resources/origin_ca_certificates.py b/src/cloudflare/resources/origin_ca_certificates.py index 873fe79ad..9b6d87d13 100644 --- a/src/cloudflare/resources/origin_ca_certificates.py +++ b/src/cloudflare/resources/origin_ca_certificates.py @@ -2,52 +2,32 @@ from __future__ import annotations +from typing import List, Type, Optional, cast + import httpx +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .._utils import ( + maybe_transform, + async_maybe_transform, +) from .._compat import cached_property - -from ..types.origin_ca_certificates.origin_ca_certificate import OriginCACertificate - -from .._wrappers import ResultWrapper - -from .._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, List - -from .._base_client import make_request_options, AsyncPaginator - -from ..types.shared.certificate_request_type import CertificateRequestType - -from ..types.ssl.request_validity import RequestValidity - -from ..pagination import SyncSinglePage, AsyncSinglePage - -from ..types.origin_ca_certificates.origin_ca_certificate_delete_response import OriginCACertificateDeleteResponse - +from .._resource import SyncAPIResource, AsyncAPIResource from .._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from .._resource import SyncAPIResource, AsyncAPIResource -from ..types import shared_params -from ..types.origin_ca_certificates import origin_ca_certificate_create_params -from ..types.origin_ca_certificates import origin_ca_certificate_list_params -from ..types import shared +from .._wrappers import ResultWrapper from ..types.ssl import RequestValidity -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..pagination import SyncSinglePage, AsyncSinglePage +from .._base_client import AsyncPaginator, make_request_options +from ..types.ssl.request_validity import RequestValidity +from ..types.origin_ca_certificates import origin_ca_certificate_list_params, origin_ca_certificate_create_params +from ..types.shared.certificate_request_type import CertificateRequestType +from ..types.origin_ca_certificates.origin_ca_certificate import OriginCACertificate +from ..types.origin_ca_certificates.origin_ca_certificate_delete_response import OriginCACertificateDeleteResponse __all__ = ["OriginCACertificatesResource", "AsyncOriginCACertificatesResource"] diff --git a/src/cloudflare/resources/origin_post_quantum_encryption.py b/src/cloudflare/resources/origin_post_quantum_encryption.py index bba4239d8..64083daa1 100644 --- a/src/cloudflare/resources/origin_post_quantum_encryption.py +++ b/src/cloudflare/resources/origin_post_quantum_encryption.py @@ -2,39 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .._utils import ( + maybe_transform, + async_maybe_transform, +) from .._compat import cached_property - -from .._wrappers import ResultWrapper - -from .._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from .._base_client import make_request_options - -from typing_extensions import Literal - +from .._resource import SyncAPIResource, AsyncAPIResource from .._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from .._resource import SyncAPIResource, AsyncAPIResource -from ..types import shared_params +from .._wrappers import ResultWrapper +from .._base_client import make_request_options from ..types.origin_post_quantum_encryption import origin_post_quantum_encryption_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast __all__ = ["OriginPostQuantumEncryptionResource", "AsyncOriginPostQuantumEncryptionResource"] diff --git a/src/cloudflare/resources/origin_tls_client_auth/__init__.py b/src/cloudflare/resources/origin_tls_client_auth/__init__.py index 91efba15e..6c1231497 100644 --- a/src/cloudflare/resources/origin_tls_client_auth/__init__.py +++ b/src/cloudflare/resources/origin_tls_client_auth/__init__.py @@ -1,21 +1,24 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .hostnames import HostnamesResource, AsyncHostnamesResource -from .hostnames import ( - HostnamesResourceWithRawResponse, - AsyncHostnamesResourceWithRawResponse, - HostnamesResourceWithStreamingResponse, - AsyncHostnamesResourceWithStreamingResponse, -) -from .settings import SettingsResource, AsyncSettingsResource from .settings import ( + SettingsResource, + AsyncSettingsResource, SettingsResourceWithRawResponse, AsyncSettingsResourceWithRawResponse, SettingsResourceWithStreamingResponse, AsyncSettingsResourceWithStreamingResponse, ) -from .origin_tls_client_auth import OriginTLSClientAuthResource, AsyncOriginTLSClientAuthResource +from .hostnames import ( + HostnamesResource, + AsyncHostnamesResource, + HostnamesResourceWithRawResponse, + AsyncHostnamesResourceWithRawResponse, + HostnamesResourceWithStreamingResponse, + AsyncHostnamesResourceWithStreamingResponse, +) from .origin_tls_client_auth import ( + OriginTLSClientAuthResource, + AsyncOriginTLSClientAuthResource, OriginTLSClientAuthResourceWithRawResponse, AsyncOriginTLSClientAuthResourceWithRawResponse, OriginTLSClientAuthResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/origin_tls_client_auth/hostnames/__init__.py b/src/cloudflare/resources/origin_tls_client_auth/hostnames/__init__.py index d54d34af1..0e6260ace 100644 --- a/src/cloudflare/resources/origin_tls_client_auth/hostnames/__init__.py +++ b/src/cloudflare/resources/origin_tls_client_auth/hostnames/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .certificates import CertificatesResource, AsyncCertificatesResource -from .certificates import ( - CertificatesResourceWithRawResponse, - AsyncCertificatesResourceWithRawResponse, - CertificatesResourceWithStreamingResponse, - AsyncCertificatesResourceWithStreamingResponse, -) -from .hostnames import HostnamesResource, AsyncHostnamesResource from .hostnames import ( + HostnamesResource, + AsyncHostnamesResource, HostnamesResourceWithRawResponse, AsyncHostnamesResourceWithRawResponse, HostnamesResourceWithStreamingResponse, AsyncHostnamesResourceWithStreamingResponse, ) +from .certificates import ( + CertificatesResource, + AsyncCertificatesResource, + CertificatesResourceWithRawResponse, + AsyncCertificatesResourceWithRawResponse, + CertificatesResourceWithStreamingResponse, + AsyncCertificatesResourceWithStreamingResponse, +) __all__ = [ "CertificatesResource", diff --git a/src/cloudflare/resources/origin_tls_client_auth/hostnames/certificates.py b/src/cloudflare/resources/origin_tls_client_auth/hostnames/certificates.py index 092c71a63..cbcf295a2 100644 --- a/src/cloudflare/resources/origin_tls_client_auth/hostnames/certificates.py +++ b/src/cloudflare/resources/origin_tls_client_auth/hostnames/certificates.py @@ -2,49 +2,31 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.origin_tls_client_auth.hostnames.certificate_create_response import CertificateCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.origin_tls_client_auth.authenticated_origin_pull import AuthenticatedOriginPull - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ....types.origin_tls_client_auth.hostnames.certificate_delete_response import CertificateDeleteResponse - -from ....types.origin_tls_client_auth.hostnames.certificate_get_response import CertificateGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options from ....types.origin_tls_client_auth.hostnames import certificate_create_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....types.origin_tls_client_auth.authenticated_origin_pull import AuthenticatedOriginPull +from ....types.origin_tls_client_auth.hostnames.certificate_get_response import CertificateGetResponse +from ....types.origin_tls_client_auth.hostnames.certificate_create_response import CertificateCreateResponse +from ....types.origin_tls_client_auth.hostnames.certificate_delete_response import CertificateDeleteResponse __all__ = ["CertificatesResource", "AsyncCertificatesResource"] diff --git a/src/cloudflare/resources/origin_tls_client_auth/hostnames/hostnames.py b/src/cloudflare/resources/origin_tls_client_auth/hostnames/hostnames.py index f8d2e1567..a481ade84 100644 --- a/src/cloudflare/resources/origin_tls_client_auth/hostnames/hostnames.py +++ b/src/cloudflare/resources/origin_tls_client_auth/hostnames/hostnames.py @@ -2,41 +2,24 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast + import httpx -from .certificates import CertificatesResource, AsyncCertificatesResource - +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.origin_tls_client_auth.hostname_update_response import HostnameUpdateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Iterable - -from ...._base_client import make_request_options - -from ....types.origin_tls_client_auth.authenticated_origin_pull import AuthenticatedOriginPull - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ....types.origin_tls_client_auth import hostname_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.origin_tls_client_auth import hostname_update_params +from ...._wrappers import ResultWrapper from .certificates import ( CertificatesResource, AsyncCertificatesResource, @@ -45,10 +28,10 @@ from .certificates import ( CertificatesResourceWithStreamingResponse, AsyncCertificatesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._base_client import make_request_options +from ....types.origin_tls_client_auth import hostname_update_params +from ....types.origin_tls_client_auth.hostname_update_response import HostnameUpdateResponse +from ....types.origin_tls_client_auth.authenticated_origin_pull import AuthenticatedOriginPull __all__ = ["HostnamesResource", "AsyncHostnamesResource"] 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 c5dcd8b8d..414cf86c8 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 @@ -2,48 +2,14 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .hostnames.hostnames import HostnamesResource, AsyncHostnamesResource - -from ..._compat import cached_property - -from .settings import SettingsResource, AsyncSettingsResource - -from ...types.origin_tls_client_auth.zone_authenticated_origin_pull import ZoneAuthenticatedOriginPull - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options, AsyncPaginator - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from ..._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.origin_tls_client_auth import origin_tls_client_auth_create_params -from .hostnames import ( - HostnamesResource, - AsyncHostnamesResource, - HostnamesResourceWithRawResponse, - AsyncHostnamesResourceWithRawResponse, - HostnamesResourceWithStreamingResponse, - AsyncHostnamesResourceWithStreamingResponse, +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, ) from .settings import ( SettingsResource, @@ -53,12 +19,28 @@ from .settings import ( SettingsResourceWithStreamingResponse, AsyncSettingsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._compat import cached_property +from .hostnames import ( + HostnamesResource, + AsyncHostnamesResource, + HostnamesResourceWithRawResponse, + AsyncHostnamesResourceWithRawResponse, + HostnamesResourceWithStreamingResponse, + AsyncHostnamesResourceWithStreamingResponse, +) +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options +from .hostnames.hostnames import HostnamesResource, AsyncHostnamesResource +from ...types.origin_tls_client_auth import origin_tls_client_auth_create_params +from ...types.origin_tls_client_auth.zone_authenticated_origin_pull import ZoneAuthenticatedOriginPull __all__ = ["OriginTLSClientAuthResource", "AsyncOriginTLSClientAuthResource"] diff --git a/src/cloudflare/resources/origin_tls_client_auth/settings.py b/src/cloudflare/resources/origin_tls_client_auth/settings.py index 5c45c80bb..1342bbbf0 100644 --- a/src/cloudflare/resources/origin_tls_client_auth/settings.py +++ b/src/cloudflare/resources/origin_tls_client_auth/settings.py @@ -2,41 +2,28 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.origin_tls_client_auth.setting_update_response import SettingUpdateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from ...types.origin_tls_client_auth.setting_get_response import SettingGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.origin_tls_client_auth import setting_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...types.origin_tls_client_auth.setting_get_response import SettingGetResponse +from ...types.origin_tls_client_auth.setting_update_response import SettingUpdateResponse __all__ = ["SettingsResource", "AsyncSettingsResource"] diff --git a/src/cloudflare/resources/page_shield/__init__.py b/src/cloudflare/resources/page_shield/__init__.py index ed6d7e572..31bb6daa0 100644 --- a/src/cloudflare/resources/page_shield/__init__.py +++ b/src/cloudflare/resources/page_shield/__init__.py @@ -1,35 +1,40 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .policies import PoliciesResource, AsyncPoliciesResource -from .policies import ( - PoliciesResourceWithRawResponse, - AsyncPoliciesResourceWithRawResponse, - PoliciesResourceWithStreamingResponse, - AsyncPoliciesResourceWithStreamingResponse, -) -from .connections import ConnectionsResource, AsyncConnectionsResource -from .connections import ( - ConnectionsResourceWithRawResponse, - AsyncConnectionsResourceWithRawResponse, - ConnectionsResourceWithStreamingResponse, - AsyncConnectionsResourceWithStreamingResponse, -) -from .scripts import ScriptsResource, AsyncScriptsResource -from .scripts import ( - ScriptsResourceWithRawResponse, - AsyncScriptsResourceWithRawResponse, - ScriptsResourceWithStreamingResponse, - AsyncScriptsResourceWithStreamingResponse, -) -from .cookies import CookiesResource, AsyncCookiesResource from .cookies import ( + CookiesResource, + AsyncCookiesResource, CookiesResourceWithRawResponse, AsyncCookiesResourceWithRawResponse, CookiesResourceWithStreamingResponse, AsyncCookiesResourceWithStreamingResponse, ) -from .page_shield import PageShieldResource, AsyncPageShieldResource +from .scripts import ( + ScriptsResource, + AsyncScriptsResource, + ScriptsResourceWithRawResponse, + AsyncScriptsResourceWithRawResponse, + ScriptsResourceWithStreamingResponse, + AsyncScriptsResourceWithStreamingResponse, +) +from .policies import ( + PoliciesResource, + AsyncPoliciesResource, + PoliciesResourceWithRawResponse, + AsyncPoliciesResourceWithRawResponse, + PoliciesResourceWithStreamingResponse, + AsyncPoliciesResourceWithStreamingResponse, +) +from .connections import ( + ConnectionsResource, + AsyncConnectionsResource, + ConnectionsResourceWithRawResponse, + AsyncConnectionsResourceWithRawResponse, + ConnectionsResourceWithStreamingResponse, + AsyncConnectionsResourceWithStreamingResponse, +) from .page_shield import ( + PageShieldResource, + AsyncPageShieldResource, PageShieldResourceWithRawResponse, AsyncPageShieldResourceWithRawResponse, PageShieldResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/page_shield/connections.py b/src/cloudflare/resources/page_shield/connections.py index c46679671..ac42a24e1 100644 --- a/src/cloudflare/resources/page_shield/connections.py +++ b/src/cloudflare/resources/page_shield/connections.py @@ -2,41 +2,26 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx -from ..._compat import cached_property - -from ...types.page_shield.connection import Connection - -from ...pagination import SyncSinglePage, AsyncSinglePage - +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._utils import maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from ..._wrappers import ResultWrapper - -from typing import Optional, Type - +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options from ...types.page_shield import connection_list_params -from typing import cast -from typing import cast +from ...types.page_shield.connection import Connection __all__ = ["ConnectionsResource", "AsyncConnectionsResource"] diff --git a/src/cloudflare/resources/page_shield/cookies.py b/src/cloudflare/resources/page_shield/cookies.py index 03058292b..cdbc8dc6a 100644 --- a/src/cloudflare/resources/page_shield/cookies.py +++ b/src/cloudflare/resources/page_shield/cookies.py @@ -2,43 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx -from ..._compat import cached_property - -from ...types.page_shield.cookie_list_response import CookieListResponse - -from ...pagination import SyncSinglePage, AsyncSinglePage - +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._utils import maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from ...types.page_shield.cookie_get_response import CookieGetResponse - -from ..._wrappers import ResultWrapper - -from typing import Optional, Type - +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options from ...types.page_shield import cookie_list_params -from typing import cast -from typing import cast +from ...types.page_shield.cookie_get_response import CookieGetResponse +from ...types.page_shield.cookie_list_response import CookieListResponse __all__ = ["CookiesResource", "AsyncCookiesResource"] diff --git a/src/cloudflare/resources/page_shield/page_shield.py b/src/cloudflare/resources/page_shield/page_shield.py index 5bcb78aef..11f6a9493 100644 --- a/src/cloudflare/resources/page_shield/page_shield.py +++ b/src/cloudflare/resources/page_shield/page_shield.py @@ -2,60 +2,17 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .policies import PoliciesResource, AsyncPoliciesResource - -from ..._compat import cached_property - -from .connections import ConnectionsResource, AsyncConnectionsResource - -from .scripts import ScriptsResource, AsyncScriptsResource - -from .cookies import CookiesResource, AsyncCookiesResource - -from ...types.page_shield.page_shield_update_response import PageShieldUpdateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from ...types.page_shield.setting import Setting - -from ..._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.page_shield import page_shield_update_params -from .policies import ( - PoliciesResource, - AsyncPoliciesResource, - PoliciesResourceWithRawResponse, - AsyncPoliciesResourceWithRawResponse, - PoliciesResourceWithStreamingResponse, - AsyncPoliciesResourceWithStreamingResponse, -) -from .connections import ( - ConnectionsResource, - AsyncConnectionsResource, - ConnectionsResourceWithRawResponse, - AsyncConnectionsResourceWithRawResponse, - ConnectionsResourceWithStreamingResponse, - AsyncConnectionsResourceWithStreamingResponse, +from .cookies import ( + CookiesResource, + AsyncCookiesResource, + CookiesResourceWithRawResponse, + AsyncCookiesResourceWithRawResponse, + CookiesResourceWithStreamingResponse, + AsyncCookiesResourceWithStreamingResponse, ) from .scripts import ( ScriptsResource, @@ -65,18 +22,40 @@ from .scripts import ( ScriptsResourceWithStreamingResponse, AsyncScriptsResourceWithStreamingResponse, ) -from .cookies import ( - CookiesResource, - AsyncCookiesResource, - CookiesResourceWithRawResponse, - AsyncCookiesResourceWithRawResponse, - CookiesResourceWithStreamingResponse, - AsyncCookiesResourceWithStreamingResponse, +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .policies import ( + PoliciesResource, + AsyncPoliciesResource, + PoliciesResourceWithRawResponse, + AsyncPoliciesResourceWithRawResponse, + PoliciesResourceWithStreamingResponse, + AsyncPoliciesResourceWithStreamingResponse, +) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ..._wrappers import ResultWrapper +from .connections import ( + ConnectionsResource, + AsyncConnectionsResource, + ConnectionsResourceWithRawResponse, + AsyncConnectionsResourceWithRawResponse, + ConnectionsResourceWithStreamingResponse, + AsyncConnectionsResourceWithStreamingResponse, +) +from ..._base_client import make_request_options +from ...types.page_shield import page_shield_update_params +from ...types.page_shield.setting import Setting +from ...types.page_shield.page_shield_update_response import PageShieldUpdateResponse __all__ = ["PageShieldResource", "AsyncPageShieldResource"] diff --git a/src/cloudflare/resources/page_shield/policies.py b/src/cloudflare/resources/page_shield/policies.py index 2c1e8d402..645079e3e 100644 --- a/src/cloudflare/resources/page_shield/policies.py +++ b/src/cloudflare/resources/page_shield/policies.py @@ -2,52 +2,32 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.page_shield.policy_create_response import PolicyCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from ...types.page_shield.policy_update_response import PolicyUpdateResponse - -from ...types.page_shield.policy_list_response import PolicyListResponse - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from ...types.page_shield.policy_get_response import PolicyGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.page_shield import policy_create_params -from ...types.page_shield import policy_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options +from ...types.page_shield import policy_create_params, policy_update_params +from ...types.page_shield.policy_get_response import PolicyGetResponse +from ...types.page_shield.policy_list_response import PolicyListResponse +from ...types.page_shield.policy_create_response import PolicyCreateResponse +from ...types.page_shield.policy_update_response import PolicyUpdateResponse __all__ = ["PoliciesResource", "AsyncPoliciesResource"] diff --git a/src/cloudflare/resources/page_shield/scripts.py b/src/cloudflare/resources/page_shield/scripts.py index cdcc7eb95..541aefbee 100644 --- a/src/cloudflare/resources/page_shield/scripts.py +++ b/src/cloudflare/resources/page_shield/scripts.py @@ -2,43 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx -from ..._compat import cached_property - -from ...types.page_shield.script import Script - -from ...pagination import SyncSinglePage, AsyncSinglePage - +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._utils import maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from ...types.page_shield.script_get_response import ScriptGetResponse - -from ..._wrappers import ResultWrapper - -from typing import Optional, Type - +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options from ...types.page_shield import script_list_params -from typing import cast -from typing import cast +from ...types.page_shield.script import Script +from ...types.page_shield.script_get_response import ScriptGetResponse __all__ = ["ScriptsResource", "AsyncScriptsResource"] diff --git a/src/cloudflare/resources/pagerules/__init__.py b/src/cloudflare/resources/pagerules/__init__.py index 7a46ea934..d1c643481 100644 --- a/src/cloudflare/resources/pagerules/__init__.py +++ b/src/cloudflare/resources/pagerules/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .settings import SettingsResource, AsyncSettingsResource from .settings import ( + SettingsResource, + AsyncSettingsResource, SettingsResourceWithRawResponse, AsyncSettingsResourceWithRawResponse, SettingsResourceWithStreamingResponse, AsyncSettingsResourceWithStreamingResponse, ) -from .pagerules import PagerulesResource, AsyncPagerulesResource from .pagerules import ( + PagerulesResource, + AsyncPagerulesResource, PagerulesResourceWithRawResponse, AsyncPagerulesResourceWithRawResponse, PagerulesResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/pagerules/pagerules.py b/src/cloudflare/resources/pagerules/pagerules.py index 95a4d9437..5f251b595 100644 --- a/src/cloudflare/resources/pagerules/pagerules.py +++ b/src/cloudflare/resources/pagerules/pagerules.py @@ -3,57 +3,16 @@ from __future__ import annotations import typing_extensions +from typing import Any, Type, Iterable, Optional, cast +from typing_extensions import Literal import httpx -from .settings import SettingsResource, AsyncSettingsResource - -from ..._compat import cached_property - -from ...types.pagerules.pagerule_create_response import PageruleCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing import Iterable, Type, Optional - -from ...types.pagerules.route_param import RouteParam - -from ...types.pagerules.target_param import TargetParam - -from typing_extensions import Literal - -from ...types.pagerules.pagerule_update_response import PageruleUpdateResponse - -from ...types.pagerules.pagerule_list_response import PageruleListResponse - -from ...types.pagerules.pagerule_delete_response import PageruleDeleteResponse - -from ...types.pagerules.pagerule_edit_response import PageruleEditResponse - -from ...types.pagerules.pagerule_get_response import PageruleGetResponse - -from ..._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.pagerules import pagerule_create_params -from ...types.pagerules import pagerule_update_params -from ...types.pagerules import pagerule_list_params -from ...types.pagerules import pagerule_edit_params from .settings import ( SettingsResource, AsyncSettingsResource, @@ -62,26 +21,30 @@ from .settings import ( SettingsResourceWithStreamingResponse, AsyncSettingsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.pagerules import ( + pagerule_edit_params, + pagerule_list_params, + pagerule_create_params, + pagerule_update_params, +) +from ...types.pagerules.route_param import RouteParam +from ...types.pagerules.target_param import TargetParam +from ...types.pagerules.pagerule_get_response import PageruleGetResponse +from ...types.pagerules.pagerule_edit_response import PageruleEditResponse +from ...types.pagerules.pagerule_list_response import PageruleListResponse +from ...types.pagerules.pagerule_create_response import PageruleCreateResponse +from ...types.pagerules.pagerule_delete_response import PageruleDeleteResponse +from ...types.pagerules.pagerule_update_response import PageruleUpdateResponse __all__ = ["PagerulesResource", "AsyncPagerulesResource"] diff --git a/src/cloudflare/resources/pagerules/settings.py b/src/cloudflare/resources/pagerules/settings.py index 47e7544e1..450fac94b 100644 --- a/src/cloudflare/resources/pagerules/settings.py +++ b/src/cloudflare/resources/pagerules/settings.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._compat import cached_property - -from ...types.pagerules.setting_list_response import SettingListResponse - -from ..._wrappers import ResultWrapper - -from ..._base_client import make_request_options - -from typing import Type - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.pagerules.setting_list_response import SettingListResponse __all__ = ["SettingsResource", "AsyncSettingsResource"] diff --git a/src/cloudflare/resources/pages/__init__.py b/src/cloudflare/resources/pages/__init__.py index 7cc922b43..e810153f6 100644 --- a/src/cloudflare/resources/pages/__init__.py +++ b/src/cloudflare/resources/pages/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .projects import ProjectsResource, AsyncProjectsResource -from .projects import ( - ProjectsResourceWithRawResponse, - AsyncProjectsResourceWithRawResponse, - ProjectsResourceWithStreamingResponse, - AsyncProjectsResourceWithStreamingResponse, -) -from .pages import PagesResource, AsyncPagesResource from .pages import ( + PagesResource, + AsyncPagesResource, PagesResourceWithRawResponse, AsyncPagesResourceWithRawResponse, PagesResourceWithStreamingResponse, AsyncPagesResourceWithStreamingResponse, ) +from .projects import ( + ProjectsResource, + AsyncProjectsResource, + ProjectsResourceWithRawResponse, + AsyncProjectsResourceWithRawResponse, + ProjectsResourceWithStreamingResponse, + AsyncProjectsResourceWithStreamingResponse, +) __all__ = [ "ProjectsResource", diff --git a/src/cloudflare/resources/pages/pages.py b/src/cloudflare/resources/pages/pages.py index f6ee25380..e0367240c 100644 --- a/src/cloudflare/resources/pages/pages.py +++ b/src/cloudflare/resources/pages/pages.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .projects.projects import ProjectsResource, AsyncProjectsResource - -from ..._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .projects import ( ProjectsResource, AsyncProjectsResource, @@ -21,6 +10,9 @@ from .projects import ( ProjectsResourceWithStreamingResponse, AsyncProjectsResourceWithStreamingResponse, ) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from .projects.projects import ProjectsResource, AsyncProjectsResource __all__ = ["PagesResource", "AsyncPagesResource"] diff --git a/src/cloudflare/resources/pages/projects/__init__.py b/src/cloudflare/resources/pages/projects/__init__.py index 4aa53efae..5d89924de 100644 --- a/src/cloudflare/resources/pages/projects/__init__.py +++ b/src/cloudflare/resources/pages/projects/__init__.py @@ -1,26 +1,29 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .deployments import DeploymentsResource, AsyncDeploymentsResource -from .deployments import ( - DeploymentsResourceWithRawResponse, - AsyncDeploymentsResourceWithRawResponse, - DeploymentsResourceWithStreamingResponse, - AsyncDeploymentsResourceWithStreamingResponse, -) -from .domains import DomainsResource, AsyncDomainsResource from .domains import ( + DomainsResource, + AsyncDomainsResource, DomainsResourceWithRawResponse, AsyncDomainsResourceWithRawResponse, DomainsResourceWithStreamingResponse, AsyncDomainsResourceWithStreamingResponse, ) -from .projects import ProjectsResource, AsyncProjectsResource from .projects import ( + ProjectsResource, + AsyncProjectsResource, ProjectsResourceWithRawResponse, AsyncProjectsResourceWithRawResponse, ProjectsResourceWithStreamingResponse, AsyncProjectsResourceWithStreamingResponse, ) +from .deployments import ( + DeploymentsResource, + AsyncDeploymentsResource, + DeploymentsResourceWithRawResponse, + AsyncDeploymentsResourceWithRawResponse, + DeploymentsResourceWithStreamingResponse, + AsyncDeploymentsResourceWithStreamingResponse, +) __all__ = [ "DeploymentsResource", diff --git a/src/cloudflare/resources/pages/projects/deployments/__init__.py b/src/cloudflare/resources/pages/projects/deployments/__init__.py index 164a4454b..ef7c42c71 100644 --- a/src/cloudflare/resources/pages/projects/deployments/__init__.py +++ b/src/cloudflare/resources/pages/projects/deployments/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .history import HistoryResource, AsyncHistoryResource from .history import ( + HistoryResource, + AsyncHistoryResource, HistoryResourceWithRawResponse, AsyncHistoryResourceWithRawResponse, HistoryResourceWithStreamingResponse, AsyncHistoryResourceWithStreamingResponse, ) -from .deployments import DeploymentsResource, AsyncDeploymentsResource from .deployments import ( + DeploymentsResource, + AsyncDeploymentsResource, DeploymentsResourceWithRawResponse, AsyncDeploymentsResourceWithRawResponse, DeploymentsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/pages/projects/deployments/deployments.py b/src/cloudflare/resources/pages/projects/deployments/deployments.py index c0bad6b88..836de055f 100644 --- a/src/cloudflare/resources/pages/projects/deployments/deployments.py +++ b/src/cloudflare/resources/pages/projects/deployments/deployments.py @@ -2,44 +2,11 @@ from __future__ import annotations +from typing import Type, cast +from typing_extensions import Literal + import httpx -from .history.history import HistoryResource, AsyncHistoryResource - -from ....._compat import cached_property - -from .....types.pages.deployment import Deployment - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options, AsyncPaginator - -from typing import Type - -from .....pagination import SyncSinglePage, AsyncSinglePage - -from typing_extensions import Literal - -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.pages.projects import deployment_create_params -from .....types.pages.projects import deployment_list_params -from .....types.pages.projects import deployment_retry_params -from .....types.pages.projects import deployment_rollback_params from .history import ( HistoryResource, AsyncHistoryResource, @@ -48,16 +15,30 @@ from .history import ( HistoryResourceWithStreamingResponse, AsyncHistoryResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....._wrappers import ResultWrapper +from .....pagination import SyncSinglePage, AsyncSinglePage +from .history.history import HistoryResource, AsyncHistoryResource +from ....._base_client import AsyncPaginator, make_request_options +from .....types.pages.projects import ( + deployment_list_params, + deployment_retry_params, + deployment_create_params, + deployment_rollback_params, +) +from .....types.pages.deployment import Deployment __all__ = ["DeploymentsResource", "AsyncDeploymentsResource"] diff --git a/src/cloudflare/resources/pages/projects/deployments/history/__init__.py b/src/cloudflare/resources/pages/projects/deployments/history/__init__.py index 3fd58fc8f..a5b63015d 100644 --- a/src/cloudflare/resources/pages/projects/deployments/history/__init__.py +++ b/src/cloudflare/resources/pages/projects/deployments/history/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .logs import LogsResource, AsyncLogsResource from .logs import ( + LogsResource, + AsyncLogsResource, LogsResourceWithRawResponse, AsyncLogsResourceWithRawResponse, LogsResourceWithStreamingResponse, AsyncLogsResourceWithStreamingResponse, ) -from .history import HistoryResource, AsyncHistoryResource from .history import ( + HistoryResource, + AsyncHistoryResource, HistoryResourceWithRawResponse, AsyncHistoryResourceWithRawResponse, HistoryResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/pages/projects/deployments/history/history.py b/src/cloudflare/resources/pages/projects/deployments/history/history.py index a02aae449..7258c71fc 100644 --- a/src/cloudflare/resources/pages/projects/deployments/history/history.py +++ b/src/cloudflare/resources/pages/projects/deployments/history/history.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .logs import LogsResource, AsyncLogsResource - -from ......_compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......_resource import SyncAPIResource, AsyncAPIResource -from ......types import shared_params from .logs import ( LogsResource, AsyncLogsResource, @@ -21,6 +10,8 @@ from .logs import ( LogsResourceWithStreamingResponse, AsyncLogsResourceWithStreamingResponse, ) +from ......_compat import cached_property +from ......_resource import SyncAPIResource, AsyncAPIResource __all__ = ["HistoryResource", "AsyncHistoryResource"] diff --git a/src/cloudflare/resources/pages/projects/deployments/history/logs.py b/src/cloudflare/resources/pages/projects/deployments/history/logs.py index 8bbf85c36..312feea96 100644 --- a/src/cloudflare/resources/pages/projects/deployments/history/logs.py +++ b/src/cloudflare/resources/pages/projects/deployments/history/logs.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven from ......_compat import cached_property - -from ......types.pages.projects.deployments.history.log_get_response import LogGetResponse - -from ......_wrappers import ResultWrapper - -from ......_base_client import make_request_options - -from typing import Type - +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......_resource import SyncAPIResource, AsyncAPIResource -from ......types import shared_params -from typing import cast -from typing import cast +from ......_wrappers import ResultWrapper +from ......_base_client import make_request_options +from ......types.pages.projects.deployments.history.log_get_response import LogGetResponse __all__ = ["LogsResource", "AsyncLogsResource"] diff --git a/src/cloudflare/resources/pages/projects/domains.py b/src/cloudflare/resources/pages/projects/domains.py index f804d8337..8bcb2f2b3 100644 --- a/src/cloudflare/resources/pages/projects/domains.py +++ b/src/cloudflare/resources/pages/projects/domains.py @@ -2,52 +2,31 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.pages.projects.domain_create_response import DomainCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.pages.projects.domain_list_response import DomainListResponse - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ....types.pages.projects.domain_edit_response import DomainEditResponse - -from ....types.pages.projects.domain_get_response import DomainGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.pages.projects import domain_create_params -from ....types.pages.projects import domain_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.pages.projects import domain_edit_params, domain_create_params +from ....types.pages.projects.domain_get_response import DomainGetResponse +from ....types.pages.projects.domain_edit_response import DomainEditResponse +from ....types.pages.projects.domain_list_response import DomainListResponse +from ....types.pages.projects.domain_create_response import DomainCreateResponse __all__ = ["DomainsResource", "AsyncDomainsResource"] diff --git a/src/cloudflare/resources/pages/projects/projects.py b/src/cloudflare/resources/pages/projects/projects.py index 2efd1ba55..017329965 100644 --- a/src/cloudflare/resources/pages/projects/projects.py +++ b/src/cloudflare/resources/pages/projects/projects.py @@ -2,54 +2,10 @@ from __future__ import annotations +from typing import Type, cast + import httpx -from .deployments.deployments import DeploymentsResource, AsyncDeploymentsResource - -from ...._compat import cached_property - -from .domains import DomainsResource, AsyncDomainsResource - -from ....types.pages.project import Project - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from typing import Type - -from ....types.pages.deployment import Deployment - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -from ....types.pages import project_create_params, project_edit_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.pages import project_create_params -from ....types.pages import project_edit_params -from .deployments import ( - DeploymentsResource, - AsyncDeploymentsResource, - DeploymentsResourceWithRawResponse, - AsyncDeploymentsResourceWithRawResponse, - DeploymentsResourceWithStreamingResponse, - AsyncDeploymentsResourceWithStreamingResponse, -) from .domains import ( DomainsResource, AsyncDomainsResource, @@ -58,16 +14,34 @@ from .domains import ( DomainsResourceWithStreamingResponse, AsyncDomainsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property +from .deployments import ( + DeploymentsResource, + AsyncDeploymentsResource, + DeploymentsResourceWithRawResponse, + AsyncDeploymentsResourceWithRawResponse, + DeploymentsResourceWithStreamingResponse, + AsyncDeploymentsResourceWithStreamingResponse, +) +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ....types.pages import project_edit_params, project_create_params +from ...._base_client import AsyncPaginator, make_request_options +from ....types.pages.project import Project +from .deployments.deployments import DeploymentsResource, AsyncDeploymentsResource +from ....types.pages.deployment import Deployment __all__ = ["ProjectsResource", "AsyncProjectsResource"] diff --git a/src/cloudflare/resources/pcaps/__init__.py b/src/cloudflare/resources/pcaps/__init__.py index 9f4a0898a..3ff03d025 100644 --- a/src/cloudflare/resources/pcaps/__init__.py +++ b/src/cloudflare/resources/pcaps/__init__.py @@ -1,25 +1,28 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .ownership import OwnershipResource, AsyncOwnershipResource -from .ownership import ( - OwnershipResourceWithRawResponse, - AsyncOwnershipResourceWithRawResponse, - OwnershipResourceWithStreamingResponse, - AsyncOwnershipResourceWithStreamingResponse, +from .pcaps import ( + PCAPsResource, + AsyncPCAPsResource, + PCAPsResourceWithRawResponse, + AsyncPCAPsResourceWithRawResponse, + PCAPsResourceWithStreamingResponse, + AsyncPCAPsResourceWithStreamingResponse, ) -from .download import DownloadResource, AsyncDownloadResource from .download import ( + DownloadResource, + AsyncDownloadResource, DownloadResourceWithRawResponse, AsyncDownloadResourceWithRawResponse, DownloadResourceWithStreamingResponse, AsyncDownloadResourceWithStreamingResponse, ) -from .pcaps import PCAPsResource, AsyncPCAPsResource -from .pcaps import ( - PCAPsResourceWithRawResponse, - AsyncPCAPsResourceWithRawResponse, - PCAPsResourceWithStreamingResponse, - AsyncPCAPsResourceWithStreamingResponse, +from .ownership import ( + OwnershipResource, + AsyncOwnershipResource, + OwnershipResourceWithRawResponse, + AsyncOwnershipResourceWithRawResponse, + OwnershipResourceWithStreamingResponse, + AsyncOwnershipResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/pcaps/download.py b/src/cloudflare/resources/pcaps/download.py index aea0a281d..84cfebf9c 100644 --- a/src/cloudflare/resources/pcaps/download.py +++ b/src/cloudflare/resources/pcaps/download.py @@ -4,29 +4,21 @@ from __future__ import annotations import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._compat import cached_property - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( BinaryAPIResponse, AsyncBinaryAPIResponse, - to_custom_raw_response_wrapper, - async_to_custom_raw_response_wrapper, - to_custom_streamed_response_wrapper, StreamedBinaryAPIResponse, - async_to_custom_streamed_response_wrapper, AsyncStreamedBinaryAPIResponse, + to_custom_raw_response_wrapper, + to_custom_streamed_response_wrapper, + async_to_custom_raw_response_wrapper, + async_to_custom_streamed_response_wrapper, ) - from ..._base_client import make_request_options -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params - __all__ = ["DownloadResource", "AsyncDownloadResource"] diff --git a/src/cloudflare/resources/pcaps/ownership.py b/src/cloudflare/resources/pcaps/ownership.py index 557edbbcc..fb7229716 100644 --- a/src/cloudflare/resources/pcaps/ownership.py +++ b/src/cloudflare/resources/pcaps/ownership.py @@ -2,44 +2,28 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.pcaps.ownership import Ownership - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing import Type, Optional - -from ...types.pcaps.ownership_get_response import OwnershipGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.pcaps import ownership_create_params -from ...types.pcaps import ownership_validate_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...types.pcaps import ownership_create_params, ownership_validate_params +from ..._base_client import make_request_options +from ...types.pcaps.ownership import Ownership +from ...types.pcaps.ownership_get_response import OwnershipGetResponse __all__ = ["OwnershipResource", "AsyncOwnershipResource"] diff --git a/src/cloudflare/resources/pcaps/pcaps.py b/src/cloudflare/resources/pcaps/pcaps.py index a523948c3..88b6a85dc 100644 --- a/src/cloudflare/resources/pcaps/pcaps.py +++ b/src/cloudflare/resources/pcaps/pcaps.py @@ -2,56 +2,16 @@ from __future__ import annotations +from typing import Any, cast, overload +from typing_extensions import Literal + import httpx -from .ownership import OwnershipResource, AsyncOwnershipResource - -from ..._compat import cached_property - -from .download import DownloadResource, AsyncDownloadResource - -from typing_extensions import Literal - -from ...types.pcaps.pcap_filter_param import PCAPFilterParam - -from ...types.pcaps.pcap_create_response import PCAPCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from ...types.pcaps.pcap_list_response import PCAPListResponse - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from ...types.pcaps.pcap_get_response import PCAPGetResponse - -from ..._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.pcaps import pcap_create_params -from ...types.pcaps import PCAPFilter -from ...types.pcaps import PCAPFilter -from .ownership import ( - OwnershipResource, - AsyncOwnershipResource, - OwnershipResourceWithRawResponse, - AsyncOwnershipResourceWithRawResponse, - OwnershipResourceWithStreamingResponse, - AsyncOwnershipResourceWithStreamingResponse, +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + required_args, + maybe_transform, + async_maybe_transform, ) from .download import ( DownloadResource, @@ -61,16 +21,30 @@ from .download import ( DownloadResourceWithStreamingResponse, AsyncDownloadResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._compat import cached_property +from .ownership import ( + OwnershipResource, + AsyncOwnershipResource, + OwnershipResourceWithRawResponse, + AsyncOwnershipResourceWithRawResponse, + OwnershipResourceWithStreamingResponse, + AsyncOwnershipResourceWithStreamingResponse, +) +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from ...types.pcaps import pcap_create_params +from ..._base_client import AsyncPaginator, make_request_options +from ...types.pcaps.pcap_filter_param import PCAPFilterParam +from ...types.pcaps.pcap_get_response import PCAPGetResponse +from ...types.pcaps.pcap_list_response import PCAPListResponse +from ...types.pcaps.pcap_create_response import PCAPCreateResponse __all__ = ["PCAPsResource", "AsyncPCAPsResource"] diff --git a/src/cloudflare/resources/plans.py b/src/cloudflare/resources/plans.py index 74d98a0d5..7ee3c6818 100644 --- a/src/cloudflare/resources/plans.py +++ b/src/cloudflare/resources/plans.py @@ -2,36 +2,23 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven from .._compat import cached_property - -from ..types.plans.available_rate_plan import AvailableRatePlan - -from ..pagination import SyncSinglePage, AsyncSinglePage - -from .._base_client import make_request_options, AsyncPaginator - -from .._wrappers import ResultWrapper - -from typing import Type - +from .._resource import SyncAPIResource, AsyncAPIResource from .._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from .._resource import SyncAPIResource, AsyncAPIResource -from ..types import shared_params -from typing import cast -from typing import cast +from .._wrappers import ResultWrapper +from ..pagination import SyncSinglePage, AsyncSinglePage +from .._base_client import AsyncPaginator, make_request_options +from ..types.plans.available_rate_plan import AvailableRatePlan __all__ = ["PlansResource", "AsyncPlansResource"] diff --git a/src/cloudflare/resources/queues/__init__.py b/src/cloudflare/resources/queues/__init__.py index fa9e1eac1..27d187759 100644 --- a/src/cloudflare/resources/queues/__init__.py +++ b/src/cloudflare/resources/queues/__init__.py @@ -1,25 +1,28 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .consumers import ConsumersResource, AsyncConsumersResource -from .consumers import ( - ConsumersResourceWithRawResponse, - AsyncConsumersResourceWithRawResponse, - ConsumersResourceWithStreamingResponse, - AsyncConsumersResourceWithStreamingResponse, +from .queues import ( + QueuesResource, + AsyncQueuesResource, + QueuesResourceWithRawResponse, + AsyncQueuesResourceWithRawResponse, + QueuesResourceWithStreamingResponse, + AsyncQueuesResourceWithStreamingResponse, ) -from .messages import MessagesResource, AsyncMessagesResource from .messages import ( + MessagesResource, + AsyncMessagesResource, MessagesResourceWithRawResponse, AsyncMessagesResourceWithRawResponse, MessagesResourceWithStreamingResponse, AsyncMessagesResourceWithStreamingResponse, ) -from .queues import QueuesResource, AsyncQueuesResource -from .queues import ( - QueuesResourceWithRawResponse, - AsyncQueuesResourceWithRawResponse, - QueuesResourceWithStreamingResponse, - AsyncQueuesResourceWithStreamingResponse, +from .consumers import ( + ConsumersResource, + AsyncConsumersResource, + ConsumersResourceWithRawResponse, + AsyncConsumersResourceWithRawResponse, + ConsumersResourceWithStreamingResponse, + AsyncConsumersResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/queues/consumers.py b/src/cloudflare/resources/queues/consumers.py index 3917b3a7e..625008285 100644 --- a/src/cloudflare/resources/queues/consumers.py +++ b/src/cloudflare/resources/queues/consumers.py @@ -2,52 +2,30 @@ from __future__ import annotations +from typing import Any, Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.queues.consumer_create_response import ConsumerCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from ...types.queues.consumer_update_response import ConsumerUpdateResponse - -from ...types.queues.consumer_delete_response import ConsumerDeleteResponse - -from ...types.queues.consumer_get_response import ConsumerGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.queues import consumer_create_params -from ...types.queues import consumer_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.queues import consumer_create_params, consumer_update_params +from ...types.queues.consumer_get_response import ConsumerGetResponse +from ...types.queues.consumer_create_response import ConsumerCreateResponse +from ...types.queues.consumer_delete_response import ConsumerDeleteResponse +from ...types.queues.consumer_update_response import ConsumerUpdateResponse __all__ = ["ConsumersResource", "AsyncConsumersResource"] diff --git a/src/cloudflare/resources/queues/messages.py b/src/cloudflare/resources/queues/messages.py index 13987f493..3475dc2fe 100644 --- a/src/cloudflare/resources/queues/messages.py +++ b/src/cloudflare/resources/queues/messages.py @@ -2,44 +2,28 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.queues.message_ack_response import MessageAckResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Iterable - -from ..._base_client import make_request_options - -from ...types.queues.message_pull_response import MessagePullResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ...types.queues import message_ack_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.queues import message_ack_params -from ...types.queues import message_pull_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.queues import message_ack_params, message_pull_params +from ...types.queues.message_ack_response import MessageAckResponse +from ...types.queues.message_pull_response import MessagePullResponse __all__ = ["MessagesResource", "AsyncMessagesResource"] diff --git a/src/cloudflare/resources/queues/queues.py b/src/cloudflare/resources/queues/queues.py index 05440fadf..5af6946e0 100644 --- a/src/cloudflare/resources/queues/queues.py +++ b/src/cloudflare/resources/queues/queues.py @@ -2,55 +2,14 @@ from __future__ import annotations +from typing import Any, Type, Optional, cast + import httpx -from .consumers import ConsumersResource, AsyncConsumersResource - -from ..._compat import cached_property - -from .messages import MessagesResource, AsyncMessagesResource - -from ...types.queues.queue_created import QueueCreated - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options, AsyncPaginator - -from ...types.queues.queue_updated import QueueUpdated - -from ...types.queues.queue import Queue - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from ...types.queues.queue_delete_response import QueueDeleteResponse - -from ..._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.queues import queue_create_params -from ...types.queues import queue_update_params -from .consumers import ( - ConsumersResource, - AsyncConsumersResource, - ConsumersResourceWithRawResponse, - AsyncConsumersResourceWithRawResponse, - ConsumersResourceWithStreamingResponse, - AsyncConsumersResourceWithStreamingResponse, +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, ) from .messages import ( MessagesResource, @@ -60,16 +19,30 @@ from .messages import ( MessagesResourceWithStreamingResponse, AsyncMessagesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._compat import cached_property +from .consumers import ( + ConsumersResource, + AsyncConsumersResource, + ConsumersResourceWithRawResponse, + AsyncConsumersResourceWithRawResponse, + ConsumersResourceWithStreamingResponse, + AsyncConsumersResourceWithStreamingResponse, +) +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options +from ...types.queues import queue_create_params, queue_update_params +from ...types.queues.queue import Queue +from ...types.queues.queue_created import QueueCreated +from ...types.queues.queue_updated import QueueUpdated +from ...types.queues.queue_delete_response import QueueDeleteResponse __all__ = ["QueuesResource", "AsyncQueuesResource"] diff --git a/src/cloudflare/resources/r2/__init__.py b/src/cloudflare/resources/r2/__init__.py index 137ba3303..f164b0807 100644 --- a/src/cloudflare/resources/r2/__init__.py +++ b/src/cloudflare/resources/r2/__init__.py @@ -1,39 +1,44 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .buckets import BucketsResource, AsyncBucketsResource -from .buckets import ( - BucketsResourceWithRawResponse, - AsyncBucketsResourceWithRawResponse, - BucketsResourceWithStreamingResponse, - AsyncBucketsResourceWithStreamingResponse, +from .r2 import ( + R2Resource, + AsyncR2Resource, + R2ResourceWithRawResponse, + AsyncR2ResourceWithRawResponse, + R2ResourceWithStreamingResponse, + AsyncR2ResourceWithStreamingResponse, ) -from .sippy import SippyResource, AsyncSippyResource from .sippy import ( + SippyResource, + AsyncSippyResource, SippyResourceWithRawResponse, AsyncSippyResourceWithRawResponse, SippyResourceWithStreamingResponse, AsyncSippyResourceWithStreamingResponse, ) -from .temporary_credentials import TemporaryCredentialsResource, AsyncTemporaryCredentialsResource -from .temporary_credentials import ( - TemporaryCredentialsResourceWithRawResponse, - AsyncTemporaryCredentialsResourceWithRawResponse, - TemporaryCredentialsResourceWithStreamingResponse, - AsyncTemporaryCredentialsResourceWithStreamingResponse, +from .buckets import ( + BucketsResource, + AsyncBucketsResource, + BucketsResourceWithRawResponse, + AsyncBucketsResourceWithRawResponse, + BucketsResourceWithStreamingResponse, + AsyncBucketsResourceWithStreamingResponse, ) -from .domains import DomainsResource, AsyncDomainsResource from .domains import ( + DomainsResource, + AsyncDomainsResource, DomainsResourceWithRawResponse, AsyncDomainsResourceWithRawResponse, DomainsResourceWithStreamingResponse, AsyncDomainsResourceWithStreamingResponse, ) -from .r2 import R2Resource, AsyncR2Resource -from .r2 import ( - R2ResourceWithRawResponse, - AsyncR2ResourceWithRawResponse, - R2ResourceWithStreamingResponse, - AsyncR2ResourceWithStreamingResponse, +from .temporary_credentials import ( + TemporaryCredentialsResource, + AsyncTemporaryCredentialsResource, + TemporaryCredentialsResourceWithRawResponse, + AsyncTemporaryCredentialsResourceWithRawResponse, + TemporaryCredentialsResourceWithStreamingResponse, + AsyncTemporaryCredentialsResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/r2/buckets.py b/src/cloudflare/resources/r2/buckets.py index 1893b67df..9863a74af 100644 --- a/src/cloudflare/resources/r2/buckets.py +++ b/src/cloudflare/resources/r2/buckets.py @@ -2,48 +2,29 @@ from __future__ import annotations +from typing import Type, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.r2.bucket import Bucket - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing import Type - -from typing_extensions import Literal - -from ...types.r2.bucket_list_response import BucketListResponse - +from ...types.r2 import bucket_list_params, bucket_create_params +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.r2 import bucket_create_params -from ...types.r2 import bucket_list_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.r2.bucket import Bucket +from ...types.r2.bucket_list_response import BucketListResponse __all__ = ["BucketsResource", "AsyncBucketsResource"] diff --git a/src/cloudflare/resources/r2/domains/__init__.py b/src/cloudflare/resources/r2/domains/__init__.py index c5a8aca46..bb2fbc2ee 100755 --- a/src/cloudflare/resources/r2/domains/__init__.py +++ b/src/cloudflare/resources/r2/domains/__init__.py @@ -1,26 +1,29 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .custom import CustomResource, AsyncCustomResource from .custom import ( + CustomResource, + AsyncCustomResource, CustomResourceWithRawResponse, AsyncCustomResourceWithRawResponse, CustomResourceWithStreamingResponse, AsyncCustomResourceWithStreamingResponse, ) -from .managed import ManagedResource, AsyncManagedResource -from .managed import ( - ManagedResourceWithRawResponse, - AsyncManagedResourceWithRawResponse, - ManagedResourceWithStreamingResponse, - AsyncManagedResourceWithStreamingResponse, -) -from .domains import DomainsResource, AsyncDomainsResource from .domains import ( + DomainsResource, + AsyncDomainsResource, DomainsResourceWithRawResponse, AsyncDomainsResourceWithRawResponse, DomainsResourceWithStreamingResponse, AsyncDomainsResourceWithStreamingResponse, ) +from .managed import ( + ManagedResource, + AsyncManagedResource, + ManagedResourceWithRawResponse, + AsyncManagedResourceWithRawResponse, + ManagedResourceWithStreamingResponse, + AsyncManagedResourceWithStreamingResponse, +) __all__ = [ "CustomResource", diff --git a/src/cloudflare/resources/r2/domains/custom.py b/src/cloudflare/resources/r2/domains/custom.py index 60608da24..06cfac9ba 100755 --- a/src/cloudflare/resources/r2/domains/custom.py +++ b/src/cloudflare/resources/r2/domains/custom.py @@ -2,50 +2,30 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.r2.domains.custom_create_response import CustomCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type - -from ....types.r2.domains.custom_update_response import CustomUpdateResponse - -from ....types.r2.domains.custom_list_response import CustomListResponse - -from ....types.r2.domains.custom_delete_response import CustomDeleteResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.r2.domains import custom_create_params -from ....types.r2.domains import custom_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.r2.domains import custom_create_params, custom_update_params +from ....types.r2.domains.custom_list_response import CustomListResponse +from ....types.r2.domains.custom_create_response import CustomCreateResponse +from ....types.r2.domains.custom_delete_response import CustomDeleteResponse +from ....types.r2.domains.custom_update_response import CustomUpdateResponse __all__ = ["CustomResource", "AsyncCustomResource"] diff --git a/src/cloudflare/resources/r2/domains/domains.py b/src/cloudflare/resources/r2/domains/domains.py index 3d77a9a18..6dbbc7edb 100755 --- a/src/cloudflare/resources/r2/domains/domains.py +++ b/src/cloudflare/resources/r2/domains/domains.py @@ -2,19 +2,6 @@ from __future__ import annotations -from .custom import CustomResource, AsyncCustomResource - -from ...._compat import cached_property - -from .managed import ManagedResource, AsyncManagedResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params from .custom import ( CustomResource, AsyncCustomResource, @@ -31,6 +18,8 @@ from .managed import ( ManagedResourceWithStreamingResponse, AsyncManagedResourceWithStreamingResponse, ) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource __all__ = ["DomainsResource", "AsyncDomainsResource"] diff --git a/src/cloudflare/resources/r2/domains/managed.py b/src/cloudflare/resources/r2/domains/managed.py index 1deb25bfe..d1cb2e10b 100755 --- a/src/cloudflare/resources/r2/domains/managed.py +++ b/src/cloudflare/resources/r2/domains/managed.py @@ -2,41 +2,28 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.r2.domains.managed_update_response import ManagedUpdateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type - -from ....types.r2.domains.managed_list_response import ManagedListResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.r2.domains import managed_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....types.r2.domains.managed_list_response import ManagedListResponse +from ....types.r2.domains.managed_update_response import ManagedUpdateResponse __all__ = ["ManagedResource", "AsyncManagedResource"] diff --git a/src/cloudflare/resources/r2/r2.py b/src/cloudflare/resources/r2/r2.py index 2ba5e431b..56f7dadf2 100644 --- a/src/cloudflare/resources/r2/r2.py +++ b/src/cloudflare/resources/r2/r2.py @@ -2,31 +2,6 @@ from __future__ import annotations -from .buckets import BucketsResource, AsyncBucketsResource - -from ..._compat import cached_property - -from .sippy import SippyResource, AsyncSippyResource - -from .temporary_credentials import TemporaryCredentialsResource, AsyncTemporaryCredentialsResource - -from .domains.domains import DomainsResource, AsyncDomainsResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from .buckets import ( - BucketsResource, - AsyncBucketsResource, - BucketsResourceWithRawResponse, - AsyncBucketsResourceWithRawResponse, - BucketsResourceWithStreamingResponse, - AsyncBucketsResourceWithStreamingResponse, -) from .sippy import ( SippyResource, AsyncSippyResource, @@ -35,13 +10,13 @@ from .sippy import ( SippyResourceWithStreamingResponse, AsyncSippyResourceWithStreamingResponse, ) -from .temporary_credentials import ( - TemporaryCredentialsResource, - AsyncTemporaryCredentialsResource, - TemporaryCredentialsResourceWithRawResponse, - AsyncTemporaryCredentialsResourceWithRawResponse, - TemporaryCredentialsResourceWithStreamingResponse, - AsyncTemporaryCredentialsResourceWithStreamingResponse, +from .buckets import ( + BucketsResource, + AsyncBucketsResource, + BucketsResourceWithRawResponse, + AsyncBucketsResourceWithRawResponse, + BucketsResourceWithStreamingResponse, + AsyncBucketsResourceWithStreamingResponse, ) from .domains import ( DomainsResource, @@ -51,6 +26,17 @@ from .domains import ( DomainsResourceWithStreamingResponse, AsyncDomainsResourceWithStreamingResponse, ) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from .domains.domains import DomainsResource, AsyncDomainsResource +from .temporary_credentials import ( + TemporaryCredentialsResource, + AsyncTemporaryCredentialsResource, + TemporaryCredentialsResourceWithRawResponse, + AsyncTemporaryCredentialsResourceWithRawResponse, + TemporaryCredentialsResourceWithStreamingResponse, + AsyncTemporaryCredentialsResourceWithStreamingResponse, +) __all__ = ["R2Resource", "AsyncR2Resource"] diff --git a/src/cloudflare/resources/r2/sippy.py b/src/cloudflare/resources/r2/sippy.py index 123712da0..178f4279f 100644 --- a/src/cloudflare/resources/r2/sippy.py +++ b/src/cloudflare/resources/r2/sippy.py @@ -2,45 +2,29 @@ from __future__ import annotations +from typing import Type, cast, overload + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + required_args, + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.r2.sippy import Sippy - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing import Type - -from ...types.r2.sippy_delete_response import SippyDeleteResponse - +from ...types.r2 import sippy_update_params +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ...types.r2 import sippy_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.r2 import sippy_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.r2.sippy import Sippy +from ...types.r2.sippy_delete_response import SippyDeleteResponse __all__ = ["SippyResource", "AsyncSippyResource"] diff --git a/src/cloudflare/resources/r2/temporary_credentials.py b/src/cloudflare/resources/r2/temporary_credentials.py index 9ad9c3210..9715a6fea 100644 --- a/src/cloudflare/resources/r2/temporary_credentials.py +++ b/src/cloudflare/resources/r2/temporary_credentials.py @@ -2,39 +2,28 @@ from __future__ import annotations +from typing import List, Type, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.r2.temporary_credential_create_response import TemporaryCredentialCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing import Type, List - -from typing_extensions import Literal - +from ...types.r2 import temporary_credential_create_params +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.r2 import temporary_credential_create_params -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.r2.temporary_credential_create_response import TemporaryCredentialCreateResponse __all__ = ["TemporaryCredentialsResource", "AsyncTemporaryCredentialsResource"] diff --git a/src/cloudflare/resources/radar/__init__.py b/src/cloudflare/resources/radar/__init__.py index 94052d87b..740d075f2 100644 --- a/src/cloudflare/resources/radar/__init__.py +++ b/src/cloudflare/resources/radar/__init__.py @@ -1,138 +1,149 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .ai import AIResource, AsyncAIResource from .ai import ( + AIResource, + AsyncAIResource, AIResourceWithRawResponse, AsyncAIResourceWithRawResponse, AIResourceWithStreamingResponse, AsyncAIResourceWithStreamingResponse, ) -from .annotations import AnnotationsResource, AsyncAnnotationsResource -from .annotations import ( - AnnotationsResourceWithRawResponse, - AsyncAnnotationsResourceWithRawResponse, - AnnotationsResourceWithStreamingResponse, - AsyncAnnotationsResourceWithStreamingResponse, -) -from .bgp import BGPResource, AsyncBGPResource from .bgp import ( + BGPResource, + AsyncBGPResource, BGPResourceWithRawResponse, AsyncBGPResourceWithRawResponse, BGPResourceWithStreamingResponse, AsyncBGPResourceWithStreamingResponse, ) -from .datasets import DatasetsResource, AsyncDatasetsResource -from .datasets import ( - DatasetsResourceWithRawResponse, - AsyncDatasetsResourceWithRawResponse, - DatasetsResourceWithStreamingResponse, - AsyncDatasetsResourceWithStreamingResponse, -) -from .dns import DNSResource, AsyncDNSResource from .dns import ( + DNSResource, + AsyncDNSResource, DNSResourceWithRawResponse, AsyncDNSResourceWithRawResponse, DNSResourceWithStreamingResponse, AsyncDNSResourceWithStreamingResponse, ) -from .netflows import NetflowsResource, AsyncNetflowsResource -from .netflows import ( - NetflowsResourceWithRawResponse, - AsyncNetflowsResourceWithRawResponse, - NetflowsResourceWithStreamingResponse, - AsyncNetflowsResourceWithStreamingResponse, -) -from .search import SearchResource, AsyncSearchResource -from .search import ( - SearchResourceWithRawResponse, - AsyncSearchResourceWithRawResponse, - SearchResourceWithStreamingResponse, - AsyncSearchResourceWithStreamingResponse, -) -from .verified_bots import VerifiedBotsResource, AsyncVerifiedBotsResource -from .verified_bots import ( - VerifiedBotsResourceWithRawResponse, - AsyncVerifiedBotsResourceWithRawResponse, - VerifiedBotsResourceWithStreamingResponse, - AsyncVerifiedBotsResourceWithStreamingResponse, -) -from .as112 import AS112Resource, AsyncAS112Resource -from .as112 import ( - AS112ResourceWithRawResponse, - AsyncAS112ResourceWithRawResponse, - AS112ResourceWithStreamingResponse, - AsyncAS112ResourceWithStreamingResponse, -) -from .email import EmailResource, AsyncEmailResource -from .email import ( - EmailResourceWithRawResponse, - AsyncEmailResourceWithRawResponse, - EmailResourceWithStreamingResponse, - AsyncEmailResourceWithStreamingResponse, -) -from .attacks import AttacksResource, AsyncAttacksResource -from .attacks import ( - AttacksResourceWithRawResponse, - AsyncAttacksResourceWithRawResponse, - AttacksResourceWithStreamingResponse, - AsyncAttacksResourceWithStreamingResponse, -) -from .entities import EntitiesResource, AsyncEntitiesResource -from .entities import ( - EntitiesResourceWithRawResponse, - AsyncEntitiesResourceWithRawResponse, - EntitiesResourceWithStreamingResponse, - AsyncEntitiesResourceWithStreamingResponse, -) -from .http import HTTPResource, AsyncHTTPResource from .http import ( + HTTPResource, + AsyncHTTPResource, HTTPResourceWithRawResponse, AsyncHTTPResourceWithRawResponse, HTTPResourceWithStreamingResponse, AsyncHTTPResourceWithStreamingResponse, ) -from .quality import QualityResource, AsyncQualityResource +from .as112 import ( + AS112Resource, + AsyncAS112Resource, + AS112ResourceWithRawResponse, + AsyncAS112ResourceWithRawResponse, + AS112ResourceWithStreamingResponse, + AsyncAS112ResourceWithStreamingResponse, +) +from .email import ( + EmailResource, + AsyncEmailResource, + EmailResourceWithRawResponse, + AsyncEmailResourceWithRawResponse, + EmailResourceWithStreamingResponse, + AsyncEmailResourceWithStreamingResponse, +) +from .radar import ( + RadarResource, + AsyncRadarResource, + RadarResourceWithRawResponse, + AsyncRadarResourceWithRawResponse, + RadarResourceWithStreamingResponse, + AsyncRadarResourceWithStreamingResponse, +) +from .search import ( + SearchResource, + AsyncSearchResource, + SearchResourceWithRawResponse, + AsyncSearchResourceWithRawResponse, + SearchResourceWithStreamingResponse, + AsyncSearchResourceWithStreamingResponse, +) +from .attacks import ( + AttacksResource, + AsyncAttacksResource, + AttacksResourceWithRawResponse, + AsyncAttacksResourceWithRawResponse, + AttacksResourceWithStreamingResponse, + AsyncAttacksResourceWithStreamingResponse, +) from .quality import ( + QualityResource, + AsyncQualityResource, QualityResourceWithRawResponse, AsyncQualityResourceWithRawResponse, QualityResourceWithStreamingResponse, AsyncQualityResourceWithStreamingResponse, ) -from .ranking import RankingResource, AsyncRankingResource from .ranking import ( + RankingResource, + AsyncRankingResource, RankingResourceWithRawResponse, AsyncRankingResourceWithRawResponse, RankingResourceWithStreamingResponse, AsyncRankingResourceWithStreamingResponse, ) -from .traffic_anomalies import TrafficAnomaliesResource, AsyncTrafficAnomaliesResource +from .datasets import ( + DatasetsResource, + AsyncDatasetsResource, + DatasetsResourceWithRawResponse, + AsyncDatasetsResourceWithRawResponse, + DatasetsResourceWithStreamingResponse, + AsyncDatasetsResourceWithStreamingResponse, +) +from .entities import ( + EntitiesResource, + AsyncEntitiesResource, + EntitiesResourceWithRawResponse, + AsyncEntitiesResourceWithRawResponse, + EntitiesResourceWithStreamingResponse, + AsyncEntitiesResourceWithStreamingResponse, +) +from .netflows import ( + NetflowsResource, + AsyncNetflowsResource, + NetflowsResourceWithRawResponse, + AsyncNetflowsResourceWithRawResponse, + NetflowsResourceWithStreamingResponse, + AsyncNetflowsResourceWithStreamingResponse, +) +from .annotations import ( + AnnotationsResource, + AsyncAnnotationsResource, + AnnotationsResourceWithRawResponse, + AsyncAnnotationsResourceWithRawResponse, + AnnotationsResourceWithStreamingResponse, + AsyncAnnotationsResourceWithStreamingResponse, +) +from .verified_bots import ( + VerifiedBotsResource, + AsyncVerifiedBotsResource, + VerifiedBotsResourceWithRawResponse, + AsyncVerifiedBotsResourceWithRawResponse, + VerifiedBotsResourceWithStreamingResponse, + AsyncVerifiedBotsResourceWithStreamingResponse, +) from .traffic_anomalies import ( + TrafficAnomaliesResource, + AsyncTrafficAnomaliesResource, TrafficAnomaliesResourceWithRawResponse, AsyncTrafficAnomaliesResourceWithRawResponse, TrafficAnomaliesResourceWithStreamingResponse, AsyncTrafficAnomaliesResourceWithStreamingResponse, ) -from .tcp_resets_timeouts import TCPResetsTimeoutsResource, AsyncTCPResetsTimeoutsResource from .tcp_resets_timeouts import ( + TCPResetsTimeoutsResource, + AsyncTCPResetsTimeoutsResource, TCPResetsTimeoutsResourceWithRawResponse, AsyncTCPResetsTimeoutsResourceWithRawResponse, TCPResetsTimeoutsResourceWithStreamingResponse, AsyncTCPResetsTimeoutsResourceWithStreamingResponse, ) -from .robots_txt import RobotsTXTResource, AsyncRobotsTXTResource -from .robots_txt import ( - RobotsTXTResourceWithRawResponse, - AsyncRobotsTXTResourceWithRawResponse, - RobotsTXTResourceWithStreamingResponse, - AsyncRobotsTXTResourceWithStreamingResponse, -) -from .radar import RadarResource, AsyncRadarResource -from .radar import ( - RadarResourceWithRawResponse, - AsyncRadarResourceWithRawResponse, - RadarResourceWithStreamingResponse, - AsyncRadarResourceWithStreamingResponse, -) __all__ = [ "AIResource", @@ -237,12 +248,6 @@ __all__ = [ "AsyncTCPResetsTimeoutsResourceWithRawResponse", "TCPResetsTimeoutsResourceWithStreamingResponse", "AsyncTCPResetsTimeoutsResourceWithStreamingResponse", - "RobotsTXTResource", - "AsyncRobotsTXTResource", - "RobotsTXTResourceWithRawResponse", - "AsyncRobotsTXTResourceWithRawResponse", - "RobotsTXTResourceWithStreamingResponse", - "AsyncRobotsTXTResourceWithStreamingResponse", "RadarResource", "AsyncRadarResource", "RadarResourceWithRawResponse", diff --git a/src/cloudflare/resources/radar/ai/__init__.py b/src/cloudflare/resources/radar/ai/__init__.py index 3406edd1b..56e25507f 100755 --- a/src/cloudflare/resources/radar/ai/__init__.py +++ b/src/cloudflare/resources/radar/ai/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .gateway import GatewayResource, AsyncGatewayResource -from .gateway import ( - GatewayResourceWithRawResponse, - AsyncGatewayResourceWithRawResponse, - GatewayResourceWithStreamingResponse, - AsyncGatewayResourceWithStreamingResponse, -) -from .ai import AIResource, AsyncAIResource from .ai import ( + AIResource, + AsyncAIResource, AIResourceWithRawResponse, AsyncAIResourceWithRawResponse, AIResourceWithStreamingResponse, AsyncAIResourceWithStreamingResponse, ) +from .gateway import ( + GatewayResource, + AsyncGatewayResource, + GatewayResourceWithRawResponse, + AsyncGatewayResourceWithRawResponse, + GatewayResourceWithStreamingResponse, + AsyncGatewayResourceWithStreamingResponse, +) __all__ = [ "GatewayResource", diff --git a/src/cloudflare/resources/radar/ai/ai.py b/src/cloudflare/resources/radar/ai/ai.py index d32b9b3ec..405df107d 100755 --- a/src/cloudflare/resources/radar/ai/ai.py +++ b/src/cloudflare/resources/radar/ai/ai.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .gateway.gateway import GatewayResource, AsyncGatewayResource - -from ...._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params from .gateway import ( GatewayResource, AsyncGatewayResource, @@ -21,6 +10,9 @@ from .gateway import ( GatewayResourceWithStreamingResponse, AsyncGatewayResourceWithStreamingResponse, ) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from .gateway.gateway import GatewayResource, AsyncGatewayResource __all__ = ["AIResource", "AsyncAIResource"] diff --git a/src/cloudflare/resources/radar/ai/gateway/__init__.py b/src/cloudflare/resources/radar/ai/gateway/__init__.py index 78340f7d3..b442e30f2 100755 --- a/src/cloudflare/resources/radar/ai/gateway/__init__.py +++ b/src/cloudflare/resources/radar/ai/gateway/__init__.py @@ -1,26 +1,29 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .summary import SummaryResource, AsyncSummaryResource +from .gateway import ( + GatewayResource, + AsyncGatewayResource, + GatewayResourceWithRawResponse, + AsyncGatewayResourceWithRawResponse, + GatewayResourceWithStreamingResponse, + AsyncGatewayResourceWithStreamingResponse, +) from .summary import ( + SummaryResource, + AsyncSummaryResource, SummaryResourceWithRawResponse, AsyncSummaryResourceWithRawResponse, SummaryResourceWithStreamingResponse, AsyncSummaryResourceWithStreamingResponse, ) -from .timeseries_groups import TimeseriesGroupsResource, AsyncTimeseriesGroupsResource from .timeseries_groups import ( + TimeseriesGroupsResource, + AsyncTimeseriesGroupsResource, TimeseriesGroupsResourceWithRawResponse, AsyncTimeseriesGroupsResourceWithRawResponse, TimeseriesGroupsResourceWithStreamingResponse, AsyncTimeseriesGroupsResourceWithStreamingResponse, ) -from .gateway import GatewayResource, AsyncGatewayResource -from .gateway import ( - GatewayResourceWithRawResponse, - AsyncGatewayResourceWithRawResponse, - GatewayResourceWithStreamingResponse, - AsyncGatewayResourceWithStreamingResponse, -) __all__ = [ "SummaryResource", diff --git a/src/cloudflare/resources/radar/ai/gateway/gateway.py b/src/cloudflare/resources/radar/ai/gateway/gateway.py index 6cfdd4189..550d9bac4 100755 --- a/src/cloudflare/resources/radar/ai/gateway/gateway.py +++ b/src/cloudflare/resources/radar/ai/gateway/gateway.py @@ -2,19 +2,6 @@ from __future__ import annotations -from .summary import SummaryResource, AsyncSummaryResource - -from ....._compat import cached_property - -from .timeseries_groups import TimeseriesGroupsResource, AsyncTimeseriesGroupsResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params from .summary import ( SummaryResource, AsyncSummaryResource, @@ -23,6 +10,8 @@ from .summary import ( SummaryResourceWithStreamingResponse, AsyncSummaryResourceWithStreamingResponse, ) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource from .timeseries_groups import ( TimeseriesGroupsResource, AsyncTimeseriesGroupsResource, diff --git a/src/cloudflare/resources/radar/ai/gateway/summary.py b/src/cloudflare/resources/radar/ai/gateway/summary.py index 52ff930df..5de0789e9 100755 --- a/src/cloudflare/resources/radar/ai/gateway/summary.py +++ b/src/cloudflare/resources/radar/ai/gateway/summary.py @@ -2,51 +2,31 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.ai.gateway.summary_model_response import SummaryModelResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from datetime import datetime - -from typing_extensions import Literal - -from .....types.radar.ai.gateway.summary_provider_response import SummaryProviderResponse - -from .....types.radar.ai.gateway.summary_task_response import SummaryTaskResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.radar.ai.gateway import summary_model_params -from .....types.radar.ai.gateway import summary_provider_params -from .....types.radar.ai.gateway import summary_task_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.radar.ai.gateway import summary_task_params, summary_model_params, summary_provider_params +from .....types.radar.ai.gateway.summary_task_response import SummaryTaskResponse +from .....types.radar.ai.gateway.summary_model_response import SummaryModelResponse +from .....types.radar.ai.gateway.summary_provider_response import SummaryProviderResponse __all__ = ["SummaryResource", "AsyncSummaryResource"] diff --git a/src/cloudflare/resources/radar/ai/gateway/timeseries_groups.py b/src/cloudflare/resources/radar/ai/gateway/timeseries_groups.py index 6e9fd224d..19250d48f 100755 --- a/src/cloudflare/resources/radar/ai/gateway/timeseries_groups.py +++ b/src/cloudflare/resources/radar/ai/gateway/timeseries_groups.py @@ -2,51 +2,35 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.ai.gateway.timeseries_group_model_response import TimeseriesGroupModelResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - -from .....types.radar.ai.gateway.timeseries_group_provider_response import TimeseriesGroupProviderResponse - -from .....types.radar.ai.gateway.timeseries_group_task_response import TimeseriesGroupTaskResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.radar.ai.gateway import timeseries_group_model_params -from .....types.radar.ai.gateway import timeseries_group_provider_params -from .....types.radar.ai.gateway import timeseries_group_task_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.radar.ai.gateway import ( + timeseries_group_task_params, + timeseries_group_model_params, + timeseries_group_provider_params, +) +from .....types.radar.ai.gateway.timeseries_group_task_response import TimeseriesGroupTaskResponse +from .....types.radar.ai.gateway.timeseries_group_model_response import TimeseriesGroupModelResponse +from .....types.radar.ai.gateway.timeseries_group_provider_response import TimeseriesGroupProviderResponse __all__ = ["TimeseriesGroupsResource", "AsyncTimeseriesGroupsResource"] diff --git a/src/cloudflare/resources/radar/annotations/__init__.py b/src/cloudflare/resources/radar/annotations/__init__.py index 05ded0fbc..0a951a89c 100644 --- a/src/cloudflare/resources/radar/annotations/__init__.py +++ b/src/cloudflare/resources/radar/annotations/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .outages import OutagesResource, AsyncOutagesResource from .outages import ( + OutagesResource, + AsyncOutagesResource, OutagesResourceWithRawResponse, AsyncOutagesResourceWithRawResponse, OutagesResourceWithStreamingResponse, AsyncOutagesResourceWithStreamingResponse, ) -from .annotations import AnnotationsResource, AsyncAnnotationsResource from .annotations import ( + AnnotationsResource, + AsyncAnnotationsResource, AnnotationsResourceWithRawResponse, AsyncAnnotationsResourceWithRawResponse, AnnotationsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/radar/annotations/annotations.py b/src/cloudflare/resources/radar/annotations/annotations.py index 449fd6098..4200356b1 100644 --- a/src/cloudflare/resources/radar/annotations/annotations.py +++ b/src/cloudflare/resources/radar/annotations/annotations.py @@ -2,41 +2,12 @@ from __future__ import annotations +from typing import Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx -from .outages import OutagesResource, AsyncOutagesResource - -from ...._compat import cached_property - -from ....types.radar.annotation_list_response import AnnotationListResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, Union - -from datetime import datetime - -from typing_extensions import Literal - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.radar import annotation_list_params from .outages import ( OutagesResource, AsyncOutagesResource, @@ -45,8 +16,23 @@ from .outages import ( OutagesResourceWithStreamingResponse, AsyncOutagesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....types.radar import annotation_list_params +from ...._base_client import make_request_options +from ....types.radar.annotation_list_response import AnnotationListResponse __all__ = ["AnnotationsResource", "AsyncAnnotationsResource"] diff --git a/src/cloudflare/resources/radar/annotations/outages.py b/src/cloudflare/resources/radar/annotations/outages.py index 2587b147f..12344d7d8 100644 --- a/src/cloudflare/resources/radar/annotations/outages.py +++ b/src/cloudflare/resources/radar/annotations/outages.py @@ -2,46 +2,30 @@ from __future__ import annotations +from typing import Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.radar.annotations.outage_get_response import OutageGetResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, Union - -from datetime import datetime - -from typing_extensions import Literal - -from ....types.radar.annotations.outage_locations_response import OutageLocationsResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.radar.annotations import outage_get_params -from ....types.radar.annotations import outage_locations_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.radar.annotations import outage_get_params, outage_locations_params +from ....types.radar.annotations.outage_get_response import OutageGetResponse +from ....types.radar.annotations.outage_locations_response import OutageLocationsResponse __all__ = ["OutagesResource", "AsyncOutagesResource"] diff --git a/src/cloudflare/resources/radar/as112/__init__.py b/src/cloudflare/resources/radar/as112/__init__.py index 72fdbc486..66f43b9e6 100644 --- a/src/cloudflare/resources/radar/as112/__init__.py +++ b/src/cloudflare/resources/radar/as112/__init__.py @@ -1,33 +1,37 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .summary import SummaryResource, AsyncSummaryResource -from .summary import ( - SummaryResourceWithRawResponse, - AsyncSummaryResourceWithRawResponse, - SummaryResourceWithStreamingResponse, - AsyncSummaryResourceWithStreamingResponse, -) -from .timeseries_groups import TimeseriesGroupsResource, AsyncTimeseriesGroupsResource -from .timeseries_groups import ( - TimeseriesGroupsResourceWithRawResponse, - AsyncTimeseriesGroupsResourceWithRawResponse, - TimeseriesGroupsResourceWithStreamingResponse, - AsyncTimeseriesGroupsResourceWithStreamingResponse, -) -from .top import TopResource, AsyncTopResource from .top import ( + TopResource, + AsyncTopResource, TopResourceWithRawResponse, AsyncTopResourceWithRawResponse, TopResourceWithStreamingResponse, AsyncTopResourceWithStreamingResponse, ) -from .as112 import AS112Resource, AsyncAS112Resource from .as112 import ( + AS112Resource, + AsyncAS112Resource, AS112ResourceWithRawResponse, AsyncAS112ResourceWithRawResponse, AS112ResourceWithStreamingResponse, AsyncAS112ResourceWithStreamingResponse, ) +from .summary import ( + SummaryResource, + AsyncSummaryResource, + SummaryResourceWithRawResponse, + AsyncSummaryResourceWithRawResponse, + SummaryResourceWithStreamingResponse, + AsyncSummaryResourceWithStreamingResponse, +) +from .timeseries_groups import ( + TimeseriesGroupsResource, + AsyncTimeseriesGroupsResource, + TimeseriesGroupsResourceWithRawResponse, + AsyncTimeseriesGroupsResourceWithRawResponse, + TimeseriesGroupsResourceWithStreamingResponse, + AsyncTimeseriesGroupsResourceWithStreamingResponse, +) __all__ = [ "SummaryResource", diff --git a/src/cloudflare/resources/radar/as112/as112.py b/src/cloudflare/resources/radar/as112/as112.py index f128a120a..bdd295c24 100644 --- a/src/cloudflare/resources/radar/as112/as112.py +++ b/src/cloudflare/resources/radar/as112/as112.py @@ -2,61 +2,12 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx -from .summary import SummaryResource, AsyncSummaryResource - -from ...._compat import cached_property - -from .timeseries_groups import TimeseriesGroupsResource, AsyncTimeseriesGroupsResource - -from .top import TopResource, AsyncTopResource - -from ....types.radar.as112_timeseries_response import AS112TimeseriesResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.radar import as112_timeseries_params -from .summary import ( - SummaryResource, - AsyncSummaryResource, - SummaryResourceWithRawResponse, - AsyncSummaryResourceWithRawResponse, - SummaryResourceWithStreamingResponse, - AsyncSummaryResourceWithStreamingResponse, -) -from .timeseries_groups import ( - TimeseriesGroupsResource, - AsyncTimeseriesGroupsResource, - TimeseriesGroupsResourceWithRawResponse, - AsyncTimeseriesGroupsResourceWithRawResponse, - TimeseriesGroupsResourceWithStreamingResponse, - AsyncTimeseriesGroupsResourceWithStreamingResponse, -) from .top import ( TopResource, AsyncTopResource, @@ -65,8 +16,39 @@ from .top import ( TopResourceWithStreamingResponse, AsyncTopResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from .summary import ( + SummaryResource, + AsyncSummaryResource, + SummaryResourceWithRawResponse, + AsyncSummaryResourceWithRawResponse, + SummaryResourceWithStreamingResponse, + AsyncSummaryResourceWithStreamingResponse, +) +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....types.radar import as112_timeseries_params +from ...._base_client import make_request_options +from .timeseries_groups import ( + TimeseriesGroupsResource, + AsyncTimeseriesGroupsResource, + TimeseriesGroupsResourceWithRawResponse, + AsyncTimeseriesGroupsResourceWithRawResponse, + TimeseriesGroupsResourceWithStreamingResponse, + AsyncTimeseriesGroupsResourceWithStreamingResponse, +) +from ....types.radar.as112_timeseries_response import AS112TimeseriesResponse __all__ = ["AS112Resource", "AsyncAS112Resource"] diff --git a/src/cloudflare/resources/radar/as112/summary.py b/src/cloudflare/resources/radar/as112/summary.py index 809aa94a2..2e695cbfd 100644 --- a/src/cloudflare/resources/radar/as112/summary.py +++ b/src/cloudflare/resources/radar/as112/summary.py @@ -2,66 +2,41 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.radar.as112.summary_dnssec_response import SummaryDNSSECResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, List, Union - -from datetime import datetime - -from typing_extensions import Literal - -from ....types.radar.as112.summary_edns_response import SummaryEdnsResponse - -from ....types.radar.as112.summary_ip_version_response import SummaryIPVersionResponse - -from ....types.radar.as112.summary_protocol_response import SummaryProtocolResponse - -from ....types.radar.as112.summary_query_type_response import SummaryQueryTypeResponse - -from ....types.radar.as112.summary_response_codes_response import SummaryResponseCodesResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.radar.as112 import summary_dnssec_params -from ....types.radar.as112 import summary_edns_params -from ....types.radar.as112 import summary_ip_version_params -from ....types.radar.as112 import summary_protocol_params -from ....types.radar.as112 import summary_query_type_params -from ....types.radar.as112 import summary_response_codes_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.radar.as112 import ( + summary_edns_params, + summary_dnssec_params, + summary_protocol_params, + summary_ip_version_params, + summary_query_type_params, + summary_response_codes_params, +) +from ....types.radar.as112.summary_edns_response import SummaryEdnsResponse +from ....types.radar.as112.summary_dnssec_response import SummaryDNSSECResponse +from ....types.radar.as112.summary_protocol_response import SummaryProtocolResponse +from ....types.radar.as112.summary_ip_version_response import SummaryIPVersionResponse +from ....types.radar.as112.summary_query_type_response import SummaryQueryTypeResponse +from ....types.radar.as112.summary_response_codes_response import SummaryResponseCodesResponse __all__ = ["SummaryResource", "AsyncSummaryResource"] diff --git a/src/cloudflare/resources/radar/as112/timeseries_groups.py b/src/cloudflare/resources/radar/as112/timeseries_groups.py index 3d09875e6..2b654a4a7 100644 --- a/src/cloudflare/resources/radar/as112/timeseries_groups.py +++ b/src/cloudflare/resources/radar/as112/timeseries_groups.py @@ -2,66 +2,41 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.radar.as112.timeseries_group_dnssec_response import TimeseriesGroupDNSSECResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - -from ....types.radar.as112.timeseries_group_edns_response import TimeseriesGroupEdnsResponse - -from ....types.radar.as112.timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse - -from ....types.radar.as112.timeseries_group_protocol_response import TimeseriesGroupProtocolResponse - -from ....types.radar.as112.timeseries_group_query_type_response import TimeseriesGroupQueryTypeResponse - -from ....types.radar.as112.timeseries_group_response_codes_response import TimeseriesGroupResponseCodesResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.radar.as112 import timeseries_group_dnssec_params -from ....types.radar.as112 import timeseries_group_edns_params -from ....types.radar.as112 import timeseries_group_ip_version_params -from ....types.radar.as112 import timeseries_group_protocol_params -from ....types.radar.as112 import timeseries_group_query_type_params -from ....types.radar.as112 import timeseries_group_response_codes_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.radar.as112 import ( + timeseries_group_edns_params, + timeseries_group_dnssec_params, + timeseries_group_protocol_params, + timeseries_group_ip_version_params, + timeseries_group_query_type_params, + timeseries_group_response_codes_params, +) +from ....types.radar.as112.timeseries_group_edns_response import TimeseriesGroupEdnsResponse +from ....types.radar.as112.timeseries_group_dnssec_response import TimeseriesGroupDNSSECResponse +from ....types.radar.as112.timeseries_group_protocol_response import TimeseriesGroupProtocolResponse +from ....types.radar.as112.timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse +from ....types.radar.as112.timeseries_group_query_type_response import TimeseriesGroupQueryTypeResponse +from ....types.radar.as112.timeseries_group_response_codes_response import TimeseriesGroupResponseCodesResponse __all__ = ["TimeseriesGroupsResource", "AsyncTimeseriesGroupsResource"] diff --git a/src/cloudflare/resources/radar/as112/top.py b/src/cloudflare/resources/radar/as112/top.py index 187e6890b..851524341 100644 --- a/src/cloudflare/resources/radar/as112/top.py +++ b/src/cloudflare/resources/radar/as112/top.py @@ -2,56 +2,32 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.radar.as112.top_dnssec_response import TopDNSSECResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - -from ....types.radar.as112.top_edns_response import TopEdnsResponse - -from ....types.radar.as112.top_ip_version_response import TopIPVersionResponse - -from ....types.radar.as112.top_locations_response import TopLocationsResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.radar.as112 import top_dnssec_params -from ....types.radar.as112 import top_edns_params -from ....types.radar.as112 import top_ip_version_params -from ....types.radar.as112 import top_locations_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.radar.as112 import top_edns_params, top_dnssec_params, top_locations_params, top_ip_version_params +from ....types.radar.as112.top_edns_response import TopEdnsResponse +from ....types.radar.as112.top_dnssec_response import TopDNSSECResponse +from ....types.radar.as112.top_locations_response import TopLocationsResponse +from ....types.radar.as112.top_ip_version_response import TopIPVersionResponse __all__ = ["TopResource", "AsyncTopResource"] diff --git a/src/cloudflare/resources/radar/attacks/__init__.py b/src/cloudflare/resources/radar/attacks/__init__.py index f46e62346..4137d7f15 100644 --- a/src/cloudflare/resources/radar/attacks/__init__.py +++ b/src/cloudflare/resources/radar/attacks/__init__.py @@ -1,21 +1,24 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .layer3 import Layer3Resource, AsyncLayer3Resource from .layer3 import ( + Layer3Resource, + AsyncLayer3Resource, Layer3ResourceWithRawResponse, AsyncLayer3ResourceWithRawResponse, Layer3ResourceWithStreamingResponse, AsyncLayer3ResourceWithStreamingResponse, ) -from .layer7 import Layer7Resource, AsyncLayer7Resource from .layer7 import ( + Layer7Resource, + AsyncLayer7Resource, Layer7ResourceWithRawResponse, AsyncLayer7ResourceWithRawResponse, Layer7ResourceWithStreamingResponse, AsyncLayer7ResourceWithStreamingResponse, ) -from .attacks import AttacksResource, AsyncAttacksResource from .attacks import ( + AttacksResource, + AsyncAttacksResource, AttacksResourceWithRawResponse, AsyncAttacksResourceWithRawResponse, AttacksResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/radar/attacks/attacks.py b/src/cloudflare/resources/radar/attacks/attacks.py index 2d62efb71..7e3c8daa7 100644 --- a/src/cloudflare/resources/radar/attacks/attacks.py +++ b/src/cloudflare/resources/radar/attacks/attacks.py @@ -2,19 +2,6 @@ from __future__ import annotations -from .layer3.layer3 import Layer3Resource, AsyncLayer3Resource - -from ...._compat import cached_property - -from .layer7.layer7 import Layer7Resource, AsyncLayer7Resource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params from .layer3 import ( Layer3Resource, AsyncLayer3Resource, @@ -31,6 +18,10 @@ from .layer7 import ( Layer7ResourceWithStreamingResponse, AsyncLayer7ResourceWithStreamingResponse, ) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from .layer3.layer3 import Layer3Resource, AsyncLayer3Resource +from .layer7.layer7 import Layer7Resource, AsyncLayer7Resource __all__ = ["AttacksResource", "AsyncAttacksResource"] diff --git a/src/cloudflare/resources/radar/attacks/layer3/__init__.py b/src/cloudflare/resources/radar/attacks/layer3/__init__.py index 2bbcc5bbd..833984a81 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/__init__.py +++ b/src/cloudflare/resources/radar/attacks/layer3/__init__.py @@ -1,33 +1,37 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .summary import SummaryResource, AsyncSummaryResource -from .summary import ( - SummaryResourceWithRawResponse, - AsyncSummaryResourceWithRawResponse, - SummaryResourceWithStreamingResponse, - AsyncSummaryResourceWithStreamingResponse, -) -from .timeseries_groups import TimeseriesGroupsResource, AsyncTimeseriesGroupsResource -from .timeseries_groups import ( - TimeseriesGroupsResourceWithRawResponse, - AsyncTimeseriesGroupsResourceWithRawResponse, - TimeseriesGroupsResourceWithStreamingResponse, - AsyncTimeseriesGroupsResourceWithStreamingResponse, -) -from .top import TopResource, AsyncTopResource from .top import ( + TopResource, + AsyncTopResource, TopResourceWithRawResponse, AsyncTopResourceWithRawResponse, TopResourceWithStreamingResponse, AsyncTopResourceWithStreamingResponse, ) -from .layer3 import Layer3Resource, AsyncLayer3Resource from .layer3 import ( + Layer3Resource, + AsyncLayer3Resource, Layer3ResourceWithRawResponse, AsyncLayer3ResourceWithRawResponse, Layer3ResourceWithStreamingResponse, AsyncLayer3ResourceWithStreamingResponse, ) +from .summary import ( + SummaryResource, + AsyncSummaryResource, + SummaryResourceWithRawResponse, + AsyncSummaryResourceWithRawResponse, + SummaryResourceWithStreamingResponse, + AsyncSummaryResourceWithStreamingResponse, +) +from .timeseries_groups import ( + TimeseriesGroupsResource, + AsyncTimeseriesGroupsResource, + TimeseriesGroupsResourceWithRawResponse, + AsyncTimeseriesGroupsResourceWithRawResponse, + TimeseriesGroupsResourceWithStreamingResponse, + AsyncTimeseriesGroupsResourceWithStreamingResponse, +) __all__ = [ "SummaryResource", diff --git a/src/cloudflare/resources/radar/attacks/layer3/layer3.py b/src/cloudflare/resources/radar/attacks/layer3/layer3.py index 7c5fe0852..40608aa92 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/layer3.py +++ b/src/cloudflare/resources/radar/attacks/layer3/layer3.py @@ -2,61 +2,12 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx -from .summary import SummaryResource, AsyncSummaryResource - -from ....._compat import cached_property - -from .timeseries_groups import TimeseriesGroupsResource, AsyncTimeseriesGroupsResource - -from .top.top import TopResource, AsyncTopResource - -from .....types.radar.attacks.layer3_timeseries_response import Layer3TimeseriesResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.radar.attacks import layer3_timeseries_params -from .summary import ( - SummaryResource, - AsyncSummaryResource, - SummaryResourceWithRawResponse, - AsyncSummaryResourceWithRawResponse, - SummaryResourceWithStreamingResponse, - AsyncSummaryResourceWithStreamingResponse, -) -from .timeseries_groups import ( - TimeseriesGroupsResource, - AsyncTimeseriesGroupsResource, - TimeseriesGroupsResourceWithRawResponse, - AsyncTimeseriesGroupsResourceWithRawResponse, - TimeseriesGroupsResourceWithStreamingResponse, - AsyncTimeseriesGroupsResourceWithStreamingResponse, -) from .top import ( TopResource, AsyncTopResource, @@ -65,8 +16,40 @@ from .top import ( TopResourceWithStreamingResponse, AsyncTopResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from .summary import ( + SummaryResource, + AsyncSummaryResource, + SummaryResourceWithRawResponse, + AsyncSummaryResourceWithRawResponse, + SummaryResourceWithStreamingResponse, + AsyncSummaryResourceWithStreamingResponse, +) +from .top.top import TopResource, AsyncTopResource +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .timeseries_groups import ( + TimeseriesGroupsResource, + AsyncTimeseriesGroupsResource, + TimeseriesGroupsResourceWithRawResponse, + AsyncTimeseriesGroupsResourceWithRawResponse, + TimeseriesGroupsResourceWithStreamingResponse, + AsyncTimeseriesGroupsResourceWithStreamingResponse, +) +from .....types.radar.attacks import layer3_timeseries_params +from .....types.radar.attacks.layer3_timeseries_response import Layer3TimeseriesResponse __all__ = ["Layer3Resource", "AsyncLayer3Resource"] diff --git a/src/cloudflare/resources/radar/attacks/layer3/summary.py b/src/cloudflare/resources/radar/attacks/layer3/summary.py index 35a376cb8..9f83b0a91 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/summary.py +++ b/src/cloudflare/resources/radar/attacks/layer3/summary.py @@ -2,66 +2,41 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.attacks.layer3.summary_bitrate_response import SummaryBitrateResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from datetime import datetime - -from typing_extensions import Literal - -from .....types.radar.attacks.layer3.summary_duration_response import SummaryDurationResponse - -from .....types.radar.attacks.layer3.summary_get_response import SummaryGetResponse - -from .....types.radar.attacks.layer3.summary_ip_version_response import SummaryIPVersionResponse - -from .....types.radar.attacks.layer3.summary_protocol_response import SummaryProtocolResponse - -from .....types.radar.attacks.layer3.summary_vector_response import SummaryVectorResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.radar.attacks.layer3 import summary_bitrate_params -from .....types.radar.attacks.layer3 import summary_duration_params -from .....types.radar.attacks.layer3 import summary_get_params -from .....types.radar.attacks.layer3 import summary_ip_version_params -from .....types.radar.attacks.layer3 import summary_protocol_params -from .....types.radar.attacks.layer3 import summary_vector_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.radar.attacks.layer3 import ( + summary_get_params, + summary_vector_params, + summary_bitrate_params, + summary_duration_params, + summary_protocol_params, + summary_ip_version_params, +) +from .....types.radar.attacks.layer3.summary_get_response import SummaryGetResponse +from .....types.radar.attacks.layer3.summary_vector_response import SummaryVectorResponse +from .....types.radar.attacks.layer3.summary_bitrate_response import SummaryBitrateResponse +from .....types.radar.attacks.layer3.summary_duration_response import SummaryDurationResponse +from .....types.radar.attacks.layer3.summary_protocol_response import SummaryProtocolResponse +from .....types.radar.attacks.layer3.summary_ip_version_response import SummaryIPVersionResponse __all__ = ["SummaryResource", "AsyncSummaryResource"] diff --git a/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups.py b/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups.py index 6ce62c662..353c8457d 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups.py +++ b/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups.py @@ -2,76 +2,45 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.attacks.layer3.timeseries_group_bitrate_response import TimeseriesGroupBitrateResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - -from .....types.radar.attacks.layer3.timeseries_group_duration_response import TimeseriesGroupDurationResponse - -from .....types.radar.attacks.layer3.timeseries_group_get_response import TimeseriesGroupGetResponse - -from .....types.radar.attacks.layer3.timeseries_group_industry_response import TimeseriesGroupIndustryResponse - -from .....types.radar.attacks.layer3.timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse - -from .....types.radar.attacks.layer3.timeseries_group_protocol_response import TimeseriesGroupProtocolResponse - -from .....types.radar.attacks.layer3.timeseries_group_vector_response import TimeseriesGroupVectorResponse - -from .....types.radar.attacks.layer3.timeseries_group_vertical_response import TimeseriesGroupVerticalResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.radar.attacks.layer3 import timeseries_group_bitrate_params -from .....types.radar.attacks.layer3 import timeseries_group_duration_params -from .....types.radar.attacks.layer3 import timeseries_group_get_params -from .....types.radar.attacks.layer3 import timeseries_group_industry_params -from .....types.radar.attacks.layer3 import timeseries_group_ip_version_params -from .....types.radar.attacks.layer3 import timeseries_group_protocol_params -from .....types.radar.attacks.layer3 import timeseries_group_vector_params -from .....types.radar.attacks.layer3 import timeseries_group_vertical_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.radar.attacks.layer3 import ( + timeseries_group_get_params, + timeseries_group_vector_params, + timeseries_group_bitrate_params, + timeseries_group_duration_params, + timeseries_group_industry_params, + timeseries_group_protocol_params, + timeseries_group_vertical_params, + timeseries_group_ip_version_params, +) +from .....types.radar.attacks.layer3.timeseries_group_get_response import TimeseriesGroupGetResponse +from .....types.radar.attacks.layer3.timeseries_group_vector_response import TimeseriesGroupVectorResponse +from .....types.radar.attacks.layer3.timeseries_group_bitrate_response import TimeseriesGroupBitrateResponse +from .....types.radar.attacks.layer3.timeseries_group_duration_response import TimeseriesGroupDurationResponse +from .....types.radar.attacks.layer3.timeseries_group_industry_response import TimeseriesGroupIndustryResponse +from .....types.radar.attacks.layer3.timeseries_group_protocol_response import TimeseriesGroupProtocolResponse +from .....types.radar.attacks.layer3.timeseries_group_vertical_response import TimeseriesGroupVerticalResponse +from .....types.radar.attacks.layer3.timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse __all__ = ["TimeseriesGroupsResource", "AsyncTimeseriesGroupsResource"] diff --git a/src/cloudflare/resources/radar/attacks/layer3/top/__init__.py b/src/cloudflare/resources/radar/attacks/layer3/top/__init__.py index d4ed6f35f..f95820bdd 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/top/__init__.py +++ b/src/cloudflare/resources/radar/attacks/layer3/top/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .locations import LocationsResource, AsyncLocationsResource -from .locations import ( - LocationsResourceWithRawResponse, - AsyncLocationsResourceWithRawResponse, - LocationsResourceWithStreamingResponse, - AsyncLocationsResourceWithStreamingResponse, -) -from .top import TopResource, AsyncTopResource from .top import ( + TopResource, + AsyncTopResource, TopResourceWithRawResponse, AsyncTopResourceWithRawResponse, TopResourceWithStreamingResponse, AsyncTopResourceWithStreamingResponse, ) +from .locations import ( + LocationsResource, + AsyncLocationsResource, + LocationsResourceWithRawResponse, + AsyncLocationsResourceWithRawResponse, + LocationsResourceWithStreamingResponse, + AsyncLocationsResourceWithStreamingResponse, +) __all__ = [ "LocationsResource", diff --git a/src/cloudflare/resources/radar/attacks/layer3/top/locations.py b/src/cloudflare/resources/radar/attacks/layer3/top/locations.py index a1758356a..fb70d8bcb 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/top/locations.py +++ b/src/cloudflare/resources/radar/attacks/layer3/top/locations.py @@ -2,46 +2,30 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ......_utils import ( + maybe_transform, + async_maybe_transform, +) from ......_compat import cached_property - -from ......types.radar.attacks.layer3.top.location_origin_response import LocationOriginResponse - -from ......_wrappers import ResultWrapper - -from ......_utils import maybe_transform, async_maybe_transform - -from ......_base_client import make_request_options - -from typing import Type, List, Union - -from datetime import datetime - -from typing_extensions import Literal - -from ......types.radar.attacks.layer3.top.location_target_response import LocationTargetResponse - +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......_resource import SyncAPIResource, AsyncAPIResource -from ......types import shared_params -from ......types.radar.attacks.layer3.top import location_origin_params -from ......types.radar.attacks.layer3.top import location_target_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ......_wrappers import ResultWrapper +from ......_base_client import make_request_options +from ......types.radar.attacks.layer3.top import location_origin_params, location_target_params +from ......types.radar.attacks.layer3.top.location_origin_response import LocationOriginResponse +from ......types.radar.attacks.layer3.top.location_target_response import LocationTargetResponse __all__ = ["LocationsResource", "AsyncLocationsResource"] diff --git a/src/cloudflare/resources/radar/attacks/layer3/top/top.py b/src/cloudflare/resources/radar/attacks/layer3/top/top.py index 34f046bdf..3e6817465 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/top/top.py +++ b/src/cloudflare/resources/radar/attacks/layer3/top/top.py @@ -2,47 +2,12 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx -from .locations import LocationsResource, AsyncLocationsResource - -from ......_compat import cached_property - -from ......types.radar.attacks.layer3.top_attacks_response import TopAttacksResponse - -from ......_wrappers import ResultWrapper - -from ......_utils import maybe_transform, async_maybe_transform - -from ......_base_client import make_request_options - -from typing import Type, List, Union - -from datetime import datetime - -from typing_extensions import Literal - -from ......types.radar.attacks.layer3.top_industry_response import TopIndustryResponse - -from ......types.radar.attacks.layer3.top_vertical_response import TopVerticalResponse - -from ......_response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......_resource import SyncAPIResource, AsyncAPIResource -from ......types import shared_params -from ......types.radar.attacks.layer3 import top_attacks_params -from ......types.radar.attacks.layer3 import top_industry_params -from ......types.radar.attacks.layer3 import top_vertical_params from .locations import ( LocationsResource, AsyncLocationsResource, @@ -51,12 +16,25 @@ from .locations import ( LocationsResourceWithStreamingResponse, AsyncLocationsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ......_utils import ( + maybe_transform, + async_maybe_transform, +) +from ......_compat import cached_property +from ......_resource import SyncAPIResource, AsyncAPIResource +from ......_response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ......_wrappers import ResultWrapper +from ......_base_client import make_request_options +from ......types.radar.attacks.layer3 import top_attacks_params, top_industry_params, top_vertical_params +from ......types.radar.attacks.layer3.top_attacks_response import TopAttacksResponse +from ......types.radar.attacks.layer3.top_industry_response import TopIndustryResponse +from ......types.radar.attacks.layer3.top_vertical_response import TopVerticalResponse __all__ = ["TopResource", "AsyncTopResource"] diff --git a/src/cloudflare/resources/radar/attacks/layer7/__init__.py b/src/cloudflare/resources/radar/attacks/layer7/__init__.py index 1d435efc8..fad86e433 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/__init__.py +++ b/src/cloudflare/resources/radar/attacks/layer7/__init__.py @@ -1,33 +1,37 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .summary import SummaryResource, AsyncSummaryResource -from .summary import ( - SummaryResourceWithRawResponse, - AsyncSummaryResourceWithRawResponse, - SummaryResourceWithStreamingResponse, - AsyncSummaryResourceWithStreamingResponse, -) -from .timeseries_groups import TimeseriesGroupsResource, AsyncTimeseriesGroupsResource -from .timeseries_groups import ( - TimeseriesGroupsResourceWithRawResponse, - AsyncTimeseriesGroupsResourceWithRawResponse, - TimeseriesGroupsResourceWithStreamingResponse, - AsyncTimeseriesGroupsResourceWithStreamingResponse, -) -from .top import TopResource, AsyncTopResource from .top import ( + TopResource, + AsyncTopResource, TopResourceWithRawResponse, AsyncTopResourceWithRawResponse, TopResourceWithStreamingResponse, AsyncTopResourceWithStreamingResponse, ) -from .layer7 import Layer7Resource, AsyncLayer7Resource from .layer7 import ( + Layer7Resource, + AsyncLayer7Resource, Layer7ResourceWithRawResponse, AsyncLayer7ResourceWithRawResponse, Layer7ResourceWithStreamingResponse, AsyncLayer7ResourceWithStreamingResponse, ) +from .summary import ( + SummaryResource, + AsyncSummaryResource, + SummaryResourceWithRawResponse, + AsyncSummaryResourceWithRawResponse, + SummaryResourceWithStreamingResponse, + AsyncSummaryResourceWithStreamingResponse, +) +from .timeseries_groups import ( + TimeseriesGroupsResource, + AsyncTimeseriesGroupsResource, + TimeseriesGroupsResourceWithRawResponse, + AsyncTimeseriesGroupsResourceWithRawResponse, + TimeseriesGroupsResourceWithStreamingResponse, + AsyncTimeseriesGroupsResourceWithStreamingResponse, +) __all__ = [ "SummaryResource", diff --git a/src/cloudflare/resources/radar/attacks/layer7/layer7.py b/src/cloudflare/resources/radar/attacks/layer7/layer7.py index b519beaee..3677d19f3 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/layer7.py +++ b/src/cloudflare/resources/radar/attacks/layer7/layer7.py @@ -2,61 +2,12 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx -from .summary import SummaryResource, AsyncSummaryResource - -from ....._compat import cached_property - -from .timeseries_groups import TimeseriesGroupsResource, AsyncTimeseriesGroupsResource - -from .top.top import TopResource, AsyncTopResource - -from .....types.radar.attacks.layer7_timeseries_response import Layer7TimeseriesResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.radar.attacks import layer7_timeseries_params -from .summary import ( - SummaryResource, - AsyncSummaryResource, - SummaryResourceWithRawResponse, - AsyncSummaryResourceWithRawResponse, - SummaryResourceWithStreamingResponse, - AsyncSummaryResourceWithStreamingResponse, -) -from .timeseries_groups import ( - TimeseriesGroupsResource, - AsyncTimeseriesGroupsResource, - TimeseriesGroupsResourceWithRawResponse, - AsyncTimeseriesGroupsResourceWithRawResponse, - TimeseriesGroupsResourceWithStreamingResponse, - AsyncTimeseriesGroupsResourceWithStreamingResponse, -) from .top import ( TopResource, AsyncTopResource, @@ -65,8 +16,40 @@ from .top import ( TopResourceWithStreamingResponse, AsyncTopResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from .summary import ( + SummaryResource, + AsyncSummaryResource, + SummaryResourceWithRawResponse, + AsyncSummaryResourceWithRawResponse, + SummaryResourceWithStreamingResponse, + AsyncSummaryResourceWithStreamingResponse, +) +from .top.top import TopResource, AsyncTopResource +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .timeseries_groups import ( + TimeseriesGroupsResource, + AsyncTimeseriesGroupsResource, + TimeseriesGroupsResourceWithRawResponse, + AsyncTimeseriesGroupsResourceWithRawResponse, + TimeseriesGroupsResourceWithStreamingResponse, + AsyncTimeseriesGroupsResourceWithStreamingResponse, +) +from .....types.radar.attacks import layer7_timeseries_params +from .....types.radar.attacks.layer7_timeseries_response import Layer7TimeseriesResponse __all__ = ["Layer7Resource", "AsyncLayer7Resource"] diff --git a/src/cloudflare/resources/radar/attacks/layer7/summary.py b/src/cloudflare/resources/radar/attacks/layer7/summary.py index 7087f091d..8eaccf847 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/summary.py +++ b/src/cloudflare/resources/radar/attacks/layer7/summary.py @@ -2,66 +2,41 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.attacks.layer7.summary_get_response import SummaryGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from datetime import datetime - -from typing_extensions import Literal - -from .....types.radar.attacks.layer7.summary_http_method_response import SummaryHTTPMethodResponse - -from .....types.radar.attacks.layer7.summary_http_version_response import SummaryHTTPVersionResponse - -from .....types.radar.attacks.layer7.summary_ip_version_response import SummaryIPVersionResponse - -from .....types.radar.attacks.layer7.summary_managed_rules_response import SummaryManagedRulesResponse - -from .....types.radar.attacks.layer7.summary_mitigation_product_response import SummaryMitigationProductResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.radar.attacks.layer7 import summary_get_params -from .....types.radar.attacks.layer7 import summary_http_method_params -from .....types.radar.attacks.layer7 import summary_http_version_params -from .....types.radar.attacks.layer7 import summary_ip_version_params -from .....types.radar.attacks.layer7 import summary_managed_rules_params -from .....types.radar.attacks.layer7 import summary_mitigation_product_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.radar.attacks.layer7 import ( + summary_get_params, + summary_ip_version_params, + summary_http_method_params, + summary_http_version_params, + summary_managed_rules_params, + summary_mitigation_product_params, +) +from .....types.radar.attacks.layer7.summary_get_response import SummaryGetResponse +from .....types.radar.attacks.layer7.summary_ip_version_response import SummaryIPVersionResponse +from .....types.radar.attacks.layer7.summary_http_method_response import SummaryHTTPMethodResponse +from .....types.radar.attacks.layer7.summary_http_version_response import SummaryHTTPVersionResponse +from .....types.radar.attacks.layer7.summary_managed_rules_response import SummaryManagedRulesResponse +from .....types.radar.attacks.layer7.summary_mitigation_product_response import SummaryMitigationProductResponse __all__ = ["SummaryResource", "AsyncSummaryResource"] diff --git a/src/cloudflare/resources/radar/attacks/layer7/timeseries_groups.py b/src/cloudflare/resources/radar/attacks/layer7/timeseries_groups.py index b3708c81b..47260ea2e 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/timeseries_groups.py +++ b/src/cloudflare/resources/radar/attacks/layer7/timeseries_groups.py @@ -2,79 +2,48 @@ from __future__ import annotations -import httpx - -from ....._compat import cached_property - -from .....types.radar.attacks.layer7.timeseries_group_get_response import TimeseriesGroupGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - +from typing import List, Type, Union, cast +from datetime import datetime from typing_extensions import Literal -from datetime import datetime - -from .....types.radar.attacks.layer7.timeseries_group_http_method_response import TimeseriesGroupHTTPMethodResponse - -from .....types.radar.attacks.layer7.timeseries_group_http_version_response import TimeseriesGroupHTTPVersionResponse +import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.radar.attacks.layer7 import ( + timeseries_group_get_params, + timeseries_group_industry_params, + timeseries_group_vertical_params, + timeseries_group_ip_version_params, + timeseries_group_http_method_params, + timeseries_group_http_version_params, + timeseries_group_managed_rules_params, + timeseries_group_mitigation_product_params, +) +from .....types.radar.attacks.layer7.timeseries_group_get_response import TimeseriesGroupGetResponse from .....types.radar.attacks.layer7.timeseries_group_industry_response import TimeseriesGroupIndustryResponse - +from .....types.radar.attacks.layer7.timeseries_group_vertical_response import TimeseriesGroupVerticalResponse from .....types.radar.attacks.layer7.timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse - +from .....types.radar.attacks.layer7.timeseries_group_http_method_response import TimeseriesGroupHTTPMethodResponse +from .....types.radar.attacks.layer7.timeseries_group_http_version_response import TimeseriesGroupHTTPVersionResponse from .....types.radar.attacks.layer7.timeseries_group_managed_rules_response import TimeseriesGroupManagedRulesResponse - from .....types.radar.attacks.layer7.timeseries_group_mitigation_product_response import ( TimeseriesGroupMitigationProductResponse, ) -from .....types.radar.attacks.layer7.timeseries_group_vertical_response import TimeseriesGroupVerticalResponse - -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.radar.attacks.layer7 import timeseries_group_get_params -from .....types.radar.attacks.layer7 import timeseries_group_http_method_params -from .....types.radar.attacks.layer7 import timeseries_group_http_version_params -from .....types.radar.attacks.layer7 import timeseries_group_industry_params -from .....types.radar.attacks.layer7 import timeseries_group_ip_version_params -from .....types.radar.attacks.layer7 import timeseries_group_managed_rules_params -from .....types.radar.attacks.layer7 import timeseries_group_mitigation_product_params -from .....types.radar.attacks.layer7 import timeseries_group_vertical_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast - __all__ = ["TimeseriesGroupsResource", "AsyncTimeseriesGroupsResource"] diff --git a/src/cloudflare/resources/radar/attacks/layer7/top/__init__.py b/src/cloudflare/resources/radar/attacks/layer7/top/__init__.py index fcbfe44b8..d890a7946 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/top/__init__.py +++ b/src/cloudflare/resources/radar/attacks/layer7/top/__init__.py @@ -1,25 +1,28 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .locations import LocationsResource, AsyncLocationsResource -from .locations import ( - LocationsResourceWithRawResponse, - AsyncLocationsResourceWithRawResponse, - LocationsResourceWithStreamingResponse, - AsyncLocationsResourceWithStreamingResponse, +from .top import ( + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) -from .ases import AsesResource, AsyncAsesResource from .ases import ( + AsesResource, + AsyncAsesResource, AsesResourceWithRawResponse, AsyncAsesResourceWithRawResponse, AsesResourceWithStreamingResponse, AsyncAsesResourceWithStreamingResponse, ) -from .top import TopResource, AsyncTopResource -from .top import ( - TopResourceWithRawResponse, - AsyncTopResourceWithRawResponse, - TopResourceWithStreamingResponse, - AsyncTopResourceWithStreamingResponse, +from .locations import ( + LocationsResource, + AsyncLocationsResource, + LocationsResourceWithRawResponse, + AsyncLocationsResourceWithRawResponse, + LocationsResourceWithStreamingResponse, + AsyncLocationsResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/radar/attacks/layer7/top/ases.py b/src/cloudflare/resources/radar/attacks/layer7/top/ases.py index 640885fbc..f43f40bd9 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/top/ases.py +++ b/src/cloudflare/resources/radar/attacks/layer7/top/ases.py @@ -2,41 +2,29 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ......_utils import ( + maybe_transform, + async_maybe_transform, +) from ......_compat import cached_property - -from ......types.radar.attacks.layer7.top.ase_origin_response import AseOriginResponse - -from ......_wrappers import ResultWrapper - -from ......_utils import maybe_transform, async_maybe_transform - -from ......_base_client import make_request_options - -from typing import Type, List, Union - -from datetime import datetime - -from typing_extensions import Literal - +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......_resource import SyncAPIResource, AsyncAPIResource -from ......types import shared_params +from ......_wrappers import ResultWrapper +from ......_base_client import make_request_options from ......types.radar.attacks.layer7.top import ase_origin_params -from typing import cast -from typing import cast +from ......types.radar.attacks.layer7.top.ase_origin_response import AseOriginResponse __all__ = ["AsesResource", "AsyncAsesResource"] diff --git a/src/cloudflare/resources/radar/attacks/layer7/top/locations.py b/src/cloudflare/resources/radar/attacks/layer7/top/locations.py index 3fbca231c..7a7f9f867 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/top/locations.py +++ b/src/cloudflare/resources/radar/attacks/layer7/top/locations.py @@ -2,46 +2,30 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ......_utils import ( + maybe_transform, + async_maybe_transform, +) from ......_compat import cached_property - -from ......types.radar.attacks.layer7.top.location_origin_response import LocationOriginResponse - -from ......_wrappers import ResultWrapper - -from ......_utils import maybe_transform, async_maybe_transform - -from ......_base_client import make_request_options - -from typing import Type, List, Union - -from datetime import datetime - -from typing_extensions import Literal - -from ......types.radar.attacks.layer7.top.location_target_response import LocationTargetResponse - +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......_resource import SyncAPIResource, AsyncAPIResource -from ......types import shared_params -from ......types.radar.attacks.layer7.top import location_origin_params -from ......types.radar.attacks.layer7.top import location_target_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ......_wrappers import ResultWrapper +from ......_base_client import make_request_options +from ......types.radar.attacks.layer7.top import location_origin_params, location_target_params +from ......types.radar.attacks.layer7.top.location_origin_response import LocationOriginResponse +from ......types.radar.attacks.layer7.top.location_target_response import LocationTargetResponse __all__ = ["LocationsResource", "AsyncLocationsResource"] diff --git a/src/cloudflare/resources/radar/attacks/layer7/top/top.py b/src/cloudflare/resources/radar/attacks/layer7/top/top.py index 60054860e..685caa45d 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/top/top.py +++ b/src/cloudflare/resources/radar/attacks/layer7/top/top.py @@ -2,57 +2,12 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx -from .locations import LocationsResource, AsyncLocationsResource - -from ......_compat import cached_property - -from .ases import AsesResource, AsyncAsesResource - -from ......types.radar.attacks.layer7.top_attacks_response import TopAttacksResponse - -from ......_wrappers import ResultWrapper - -from ......_utils import maybe_transform, async_maybe_transform - -from ......_base_client import make_request_options - -from typing import Type, List, Union - -from datetime import datetime - -from typing_extensions import Literal - -from ......types.radar.attacks.layer7.top_industry_response import TopIndustryResponse - -from ......types.radar.attacks.layer7.top_vertical_response import TopVerticalResponse - -from ......_response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......_resource import SyncAPIResource, AsyncAPIResource -from ......types import shared_params -from ......types.radar.attacks.layer7 import top_attacks_params -from ......types.radar.attacks.layer7 import top_industry_params -from ......types.radar.attacks.layer7 import top_vertical_params -from .locations import ( - LocationsResource, - AsyncLocationsResource, - LocationsResourceWithRawResponse, - AsyncLocationsResourceWithRawResponse, - LocationsResourceWithStreamingResponse, - AsyncLocationsResourceWithStreamingResponse, -) from .ases import ( AsesResource, AsyncAsesResource, @@ -61,12 +16,33 @@ from .ases import ( AsesResourceWithStreamingResponse, AsyncAsesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .locations import ( + LocationsResource, + AsyncLocationsResource, + LocationsResourceWithRawResponse, + AsyncLocationsResourceWithRawResponse, + LocationsResourceWithStreamingResponse, + AsyncLocationsResourceWithStreamingResponse, +) +from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ......_utils import ( + maybe_transform, + async_maybe_transform, +) +from ......_compat import cached_property +from ......_resource import SyncAPIResource, AsyncAPIResource +from ......_response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ......_wrappers import ResultWrapper +from ......_base_client import make_request_options +from ......types.radar.attacks.layer7 import top_attacks_params, top_industry_params, top_vertical_params +from ......types.radar.attacks.layer7.top_attacks_response import TopAttacksResponse +from ......types.radar.attacks.layer7.top_industry_response import TopIndustryResponse +from ......types.radar.attacks.layer7.top_vertical_response import TopVerticalResponse __all__ = ["TopResource", "AsyncTopResource"] diff --git a/src/cloudflare/resources/radar/bgp/__init__.py b/src/cloudflare/resources/radar/bgp/__init__.py index 8ee9dacb6..1e54970bf 100644 --- a/src/cloudflare/resources/radar/bgp/__init__.py +++ b/src/cloudflare/resources/radar/bgp/__init__.py @@ -1,46 +1,52 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .leaks import LeaksResource, AsyncLeaksResource -from .leaks import ( - LeaksResourceWithRawResponse, - AsyncLeaksResourceWithRawResponse, - LeaksResourceWithStreamingResponse, - AsyncLeaksResourceWithStreamingResponse, +from .bgp import ( + BGPResource, + AsyncBGPResource, + BGPResourceWithRawResponse, + AsyncBGPResourceWithRawResponse, + BGPResourceWithStreamingResponse, + AsyncBGPResourceWithStreamingResponse, ) -from .top import TopResource, AsyncTopResource -from .top import ( - TopResourceWithRawResponse, - AsyncTopResourceWithRawResponse, - TopResourceWithStreamingResponse, - AsyncTopResourceWithStreamingResponse, -) -from .hijacks import HijacksResource, AsyncHijacksResource -from .hijacks import ( - HijacksResourceWithRawResponse, - AsyncHijacksResourceWithRawResponse, - HijacksResourceWithStreamingResponse, - AsyncHijacksResourceWithStreamingResponse, -) -from .routes import RoutesResource, AsyncRoutesResource -from .routes import ( - RoutesResourceWithRawResponse, - AsyncRoutesResourceWithRawResponse, - RoutesResourceWithStreamingResponse, - AsyncRoutesResourceWithStreamingResponse, -) -from .ips import IPsResource, AsyncIPsResource from .ips import ( + IPsResource, + AsyncIPsResource, IPsResourceWithRawResponse, AsyncIPsResourceWithRawResponse, IPsResourceWithStreamingResponse, AsyncIPsResourceWithStreamingResponse, ) -from .bgp import BGPResource, AsyncBGPResource -from .bgp import ( - BGPResourceWithRawResponse, - AsyncBGPResourceWithRawResponse, - BGPResourceWithStreamingResponse, - AsyncBGPResourceWithStreamingResponse, +from .top import ( + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, +) +from .leaks import ( + LeaksResource, + AsyncLeaksResource, + LeaksResourceWithRawResponse, + AsyncLeaksResourceWithRawResponse, + LeaksResourceWithStreamingResponse, + AsyncLeaksResourceWithStreamingResponse, +) +from .routes import ( + RoutesResource, + AsyncRoutesResource, + RoutesResourceWithRawResponse, + AsyncRoutesResourceWithRawResponse, + RoutesResourceWithStreamingResponse, + AsyncRoutesResourceWithStreamingResponse, +) +from .hijacks import ( + HijacksResource, + AsyncHijacksResource, + HijacksResourceWithRawResponse, + AsyncHijacksResourceWithRawResponse, + HijacksResourceWithStreamingResponse, + AsyncHijacksResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/radar/bgp/bgp.py b/src/cloudflare/resources/radar/bgp/bgp.py index 83039d903..8af4ca10d 100644 --- a/src/cloudflare/resources/radar/bgp/bgp.py +++ b/src/cloudflare/resources/radar/bgp/bgp.py @@ -2,56 +2,19 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx -from .leaks.leaks import LeaksResource, AsyncLeaksResource - -from ...._compat import cached_property - -from .top.top import TopResource, AsyncTopResource - -from .hijacks.hijacks import HijacksResource, AsyncHijacksResource - -from .routes import RoutesResource, AsyncRoutesResource - -from .ips import IPsResource, AsyncIPsResource - -from ....types.radar.bgp_timeseries_response import BGPTimeseriesResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.radar import bgp_timeseries_params -from .leaks import ( - LeaksResource, - AsyncLeaksResource, - LeaksResourceWithRawResponse, - AsyncLeaksResourceWithRawResponse, - LeaksResourceWithStreamingResponse, - AsyncLeaksResourceWithStreamingResponse, +from .ips import ( + IPsResource, + AsyncIPsResource, + IPsResourceWithRawResponse, + AsyncIPsResourceWithRawResponse, + IPsResourceWithStreamingResponse, + AsyncIPsResourceWithStreamingResponse, ) from .top import ( TopResource, @@ -61,13 +24,13 @@ from .top import ( TopResourceWithStreamingResponse, AsyncTopResourceWithStreamingResponse, ) -from .hijacks import ( - HijacksResource, - AsyncHijacksResource, - HijacksResourceWithRawResponse, - AsyncHijacksResourceWithRawResponse, - HijacksResourceWithStreamingResponse, - AsyncHijacksResourceWithStreamingResponse, +from .leaks import ( + LeaksResource, + AsyncLeaksResource, + LeaksResourceWithRawResponse, + AsyncLeaksResourceWithRawResponse, + LeaksResourceWithStreamingResponse, + AsyncLeaksResourceWithStreamingResponse, ) from .routes import ( RoutesResource, @@ -77,16 +40,34 @@ from .routes import ( RoutesResourceWithStreamingResponse, AsyncRoutesResourceWithStreamingResponse, ) -from .ips import ( - IPsResource, - AsyncIPsResource, - IPsResourceWithRawResponse, - AsyncIPsResourceWithRawResponse, - IPsResourceWithStreamingResponse, - AsyncIPsResourceWithStreamingResponse, +from .hijacks import ( + HijacksResource, + AsyncHijacksResource, + HijacksResourceWithRawResponse, + AsyncHijacksResourceWithRawResponse, + HijacksResourceWithStreamingResponse, + AsyncHijacksResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from .top.top import TopResource, AsyncTopResource +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property +from .leaks.leaks import LeaksResource, AsyncLeaksResource +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....types.radar import bgp_timeseries_params +from ...._base_client import make_request_options +from .hijacks.hijacks import HijacksResource, AsyncHijacksResource +from ....types.radar.bgp_timeseries_response import BGPTimeseriesResponse __all__ = ["BGPResource", "AsyncBGPResource"] diff --git a/src/cloudflare/resources/radar/bgp/hijacks/__init__.py b/src/cloudflare/resources/radar/bgp/hijacks/__init__.py index f5d3025c5..f32bf80db 100644 --- a/src/cloudflare/resources/radar/bgp/hijacks/__init__.py +++ b/src/cloudflare/resources/radar/bgp/hijacks/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .events import EventsResource, AsyncEventsResource from .events import ( + EventsResource, + AsyncEventsResource, EventsResourceWithRawResponse, AsyncEventsResourceWithRawResponse, EventsResourceWithStreamingResponse, AsyncEventsResourceWithStreamingResponse, ) -from .hijacks import HijacksResource, AsyncHijacksResource from .hijacks import ( + HijacksResource, + AsyncHijacksResource, HijacksResourceWithRawResponse, AsyncHijacksResourceWithRawResponse, HijacksResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/radar/bgp/hijacks/events.py b/src/cloudflare/resources/radar/bgp/hijacks/events.py index a5b5b1e0d..14867a2ca 100644 --- a/src/cloudflare/resources/radar/bgp/hijacks/events.py +++ b/src/cloudflare/resources/radar/bgp/hijacks/events.py @@ -2,39 +2,26 @@ from __future__ import annotations +from typing import Union +from datetime import datetime +from typing_extensions import Literal + import httpx -from ....._compat import cached_property - -from .....types.radar.bgp.hijacks.event_list_response import EventListResponse - -from .....pagination import SyncV4PagePagination, AsyncV4PagePagination - +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._utils import maybe_transform - -from ....._base_client import make_request_options, AsyncPaginator - -from typing import Union - -from datetime import datetime - -from typing_extensions import Literal - +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from .....pagination import SyncV4PagePagination, AsyncV4PagePagination +from ....._base_client import AsyncPaginator, make_request_options from .....types.radar.bgp.hijacks import event_list_params +from .....types.radar.bgp.hijacks.event_list_response import EventListResponse __all__ = ["EventsResource", "AsyncEventsResource"] diff --git a/src/cloudflare/resources/radar/bgp/hijacks/hijacks.py b/src/cloudflare/resources/radar/bgp/hijacks/hijacks.py index 6fc157e98..70e14049d 100644 --- a/src/cloudflare/resources/radar/bgp/hijacks/hijacks.py +++ b/src/cloudflare/resources/radar/bgp/hijacks/hijacks.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .events import EventsResource, AsyncEventsResource - -from ....._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params from .events import ( EventsResource, AsyncEventsResource, @@ -21,6 +10,8 @@ from .events import ( EventsResourceWithStreamingResponse, AsyncEventsResourceWithStreamingResponse, ) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource __all__ = ["HijacksResource", "AsyncHijacksResource"] diff --git a/src/cloudflare/resources/radar/bgp/ips.py b/src/cloudflare/resources/radar/bgp/ips.py index cf5ba88f6..90a76e290 100644 --- a/src/cloudflare/resources/radar/bgp/ips.py +++ b/src/cloudflare/resources/radar/bgp/ips.py @@ -2,41 +2,29 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.radar.bgp.ip_timeseries_response import IPTimeseriesResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, List, Union - -from datetime import datetime - -from typing_extensions import Literal - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.radar.bgp import ip_timeseries_params -from typing import cast -from typing import cast +from ....types.radar.bgp.ip_timeseries_response import IPTimeseriesResponse __all__ = ["IPsResource", "AsyncIPsResource"] diff --git a/src/cloudflare/resources/radar/bgp/leaks/__init__.py b/src/cloudflare/resources/radar/bgp/leaks/__init__.py index 3938ebd00..7f63768a4 100644 --- a/src/cloudflare/resources/radar/bgp/leaks/__init__.py +++ b/src/cloudflare/resources/radar/bgp/leaks/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .events import EventsResource, AsyncEventsResource -from .events import ( - EventsResourceWithRawResponse, - AsyncEventsResourceWithRawResponse, - EventsResourceWithStreamingResponse, - AsyncEventsResourceWithStreamingResponse, -) -from .leaks import LeaksResource, AsyncLeaksResource from .leaks import ( + LeaksResource, + AsyncLeaksResource, LeaksResourceWithRawResponse, AsyncLeaksResourceWithRawResponse, LeaksResourceWithStreamingResponse, AsyncLeaksResourceWithStreamingResponse, ) +from .events import ( + EventsResource, + AsyncEventsResource, + EventsResourceWithRawResponse, + AsyncEventsResourceWithRawResponse, + EventsResourceWithStreamingResponse, + AsyncEventsResourceWithStreamingResponse, +) __all__ = [ "EventsResource", diff --git a/src/cloudflare/resources/radar/bgp/leaks/events.py b/src/cloudflare/resources/radar/bgp/leaks/events.py index 90b39f7bc..61b19dfeb 100644 --- a/src/cloudflare/resources/radar/bgp/leaks/events.py +++ b/src/cloudflare/resources/radar/bgp/leaks/events.py @@ -2,39 +2,26 @@ from __future__ import annotations +from typing import Union +from datetime import datetime +from typing_extensions import Literal + import httpx -from ....._compat import cached_property - -from .....types.radar.bgp.leaks.event_list_response import EventListResponse - -from .....pagination import SyncV4PagePagination, AsyncV4PagePagination - +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._utils import maybe_transform - -from ....._base_client import make_request_options, AsyncPaginator - -from typing import Union - -from datetime import datetime - -from typing_extensions import Literal - +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from .....pagination import SyncV4PagePagination, AsyncV4PagePagination +from ....._base_client import AsyncPaginator, make_request_options from .....types.radar.bgp.leaks import event_list_params +from .....types.radar.bgp.leaks.event_list_response import EventListResponse __all__ = ["EventsResource", "AsyncEventsResource"] diff --git a/src/cloudflare/resources/radar/bgp/leaks/leaks.py b/src/cloudflare/resources/radar/bgp/leaks/leaks.py index edeb0dbc9..6a0f9382b 100644 --- a/src/cloudflare/resources/radar/bgp/leaks/leaks.py +++ b/src/cloudflare/resources/radar/bgp/leaks/leaks.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .events import EventsResource, AsyncEventsResource - -from ....._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params from .events import ( EventsResource, AsyncEventsResource, @@ -21,6 +10,8 @@ from .events import ( EventsResourceWithStreamingResponse, AsyncEventsResourceWithStreamingResponse, ) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource __all__ = ["LeaksResource", "AsyncLeaksResource"] diff --git a/src/cloudflare/resources/radar/bgp/routes.py b/src/cloudflare/resources/radar/bgp/routes.py index 6726b20aa..7f16e5104 100644 --- a/src/cloudflare/resources/radar/bgp/routes.py +++ b/src/cloudflare/resources/radar/bgp/routes.py @@ -2,54 +2,31 @@ from __future__ import annotations +from typing import Type, cast +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.radar.bgp.route_ases_response import RouteAsesResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type - -from typing_extensions import Literal - -from ....types.radar.bgp.route_moas_response import RouteMoasResponse - -from ....types.radar.bgp.route_pfx2as_response import RoutePfx2asResponse - -from ....types.radar.bgp.route_stats_response import RouteStatsResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.radar.bgp import route_ases_params -from ....types.radar.bgp import route_moas_params -from ....types.radar.bgp import route_pfx2as_params -from ....types.radar.bgp import route_stats_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.radar.bgp import route_ases_params, route_moas_params, route_stats_params, route_pfx2as_params +from ....types.radar.bgp.route_ases_response import RouteAsesResponse +from ....types.radar.bgp.route_moas_response import RouteMoasResponse +from ....types.radar.bgp.route_stats_response import RouteStatsResponse +from ....types.radar.bgp.route_pfx2as_response import RoutePfx2asResponse __all__ = ["RoutesResource", "AsyncRoutesResource"] diff --git a/src/cloudflare/resources/radar/bgp/top/__init__.py b/src/cloudflare/resources/radar/bgp/top/__init__.py index 4739c37c1..4466a472d 100644 --- a/src/cloudflare/resources/radar/bgp/top/__init__.py +++ b/src/cloudflare/resources/radar/bgp/top/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .ases import AsesResource, AsyncAsesResource -from .ases import ( - AsesResourceWithRawResponse, - AsyncAsesResourceWithRawResponse, - AsesResourceWithStreamingResponse, - AsyncAsesResourceWithStreamingResponse, -) -from .top import TopResource, AsyncTopResource from .top import ( + TopResource, + AsyncTopResource, TopResourceWithRawResponse, AsyncTopResourceWithRawResponse, TopResourceWithStreamingResponse, AsyncTopResourceWithStreamingResponse, ) +from .ases import ( + AsesResource, + AsyncAsesResource, + AsesResourceWithRawResponse, + AsyncAsesResourceWithRawResponse, + AsesResourceWithStreamingResponse, + AsyncAsesResourceWithStreamingResponse, +) __all__ = [ "AsesResource", diff --git a/src/cloudflare/resources/radar/bgp/top/ases.py b/src/cloudflare/resources/radar/bgp/top/ases.py index 638f289bd..1cbac3b47 100644 --- a/src/cloudflare/resources/radar/bgp/top/ases.py +++ b/src/cloudflare/resources/radar/bgp/top/ases.py @@ -2,46 +2,30 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.bgp.top.ase_get_response import AseGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from datetime import datetime - -from typing_extensions import Literal - -from .....types.radar.bgp.top.ase_prefixes_response import AsePrefixesResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.radar.bgp.top import ase_get_params -from .....types.radar.bgp.top import ase_prefixes_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.radar.bgp.top import ase_get_params, ase_prefixes_params +from .....types.radar.bgp.top.ase_get_response import AseGetResponse +from .....types.radar.bgp.top.ase_prefixes_response import AsePrefixesResponse __all__ = ["AsesResource", "AsyncAsesResource"] diff --git a/src/cloudflare/resources/radar/bgp/top/top.py b/src/cloudflare/resources/radar/bgp/top/top.py index a587c29cd..b9ab93e86 100644 --- a/src/cloudflare/resources/radar/bgp/top/top.py +++ b/src/cloudflare/resources/radar/bgp/top/top.py @@ -2,41 +2,12 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx -from .ases import AsesResource, AsyncAsesResource - -from ....._compat import cached_property - -from .....types.radar.bgp.top_prefixes_response import TopPrefixesResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from datetime import datetime - -from typing_extensions import Literal - -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.radar.bgp import top_prefixes_params from .ases import ( AsesResource, AsyncAsesResource, @@ -45,8 +16,23 @@ from .ases import ( AsesResourceWithStreamingResponse, AsyncAsesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.radar.bgp import top_prefixes_params +from .....types.radar.bgp.top_prefixes_response import TopPrefixesResponse __all__ = ["TopResource", "AsyncTopResource"] diff --git a/src/cloudflare/resources/radar/datasets.py b/src/cloudflare/resources/radar/datasets.py index 5705edc6f..632237f86 100644 --- a/src/cloudflare/resources/radar/datasets.py +++ b/src/cloudflare/resources/radar/datasets.py @@ -2,46 +2,29 @@ from __future__ import annotations +from typing import Type, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.radar.dataset_list_response import DatasetListResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing import Type - -from typing_extensions import Literal - -from ...types.radar.dataset_download_response import DatasetDownloadResponse - -from ...types.radar.dataset_get_response import DatasetGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.radar import dataset_list_params -from ...types.radar import dataset_download_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...types.radar import dataset_list_params, dataset_download_params +from ..._base_client import make_request_options +from ...types.radar.dataset_list_response import DatasetListResponse +from ...types.radar.dataset_download_response import DatasetDownloadResponse __all__ = ["DatasetsResource", "AsyncDatasetsResource"] diff --git a/src/cloudflare/resources/radar/dns/__init__.py b/src/cloudflare/resources/radar/dns/__init__.py index e12e39c69..c6dbec787 100644 --- a/src/cloudflare/resources/radar/dns/__init__.py +++ b/src/cloudflare/resources/radar/dns/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .top import TopResource, AsyncTopResource -from .top import ( - TopResourceWithRawResponse, - AsyncTopResourceWithRawResponse, - TopResourceWithStreamingResponse, - AsyncTopResourceWithStreamingResponse, -) -from .dns import DNSResource, AsyncDNSResource from .dns import ( + DNSResource, + AsyncDNSResource, DNSResourceWithRawResponse, AsyncDNSResourceWithRawResponse, DNSResourceWithStreamingResponse, AsyncDNSResourceWithStreamingResponse, ) +from .top import ( + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, +) __all__ = [ "TopResource", diff --git a/src/cloudflare/resources/radar/dns/dns.py b/src/cloudflare/resources/radar/dns/dns.py index f0a9d4203..539843254 100644 --- a/src/cloudflare/resources/radar/dns/dns.py +++ b/src/cloudflare/resources/radar/dns/dns.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .top import TopResource, AsyncTopResource - -from ...._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params from .top import ( TopResource, AsyncTopResource, @@ -21,6 +10,8 @@ from .top import ( TopResourceWithStreamingResponse, AsyncTopResourceWithStreamingResponse, ) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource __all__ = ["DNSResource", "AsyncDNSResource"] diff --git a/src/cloudflare/resources/radar/dns/top.py b/src/cloudflare/resources/radar/dns/top.py index 64d51fc97..717d70919 100644 --- a/src/cloudflare/resources/radar/dns/top.py +++ b/src/cloudflare/resources/radar/dns/top.py @@ -2,46 +2,30 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.radar.dns.top_ases_response import TopAsesResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, List, Union - -from datetime import datetime - -from typing_extensions import Literal - -from ....types.radar.dns.top_locations_response import TopLocationsResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.radar.dns import top_ases_params -from ....types.radar.dns import top_locations_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.radar.dns import top_ases_params, top_locations_params +from ....types.radar.dns.top_ases_response import TopAsesResponse +from ....types.radar.dns.top_locations_response import TopLocationsResponse __all__ = ["TopResource", "AsyncTopResource"] diff --git a/src/cloudflare/resources/radar/email/__init__.py b/src/cloudflare/resources/radar/email/__init__.py index ec90a0bbc..0e2f22975 100644 --- a/src/cloudflare/resources/radar/email/__init__.py +++ b/src/cloudflare/resources/radar/email/__init__.py @@ -1,26 +1,29 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .routing import RoutingResource, AsyncRoutingResource +from .email import ( + EmailResource, + AsyncEmailResource, + EmailResourceWithRawResponse, + AsyncEmailResourceWithRawResponse, + EmailResourceWithStreamingResponse, + AsyncEmailResourceWithStreamingResponse, +) from .routing import ( + RoutingResource, + AsyncRoutingResource, RoutingResourceWithRawResponse, AsyncRoutingResourceWithRawResponse, RoutingResourceWithStreamingResponse, AsyncRoutingResourceWithStreamingResponse, ) -from .security import SecurityResource, AsyncSecurityResource from .security import ( + SecurityResource, + AsyncSecurityResource, SecurityResourceWithRawResponse, AsyncSecurityResourceWithRawResponse, SecurityResourceWithStreamingResponse, AsyncSecurityResourceWithStreamingResponse, ) -from .email import EmailResource, AsyncEmailResource -from .email import ( - EmailResourceWithRawResponse, - AsyncEmailResourceWithRawResponse, - EmailResourceWithStreamingResponse, - AsyncEmailResourceWithStreamingResponse, -) __all__ = [ "RoutingResource", diff --git a/src/cloudflare/resources/radar/email/email.py b/src/cloudflare/resources/radar/email/email.py index 77077c7b7..a609b61d3 100644 --- a/src/cloudflare/resources/radar/email/email.py +++ b/src/cloudflare/resources/radar/email/email.py @@ -2,19 +2,6 @@ from __future__ import annotations -from .routing.routing import RoutingResource, AsyncRoutingResource - -from ...._compat import cached_property - -from .security.security import SecurityResource, AsyncSecurityResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params from .routing import ( RoutingResource, AsyncRoutingResource, @@ -31,6 +18,10 @@ from .security import ( SecurityResourceWithStreamingResponse, AsyncSecurityResourceWithStreamingResponse, ) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from .routing.routing import RoutingResource, AsyncRoutingResource +from .security.security import SecurityResource, AsyncSecurityResource __all__ = ["EmailResource", "AsyncEmailResource"] diff --git a/src/cloudflare/resources/radar/email/routing/__init__.py b/src/cloudflare/resources/radar/email/routing/__init__.py index 2a6d1ca3c..ab180ee60 100644 --- a/src/cloudflare/resources/radar/email/routing/__init__.py +++ b/src/cloudflare/resources/radar/email/routing/__init__.py @@ -1,26 +1,29 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .summary import SummaryResource, AsyncSummaryResource +from .routing import ( + RoutingResource, + AsyncRoutingResource, + RoutingResourceWithRawResponse, + AsyncRoutingResourceWithRawResponse, + RoutingResourceWithStreamingResponse, + AsyncRoutingResourceWithStreamingResponse, +) from .summary import ( + SummaryResource, + AsyncSummaryResource, SummaryResourceWithRawResponse, AsyncSummaryResourceWithRawResponse, SummaryResourceWithStreamingResponse, AsyncSummaryResourceWithStreamingResponse, ) -from .timeseries_groups import TimeseriesGroupsResource, AsyncTimeseriesGroupsResource from .timeseries_groups import ( + TimeseriesGroupsResource, + AsyncTimeseriesGroupsResource, TimeseriesGroupsResourceWithRawResponse, AsyncTimeseriesGroupsResourceWithRawResponse, TimeseriesGroupsResourceWithStreamingResponse, AsyncTimeseriesGroupsResourceWithStreamingResponse, ) -from .routing import RoutingResource, AsyncRoutingResource -from .routing import ( - RoutingResourceWithRawResponse, - AsyncRoutingResourceWithRawResponse, - RoutingResourceWithStreamingResponse, - AsyncRoutingResourceWithStreamingResponse, -) __all__ = [ "SummaryResource", diff --git a/src/cloudflare/resources/radar/email/routing/routing.py b/src/cloudflare/resources/radar/email/routing/routing.py index 6571a5b98..8904ac5ab 100644 --- a/src/cloudflare/resources/radar/email/routing/routing.py +++ b/src/cloudflare/resources/radar/email/routing/routing.py @@ -2,19 +2,6 @@ from __future__ import annotations -from .summary import SummaryResource, AsyncSummaryResource - -from ....._compat import cached_property - -from .timeseries_groups import TimeseriesGroupsResource, AsyncTimeseriesGroupsResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params from .summary import ( SummaryResource, AsyncSummaryResource, @@ -23,6 +10,8 @@ from .summary import ( SummaryResourceWithStreamingResponse, AsyncSummaryResourceWithStreamingResponse, ) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource from .timeseries_groups import ( TimeseriesGroupsResource, AsyncTimeseriesGroupsResource, diff --git a/src/cloudflare/resources/radar/email/routing/summary.py b/src/cloudflare/resources/radar/email/routing/summary.py index 4f3a4d27e..d6574ac85 100644 --- a/src/cloudflare/resources/radar/email/routing/summary.py +++ b/src/cloudflare/resources/radar/email/routing/summary.py @@ -2,66 +2,41 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.email.routing.summary_arc_response import SummaryARCResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from datetime import datetime - -from typing_extensions import Literal - -from .....types.radar.email.routing.summary_dkim_response import SummaryDKIMResponse - -from .....types.radar.email.routing.summary_dmarc_response import SummaryDMARCResponse - -from .....types.radar.email.routing.summary_encrypted_response import SummaryEncryptedResponse - -from .....types.radar.email.routing.summary_ip_version_response import SummaryIPVersionResponse - -from .....types.radar.email.routing.summary_spf_response import SummarySPFResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.radar.email.routing import summary_arc_params -from .....types.radar.email.routing import summary_dkim_params -from .....types.radar.email.routing import summary_dmarc_params -from .....types.radar.email.routing import summary_encrypted_params -from .....types.radar.email.routing import summary_ip_version_params -from .....types.radar.email.routing import summary_spf_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.radar.email.routing import ( + summary_arc_params, + summary_spf_params, + summary_dkim_params, + summary_dmarc_params, + summary_encrypted_params, + summary_ip_version_params, +) +from .....types.radar.email.routing.summary_arc_response import SummaryARCResponse +from .....types.radar.email.routing.summary_spf_response import SummarySPFResponse +from .....types.radar.email.routing.summary_dkim_response import SummaryDKIMResponse +from .....types.radar.email.routing.summary_dmarc_response import SummaryDMARCResponse +from .....types.radar.email.routing.summary_encrypted_response import SummaryEncryptedResponse +from .....types.radar.email.routing.summary_ip_version_response import SummaryIPVersionResponse __all__ = ["SummaryResource", "AsyncSummaryResource"] diff --git a/src/cloudflare/resources/radar/email/routing/timeseries_groups.py b/src/cloudflare/resources/radar/email/routing/timeseries_groups.py index e44a3f051..5a54a062f 100644 --- a/src/cloudflare/resources/radar/email/routing/timeseries_groups.py +++ b/src/cloudflare/resources/radar/email/routing/timeseries_groups.py @@ -2,66 +2,41 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.email.routing.timeseries_group_arc_response import TimeseriesGroupARCResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - -from .....types.radar.email.routing.timeseries_group_dkim_response import TimeseriesGroupDKIMResponse - -from .....types.radar.email.routing.timeseries_group_dmarc_response import TimeseriesGroupDMARCResponse - -from .....types.radar.email.routing.timeseries_group_encrypted_response import TimeseriesGroupEncryptedResponse - -from .....types.radar.email.routing.timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse - -from .....types.radar.email.routing.timeseries_group_spf_response import TimeseriesGroupSPFResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.radar.email.routing import timeseries_group_arc_params -from .....types.radar.email.routing import timeseries_group_dkim_params -from .....types.radar.email.routing import timeseries_group_dmarc_params -from .....types.radar.email.routing import timeseries_group_encrypted_params -from .....types.radar.email.routing import timeseries_group_ip_version_params -from .....types.radar.email.routing import timeseries_group_spf_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.radar.email.routing import ( + timeseries_group_arc_params, + timeseries_group_spf_params, + timeseries_group_dkim_params, + timeseries_group_dmarc_params, + timeseries_group_encrypted_params, + timeseries_group_ip_version_params, +) +from .....types.radar.email.routing.timeseries_group_arc_response import TimeseriesGroupARCResponse +from .....types.radar.email.routing.timeseries_group_spf_response import TimeseriesGroupSPFResponse +from .....types.radar.email.routing.timeseries_group_dkim_response import TimeseriesGroupDKIMResponse +from .....types.radar.email.routing.timeseries_group_dmarc_response import TimeseriesGroupDMARCResponse +from .....types.radar.email.routing.timeseries_group_encrypted_response import TimeseriesGroupEncryptedResponse +from .....types.radar.email.routing.timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse __all__ = ["TimeseriesGroupsResource", "AsyncTimeseriesGroupsResource"] diff --git a/src/cloudflare/resources/radar/email/security/__init__.py b/src/cloudflare/resources/radar/email/security/__init__.py index 4e8c03764..df039c900 100644 --- a/src/cloudflare/resources/radar/email/security/__init__.py +++ b/src/cloudflare/resources/radar/email/security/__init__.py @@ -1,33 +1,37 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .top import TopResource, AsyncTopResource from .top import ( + TopResource, + AsyncTopResource, TopResourceWithRawResponse, AsyncTopResourceWithRawResponse, TopResourceWithStreamingResponse, AsyncTopResourceWithStreamingResponse, ) -from .summary import SummaryResource, AsyncSummaryResource from .summary import ( + SummaryResource, + AsyncSummaryResource, SummaryResourceWithRawResponse, AsyncSummaryResourceWithRawResponse, SummaryResourceWithStreamingResponse, AsyncSummaryResourceWithStreamingResponse, ) -from .timeseries_groups import TimeseriesGroupsResource, AsyncTimeseriesGroupsResource -from .timeseries_groups import ( - TimeseriesGroupsResourceWithRawResponse, - AsyncTimeseriesGroupsResourceWithRawResponse, - TimeseriesGroupsResourceWithStreamingResponse, - AsyncTimeseriesGroupsResourceWithStreamingResponse, -) -from .security import SecurityResource, AsyncSecurityResource from .security import ( + SecurityResource, + AsyncSecurityResource, SecurityResourceWithRawResponse, AsyncSecurityResourceWithRawResponse, SecurityResourceWithStreamingResponse, AsyncSecurityResourceWithStreamingResponse, ) +from .timeseries_groups import ( + TimeseriesGroupsResource, + AsyncTimeseriesGroupsResource, + TimeseriesGroupsResourceWithRawResponse, + AsyncTimeseriesGroupsResourceWithRawResponse, + TimeseriesGroupsResourceWithStreamingResponse, + AsyncTimeseriesGroupsResourceWithStreamingResponse, +) __all__ = [ "TopResource", diff --git a/src/cloudflare/resources/radar/email/security/security.py b/src/cloudflare/resources/radar/email/security/security.py index a6fab1b7b..a738a646d 100644 --- a/src/cloudflare/resources/radar/email/security/security.py +++ b/src/cloudflare/resources/radar/email/security/security.py @@ -2,21 +2,6 @@ from __future__ import annotations -from .top.top import TopResource, AsyncTopResource - -from ....._compat import cached_property - -from .summary import SummaryResource, AsyncSummaryResource - -from .timeseries_groups import TimeseriesGroupsResource, AsyncTimeseriesGroupsResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params from .top import ( TopResource, AsyncTopResource, @@ -33,6 +18,9 @@ from .summary import ( SummaryResourceWithStreamingResponse, AsyncSummaryResourceWithStreamingResponse, ) +from .top.top import TopResource, AsyncTopResource +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource from .timeseries_groups import ( TimeseriesGroupsResource, AsyncTimeseriesGroupsResource, diff --git a/src/cloudflare/resources/radar/email/security/summary.py b/src/cloudflare/resources/radar/email/security/summary.py index d48a07ad5..a31f5660e 100644 --- a/src/cloudflare/resources/radar/email/security/summary.py +++ b/src/cloudflare/resources/radar/email/security/summary.py @@ -2,81 +2,47 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.email.security.summary_arc_response import SummaryARCResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from datetime import datetime - -from typing_extensions import Literal - -from .....types.radar.email.security.summary_dkim_response import SummaryDKIMResponse - -from .....types.radar.email.security.summary_dmarc_response import SummaryDMARCResponse - -from .....types.radar.email.security.summary_malicious_response import SummaryMaliciousResponse - -from .....types.radar.email.security.summary_spam_response import SummarySpamResponse - -from .....types.radar.email.security.summary_spf_response import SummarySPFResponse - -from .....types.radar.email.security.summary_spoof_response import SummarySpoofResponse - -from .....types.radar.email.security.summary_threat_category_response import SummaryThreatCategoryResponse - -from .....types.radar.email.security.summary_tls_version_response import SummaryTLSVersionResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.radar.email.security import summary_arc_params -from .....types.radar.email.security import summary_dkim_params -from .....types.radar.email.security import summary_dmarc_params -from .....types.radar.email.security import summary_malicious_params -from .....types.radar.email.security import summary_spam_params -from .....types.radar.email.security import summary_spf_params -from .....types.radar.email.security import summary_spoof_params -from .....types.radar.email.security import summary_threat_category_params -from .....types.radar.email.security import summary_tls_version_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.radar.email.security import ( + summary_arc_params, + summary_spf_params, + summary_dkim_params, + summary_spam_params, + summary_dmarc_params, + summary_spoof_params, + summary_malicious_params, + summary_tls_version_params, + summary_threat_category_params, +) +from .....types.radar.email.security.summary_arc_response import SummaryARCResponse +from .....types.radar.email.security.summary_spf_response import SummarySPFResponse +from .....types.radar.email.security.summary_dkim_response import SummaryDKIMResponse +from .....types.radar.email.security.summary_spam_response import SummarySpamResponse +from .....types.radar.email.security.summary_dmarc_response import SummaryDMARCResponse +from .....types.radar.email.security.summary_spoof_response import SummarySpoofResponse +from .....types.radar.email.security.summary_malicious_response import SummaryMaliciousResponse +from .....types.radar.email.security.summary_tls_version_response import SummaryTLSVersionResponse +from .....types.radar.email.security.summary_threat_category_response import SummaryThreatCategoryResponse __all__ = ["SummaryResource", "AsyncSummaryResource"] diff --git a/src/cloudflare/resources/radar/email/security/timeseries_groups.py b/src/cloudflare/resources/radar/email/security/timeseries_groups.py index b2d2e5a81..c957c81c5 100644 --- a/src/cloudflare/resources/radar/email/security/timeseries_groups.py +++ b/src/cloudflare/resources/radar/email/security/timeseries_groups.py @@ -2,84 +2,50 @@ from __future__ import annotations -import httpx - -from ....._compat import cached_property - -from .....types.radar.email.security.timeseries_group_arc_response import TimeseriesGroupARCResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - +from typing import List, Type, Union, cast +from datetime import datetime from typing_extensions import Literal -from datetime import datetime - -from .....types.radar.email.security.timeseries_group_dkim_response import TimeseriesGroupDKIMResponse - -from .....types.radar.email.security.timeseries_group_dmarc_response import TimeseriesGroupDMARCResponse - -from .....types.radar.email.security.timeseries_group_malicious_response import TimeseriesGroupMaliciousResponse - -from .....types.radar.email.security.timeseries_group_spam_response import TimeseriesGroupSpamResponse +import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.radar.email.security import ( + timeseries_group_arc_params, + timeseries_group_spf_params, + timeseries_group_dkim_params, + timeseries_group_spam_params, + timeseries_group_dmarc_params, + timeseries_group_spoof_params, + timeseries_group_malicious_params, + timeseries_group_tls_version_params, + timeseries_group_threat_category_params, +) +from .....types.radar.email.security.timeseries_group_arc_response import TimeseriesGroupARCResponse from .....types.radar.email.security.timeseries_group_spf_response import TimeseriesGroupSPFResponse - +from .....types.radar.email.security.timeseries_group_dkim_response import TimeseriesGroupDKIMResponse +from .....types.radar.email.security.timeseries_group_spam_response import TimeseriesGroupSpamResponse +from .....types.radar.email.security.timeseries_group_dmarc_response import TimeseriesGroupDMARCResponse from .....types.radar.email.security.timeseries_group_spoof_response import TimeseriesGroupSpoofResponse - +from .....types.radar.email.security.timeseries_group_malicious_response import TimeseriesGroupMaliciousResponse +from .....types.radar.email.security.timeseries_group_tls_version_response import TimeseriesGroupTLSVersionResponse from .....types.radar.email.security.timeseries_group_threat_category_response import ( TimeseriesGroupThreatCategoryResponse, ) -from .....types.radar.email.security.timeseries_group_tls_version_response import TimeseriesGroupTLSVersionResponse - -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.radar.email.security import timeseries_group_arc_params -from .....types.radar.email.security import timeseries_group_dkim_params -from .....types.radar.email.security import timeseries_group_dmarc_params -from .....types.radar.email.security import timeseries_group_malicious_params -from .....types.radar.email.security import timeseries_group_spam_params -from .....types.radar.email.security import timeseries_group_spf_params -from .....types.radar.email.security import timeseries_group_spoof_params -from .....types.radar.email.security import timeseries_group_threat_category_params -from .....types.radar.email.security import timeseries_group_tls_version_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast - __all__ = ["TimeseriesGroupsResource", "AsyncTimeseriesGroupsResource"] diff --git a/src/cloudflare/resources/radar/email/security/top/__init__.py b/src/cloudflare/resources/radar/email/security/top/__init__.py index 96d053c93..f9133afce 100644 --- a/src/cloudflare/resources/radar/email/security/top/__init__.py +++ b/src/cloudflare/resources/radar/email/security/top/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .tlds import TldsResource, AsyncTldsResource -from .tlds import ( - TldsResourceWithRawResponse, - AsyncTldsResourceWithRawResponse, - TldsResourceWithStreamingResponse, - AsyncTldsResourceWithStreamingResponse, -) -from .top import TopResource, AsyncTopResource from .top import ( + TopResource, + AsyncTopResource, TopResourceWithRawResponse, AsyncTopResourceWithRawResponse, TopResourceWithStreamingResponse, AsyncTopResourceWithStreamingResponse, ) +from .tlds import ( + TldsResource, + AsyncTldsResource, + TldsResourceWithRawResponse, + AsyncTldsResourceWithRawResponse, + TldsResourceWithStreamingResponse, + AsyncTldsResourceWithStreamingResponse, +) __all__ = [ "TldsResource", diff --git a/src/cloudflare/resources/radar/email/security/top/tlds/__init__.py b/src/cloudflare/resources/radar/email/security/top/tlds/__init__.py index bac1e50b9..84574e9ae 100644 --- a/src/cloudflare/resources/radar/email/security/top/tlds/__init__.py +++ b/src/cloudflare/resources/radar/email/security/top/tlds/__init__.py @@ -1,32 +1,36 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .malicious import MaliciousResource, AsyncMaliciousResource -from .malicious import ( - MaliciousResourceWithRawResponse, - AsyncMaliciousResourceWithRawResponse, - MaliciousResourceWithStreamingResponse, - AsyncMaliciousResourceWithStreamingResponse, -) -from .spam import SpamResource, AsyncSpamResource from .spam import ( + SpamResource, + AsyncSpamResource, SpamResourceWithRawResponse, AsyncSpamResourceWithRawResponse, SpamResourceWithStreamingResponse, AsyncSpamResourceWithStreamingResponse, ) -from .spoof import SpoofResource, AsyncSpoofResource +from .tlds import ( + TldsResource, + AsyncTldsResource, + TldsResourceWithRawResponse, + AsyncTldsResourceWithRawResponse, + TldsResourceWithStreamingResponse, + AsyncTldsResourceWithStreamingResponse, +) from .spoof import ( + SpoofResource, + AsyncSpoofResource, SpoofResourceWithRawResponse, AsyncSpoofResourceWithRawResponse, SpoofResourceWithStreamingResponse, AsyncSpoofResourceWithStreamingResponse, ) -from .tlds import TldsResource, AsyncTldsResource -from .tlds import ( - TldsResourceWithRawResponse, - AsyncTldsResourceWithRawResponse, - TldsResourceWithStreamingResponse, - AsyncTldsResourceWithStreamingResponse, +from .malicious import ( + MaliciousResource, + AsyncMaliciousResource, + MaliciousResourceWithRawResponse, + AsyncMaliciousResourceWithRawResponse, + MaliciousResourceWithStreamingResponse, + AsyncMaliciousResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/radar/email/security/top/tlds/malicious.py b/src/cloudflare/resources/radar/email/security/top/tlds/malicious.py index 7a3c51f1d..d6877ec10 100644 --- a/src/cloudflare/resources/radar/email/security/top/tlds/malicious.py +++ b/src/cloudflare/resources/radar/email/security/top/tlds/malicious.py @@ -2,41 +2,29 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ......._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ......._utils import ( + maybe_transform, + async_maybe_transform, +) from ......._compat import cached_property - -from .......types.radar.email.security.top.tlds.malicious_get_response import MaliciousGetResponse - -from ......._wrappers import ResultWrapper - -from ......._utils import maybe_transform, async_maybe_transform - -from ......._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - +from ......._resource import SyncAPIResource, AsyncAPIResource from ......._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......._resource import SyncAPIResource, AsyncAPIResource -from .......types import shared_params +from ......._wrappers import ResultWrapper +from ......._base_client import make_request_options from .......types.radar.email.security.top.tlds import malicious_get_params -from typing import cast -from typing import cast +from .......types.radar.email.security.top.tlds.malicious_get_response import MaliciousGetResponse __all__ = ["MaliciousResource", "AsyncMaliciousResource"] diff --git a/src/cloudflare/resources/radar/email/security/top/tlds/spam.py b/src/cloudflare/resources/radar/email/security/top/tlds/spam.py index 44f7d2533..f97f98691 100644 --- a/src/cloudflare/resources/radar/email/security/top/tlds/spam.py +++ b/src/cloudflare/resources/radar/email/security/top/tlds/spam.py @@ -2,41 +2,29 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ......._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ......._utils import ( + maybe_transform, + async_maybe_transform, +) from ......._compat import cached_property - -from .......types.radar.email.security.top.tlds.spam_get_response import SpamGetResponse - -from ......._wrappers import ResultWrapper - -from ......._utils import maybe_transform, async_maybe_transform - -from ......._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - +from ......._resource import SyncAPIResource, AsyncAPIResource from ......._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......._resource import SyncAPIResource, AsyncAPIResource -from .......types import shared_params +from ......._wrappers import ResultWrapper +from ......._base_client import make_request_options from .......types.radar.email.security.top.tlds import spam_get_params -from typing import cast -from typing import cast +from .......types.radar.email.security.top.tlds.spam_get_response import SpamGetResponse __all__ = ["SpamResource", "AsyncSpamResource"] diff --git a/src/cloudflare/resources/radar/email/security/top/tlds/spoof.py b/src/cloudflare/resources/radar/email/security/top/tlds/spoof.py index 893f962cc..865a62aa6 100644 --- a/src/cloudflare/resources/radar/email/security/top/tlds/spoof.py +++ b/src/cloudflare/resources/radar/email/security/top/tlds/spoof.py @@ -2,41 +2,29 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ......._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ......._utils import ( + maybe_transform, + async_maybe_transform, +) from ......._compat import cached_property - -from .......types.radar.email.security.top.tlds.spoof_get_response import SpoofGetResponse - -from ......._wrappers import ResultWrapper - -from ......._utils import maybe_transform, async_maybe_transform - -from ......._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - +from ......._resource import SyncAPIResource, AsyncAPIResource from ......._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......._resource import SyncAPIResource, AsyncAPIResource -from .......types import shared_params +from ......._wrappers import ResultWrapper +from ......._base_client import make_request_options from .......types.radar.email.security.top.tlds import spoof_get_params -from typing import cast -from typing import cast +from .......types.radar.email.security.top.tlds.spoof_get_response import SpoofGetResponse __all__ = ["SpoofResource", "AsyncSpoofResource"] diff --git a/src/cloudflare/resources/radar/email/security/top/tlds/tlds.py b/src/cloudflare/resources/radar/email/security/top/tlds/tlds.py index bdcc66e67..23c281c9e 100644 --- a/src/cloudflare/resources/radar/email/security/top/tlds/tlds.py +++ b/src/cloudflare/resources/radar/email/security/top/tlds/tlds.py @@ -2,53 +2,12 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx -from .malicious import MaliciousResource, AsyncMaliciousResource - -from ......._compat import cached_property - -from .spam import SpamResource, AsyncSpamResource - -from .spoof import SpoofResource, AsyncSpoofResource - -from .......types.radar.email.security.top.tld_get_response import TldGetResponse - -from ......._wrappers import ResultWrapper - -from ......._utils import maybe_transform, async_maybe_transform - -from ......._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - -from ......._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......._resource import SyncAPIResource, AsyncAPIResource -from .......types import shared_params -from .......types.radar.email.security.top import tld_get_params -from .malicious import ( - MaliciousResource, - AsyncMaliciousResource, - MaliciousResourceWithRawResponse, - AsyncMaliciousResourceWithRawResponse, - MaliciousResourceWithStreamingResponse, - AsyncMaliciousResourceWithStreamingResponse, -) from .spam import ( SpamResource, AsyncSpamResource, @@ -65,8 +24,31 @@ from .spoof import ( SpoofResourceWithStreamingResponse, AsyncSpoofResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from .malicious import ( + MaliciousResource, + AsyncMaliciousResource, + MaliciousResourceWithRawResponse, + AsyncMaliciousResourceWithRawResponse, + MaliciousResourceWithStreamingResponse, + AsyncMaliciousResourceWithStreamingResponse, +) +from ......._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ......._utils import ( + maybe_transform, + async_maybe_transform, +) +from ......._compat import cached_property +from ......._resource import SyncAPIResource, AsyncAPIResource +from ......._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ......._wrappers import ResultWrapper +from ......._base_client import make_request_options +from .......types.radar.email.security.top import tld_get_params +from .......types.radar.email.security.top.tld_get_response import TldGetResponse __all__ = ["TldsResource", "AsyncTldsResource"] diff --git a/src/cloudflare/resources/radar/email/security/top/top.py b/src/cloudflare/resources/radar/email/security/top/top.py index 77c7cb8ce..d4f233cf4 100644 --- a/src/cloudflare/resources/radar/email/security/top/top.py +++ b/src/cloudflare/resources/radar/email/security/top/top.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .tlds.tlds import TldsResource, AsyncTldsResource - -from ......_compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......_resource import SyncAPIResource, AsyncAPIResource -from ......types import shared_params from .tlds import ( TldsResource, AsyncTldsResource, @@ -21,6 +10,9 @@ from .tlds import ( TldsResourceWithStreamingResponse, AsyncTldsResourceWithStreamingResponse, ) +from .tlds.tlds import TldsResource, AsyncTldsResource +from ......_compat import cached_property +from ......_resource import SyncAPIResource, AsyncAPIResource __all__ = ["TopResource", "AsyncTopResource"] diff --git a/src/cloudflare/resources/radar/entities/__init__.py b/src/cloudflare/resources/radar/entities/__init__.py index 778cabfb0..c00c65c51 100644 --- a/src/cloudflare/resources/radar/entities/__init__.py +++ b/src/cloudflare/resources/radar/entities/__init__.py @@ -1,26 +1,29 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .asns import ASNsResource, AsyncASNsResource from .asns import ( + ASNsResource, + AsyncASNsResource, ASNsResourceWithRawResponse, AsyncASNsResourceWithRawResponse, ASNsResourceWithStreamingResponse, AsyncASNsResourceWithStreamingResponse, ) -from .locations import LocationsResource, AsyncLocationsResource -from .locations import ( - LocationsResourceWithRawResponse, - AsyncLocationsResourceWithRawResponse, - LocationsResourceWithStreamingResponse, - AsyncLocationsResourceWithStreamingResponse, -) -from .entities import EntitiesResource, AsyncEntitiesResource from .entities import ( + EntitiesResource, + AsyncEntitiesResource, EntitiesResourceWithRawResponse, AsyncEntitiesResourceWithRawResponse, EntitiesResourceWithStreamingResponse, AsyncEntitiesResourceWithStreamingResponse, ) +from .locations import ( + LocationsResource, + AsyncLocationsResource, + LocationsResourceWithRawResponse, + AsyncLocationsResourceWithRawResponse, + LocationsResourceWithStreamingResponse, + AsyncLocationsResourceWithStreamingResponse, +) __all__ = [ "ASNsResource", diff --git a/src/cloudflare/resources/radar/entities/asns.py b/src/cloudflare/resources/radar/entities/asns.py index 75204e509..4aa81250e 100644 --- a/src/cloudflare/resources/radar/entities/asns.py +++ b/src/cloudflare/resources/radar/entities/asns.py @@ -2,54 +2,31 @@ from __future__ import annotations +from typing import Type, cast +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.radar.entities.asn_list_response import ASNListResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type - -from typing_extensions import Literal - -from ....types.radar.entities.asn_get_response import ASNGetResponse - -from ....types.radar.entities.asn_ip_response import ASNIPResponse - -from ....types.radar.entities.asn_rel_response import ASNRelResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.radar.entities import asn_list_params -from ....types.radar.entities import asn_get_params -from ....types.radar.entities import asn_ip_params -from ....types.radar.entities import asn_rel_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.radar.entities import asn_ip_params, asn_get_params, asn_rel_params, asn_list_params +from ....types.radar.entities.asn_ip_response import ASNIPResponse +from ....types.radar.entities.asn_get_response import ASNGetResponse +from ....types.radar.entities.asn_rel_response import ASNRelResponse +from ....types.radar.entities.asn_list_response import ASNListResponse __all__ = ["ASNsResource", "AsyncASNsResource"] diff --git a/src/cloudflare/resources/radar/entities/entities.py b/src/cloudflare/resources/radar/entities/entities.py index 446bb4f51..291834dcb 100644 --- a/src/cloudflare/resources/radar/entities/entities.py +++ b/src/cloudflare/resources/radar/entities/entities.py @@ -2,41 +2,11 @@ from __future__ import annotations +from typing import Type, cast +from typing_extensions import Literal + import httpx -from .asns import ASNsResource, AsyncASNsResource - -from ...._compat import cached_property - -from .locations import LocationsResource, AsyncLocationsResource - -from ....types.radar.entity_get_response import EntityGetResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type - -from typing_extensions import Literal - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.radar import entity_get_params from .asns import ( ASNsResource, AsyncASNsResource, @@ -45,6 +15,11 @@ from .asns import ( ASNsResourceWithStreamingResponse, AsyncASNsResourceWithStreamingResponse, ) +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from .locations import ( LocationsResource, AsyncLocationsResource, @@ -53,8 +28,18 @@ from .locations import ( LocationsResourceWithStreamingResponse, AsyncLocationsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....types.radar import entity_get_params +from ...._base_client import make_request_options +from ....types.radar.entity_get_response import EntityGetResponse __all__ = ["EntitiesResource", "AsyncEntitiesResource"] diff --git a/src/cloudflare/resources/radar/entities/locations.py b/src/cloudflare/resources/radar/entities/locations.py index 9fef640d3..fb242a70b 100644 --- a/src/cloudflare/resources/radar/entities/locations.py +++ b/src/cloudflare/resources/radar/entities/locations.py @@ -2,44 +2,29 @@ from __future__ import annotations +from typing import Type, cast +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.radar.entities.location_list_response import LocationListResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type - -from typing_extensions import Literal - -from ....types.radar.entities.location_get_response import LocationGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.radar.entities import location_list_params -from ....types.radar.entities import location_get_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.radar.entities import location_get_params, location_list_params +from ....types.radar.entities.location_get_response import LocationGetResponse +from ....types.radar.entities.location_list_response import LocationListResponse __all__ = ["LocationsResource", "AsyncLocationsResource"] diff --git a/src/cloudflare/resources/radar/http/__init__.py b/src/cloudflare/resources/radar/http/__init__.py index 9b55a3f1b..2ef1078ef 100644 --- a/src/cloudflare/resources/radar/http/__init__.py +++ b/src/cloudflare/resources/radar/http/__init__.py @@ -1,47 +1,53 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .locations import LocationsResource, AsyncLocationsResource -from .locations import ( - LocationsResourceWithRawResponse, - AsyncLocationsResourceWithRawResponse, - LocationsResourceWithStreamingResponse, - AsyncLocationsResourceWithStreamingResponse, -) -from .ases import AsesResource, AsyncAsesResource -from .ases import ( - AsesResourceWithRawResponse, - AsyncAsesResourceWithRawResponse, - AsesResourceWithStreamingResponse, - AsyncAsesResourceWithStreamingResponse, -) -from .summary import SummaryResource, AsyncSummaryResource -from .summary import ( - SummaryResourceWithRawResponse, - AsyncSummaryResourceWithRawResponse, - SummaryResourceWithStreamingResponse, - AsyncSummaryResourceWithStreamingResponse, -) -from .timeseries_groups import TimeseriesGroupsResource, AsyncTimeseriesGroupsResource -from .timeseries_groups import ( - TimeseriesGroupsResourceWithRawResponse, - AsyncTimeseriesGroupsResourceWithRawResponse, - TimeseriesGroupsResourceWithStreamingResponse, - AsyncTimeseriesGroupsResourceWithStreamingResponse, -) -from .top import TopResource, AsyncTopResource from .top import ( + TopResource, + AsyncTopResource, TopResourceWithRawResponse, AsyncTopResourceWithRawResponse, TopResourceWithStreamingResponse, AsyncTopResourceWithStreamingResponse, ) -from .http import HTTPResource, AsyncHTTPResource +from .ases import ( + AsesResource, + AsyncAsesResource, + AsesResourceWithRawResponse, + AsyncAsesResourceWithRawResponse, + AsesResourceWithStreamingResponse, + AsyncAsesResourceWithStreamingResponse, +) from .http import ( + HTTPResource, + AsyncHTTPResource, HTTPResourceWithRawResponse, AsyncHTTPResourceWithRawResponse, HTTPResourceWithStreamingResponse, AsyncHTTPResourceWithStreamingResponse, ) +from .summary import ( + SummaryResource, + AsyncSummaryResource, + SummaryResourceWithRawResponse, + AsyncSummaryResourceWithRawResponse, + SummaryResourceWithStreamingResponse, + AsyncSummaryResourceWithStreamingResponse, +) +from .locations import ( + LocationsResource, + AsyncLocationsResource, + LocationsResourceWithRawResponse, + AsyncLocationsResourceWithRawResponse, + LocationsResourceWithStreamingResponse, + AsyncLocationsResourceWithStreamingResponse, +) +from .timeseries_groups import ( + TimeseriesGroupsResource, + AsyncTimeseriesGroupsResource, + TimeseriesGroupsResourceWithRawResponse, + AsyncTimeseriesGroupsResourceWithRawResponse, + TimeseriesGroupsResourceWithStreamingResponse, + AsyncTimeseriesGroupsResourceWithStreamingResponse, +) __all__ = [ "LocationsResource", diff --git a/src/cloudflare/resources/radar/http/ases/__init__.py b/src/cloudflare/resources/radar/http/ases/__init__.py index 5052c4265..88eb8b2a2 100644 --- a/src/cloudflare/resources/radar/http/ases/__init__.py +++ b/src/cloudflare/resources/radar/http/ases/__init__.py @@ -1,68 +1,77 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .bot_class import BotClassResource, AsyncBotClassResource -from .bot_class import ( - BotClassResourceWithRawResponse, - AsyncBotClassResourceWithRawResponse, - BotClassResourceWithStreamingResponse, - AsyncBotClassResourceWithStreamingResponse, -) -from .device_type import DeviceTypeResource, AsyncDeviceTypeResource -from .device_type import ( - DeviceTypeResourceWithRawResponse, - AsyncDeviceTypeResourceWithRawResponse, - DeviceTypeResourceWithStreamingResponse, - AsyncDeviceTypeResourceWithStreamingResponse, -) -from .http_protocol import HTTPProtocolResource, AsyncHTTPProtocolResource -from .http_protocol import ( - HTTPProtocolResourceWithRawResponse, - AsyncHTTPProtocolResourceWithRawResponse, - HTTPProtocolResourceWithStreamingResponse, - AsyncHTTPProtocolResourceWithStreamingResponse, -) -from .http_method import HTTPMethodResource, AsyncHTTPMethodResource -from .http_method import ( - HTTPMethodResourceWithRawResponse, - AsyncHTTPMethodResourceWithRawResponse, - HTTPMethodResourceWithStreamingResponse, - AsyncHTTPMethodResourceWithStreamingResponse, -) -from .ip_version import IPVersionResource, AsyncIPVersionResource -from .ip_version import ( - IPVersionResourceWithRawResponse, - AsyncIPVersionResourceWithRawResponse, - IPVersionResourceWithStreamingResponse, - AsyncIPVersionResourceWithStreamingResponse, -) -from .os import OSResource, AsyncOSResource from .os import ( + OSResource, + AsyncOSResource, OSResourceWithRawResponse, AsyncOSResourceWithRawResponse, OSResourceWithStreamingResponse, AsyncOSResourceWithStreamingResponse, ) -from .tls_version import TLSVersionResource, AsyncTLSVersionResource +from .ases import ( + AsesResource, + AsyncAsesResource, + AsesResourceWithRawResponse, + AsyncAsesResourceWithRawResponse, + AsesResourceWithStreamingResponse, + AsyncAsesResourceWithStreamingResponse, +) +from .bot_class import ( + BotClassResource, + AsyncBotClassResource, + BotClassResourceWithRawResponse, + AsyncBotClassResourceWithRawResponse, + BotClassResourceWithStreamingResponse, + AsyncBotClassResourceWithStreamingResponse, +) +from .ip_version import ( + IPVersionResource, + AsyncIPVersionResource, + IPVersionResourceWithRawResponse, + AsyncIPVersionResourceWithRawResponse, + IPVersionResourceWithStreamingResponse, + AsyncIPVersionResourceWithStreamingResponse, +) +from .device_type import ( + DeviceTypeResource, + AsyncDeviceTypeResource, + DeviceTypeResourceWithRawResponse, + AsyncDeviceTypeResourceWithRawResponse, + DeviceTypeResourceWithStreamingResponse, + AsyncDeviceTypeResourceWithStreamingResponse, +) +from .http_method import ( + HTTPMethodResource, + AsyncHTTPMethodResource, + HTTPMethodResourceWithRawResponse, + AsyncHTTPMethodResourceWithRawResponse, + HTTPMethodResourceWithStreamingResponse, + AsyncHTTPMethodResourceWithStreamingResponse, +) from .tls_version import ( + TLSVersionResource, + AsyncTLSVersionResource, TLSVersionResourceWithRawResponse, AsyncTLSVersionResourceWithRawResponse, TLSVersionResourceWithStreamingResponse, AsyncTLSVersionResourceWithStreamingResponse, ) -from .browser_family import BrowserFamilyResource, AsyncBrowserFamilyResource +from .http_protocol import ( + HTTPProtocolResource, + AsyncHTTPProtocolResource, + HTTPProtocolResourceWithRawResponse, + AsyncHTTPProtocolResourceWithRawResponse, + HTTPProtocolResourceWithStreamingResponse, + AsyncHTTPProtocolResourceWithStreamingResponse, +) from .browser_family import ( + BrowserFamilyResource, + AsyncBrowserFamilyResource, BrowserFamilyResourceWithRawResponse, AsyncBrowserFamilyResourceWithRawResponse, BrowserFamilyResourceWithStreamingResponse, AsyncBrowserFamilyResourceWithStreamingResponse, ) -from .ases import AsesResource, AsyncAsesResource -from .ases import ( - AsesResourceWithRawResponse, - AsyncAsesResourceWithRawResponse, - AsesResourceWithStreamingResponse, - AsyncAsesResourceWithStreamingResponse, -) __all__ = [ "BotClassResource", diff --git a/src/cloudflare/resources/radar/http/ases/ases.py b/src/cloudflare/resources/radar/http/ases/ases.py index d7172497f..a275adbc0 100644 --- a/src/cloudflare/resources/radar/http/ases/ases.py +++ b/src/cloudflare/resources/radar/http/ases/ases.py @@ -2,55 +2,20 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx -from .bot_class import BotClassResource, AsyncBotClassResource - -from ....._compat import cached_property - -from .device_type import DeviceTypeResource, AsyncDeviceTypeResource - -from .http_protocol import HTTPProtocolResource, AsyncHTTPProtocolResource - -from .http_method import HTTPMethodResource, AsyncHTTPMethodResource - -from .ip_version import IPVersionResource, AsyncIPVersionResource - -from .os import OSResource, AsyncOSResource - -from .tls_version import TLSVersionResource, AsyncTLSVersionResource - -from .browser_family import BrowserFamilyResource, AsyncBrowserFamilyResource - -from .....types.radar.http.ase_get_response import AseGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, +from .os import ( + OSResource, + AsyncOSResource, + OSResourceWithRawResponse, + AsyncOSResourceWithRawResponse, + OSResourceWithStreamingResponse, + AsyncOSResourceWithStreamingResponse, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.radar.http import ase_get_params from .bot_class import ( BotClassResource, AsyncBotClassResource, @@ -59,29 +24,10 @@ from .bot_class import ( BotClassResourceWithStreamingResponse, AsyncBotClassResourceWithStreamingResponse, ) -from .device_type import ( - DeviceTypeResource, - AsyncDeviceTypeResource, - DeviceTypeResourceWithRawResponse, - AsyncDeviceTypeResourceWithRawResponse, - DeviceTypeResourceWithStreamingResponse, - AsyncDeviceTypeResourceWithStreamingResponse, -) -from .http_protocol import ( - HTTPProtocolResource, - AsyncHTTPProtocolResource, - HTTPProtocolResourceWithRawResponse, - AsyncHTTPProtocolResourceWithRawResponse, - HTTPProtocolResourceWithStreamingResponse, - AsyncHTTPProtocolResourceWithStreamingResponse, -) -from .http_method import ( - HTTPMethodResource, - AsyncHTTPMethodResource, - HTTPMethodResourceWithRawResponse, - AsyncHTTPMethodResourceWithRawResponse, - HTTPMethodResourceWithStreamingResponse, - AsyncHTTPMethodResourceWithStreamingResponse, +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, ) from .ip_version import ( IPVersionResource, @@ -91,13 +37,22 @@ from .ip_version import ( IPVersionResourceWithStreamingResponse, AsyncIPVersionResourceWithStreamingResponse, ) -from .os import ( - OSResource, - AsyncOSResource, - OSResourceWithRawResponse, - AsyncOSResourceWithRawResponse, - OSResourceWithStreamingResponse, - AsyncOSResourceWithStreamingResponse, +from ....._compat import cached_property +from .device_type import ( + DeviceTypeResource, + AsyncDeviceTypeResource, + DeviceTypeResourceWithRawResponse, + AsyncDeviceTypeResourceWithRawResponse, + DeviceTypeResourceWithStreamingResponse, + AsyncDeviceTypeResourceWithStreamingResponse, +) +from .http_method import ( + HTTPMethodResource, + AsyncHTTPMethodResource, + HTTPMethodResourceWithRawResponse, + AsyncHTTPMethodResourceWithRawResponse, + HTTPMethodResourceWithStreamingResponse, + AsyncHTTPMethodResourceWithStreamingResponse, ) from .tls_version import ( TLSVersionResource, @@ -107,6 +62,22 @@ from .tls_version import ( TLSVersionResourceWithStreamingResponse, AsyncTLSVersionResourceWithStreamingResponse, ) +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....._wrappers import ResultWrapper +from .http_protocol import ( + HTTPProtocolResource, + AsyncHTTPProtocolResource, + HTTPProtocolResourceWithRawResponse, + AsyncHTTPProtocolResourceWithRawResponse, + HTTPProtocolResourceWithStreamingResponse, + AsyncHTTPProtocolResourceWithStreamingResponse, +) from .browser_family import ( BrowserFamilyResource, AsyncBrowserFamilyResource, @@ -115,8 +86,9 @@ from .browser_family import ( BrowserFamilyResourceWithStreamingResponse, AsyncBrowserFamilyResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from ....._base_client import make_request_options +from .....types.radar.http import ase_get_params +from .....types.radar.http.ase_get_response import AseGetResponse __all__ = ["AsesResource", "AsyncAsesResource"] diff --git a/src/cloudflare/resources/radar/http/ases/bot_class.py b/src/cloudflare/resources/radar/http/ases/bot_class.py index ca866401e..3f4493e31 100644 --- a/src/cloudflare/resources/radar/http/ases/bot_class.py +++ b/src/cloudflare/resources/radar/http/ases/bot_class.py @@ -2,41 +2,29 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.http.ases.bot_class_get_response import BotClassGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.radar.http.ases import bot_class_get_params -from typing import cast -from typing import cast +from .....types.radar.http.ases.bot_class_get_response import BotClassGetResponse __all__ = ["BotClassResource", "AsyncBotClassResource"] diff --git a/src/cloudflare/resources/radar/http/ases/browser_family.py b/src/cloudflare/resources/radar/http/ases/browser_family.py index d61fb0bc1..bcc9fb106 100644 --- a/src/cloudflare/resources/radar/http/ases/browser_family.py +++ b/src/cloudflare/resources/radar/http/ases/browser_family.py @@ -2,41 +2,29 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.http.ases.browser_family_get_response import BrowserFamilyGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.radar.http.ases import browser_family_get_params -from typing import cast -from typing import cast +from .....types.radar.http.ases.browser_family_get_response import BrowserFamilyGetResponse __all__ = ["BrowserFamilyResource", "AsyncBrowserFamilyResource"] diff --git a/src/cloudflare/resources/radar/http/ases/device_type.py b/src/cloudflare/resources/radar/http/ases/device_type.py index e66eab968..13de5ce2c 100644 --- a/src/cloudflare/resources/radar/http/ases/device_type.py +++ b/src/cloudflare/resources/radar/http/ases/device_type.py @@ -2,41 +2,29 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.http.ases.device_type_get_response import DeviceTypeGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.radar.http.ases import device_type_get_params -from typing import cast -from typing import cast +from .....types.radar.http.ases.device_type_get_response import DeviceTypeGetResponse __all__ = ["DeviceTypeResource", "AsyncDeviceTypeResource"] diff --git a/src/cloudflare/resources/radar/http/ases/http_method.py b/src/cloudflare/resources/radar/http/ases/http_method.py index f290ebcf8..8a2527c12 100644 --- a/src/cloudflare/resources/radar/http/ases/http_method.py +++ b/src/cloudflare/resources/radar/http/ases/http_method.py @@ -2,41 +2,29 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.http.ases.http_method_get_response import HTTPMethodGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.radar.http.ases import http_method_get_params -from typing import cast -from typing import cast +from .....types.radar.http.ases.http_method_get_response import HTTPMethodGetResponse __all__ = ["HTTPMethodResource", "AsyncHTTPMethodResource"] diff --git a/src/cloudflare/resources/radar/http/ases/http_protocol.py b/src/cloudflare/resources/radar/http/ases/http_protocol.py index 096e2c5ab..69342c498 100644 --- a/src/cloudflare/resources/radar/http/ases/http_protocol.py +++ b/src/cloudflare/resources/radar/http/ases/http_protocol.py @@ -2,41 +2,29 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.http.ases.http_protocol_get_response import HTTPProtocolGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.radar.http.ases import http_protocol_get_params -from typing import cast -from typing import cast +from .....types.radar.http.ases.http_protocol_get_response import HTTPProtocolGetResponse __all__ = ["HTTPProtocolResource", "AsyncHTTPProtocolResource"] diff --git a/src/cloudflare/resources/radar/http/ases/ip_version.py b/src/cloudflare/resources/radar/http/ases/ip_version.py index 5c79c9490..30c602493 100644 --- a/src/cloudflare/resources/radar/http/ases/ip_version.py +++ b/src/cloudflare/resources/radar/http/ases/ip_version.py @@ -2,41 +2,29 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.http.ases.ip_version_get_response import IPVersionGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.radar.http.ases import ip_version_get_params -from typing import cast -from typing import cast +from .....types.radar.http.ases.ip_version_get_response import IPVersionGetResponse __all__ = ["IPVersionResource", "AsyncIPVersionResource"] diff --git a/src/cloudflare/resources/radar/http/ases/os.py b/src/cloudflare/resources/radar/http/ases/os.py index d2aed5157..f394fff78 100644 --- a/src/cloudflare/resources/radar/http/ases/os.py +++ b/src/cloudflare/resources/radar/http/ases/os.py @@ -2,41 +2,29 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.http.ases.os_get_response import OSGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.radar.http.ases import os_get_params -from typing import cast -from typing import cast +from .....types.radar.http.ases.os_get_response import OSGetResponse __all__ = ["OSResource", "AsyncOSResource"] diff --git a/src/cloudflare/resources/radar/http/ases/tls_version.py b/src/cloudflare/resources/radar/http/ases/tls_version.py index 6055244a2..22ab58f84 100644 --- a/src/cloudflare/resources/radar/http/ases/tls_version.py +++ b/src/cloudflare/resources/radar/http/ases/tls_version.py @@ -2,41 +2,29 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.http.ases.tls_version_get_response import TLSVersionGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.radar.http.ases import tls_version_get_params -from typing import cast -from typing import cast +from .....types.radar.http.ases.tls_version_get_response import TLSVersionGetResponse __all__ = ["TLSVersionResource", "AsyncTLSVersionResource"] diff --git a/src/cloudflare/resources/radar/http/http.py b/src/cloudflare/resources/radar/http/http.py index a1609d109..cad474da8 100644 --- a/src/cloudflare/resources/radar/http/http.py +++ b/src/cloudflare/resources/radar/http/http.py @@ -2,56 +2,19 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx -from .locations.locations import LocationsResource, AsyncLocationsResource - -from ...._compat import cached_property - -from .ases.ases import AsesResource, AsyncAsesResource - -from .summary import SummaryResource, AsyncSummaryResource - -from .timeseries_groups import TimeseriesGroupsResource, AsyncTimeseriesGroupsResource - -from .top import TopResource, AsyncTopResource - -from ....types.radar.http_timeseries_response import HTTPTimeseriesResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.radar import http_timeseries_params -from .locations import ( - LocationsResource, - AsyncLocationsResource, - LocationsResourceWithRawResponse, - AsyncLocationsResourceWithRawResponse, - LocationsResourceWithStreamingResponse, - AsyncLocationsResourceWithStreamingResponse, +from .top import ( + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) from .ases import ( AsesResource, @@ -69,6 +32,31 @@ from .summary import ( SummaryResourceWithStreamingResponse, AsyncSummaryResourceWithStreamingResponse, ) +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from .ases.ases import AsesResource, AsyncAsesResource +from .locations import ( + LocationsResource, + AsyncLocationsResource, + LocationsResourceWithRawResponse, + AsyncLocationsResourceWithRawResponse, + LocationsResourceWithStreamingResponse, + AsyncLocationsResourceWithStreamingResponse, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....types.radar import http_timeseries_params +from ...._base_client import make_request_options from .timeseries_groups import ( TimeseriesGroupsResource, AsyncTimeseriesGroupsResource, @@ -77,16 +65,8 @@ from .timeseries_groups import ( TimeseriesGroupsResourceWithStreamingResponse, AsyncTimeseriesGroupsResourceWithStreamingResponse, ) -from .top import ( - TopResource, - AsyncTopResource, - TopResourceWithRawResponse, - AsyncTopResourceWithRawResponse, - TopResourceWithStreamingResponse, - AsyncTopResourceWithStreamingResponse, -) -from typing import cast -from typing import cast +from .locations.locations import LocationsResource, AsyncLocationsResource +from ....types.radar.http_timeseries_response import HTTPTimeseriesResponse __all__ = ["HTTPResource", "AsyncHTTPResource"] diff --git a/src/cloudflare/resources/radar/http/locations/__init__.py b/src/cloudflare/resources/radar/http/locations/__init__.py index 67e9dcac2..3e402801e 100644 --- a/src/cloudflare/resources/radar/http/locations/__init__.py +++ b/src/cloudflare/resources/radar/http/locations/__init__.py @@ -1,68 +1,77 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .bot_class import BotClassResource, AsyncBotClassResource -from .bot_class import ( - BotClassResourceWithRawResponse, - AsyncBotClassResourceWithRawResponse, - BotClassResourceWithStreamingResponse, - AsyncBotClassResourceWithStreamingResponse, -) -from .device_type import DeviceTypeResource, AsyncDeviceTypeResource -from .device_type import ( - DeviceTypeResourceWithRawResponse, - AsyncDeviceTypeResourceWithRawResponse, - DeviceTypeResourceWithStreamingResponse, - AsyncDeviceTypeResourceWithStreamingResponse, -) -from .http_protocol import HTTPProtocolResource, AsyncHTTPProtocolResource -from .http_protocol import ( - HTTPProtocolResourceWithRawResponse, - AsyncHTTPProtocolResourceWithRawResponse, - HTTPProtocolResourceWithStreamingResponse, - AsyncHTTPProtocolResourceWithStreamingResponse, -) -from .http_method import HTTPMethodResource, AsyncHTTPMethodResource -from .http_method import ( - HTTPMethodResourceWithRawResponse, - AsyncHTTPMethodResourceWithRawResponse, - HTTPMethodResourceWithStreamingResponse, - AsyncHTTPMethodResourceWithStreamingResponse, -) -from .ip_version import IPVersionResource, AsyncIPVersionResource -from .ip_version import ( - IPVersionResourceWithRawResponse, - AsyncIPVersionResourceWithRawResponse, - IPVersionResourceWithStreamingResponse, - AsyncIPVersionResourceWithStreamingResponse, -) -from .os import OSResource, AsyncOSResource from .os import ( + OSResource, + AsyncOSResource, OSResourceWithRawResponse, AsyncOSResourceWithRawResponse, OSResourceWithStreamingResponse, AsyncOSResourceWithStreamingResponse, ) -from .tls_version import TLSVersionResource, AsyncTLSVersionResource +from .bot_class import ( + BotClassResource, + AsyncBotClassResource, + BotClassResourceWithRawResponse, + AsyncBotClassResourceWithRawResponse, + BotClassResourceWithStreamingResponse, + AsyncBotClassResourceWithStreamingResponse, +) +from .locations import ( + LocationsResource, + AsyncLocationsResource, + LocationsResourceWithRawResponse, + AsyncLocationsResourceWithRawResponse, + LocationsResourceWithStreamingResponse, + AsyncLocationsResourceWithStreamingResponse, +) +from .ip_version import ( + IPVersionResource, + AsyncIPVersionResource, + IPVersionResourceWithRawResponse, + AsyncIPVersionResourceWithRawResponse, + IPVersionResourceWithStreamingResponse, + AsyncIPVersionResourceWithStreamingResponse, +) +from .device_type import ( + DeviceTypeResource, + AsyncDeviceTypeResource, + DeviceTypeResourceWithRawResponse, + AsyncDeviceTypeResourceWithRawResponse, + DeviceTypeResourceWithStreamingResponse, + AsyncDeviceTypeResourceWithStreamingResponse, +) +from .http_method import ( + HTTPMethodResource, + AsyncHTTPMethodResource, + HTTPMethodResourceWithRawResponse, + AsyncHTTPMethodResourceWithRawResponse, + HTTPMethodResourceWithStreamingResponse, + AsyncHTTPMethodResourceWithStreamingResponse, +) from .tls_version import ( + TLSVersionResource, + AsyncTLSVersionResource, TLSVersionResourceWithRawResponse, AsyncTLSVersionResourceWithRawResponse, TLSVersionResourceWithStreamingResponse, AsyncTLSVersionResourceWithStreamingResponse, ) -from .browser_family import BrowserFamilyResource, AsyncBrowserFamilyResource +from .http_protocol import ( + HTTPProtocolResource, + AsyncHTTPProtocolResource, + HTTPProtocolResourceWithRawResponse, + AsyncHTTPProtocolResourceWithRawResponse, + HTTPProtocolResourceWithStreamingResponse, + AsyncHTTPProtocolResourceWithStreamingResponse, +) from .browser_family import ( + BrowserFamilyResource, + AsyncBrowserFamilyResource, BrowserFamilyResourceWithRawResponse, AsyncBrowserFamilyResourceWithRawResponse, BrowserFamilyResourceWithStreamingResponse, AsyncBrowserFamilyResourceWithStreamingResponse, ) -from .locations import LocationsResource, AsyncLocationsResource -from .locations import ( - LocationsResourceWithRawResponse, - AsyncLocationsResourceWithRawResponse, - LocationsResourceWithStreamingResponse, - AsyncLocationsResourceWithStreamingResponse, -) __all__ = [ "BotClassResource", diff --git a/src/cloudflare/resources/radar/http/locations/bot_class.py b/src/cloudflare/resources/radar/http/locations/bot_class.py index 1a736fc1f..943db404c 100644 --- a/src/cloudflare/resources/radar/http/locations/bot_class.py +++ b/src/cloudflare/resources/radar/http/locations/bot_class.py @@ -2,41 +2,29 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.http.locations.bot_class_get_response import BotClassGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.radar.http.locations import bot_class_get_params -from typing import cast -from typing import cast +from .....types.radar.http.locations.bot_class_get_response import BotClassGetResponse __all__ = ["BotClassResource", "AsyncBotClassResource"] diff --git a/src/cloudflare/resources/radar/http/locations/browser_family.py b/src/cloudflare/resources/radar/http/locations/browser_family.py index b88dd9aa5..3c5693a7e 100644 --- a/src/cloudflare/resources/radar/http/locations/browser_family.py +++ b/src/cloudflare/resources/radar/http/locations/browser_family.py @@ -2,41 +2,29 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.http.locations.browser_family_get_response import BrowserFamilyGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.radar.http.locations import browser_family_get_params -from typing import cast -from typing import cast +from .....types.radar.http.locations.browser_family_get_response import BrowserFamilyGetResponse __all__ = ["BrowserFamilyResource", "AsyncBrowserFamilyResource"] diff --git a/src/cloudflare/resources/radar/http/locations/device_type.py b/src/cloudflare/resources/radar/http/locations/device_type.py index 08d62389a..982e239c7 100644 --- a/src/cloudflare/resources/radar/http/locations/device_type.py +++ b/src/cloudflare/resources/radar/http/locations/device_type.py @@ -2,41 +2,29 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.http.locations.device_type_get_response import DeviceTypeGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.radar.http.locations import device_type_get_params -from typing import cast -from typing import cast +from .....types.radar.http.locations.device_type_get_response import DeviceTypeGetResponse __all__ = ["DeviceTypeResource", "AsyncDeviceTypeResource"] diff --git a/src/cloudflare/resources/radar/http/locations/http_method.py b/src/cloudflare/resources/radar/http/locations/http_method.py index eb9e2a694..54df75051 100644 --- a/src/cloudflare/resources/radar/http/locations/http_method.py +++ b/src/cloudflare/resources/radar/http/locations/http_method.py @@ -2,41 +2,29 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.http.locations.http_method_get_response import HTTPMethodGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.radar.http.locations import http_method_get_params -from typing import cast -from typing import cast +from .....types.radar.http.locations.http_method_get_response import HTTPMethodGetResponse __all__ = ["HTTPMethodResource", "AsyncHTTPMethodResource"] diff --git a/src/cloudflare/resources/radar/http/locations/http_protocol.py b/src/cloudflare/resources/radar/http/locations/http_protocol.py index 9a8a4f5f3..5c434792c 100644 --- a/src/cloudflare/resources/radar/http/locations/http_protocol.py +++ b/src/cloudflare/resources/radar/http/locations/http_protocol.py @@ -2,41 +2,29 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.http.locations.http_protocol_get_response import HTTPProtocolGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.radar.http.locations import http_protocol_get_params -from typing import cast -from typing import cast +from .....types.radar.http.locations.http_protocol_get_response import HTTPProtocolGetResponse __all__ = ["HTTPProtocolResource", "AsyncHTTPProtocolResource"] diff --git a/src/cloudflare/resources/radar/http/locations/ip_version.py b/src/cloudflare/resources/radar/http/locations/ip_version.py index 6b7a25818..c41ee9653 100644 --- a/src/cloudflare/resources/radar/http/locations/ip_version.py +++ b/src/cloudflare/resources/radar/http/locations/ip_version.py @@ -2,41 +2,29 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.http.locations.ip_version_get_response import IPVersionGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.radar.http.locations import ip_version_get_params -from typing import cast -from typing import cast +from .....types.radar.http.locations.ip_version_get_response import IPVersionGetResponse __all__ = ["IPVersionResource", "AsyncIPVersionResource"] diff --git a/src/cloudflare/resources/radar/http/locations/locations.py b/src/cloudflare/resources/radar/http/locations/locations.py index 17b56baac..9055706a4 100644 --- a/src/cloudflare/resources/radar/http/locations/locations.py +++ b/src/cloudflare/resources/radar/http/locations/locations.py @@ -2,55 +2,20 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx -from .bot_class import BotClassResource, AsyncBotClassResource - -from ....._compat import cached_property - -from .device_type import DeviceTypeResource, AsyncDeviceTypeResource - -from .http_protocol import HTTPProtocolResource, AsyncHTTPProtocolResource - -from .http_method import HTTPMethodResource, AsyncHTTPMethodResource - -from .ip_version import IPVersionResource, AsyncIPVersionResource - -from .os import OSResource, AsyncOSResource - -from .tls_version import TLSVersionResource, AsyncTLSVersionResource - -from .browser_family import BrowserFamilyResource, AsyncBrowserFamilyResource - -from .....types.radar.http.location_get_response import LocationGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, +from .os import ( + OSResource, + AsyncOSResource, + OSResourceWithRawResponse, + AsyncOSResourceWithRawResponse, + OSResourceWithStreamingResponse, + AsyncOSResourceWithStreamingResponse, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.radar.http import location_get_params from .bot_class import ( BotClassResource, AsyncBotClassResource, @@ -59,29 +24,10 @@ from .bot_class import ( BotClassResourceWithStreamingResponse, AsyncBotClassResourceWithStreamingResponse, ) -from .device_type import ( - DeviceTypeResource, - AsyncDeviceTypeResource, - DeviceTypeResourceWithRawResponse, - AsyncDeviceTypeResourceWithRawResponse, - DeviceTypeResourceWithStreamingResponse, - AsyncDeviceTypeResourceWithStreamingResponse, -) -from .http_protocol import ( - HTTPProtocolResource, - AsyncHTTPProtocolResource, - HTTPProtocolResourceWithRawResponse, - AsyncHTTPProtocolResourceWithRawResponse, - HTTPProtocolResourceWithStreamingResponse, - AsyncHTTPProtocolResourceWithStreamingResponse, -) -from .http_method import ( - HTTPMethodResource, - AsyncHTTPMethodResource, - HTTPMethodResourceWithRawResponse, - AsyncHTTPMethodResourceWithRawResponse, - HTTPMethodResourceWithStreamingResponse, - AsyncHTTPMethodResourceWithStreamingResponse, +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, ) from .ip_version import ( IPVersionResource, @@ -91,13 +37,22 @@ from .ip_version import ( IPVersionResourceWithStreamingResponse, AsyncIPVersionResourceWithStreamingResponse, ) -from .os import ( - OSResource, - AsyncOSResource, - OSResourceWithRawResponse, - AsyncOSResourceWithRawResponse, - OSResourceWithStreamingResponse, - AsyncOSResourceWithStreamingResponse, +from ....._compat import cached_property +from .device_type import ( + DeviceTypeResource, + AsyncDeviceTypeResource, + DeviceTypeResourceWithRawResponse, + AsyncDeviceTypeResourceWithRawResponse, + DeviceTypeResourceWithStreamingResponse, + AsyncDeviceTypeResourceWithStreamingResponse, +) +from .http_method import ( + HTTPMethodResource, + AsyncHTTPMethodResource, + HTTPMethodResourceWithRawResponse, + AsyncHTTPMethodResourceWithRawResponse, + HTTPMethodResourceWithStreamingResponse, + AsyncHTTPMethodResourceWithStreamingResponse, ) from .tls_version import ( TLSVersionResource, @@ -107,6 +62,22 @@ from .tls_version import ( TLSVersionResourceWithStreamingResponse, AsyncTLSVersionResourceWithStreamingResponse, ) +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....._wrappers import ResultWrapper +from .http_protocol import ( + HTTPProtocolResource, + AsyncHTTPProtocolResource, + HTTPProtocolResourceWithRawResponse, + AsyncHTTPProtocolResourceWithRawResponse, + HTTPProtocolResourceWithStreamingResponse, + AsyncHTTPProtocolResourceWithStreamingResponse, +) from .browser_family import ( BrowserFamilyResource, AsyncBrowserFamilyResource, @@ -115,8 +86,9 @@ from .browser_family import ( BrowserFamilyResourceWithStreamingResponse, AsyncBrowserFamilyResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from ....._base_client import make_request_options +from .....types.radar.http import location_get_params +from .....types.radar.http.location_get_response import LocationGetResponse __all__ = ["LocationsResource", "AsyncLocationsResource"] diff --git a/src/cloudflare/resources/radar/http/locations/os.py b/src/cloudflare/resources/radar/http/locations/os.py index 7f10e0b8b..131769f84 100644 --- a/src/cloudflare/resources/radar/http/locations/os.py +++ b/src/cloudflare/resources/radar/http/locations/os.py @@ -2,41 +2,29 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.http.locations.os_get_response import OSGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.radar.http.locations import os_get_params -from typing import cast -from typing import cast +from .....types.radar.http.locations.os_get_response import OSGetResponse __all__ = ["OSResource", "AsyncOSResource"] diff --git a/src/cloudflare/resources/radar/http/locations/tls_version.py b/src/cloudflare/resources/radar/http/locations/tls_version.py index d4c4cf6d9..0ece72750 100644 --- a/src/cloudflare/resources/radar/http/locations/tls_version.py +++ b/src/cloudflare/resources/radar/http/locations/tls_version.py @@ -2,41 +2,29 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.http.locations.tls_version_get_response import TLSVersionGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.radar.http.locations import tls_version_get_params -from typing import cast -from typing import cast +from .....types.radar.http.locations.tls_version_get_response import TLSVersionGetResponse __all__ = ["TLSVersionResource", "AsyncTLSVersionResource"] diff --git a/src/cloudflare/resources/radar/http/summary.py b/src/cloudflare/resources/radar/http/summary.py index ccd07a12b..59e479d8c 100644 --- a/src/cloudflare/resources/radar/http/summary.py +++ b/src/cloudflare/resources/radar/http/summary.py @@ -2,76 +2,45 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.radar.http.summary_bot_class_response import SummaryBotClassResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, List, Union - -from datetime import datetime - -from typing_extensions import Literal - -from ....types.radar.http.summary_device_type_response import SummaryDeviceTypeResponse - -from ....types.radar.http.summary_http_protocol_response import SummaryHTTPProtocolResponse - -from ....types.radar.http.summary_http_version_response import SummaryHTTPVersionResponse - -from ....types.radar.http.summary_ip_version_response import SummaryIPVersionResponse - -from ....types.radar.http.summary_os_response import SummaryOSResponse - -from ....types.radar.http.summary_post_quantum_response import SummaryPostQuantumResponse - -from ....types.radar.http.summary_tls_version_response import SummaryTLSVersionResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.radar.http import summary_bot_class_params -from ....types.radar.http import summary_device_type_params -from ....types.radar.http import summary_http_protocol_params -from ....types.radar.http import summary_http_version_params -from ....types.radar.http import summary_ip_version_params -from ....types.radar.http import summary_os_params -from ....types.radar.http import summary_post_quantum_params -from ....types.radar.http import summary_tls_version_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.radar.http import ( + summary_os_params, + summary_bot_class_params, + summary_ip_version_params, + summary_device_type_params, + summary_tls_version_params, + summary_http_version_params, + summary_post_quantum_params, + summary_http_protocol_params, +) +from ....types.radar.http.summary_os_response import SummaryOSResponse +from ....types.radar.http.summary_bot_class_response import SummaryBotClassResponse +from ....types.radar.http.summary_ip_version_response import SummaryIPVersionResponse +from ....types.radar.http.summary_device_type_response import SummaryDeviceTypeResponse +from ....types.radar.http.summary_tls_version_response import SummaryTLSVersionResponse +from ....types.radar.http.summary_http_version_response import SummaryHTTPVersionResponse +from ....types.radar.http.summary_post_quantum_response import SummaryPostQuantumResponse +from ....types.radar.http.summary_http_protocol_response import SummaryHTTPProtocolResponse __all__ = ["SummaryResource", "AsyncSummaryResource"] diff --git a/src/cloudflare/resources/radar/http/timeseries_groups.py b/src/cloudflare/resources/radar/http/timeseries_groups.py index 7c8990926..d1e43be8b 100644 --- a/src/cloudflare/resources/radar/http/timeseries_groups.py +++ b/src/cloudflare/resources/radar/http/timeseries_groups.py @@ -2,86 +2,49 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.radar.http.timeseries_group_bot_class_response import TimeseriesGroupBotClassResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - -from ....types.radar.http.timeseries_group_browser_response import TimeseriesGroupBrowserResponse - -from ....types.radar.http.timeseries_group_browser_family_response import TimeseriesGroupBrowserFamilyResponse - -from ....types.radar.http.timeseries_group_device_type_response import TimeseriesGroupDeviceTypeResponse - -from ....types.radar.http.timeseries_group_http_protocol_response import TimeseriesGroupHTTPProtocolResponse - -from ....types.radar.http.timeseries_group_http_version_response import TimeseriesGroupHTTPVersionResponse - -from ....types.radar.http.timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse - -from ....types.radar.http.timeseries_group_os_response import TimeseriesGroupOSResponse - -from ....types.radar.http.timeseries_group_post_quantum_response import TimeseriesGroupPostQuantumResponse - -from ....types.radar.http.timeseries_group_tls_version_response import TimeseriesGroupTLSVersionResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.radar.http import timeseries_group_bot_class_params -from ....types.radar.http import timeseries_group_browser_params -from ....types.radar.http import timeseries_group_browser_family_params -from ....types.radar.http import timeseries_group_device_type_params -from ....types.radar.http import timeseries_group_http_protocol_params -from ....types.radar.http import timeseries_group_http_version_params -from ....types.radar.http import timeseries_group_ip_version_params -from ....types.radar.http import timeseries_group_os_params -from ....types.radar.http import timeseries_group_post_quantum_params -from ....types.radar.http import timeseries_group_tls_version_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.radar.http import ( + timeseries_group_os_params, + timeseries_group_browser_params, + timeseries_group_bot_class_params, + timeseries_group_ip_version_params, + timeseries_group_device_type_params, + timeseries_group_tls_version_params, + timeseries_group_http_version_params, + timeseries_group_post_quantum_params, + timeseries_group_http_protocol_params, + timeseries_group_browser_family_params, +) +from ....types.radar.http.timeseries_group_os_response import TimeseriesGroupOSResponse +from ....types.radar.http.timeseries_group_browser_response import TimeseriesGroupBrowserResponse +from ....types.radar.http.timeseries_group_bot_class_response import TimeseriesGroupBotClassResponse +from ....types.radar.http.timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse +from ....types.radar.http.timeseries_group_device_type_response import TimeseriesGroupDeviceTypeResponse +from ....types.radar.http.timeseries_group_tls_version_response import TimeseriesGroupTLSVersionResponse +from ....types.radar.http.timeseries_group_http_version_response import TimeseriesGroupHTTPVersionResponse +from ....types.radar.http.timeseries_group_post_quantum_response import TimeseriesGroupPostQuantumResponse +from ....types.radar.http.timeseries_group_http_protocol_response import TimeseriesGroupHTTPProtocolResponse +from ....types.radar.http.timeseries_group_browser_family_response import TimeseriesGroupBrowserFamilyResponse __all__ = ["TimeseriesGroupsResource", "AsyncTimeseriesGroupsResource"] diff --git a/src/cloudflare/resources/radar/http/top.py b/src/cloudflare/resources/radar/http/top.py index 9b5a5e938..86cc1368f 100644 --- a/src/cloudflare/resources/radar/http/top.py +++ b/src/cloudflare/resources/radar/http/top.py @@ -2,46 +2,30 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.radar.http.top_browser_response import TopBrowserResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - -from ....types.radar.http.top_browser_family_response import TopBrowserFamilyResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.radar.http import top_browser_params -from ....types.radar.http import top_browser_family_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.radar.http import top_browser_params, top_browser_family_params +from ....types.radar.http.top_browser_response import TopBrowserResponse +from ....types.radar.http.top_browser_family_response import TopBrowserFamilyResponse __all__ = ["TopResource", "AsyncTopResource"] diff --git a/src/cloudflare/resources/radar/netflows/__init__.py b/src/cloudflare/resources/radar/netflows/__init__.py index 6f48bdb33..a98978678 100644 --- a/src/cloudflare/resources/radar/netflows/__init__.py +++ b/src/cloudflare/resources/radar/netflows/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .top import TopResource, AsyncTopResource from .top import ( + TopResource, + AsyncTopResource, TopResourceWithRawResponse, AsyncTopResourceWithRawResponse, TopResourceWithStreamingResponse, AsyncTopResourceWithStreamingResponse, ) -from .netflows import NetflowsResource, AsyncNetflowsResource from .netflows import ( + NetflowsResource, + AsyncNetflowsResource, NetflowsResourceWithRawResponse, AsyncNetflowsResourceWithRawResponse, NetflowsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/radar/netflows/netflows.py b/src/cloudflare/resources/radar/netflows/netflows.py index 3aa305a3d..d41c13762 100644 --- a/src/cloudflare/resources/radar/netflows/netflows.py +++ b/src/cloudflare/resources/radar/netflows/netflows.py @@ -2,44 +2,12 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx -from .top import TopResource, AsyncTopResource - -from ...._compat import cached_property - -from ....types.radar.netflow_summary_response import NetflowSummaryResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, List, Union - -from datetime import datetime - -from typing_extensions import Literal - -from ....types.radar.netflow_timeseries_response import NetflowTimeseriesResponse - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.radar import netflow_summary_params -from ....types.radar import netflow_timeseries_params from .top import ( TopResource, AsyncTopResource, @@ -48,10 +16,24 @@ from .top import ( TopResourceWithStreamingResponse, AsyncTopResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....types.radar import netflow_summary_params, netflow_timeseries_params +from ...._base_client import make_request_options +from ....types.radar.netflow_summary_response import NetflowSummaryResponse +from ....types.radar.netflow_timeseries_response import NetflowTimeseriesResponse __all__ = ["NetflowsResource", "AsyncNetflowsResource"] diff --git a/src/cloudflare/resources/radar/netflows/top.py b/src/cloudflare/resources/radar/netflows/top.py index b8fd549b7..a16cb4ef7 100644 --- a/src/cloudflare/resources/radar/netflows/top.py +++ b/src/cloudflare/resources/radar/netflows/top.py @@ -2,46 +2,30 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.radar.netflows.top_ases_response import TopAsesResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, List, Union - -from datetime import datetime - -from typing_extensions import Literal - -from ....types.radar.netflows.top_locations_response import TopLocationsResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.radar.netflows import top_ases_params -from ....types.radar.netflows import top_locations_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.radar.netflows import top_ases_params, top_locations_params +from ....types.radar.netflows.top_ases_response import TopAsesResponse +from ....types.radar.netflows.top_locations_response import TopLocationsResponse __all__ = ["TopResource", "AsyncTopResource"] diff --git a/src/cloudflare/resources/radar/quality/__init__.py b/src/cloudflare/resources/radar/quality/__init__.py index 1ce552ecc..ed91d35be 100644 --- a/src/cloudflare/resources/radar/quality/__init__.py +++ b/src/cloudflare/resources/radar/quality/__init__.py @@ -1,21 +1,24 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .iqi import IQIResource, AsyncIQIResource from .iqi import ( + IQIResource, + AsyncIQIResource, IQIResourceWithRawResponse, AsyncIQIResourceWithRawResponse, IQIResourceWithStreamingResponse, AsyncIQIResourceWithStreamingResponse, ) -from .speed import SpeedResource, AsyncSpeedResource from .speed import ( + SpeedResource, + AsyncSpeedResource, SpeedResourceWithRawResponse, AsyncSpeedResourceWithRawResponse, SpeedResourceWithStreamingResponse, AsyncSpeedResourceWithStreamingResponse, ) -from .quality import QualityResource, AsyncQualityResource from .quality import ( + QualityResource, + AsyncQualityResource, QualityResourceWithRawResponse, AsyncQualityResourceWithRawResponse, QualityResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/radar/quality/iqi.py b/src/cloudflare/resources/radar/quality/iqi.py index a07eca109..ceb5522fc 100644 --- a/src/cloudflare/resources/radar/quality/iqi.py +++ b/src/cloudflare/resources/radar/quality/iqi.py @@ -2,46 +2,30 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.radar.quality.iqi_summary_response import IQISummaryResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, List, Union - -from typing_extensions import Literal - -from datetime import datetime - -from ....types.radar.quality.iqi_timeseries_groups_response import IQITimeseriesGroupsResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.radar.quality import iqi_summary_params -from ....types.radar.quality import iqi_timeseries_groups_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.radar.quality import iqi_summary_params, iqi_timeseries_groups_params +from ....types.radar.quality.iqi_summary_response import IQISummaryResponse +from ....types.radar.quality.iqi_timeseries_groups_response import IQITimeseriesGroupsResponse __all__ = ["IQIResource", "AsyncIQIResource"] diff --git a/src/cloudflare/resources/radar/quality/quality.py b/src/cloudflare/resources/radar/quality/quality.py index 54b367ca0..a5fb5b19f 100644 --- a/src/cloudflare/resources/radar/quality/quality.py +++ b/src/cloudflare/resources/radar/quality/quality.py @@ -2,19 +2,6 @@ from __future__ import annotations -from .iqi import IQIResource, AsyncIQIResource - -from ...._compat import cached_property - -from .speed.speed import SpeedResource, AsyncSpeedResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params from .iqi import ( IQIResource, AsyncIQIResource, @@ -31,6 +18,9 @@ from .speed import ( SpeedResourceWithStreamingResponse, AsyncSpeedResourceWithStreamingResponse, ) +from ...._compat import cached_property +from .speed.speed import SpeedResource, AsyncSpeedResource +from ...._resource import SyncAPIResource, AsyncAPIResource __all__ = ["QualityResource", "AsyncQualityResource"] diff --git a/src/cloudflare/resources/radar/quality/speed/__init__.py b/src/cloudflare/resources/radar/quality/speed/__init__.py index f5116eee5..1069242d3 100644 --- a/src/cloudflare/resources/radar/quality/speed/__init__.py +++ b/src/cloudflare/resources/radar/quality/speed/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .top import TopResource, AsyncTopResource from .top import ( + TopResource, + AsyncTopResource, TopResourceWithRawResponse, AsyncTopResourceWithRawResponse, TopResourceWithStreamingResponse, AsyncTopResourceWithStreamingResponse, ) -from .speed import SpeedResource, AsyncSpeedResource from .speed import ( + SpeedResource, + AsyncSpeedResource, SpeedResourceWithRawResponse, AsyncSpeedResourceWithRawResponse, SpeedResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/radar/quality/speed/speed.py b/src/cloudflare/resources/radar/quality/speed/speed.py index 68b390323..58823322d 100644 --- a/src/cloudflare/resources/radar/quality/speed/speed.py +++ b/src/cloudflare/resources/radar/quality/speed/speed.py @@ -2,44 +2,12 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx -from .top import TopResource, AsyncTopResource - -from ....._compat import cached_property - -from .....types.radar.quality.speed_histogram_response import SpeedHistogramResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from datetime import datetime - -from typing_extensions import Literal - -from .....types.radar.quality.speed_summary_response import SpeedSummaryResponse - -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.radar.quality import speed_histogram_params -from .....types.radar.quality import speed_summary_params from .top import ( TopResource, AsyncTopResource, @@ -48,10 +16,24 @@ from .top import ( TopResourceWithStreamingResponse, AsyncTopResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.radar.quality import speed_summary_params, speed_histogram_params +from .....types.radar.quality.speed_summary_response import SpeedSummaryResponse +from .....types.radar.quality.speed_histogram_response import SpeedHistogramResponse __all__ = ["SpeedResource", "AsyncSpeedResource"] diff --git a/src/cloudflare/resources/radar/quality/speed/top.py b/src/cloudflare/resources/radar/quality/speed/top.py index 42453b404..966bcea0e 100644 --- a/src/cloudflare/resources/radar/quality/speed/top.py +++ b/src/cloudflare/resources/radar/quality/speed/top.py @@ -2,46 +2,30 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.radar.quality.speed.top_ases_response import TopAsesResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List, Union - -from datetime import datetime - -from typing_extensions import Literal - -from .....types.radar.quality.speed.top_locations_response import TopLocationsResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.radar.quality.speed import top_ases_params -from .....types.radar.quality.speed import top_locations_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.radar.quality.speed import top_ases_params, top_locations_params +from .....types.radar.quality.speed.top_ases_response import TopAsesResponse +from .....types.radar.quality.speed.top_locations_response import TopLocationsResponse __all__ = ["TopResource", "AsyncTopResource"] diff --git a/src/cloudflare/resources/radar/radar.py b/src/cloudflare/resources/radar/radar.py index 32110a1e0..3300d6478 100644 --- a/src/cloudflare/resources/radar/radar.py +++ b/src/cloudflare/resources/radar/radar.py @@ -2,51 +2,6 @@ from __future__ import annotations -from .ai.ai import AIResource, AsyncAIResource - -from ..._compat import cached_property - -from .annotations.annotations import AnnotationsResource, AsyncAnnotationsResource - -from .bgp.bgp import BGPResource, AsyncBGPResource - -from .datasets import DatasetsResource, AsyncDatasetsResource - -from .dns.dns import DNSResource, AsyncDNSResource - -from .netflows.netflows import NetflowsResource, AsyncNetflowsResource - -from .search import SearchResource, AsyncSearchResource - -from .verified_bots.verified_bots import VerifiedBotsResource, AsyncVerifiedBotsResource - -from .as112.as112 import AS112Resource, AsyncAS112Resource - -from .email.email import EmailResource, AsyncEmailResource - -from .attacks.attacks import AttacksResource, AsyncAttacksResource - -from .entities.entities import EntitiesResource, AsyncEntitiesResource - -from .http.http import HTTPResource, AsyncHTTPResource - -from .quality.quality import QualityResource, AsyncQualityResource - -from .ranking.ranking import RankingResource, AsyncRankingResource - -from .traffic_anomalies.traffic_anomalies import TrafficAnomaliesResource, AsyncTrafficAnomaliesResource - -from .tcp_resets_timeouts import TCPResetsTimeoutsResource, AsyncTCPResetsTimeoutsResource - -from .robots_txt.robots_txt import RobotsTXTResource, AsyncRobotsTXTResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .ai import ( AIResource, AsyncAIResource, @@ -55,14 +10,6 @@ from .ai import ( AIResourceWithStreamingResponse, AsyncAIResourceWithStreamingResponse, ) -from .annotations import ( - AnnotationsResource, - AsyncAnnotationsResource, - AnnotationsResourceWithRawResponse, - AsyncAnnotationsResourceWithRawResponse, - AnnotationsResourceWithStreamingResponse, - AsyncAnnotationsResourceWithStreamingResponse, -) from .bgp import ( BGPResource, AsyncBGPResource, @@ -71,14 +18,6 @@ from .bgp import ( BGPResourceWithStreamingResponse, AsyncBGPResourceWithStreamingResponse, ) -from .datasets import ( - DatasetsResource, - AsyncDatasetsResource, - DatasetsResourceWithRawResponse, - AsyncDatasetsResourceWithRawResponse, - DatasetsResourceWithStreamingResponse, - AsyncDatasetsResourceWithStreamingResponse, -) from .dns import ( DNSResource, AsyncDNSResource, @@ -87,30 +26,15 @@ from .dns import ( DNSResourceWithStreamingResponse, AsyncDNSResourceWithStreamingResponse, ) -from .netflows import ( - NetflowsResource, - AsyncNetflowsResource, - NetflowsResourceWithRawResponse, - AsyncNetflowsResourceWithRawResponse, - NetflowsResourceWithStreamingResponse, - AsyncNetflowsResourceWithStreamingResponse, -) -from .search import ( - SearchResource, - AsyncSearchResource, - SearchResourceWithRawResponse, - AsyncSearchResourceWithRawResponse, - SearchResourceWithStreamingResponse, - AsyncSearchResourceWithStreamingResponse, -) -from .verified_bots import ( - VerifiedBotsResource, - AsyncVerifiedBotsResource, - VerifiedBotsResourceWithRawResponse, - AsyncVerifiedBotsResourceWithRawResponse, - VerifiedBotsResourceWithStreamingResponse, - AsyncVerifiedBotsResourceWithStreamingResponse, +from .http import ( + HTTPResource, + AsyncHTTPResource, + HTTPResourceWithRawResponse, + AsyncHTTPResourceWithRawResponse, + HTTPResourceWithStreamingResponse, + AsyncHTTPResourceWithStreamingResponse, ) +from .ai.ai import AIResource, AsyncAIResource from .as112 import ( AS112Resource, AsyncAS112Resource, @@ -127,6 +51,14 @@ from .email import ( EmailResourceWithStreamingResponse, AsyncEmailResourceWithStreamingResponse, ) +from .search import ( + SearchResource, + AsyncSearchResource, + SearchResourceWithRawResponse, + AsyncSearchResourceWithRawResponse, + SearchResourceWithStreamingResponse, + AsyncSearchResourceWithStreamingResponse, +) from .attacks import ( AttacksResource, AsyncAttacksResource, @@ -135,22 +67,8 @@ from .attacks import ( AttacksResourceWithStreamingResponse, AsyncAttacksResourceWithStreamingResponse, ) -from .entities import ( - EntitiesResource, - AsyncEntitiesResource, - EntitiesResourceWithRawResponse, - AsyncEntitiesResourceWithRawResponse, - EntitiesResourceWithStreamingResponse, - AsyncEntitiesResourceWithStreamingResponse, -) -from .http import ( - HTTPResource, - AsyncHTTPResource, - HTTPResourceWithRawResponse, - AsyncHTTPResourceWithRawResponse, - HTTPResourceWithStreamingResponse, - AsyncHTTPResourceWithStreamingResponse, -) +from .bgp.bgp import BGPResource, AsyncBGPResource +from .dns.dns import DNSResource, AsyncDNSResource from .quality import ( QualityResource, AsyncQualityResource, @@ -167,6 +85,56 @@ from .ranking import ( RankingResourceWithStreamingResponse, AsyncRankingResourceWithStreamingResponse, ) +from .datasets import ( + DatasetsResource, + AsyncDatasetsResource, + DatasetsResourceWithRawResponse, + AsyncDatasetsResourceWithRawResponse, + DatasetsResourceWithStreamingResponse, + AsyncDatasetsResourceWithStreamingResponse, +) +from .entities import ( + EntitiesResource, + AsyncEntitiesResource, + EntitiesResourceWithRawResponse, + AsyncEntitiesResourceWithRawResponse, + EntitiesResourceWithStreamingResponse, + AsyncEntitiesResourceWithStreamingResponse, +) +from .netflows import ( + NetflowsResource, + AsyncNetflowsResource, + NetflowsResourceWithRawResponse, + AsyncNetflowsResourceWithRawResponse, + NetflowsResourceWithStreamingResponse, + AsyncNetflowsResourceWithStreamingResponse, +) +from ..._compat import cached_property +from .http.http import HTTPResource, AsyncHTTPResource +from ..._resource import SyncAPIResource, AsyncAPIResource +from .annotations import ( + AnnotationsResource, + AsyncAnnotationsResource, + AnnotationsResourceWithRawResponse, + AsyncAnnotationsResourceWithRawResponse, + AnnotationsResourceWithStreamingResponse, + AsyncAnnotationsResourceWithStreamingResponse, +) +from .as112.as112 import AS112Resource, AsyncAS112Resource +from .email.email import EmailResource, AsyncEmailResource +from .verified_bots import ( + VerifiedBotsResource, + AsyncVerifiedBotsResource, + VerifiedBotsResourceWithRawResponse, + AsyncVerifiedBotsResourceWithRawResponse, + VerifiedBotsResourceWithStreamingResponse, + AsyncVerifiedBotsResourceWithStreamingResponse, +) +from .attacks.attacks import AttacksResource, AsyncAttacksResource +from .quality.quality import QualityResource, AsyncQualityResource +from .ranking.ranking import RankingResource, AsyncRankingResource +from .entities.entities import EntitiesResource, AsyncEntitiesResource +from .netflows.netflows import NetflowsResource, AsyncNetflowsResource from .traffic_anomalies import ( TrafficAnomaliesResource, AsyncTrafficAnomaliesResource, @@ -183,14 +151,9 @@ from .tcp_resets_timeouts import ( TCPResetsTimeoutsResourceWithStreamingResponse, AsyncTCPResetsTimeoutsResourceWithStreamingResponse, ) -from .robots_txt import ( - RobotsTXTResource, - AsyncRobotsTXTResource, - RobotsTXTResourceWithRawResponse, - AsyncRobotsTXTResourceWithRawResponse, - RobotsTXTResourceWithStreamingResponse, - AsyncRobotsTXTResourceWithStreamingResponse, -) +from .annotations.annotations import AnnotationsResource, AsyncAnnotationsResource +from .verified_bots.verified_bots import VerifiedBotsResource, AsyncVerifiedBotsResource +from .traffic_anomalies.traffic_anomalies import TrafficAnomaliesResource, AsyncTrafficAnomaliesResource __all__ = ["RadarResource", "AsyncRadarResource"] @@ -264,10 +227,6 @@ class RadarResource(SyncAPIResource): def tcp_resets_timeouts(self) -> TCPResetsTimeoutsResource: return TCPResetsTimeoutsResource(self._client) - @cached_property - def robots_txt(self) -> RobotsTXTResource: - return RobotsTXTResource(self._client) - @cached_property def with_raw_response(self) -> RadarResourceWithRawResponse: return RadarResourceWithRawResponse(self) @@ -346,10 +305,6 @@ class AsyncRadarResource(AsyncAPIResource): def tcp_resets_timeouts(self) -> AsyncTCPResetsTimeoutsResource: return AsyncTCPResetsTimeoutsResource(self._client) - @cached_property - def robots_txt(self) -> AsyncRobotsTXTResource: - return AsyncRobotsTXTResource(self._client) - @cached_property def with_raw_response(self) -> AsyncRadarResourceWithRawResponse: return AsyncRadarResourceWithRawResponse(self) @@ -431,10 +386,6 @@ class RadarResourceWithRawResponse: def tcp_resets_timeouts(self) -> TCPResetsTimeoutsResourceWithRawResponse: return TCPResetsTimeoutsResourceWithRawResponse(self._radar.tcp_resets_timeouts) - @cached_property - def robots_txt(self) -> RobotsTXTResourceWithRawResponse: - return RobotsTXTResourceWithRawResponse(self._radar.robots_txt) - class AsyncRadarResourceWithRawResponse: def __init__(self, radar: AsyncRadarResource) -> None: @@ -508,10 +459,6 @@ class AsyncRadarResourceWithRawResponse: def tcp_resets_timeouts(self) -> AsyncTCPResetsTimeoutsResourceWithRawResponse: return AsyncTCPResetsTimeoutsResourceWithRawResponse(self._radar.tcp_resets_timeouts) - @cached_property - def robots_txt(self) -> AsyncRobotsTXTResourceWithRawResponse: - return AsyncRobotsTXTResourceWithRawResponse(self._radar.robots_txt) - class RadarResourceWithStreamingResponse: def __init__(self, radar: RadarResource) -> None: @@ -585,10 +532,6 @@ class RadarResourceWithStreamingResponse: def tcp_resets_timeouts(self) -> TCPResetsTimeoutsResourceWithStreamingResponse: return TCPResetsTimeoutsResourceWithStreamingResponse(self._radar.tcp_resets_timeouts) - @cached_property - def robots_txt(self) -> RobotsTXTResourceWithStreamingResponse: - return RobotsTXTResourceWithStreamingResponse(self._radar.robots_txt) - class AsyncRadarResourceWithStreamingResponse: def __init__(self, radar: AsyncRadarResource) -> None: @@ -661,7 +604,3 @@ class AsyncRadarResourceWithStreamingResponse: @cached_property def tcp_resets_timeouts(self) -> AsyncTCPResetsTimeoutsResourceWithStreamingResponse: return AsyncTCPResetsTimeoutsResourceWithStreamingResponse(self._radar.tcp_resets_timeouts) - - @cached_property - def robots_txt(self) -> AsyncRobotsTXTResourceWithStreamingResponse: - return AsyncRobotsTXTResourceWithStreamingResponse(self._radar.robots_txt) diff --git a/src/cloudflare/resources/radar/ranking/__init__.py b/src/cloudflare/resources/radar/ranking/__init__.py index cf122d53b..cbb9e681f 100644 --- a/src/cloudflare/resources/radar/ranking/__init__.py +++ b/src/cloudflare/resources/radar/ranking/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .domain import DomainResource, AsyncDomainResource from .domain import ( + DomainResource, + AsyncDomainResource, DomainResourceWithRawResponse, AsyncDomainResourceWithRawResponse, DomainResourceWithStreamingResponse, AsyncDomainResourceWithStreamingResponse, ) -from .ranking import RankingResource, AsyncRankingResource from .ranking import ( + RankingResource, + AsyncRankingResource, RankingResourceWithRawResponse, AsyncRankingResourceWithRawResponse, RankingResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/radar/ranking/domain.py b/src/cloudflare/resources/radar/ranking/domain.py index a5d7a3e82..c44caa950 100644 --- a/src/cloudflare/resources/radar/ranking/domain.py +++ b/src/cloudflare/resources/radar/ranking/domain.py @@ -2,39 +2,28 @@ from __future__ import annotations +from typing import List, Type, cast +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.radar.ranking.domain_get_response import DomainGetResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, List - -from typing_extensions import Literal - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.radar.ranking import domain_get_params -from typing import cast -from typing import cast +from ....types.radar.ranking.domain_get_response import DomainGetResponse __all__ = ["DomainResource", "AsyncDomainResource"] diff --git a/src/cloudflare/resources/radar/ranking/ranking.py b/src/cloudflare/resources/radar/ranking/ranking.py index 45bbe54ae..0bfe61b8d 100644 --- a/src/cloudflare/resources/radar/ranking/ranking.py +++ b/src/cloudflare/resources/radar/ranking/ranking.py @@ -2,44 +2,12 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx -from .domain import DomainResource, AsyncDomainResource - -from ...._compat import cached_property - -from ....types.radar.ranking_timeseries_groups_response import RankingTimeseriesGroupsResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, List, Union - -from datetime import datetime - -from typing_extensions import Literal - -from ....types.radar.ranking_top_response import RankingTopResponse - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.radar import ranking_timeseries_groups_params -from ....types.radar import ranking_top_params from .domain import ( DomainResource, AsyncDomainResource, @@ -48,10 +16,24 @@ from .domain import ( DomainResourceWithStreamingResponse, AsyncDomainResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....types.radar import ranking_top_params, ranking_timeseries_groups_params +from ...._base_client import make_request_options +from ....types.radar.ranking_top_response import RankingTopResponse +from ....types.radar.ranking_timeseries_groups_response import RankingTimeseriesGroupsResponse __all__ = ["RankingResource", "AsyncRankingResource"] diff --git a/src/cloudflare/resources/radar/robots_txt/__init__.py b/src/cloudflare/resources/radar/robots_txt/__init__.py deleted file mode 100644 index b50d1b5b1..000000000 --- a/src/cloudflare/resources/radar/robots_txt/__init__.py +++ /dev/null @@ -1,31 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from .top import TopResource, AsyncTopResource -from .top import ( - TopResourceWithRawResponse, - AsyncTopResourceWithRawResponse, - TopResourceWithStreamingResponse, - AsyncTopResourceWithStreamingResponse, -) -from .robots_txt import RobotsTXTResource, AsyncRobotsTXTResource -from .robots_txt import ( - RobotsTXTResourceWithRawResponse, - AsyncRobotsTXTResourceWithRawResponse, - RobotsTXTResourceWithStreamingResponse, - AsyncRobotsTXTResourceWithStreamingResponse, -) - -__all__ = [ - "TopResource", - "AsyncTopResource", - "TopResourceWithRawResponse", - "AsyncTopResourceWithRawResponse", - "TopResourceWithStreamingResponse", - "AsyncTopResourceWithStreamingResponse", - "RobotsTXTResource", - "AsyncRobotsTXTResource", - "RobotsTXTResourceWithRawResponse", - "AsyncRobotsTXTResourceWithRawResponse", - "RobotsTXTResourceWithStreamingResponse", - "AsyncRobotsTXTResourceWithStreamingResponse", -] diff --git a/src/cloudflare/resources/radar/robots_txt/robots_txt.py b/src/cloudflare/resources/radar/robots_txt/robots_txt.py deleted file mode 100644 index 4d4482a63..000000000 --- a/src/cloudflare/resources/radar/robots_txt/robots_txt.py +++ /dev/null @@ -1,247 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -import httpx - -from .top.top import TopResource, AsyncTopResource - -from ...._compat import cached_property - -from ....types.radar.robots_txt_domains_response import RobotsTXTDomainsResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type - -from typing_extensions import Literal - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.radar import robots_txt_domains_params -from .top import ( - TopResource, - AsyncTopResource, - TopResourceWithRawResponse, - AsyncTopResourceWithRawResponse, - TopResourceWithStreamingResponse, - AsyncTopResourceWithStreamingResponse, -) -from typing import cast -from typing import cast - -__all__ = ["RobotsTXTResource", "AsyncRobotsTXTResource"] - - -class RobotsTXTResource(SyncAPIResource): - @cached_property - def top(self) -> TopResource: - return TopResource(self._client) - - @cached_property - def with_raw_response(self) -> RobotsTXTResourceWithRawResponse: - return RobotsTXTResourceWithRawResponse(self) - - @cached_property - def with_streaming_response(self) -> RobotsTXTResourceWithStreamingResponse: - return RobotsTXTResourceWithStreamingResponse(self) - - def domains( - self, - *, - domain_category: str | NotGiven = NOT_GIVEN, - domain_name: str | NotGiven = NOT_GIVEN, - format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - offset: int | NotGiven = NOT_GIVEN, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> RobotsTXTDomainsResponse: - """ - Get the top User-Agents on robots.txt files by domain. - - Args: - domain_category: Filter domains by category - - domain_name: Filter domains by name - - format: Format results are returned in. - - limit: Limit the number of objects in the response. - - offset: Number of objects to skip before grabbing results. - - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - return self._get( - "/radar/robots_txt/domains", - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - query=maybe_transform( - { - "domain_category": domain_category, - "domain_name": domain_name, - "format": format, - "limit": limit, - "offset": offset, - }, - robots_txt_domains_params.RobotsTXTDomainsParams, - ), - post_parser=ResultWrapper[RobotsTXTDomainsResponse]._unwrapper, - ), - cast_to=cast(Type[RobotsTXTDomainsResponse], ResultWrapper[RobotsTXTDomainsResponse]), - ) - - -class AsyncRobotsTXTResource(AsyncAPIResource): - @cached_property - def top(self) -> AsyncTopResource: - return AsyncTopResource(self._client) - - @cached_property - def with_raw_response(self) -> AsyncRobotsTXTResourceWithRawResponse: - return AsyncRobotsTXTResourceWithRawResponse(self) - - @cached_property - def with_streaming_response(self) -> AsyncRobotsTXTResourceWithStreamingResponse: - return AsyncRobotsTXTResourceWithStreamingResponse(self) - - async def domains( - self, - *, - domain_category: str | NotGiven = NOT_GIVEN, - domain_name: str | NotGiven = NOT_GIVEN, - format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - offset: int | NotGiven = NOT_GIVEN, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> RobotsTXTDomainsResponse: - """ - Get the top User-Agents on robots.txt files by domain. - - Args: - domain_category: Filter domains by category - - domain_name: Filter domains by name - - format: Format results are returned in. - - limit: Limit the number of objects in the response. - - offset: Number of objects to skip before grabbing results. - - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - return await self._get( - "/radar/robots_txt/domains", - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - query=await async_maybe_transform( - { - "domain_category": domain_category, - "domain_name": domain_name, - "format": format, - "limit": limit, - "offset": offset, - }, - robots_txt_domains_params.RobotsTXTDomainsParams, - ), - post_parser=ResultWrapper[RobotsTXTDomainsResponse]._unwrapper, - ), - cast_to=cast(Type[RobotsTXTDomainsResponse], ResultWrapper[RobotsTXTDomainsResponse]), - ) - - -class RobotsTXTResourceWithRawResponse: - def __init__(self, robots_txt: RobotsTXTResource) -> None: - self._robots_txt = robots_txt - - self.domains = to_raw_response_wrapper( - robots_txt.domains, - ) - - @cached_property - def top(self) -> TopResourceWithRawResponse: - return TopResourceWithRawResponse(self._robots_txt.top) - - -class AsyncRobotsTXTResourceWithRawResponse: - def __init__(self, robots_txt: AsyncRobotsTXTResource) -> None: - self._robots_txt = robots_txt - - self.domains = async_to_raw_response_wrapper( - robots_txt.domains, - ) - - @cached_property - def top(self) -> AsyncTopResourceWithRawResponse: - return AsyncTopResourceWithRawResponse(self._robots_txt.top) - - -class RobotsTXTResourceWithStreamingResponse: - def __init__(self, robots_txt: RobotsTXTResource) -> None: - self._robots_txt = robots_txt - - self.domains = to_streamed_response_wrapper( - robots_txt.domains, - ) - - @cached_property - def top(self) -> TopResourceWithStreamingResponse: - return TopResourceWithStreamingResponse(self._robots_txt.top) - - -class AsyncRobotsTXTResourceWithStreamingResponse: - def __init__(self, robots_txt: AsyncRobotsTXTResource) -> None: - self._robots_txt = robots_txt - - self.domains = async_to_streamed_response_wrapper( - robots_txt.domains, - ) - - @cached_property - def top(self) -> AsyncTopResourceWithStreamingResponse: - return AsyncTopResourceWithStreamingResponse(self._robots_txt.top) diff --git a/src/cloudflare/resources/radar/robots_txt/top/__init__.py b/src/cloudflare/resources/radar/robots_txt/top/__init__.py deleted file mode 100644 index e825a3706..000000000 --- a/src/cloudflare/resources/radar/robots_txt/top/__init__.py +++ /dev/null @@ -1,31 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from .directive import DirectiveResource, AsyncDirectiveResource -from .directive import ( - DirectiveResourceWithRawResponse, - AsyncDirectiveResourceWithRawResponse, - DirectiveResourceWithStreamingResponse, - AsyncDirectiveResourceWithStreamingResponse, -) -from .top import TopResource, AsyncTopResource -from .top import ( - TopResourceWithRawResponse, - AsyncTopResourceWithRawResponse, - TopResourceWithStreamingResponse, - AsyncTopResourceWithStreamingResponse, -) - -__all__ = [ - "DirectiveResource", - "AsyncDirectiveResource", - "DirectiveResourceWithRawResponse", - "AsyncDirectiveResourceWithRawResponse", - "DirectiveResourceWithStreamingResponse", - "AsyncDirectiveResourceWithStreamingResponse", - "TopResource", - "AsyncTopResource", - "TopResourceWithRawResponse", - "AsyncTopResourceWithRawResponse", - "TopResourceWithStreamingResponse", - "AsyncTopResourceWithStreamingResponse", -] diff --git a/src/cloudflare/resources/radar/robots_txt/top/directive.py b/src/cloudflare/resources/radar/robots_txt/top/directive.py deleted file mode 100644 index 461695e2c..000000000 --- a/src/cloudflare/resources/radar/robots_txt/top/directive.py +++ /dev/null @@ -1,223 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -import httpx - -from ....._compat import cached_property - -from .....types.radar.robots_txt.top.directive_get_response import DirectiveGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type, List - -from typing_extensions import Literal - -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.radar.robots_txt.top import directive_get_params -from typing import cast -from typing import cast - -__all__ = ["DirectiveResource", "AsyncDirectiveResource"] - - -class DirectiveResource(SyncAPIResource): - @cached_property - def with_raw_response(self) -> DirectiveResourceWithRawResponse: - return DirectiveResourceWithRawResponse(self) - - @cached_property - def with_streaming_response(self) -> DirectiveResourceWithStreamingResponse: - return DirectiveResourceWithStreamingResponse(self) - - def get( - self, - directive: Literal["ALLOW", "DISALLOW"], - *, - agent_category: Literal["AI"] | NotGiven = NOT_GIVEN, - date: str | NotGiven = NOT_GIVEN, - format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - name: List[str] | NotGiven = NOT_GIVEN, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DirectiveGetResponse: - """ - Get the top User-Agents on robots.txt files by directive. - - Args: - directive: Robots.txt directive. - - agent_category: Filter by user agent category. - - date: Date to filter the ranking. - - format: Format results are returned in. - - limit: Limit the number of objects in the response. - - name: Array of names that will be used to name the series in responses. - - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - if not directive: - raise ValueError(f"Expected a non-empty value for `directive` but received {directive!r}") - return self._get( - f"/radar/robots_txt/top/{directive}", - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - query=maybe_transform( - { - "agent_category": agent_category, - "date": date, - "format": format, - "limit": limit, - "name": name, - }, - directive_get_params.DirectiveGetParams, - ), - post_parser=ResultWrapper[DirectiveGetResponse]._unwrapper, - ), - cast_to=cast(Type[DirectiveGetResponse], ResultWrapper[DirectiveGetResponse]), - ) - - -class AsyncDirectiveResource(AsyncAPIResource): - @cached_property - def with_raw_response(self) -> AsyncDirectiveResourceWithRawResponse: - return AsyncDirectiveResourceWithRawResponse(self) - - @cached_property - def with_streaming_response(self) -> AsyncDirectiveResourceWithStreamingResponse: - return AsyncDirectiveResourceWithStreamingResponse(self) - - async def get( - self, - directive: Literal["ALLOW", "DISALLOW"], - *, - agent_category: Literal["AI"] | NotGiven = NOT_GIVEN, - date: str | NotGiven = NOT_GIVEN, - format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, - limit: int | NotGiven = NOT_GIVEN, - name: List[str] | NotGiven = NOT_GIVEN, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DirectiveGetResponse: - """ - Get the top User-Agents on robots.txt files by directive. - - Args: - directive: Robots.txt directive. - - agent_category: Filter by user agent category. - - date: Date to filter the ranking. - - format: Format results are returned in. - - limit: Limit the number of objects in the response. - - name: Array of names that will be used to name the series in responses. - - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - if not directive: - raise ValueError(f"Expected a non-empty value for `directive` but received {directive!r}") - return await self._get( - f"/radar/robots_txt/top/{directive}", - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - query=await async_maybe_transform( - { - "agent_category": agent_category, - "date": date, - "format": format, - "limit": limit, - "name": name, - }, - directive_get_params.DirectiveGetParams, - ), - post_parser=ResultWrapper[DirectiveGetResponse]._unwrapper, - ), - cast_to=cast(Type[DirectiveGetResponse], ResultWrapper[DirectiveGetResponse]), - ) - - -class DirectiveResourceWithRawResponse: - def __init__(self, directive: DirectiveResource) -> None: - self._directive = directive - - self.get = to_raw_response_wrapper( - directive.get, - ) - - -class AsyncDirectiveResourceWithRawResponse: - def __init__(self, directive: AsyncDirectiveResource) -> None: - self._directive = directive - - self.get = async_to_raw_response_wrapper( - directive.get, - ) - - -class DirectiveResourceWithStreamingResponse: - def __init__(self, directive: DirectiveResource) -> None: - self._directive = directive - - self.get = to_streamed_response_wrapper( - directive.get, - ) - - -class AsyncDirectiveResourceWithStreamingResponse: - def __init__(self, directive: AsyncDirectiveResource) -> None: - self._directive = directive - - self.get = async_to_streamed_response_wrapper( - directive.get, - ) diff --git a/src/cloudflare/resources/radar/robots_txt/top/top.py b/src/cloudflare/resources/radar/robots_txt/top/top.py deleted file mode 100644 index d202b848b..000000000 --- a/src/cloudflare/resources/radar/robots_txt/top/top.py +++ /dev/null @@ -1,89 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from .directive import DirectiveResource, AsyncDirectiveResource - -from ....._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .directive import ( - DirectiveResource, - AsyncDirectiveResource, - DirectiveResourceWithRawResponse, - AsyncDirectiveResourceWithRawResponse, - DirectiveResourceWithStreamingResponse, - AsyncDirectiveResourceWithStreamingResponse, -) - -__all__ = ["TopResource", "AsyncTopResource"] - - -class TopResource(SyncAPIResource): - @cached_property - def directive(self) -> DirectiveResource: - return DirectiveResource(self._client) - - @cached_property - def with_raw_response(self) -> TopResourceWithRawResponse: - return TopResourceWithRawResponse(self) - - @cached_property - def with_streaming_response(self) -> TopResourceWithStreamingResponse: - return TopResourceWithStreamingResponse(self) - - -class AsyncTopResource(AsyncAPIResource): - @cached_property - def directive(self) -> AsyncDirectiveResource: - return AsyncDirectiveResource(self._client) - - @cached_property - def with_raw_response(self) -> AsyncTopResourceWithRawResponse: - return AsyncTopResourceWithRawResponse(self) - - @cached_property - def with_streaming_response(self) -> AsyncTopResourceWithStreamingResponse: - return AsyncTopResourceWithStreamingResponse(self) - - -class TopResourceWithRawResponse: - def __init__(self, top: TopResource) -> None: - self._top = top - - @cached_property - def directive(self) -> DirectiveResourceWithRawResponse: - return DirectiveResourceWithRawResponse(self._top.directive) - - -class AsyncTopResourceWithRawResponse: - def __init__(self, top: AsyncTopResource) -> None: - self._top = top - - @cached_property - def directive(self) -> AsyncDirectiveResourceWithRawResponse: - return AsyncDirectiveResourceWithRawResponse(self._top.directive) - - -class TopResourceWithStreamingResponse: - def __init__(self, top: TopResource) -> None: - self._top = top - - @cached_property - def directive(self) -> DirectiveResourceWithStreamingResponse: - return DirectiveResourceWithStreamingResponse(self._top.directive) - - -class AsyncTopResourceWithStreamingResponse: - def __init__(self, top: AsyncTopResource) -> None: - self._top = top - - @cached_property - def directive(self) -> AsyncDirectiveResourceWithStreamingResponse: - return AsyncDirectiveResourceWithStreamingResponse(self._top.directive) diff --git a/src/cloudflare/resources/radar/search.py b/src/cloudflare/resources/radar/search.py index 898aca1d9..18cb4de52 100644 --- a/src/cloudflare/resources/radar/search.py +++ b/src/cloudflare/resources/radar/search.py @@ -2,39 +2,28 @@ from __future__ import annotations +from typing import List, Type, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.radar.search_global_response import SearchGlobalResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing import Type, List - -from typing_extensions import Literal - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper from ...types.radar import search_global_params -from typing import cast -from typing import cast +from ..._base_client import make_request_options +from ...types.radar.search_global_response import SearchGlobalResponse __all__ = ["SearchResource", "AsyncSearchResource"] diff --git a/src/cloudflare/resources/radar/tcp_resets_timeouts.py b/src/cloudflare/resources/radar/tcp_resets_timeouts.py index 0d3893cc8..1a87837a3 100644 --- a/src/cloudflare/resources/radar/tcp_resets_timeouts.py +++ b/src/cloudflare/resources/radar/tcp_resets_timeouts.py @@ -2,46 +2,30 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.radar.tcp_resets_timeout_summary_response import TCPResetsTimeoutSummaryResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing import Type, List, Union - -from datetime import datetime - -from typing_extensions import Literal - -from ...types.radar.tcp_resets_timeout_timeseries_groups_response import TCPResetsTimeoutTimeseriesGroupsResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.radar import tcp_resets_timeout_summary_params -from ...types.radar import tcp_resets_timeout_timeseries_groups_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...types.radar import tcp_resets_timeout_summary_params, tcp_resets_timeout_timeseries_groups_params +from ..._base_client import make_request_options +from ...types.radar.tcp_resets_timeout_summary_response import TCPResetsTimeoutSummaryResponse +from ...types.radar.tcp_resets_timeout_timeseries_groups_response import TCPResetsTimeoutTimeseriesGroupsResponse __all__ = ["TCPResetsTimeoutsResource", "AsyncTCPResetsTimeoutsResource"] diff --git a/src/cloudflare/resources/radar/traffic_anomalies/__init__.py b/src/cloudflare/resources/radar/traffic_anomalies/__init__.py index 2faa583fe..122941b73 100644 --- a/src/cloudflare/resources/radar/traffic_anomalies/__init__.py +++ b/src/cloudflare/resources/radar/traffic_anomalies/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .locations import LocationsResource, AsyncLocationsResource from .locations import ( + LocationsResource, + AsyncLocationsResource, LocationsResourceWithRawResponse, AsyncLocationsResourceWithRawResponse, LocationsResourceWithStreamingResponse, AsyncLocationsResourceWithStreamingResponse, ) -from .traffic_anomalies import TrafficAnomaliesResource, AsyncTrafficAnomaliesResource from .traffic_anomalies import ( + TrafficAnomaliesResource, + AsyncTrafficAnomaliesResource, TrafficAnomaliesResourceWithRawResponse, AsyncTrafficAnomaliesResourceWithRawResponse, TrafficAnomaliesResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/radar/traffic_anomalies/locations.py b/src/cloudflare/resources/radar/traffic_anomalies/locations.py index 2beb30f52..9acfecc4e 100644 --- a/src/cloudflare/resources/radar/traffic_anomalies/locations.py +++ b/src/cloudflare/resources/radar/traffic_anomalies/locations.py @@ -2,41 +2,29 @@ from __future__ import annotations +from typing import Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.radar.traffic_anomalies.location_get_response import LocationGetResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, Union - -from datetime import datetime - -from typing_extensions import Literal - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.radar.traffic_anomalies import location_get_params -from typing import cast -from typing import cast +from ....types.radar.traffic_anomalies.location_get_response import LocationGetResponse __all__ = ["LocationsResource", "AsyncLocationsResource"] diff --git a/src/cloudflare/resources/radar/traffic_anomalies/traffic_anomalies.py b/src/cloudflare/resources/radar/traffic_anomalies/traffic_anomalies.py index fd76fd259..3060a34f7 100644 --- a/src/cloudflare/resources/radar/traffic_anomalies/traffic_anomalies.py +++ b/src/cloudflare/resources/radar/traffic_anomalies/traffic_anomalies.py @@ -2,41 +2,17 @@ from __future__ import annotations +from typing import Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx -from .locations import LocationsResource, AsyncLocationsResource - -from ...._compat import cached_property - -from ....types.radar.traffic_anomaly_get_response import TrafficAnomalyGetResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, Union - -from datetime import datetime - -from typing_extensions import Literal - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.radar import traffic_anomaly_get_params from .locations import ( LocationsResource, AsyncLocationsResource, @@ -45,8 +21,18 @@ from .locations import ( LocationsResourceWithStreamingResponse, AsyncLocationsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....types.radar import traffic_anomaly_get_params +from ...._base_client import make_request_options +from ....types.radar.traffic_anomaly_get_response import TrafficAnomalyGetResponse __all__ = ["TrafficAnomaliesResource", "AsyncTrafficAnomaliesResource"] diff --git a/src/cloudflare/resources/radar/verified_bots/__init__.py b/src/cloudflare/resources/radar/verified_bots/__init__.py index 29e59dc00..e4a6ff0a0 100644 --- a/src/cloudflare/resources/radar/verified_bots/__init__.py +++ b/src/cloudflare/resources/radar/verified_bots/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .top import TopResource, AsyncTopResource from .top import ( + TopResource, + AsyncTopResource, TopResourceWithRawResponse, AsyncTopResourceWithRawResponse, TopResourceWithStreamingResponse, AsyncTopResourceWithStreamingResponse, ) -from .verified_bots import VerifiedBotsResource, AsyncVerifiedBotsResource from .verified_bots import ( + VerifiedBotsResource, + AsyncVerifiedBotsResource, VerifiedBotsResourceWithRawResponse, AsyncVerifiedBotsResourceWithRawResponse, VerifiedBotsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/radar/verified_bots/top.py b/src/cloudflare/resources/radar/verified_bots/top.py index e95f6d319..86e94bb80 100644 --- a/src/cloudflare/resources/radar/verified_bots/top.py +++ b/src/cloudflare/resources/radar/verified_bots/top.py @@ -2,46 +2,30 @@ from __future__ import annotations +from typing import List, Type, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.radar.verified_bots.top_bots_response import TopBotsResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, List, Union - -from datetime import datetime - -from typing_extensions import Literal - -from ....types.radar.verified_bots.top_categories_response import TopCategoriesResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.radar.verified_bots import top_bots_params -from ....types.radar.verified_bots import top_categories_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.radar.verified_bots import top_bots_params, top_categories_params +from ....types.radar.verified_bots.top_bots_response import TopBotsResponse +from ....types.radar.verified_bots.top_categories_response import TopCategoriesResponse __all__ = ["TopResource", "AsyncTopResource"] diff --git a/src/cloudflare/resources/radar/verified_bots/verified_bots.py b/src/cloudflare/resources/radar/verified_bots/verified_bots.py index f9e671268..d2563c2d4 100644 --- a/src/cloudflare/resources/radar/verified_bots/verified_bots.py +++ b/src/cloudflare/resources/radar/verified_bots/verified_bots.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .top import TopResource, AsyncTopResource - -from ...._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params from .top import ( TopResource, AsyncTopResource, @@ -21,6 +10,8 @@ from .top import ( TopResourceWithStreamingResponse, AsyncTopResourceWithStreamingResponse, ) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource __all__ = ["VerifiedBotsResource", "AsyncVerifiedBotsResource"] diff --git a/src/cloudflare/resources/rate_limits.py b/src/cloudflare/resources/rate_limits.py index 7904db110..bc19f3be5 100644 --- a/src/cloudflare/resources/rate_limits.py +++ b/src/cloudflare/resources/rate_limits.py @@ -3,64 +3,32 @@ from __future__ import annotations import typing_extensions +from typing import Any, Type, cast import httpx +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .._utils import ( + maybe_transform, + async_maybe_transform, +) from .._compat import cached_property - -from ..types.rate_limits.rate_limit_create_response import RateLimitCreateResponse - -from .._wrappers import ResultWrapper - -from .._utils import maybe_transform, async_maybe_transform - -from .._base_client import make_request_options, AsyncPaginator - -from ..types.rate_limits.rate_limit import RateLimit - -from ..pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ..types.rate_limits.rate_limit_delete_response import RateLimitDeleteResponse - -from typing import Type - -from ..types.rate_limits.rate_limit_edit_response import RateLimitEditResponse - -from ..types.rate_limits.rate_limit_get_response import RateLimitGetResponse - +from .._resource import SyncAPIResource, AsyncAPIResource from .._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ..types.rate_limits import rate_limit_create_params, rate_limit_edit_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from .._resource import SyncAPIResource, AsyncAPIResource -from ..types import shared_params -from ..types.rate_limits import rate_limit_create_params -from ..types.rate_limits import rate_limit_list_params -from ..types.rate_limits import rate_limit_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .._wrappers import ResultWrapper +from ..pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from .._base_client import AsyncPaginator, make_request_options +from ..types.rate_limits import rate_limit_edit_params, rate_limit_list_params, rate_limit_create_params +from ..types.rate_limits.rate_limit import RateLimit +from ..types.rate_limits.rate_limit_get_response import RateLimitGetResponse +from ..types.rate_limits.rate_limit_edit_response import RateLimitEditResponse +from ..types.rate_limits.rate_limit_create_response import RateLimitCreateResponse +from ..types.rate_limits.rate_limit_delete_response import RateLimitDeleteResponse __all__ = ["RateLimitsResource", "AsyncRateLimitsResource"] diff --git a/src/cloudflare/resources/rate_plans.py b/src/cloudflare/resources/rate_plans.py index 079456ed6..6574b9430 100644 --- a/src/cloudflare/resources/rate_plans.py +++ b/src/cloudflare/resources/rate_plans.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven from .._compat import cached_property - -from ..types.rate_plans.rate_plan_get_response import RatePlanGetResponse - -from .._wrappers import ResultWrapper - -from typing import Optional, Type - -from .._base_client import make_request_options - +from .._resource import SyncAPIResource, AsyncAPIResource from .._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from .._resource import SyncAPIResource, AsyncAPIResource -from ..types import shared_params -from typing import cast -from typing import cast +from .._wrappers import ResultWrapper +from .._base_client import make_request_options +from ..types.rate_plans.rate_plan_get_response import RatePlanGetResponse __all__ = ["RatePlansResource", "AsyncRatePlansResource"] diff --git a/src/cloudflare/resources/registrar/__init__.py b/src/cloudflare/resources/registrar/__init__.py index f046a6d8c..e7c8e7540 100644 --- a/src/cloudflare/resources/registrar/__init__.py +++ b/src/cloudflare/resources/registrar/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .domains import DomainsResource, AsyncDomainsResource from .domains import ( + DomainsResource, + AsyncDomainsResource, DomainsResourceWithRawResponse, AsyncDomainsResourceWithRawResponse, DomainsResourceWithStreamingResponse, AsyncDomainsResourceWithStreamingResponse, ) -from .registrar import RegistrarResource, AsyncRegistrarResource from .registrar import ( + RegistrarResource, + AsyncRegistrarResource, RegistrarResourceWithRawResponse, AsyncRegistrarResourceWithRawResponse, RegistrarResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/registrar/domains.py b/src/cloudflare/resources/registrar/domains.py index c5d9140ea..d747f9bbc 100644 --- a/src/cloudflare/resources/registrar/domains.py +++ b/src/cloudflare/resources/registrar/domains.py @@ -2,49 +2,30 @@ from __future__ import annotations +from typing import Any, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.registrar.domain_update_response import DomainUpdateResponse - -from ..._wrappers import ResultWrapper - -from typing import Optional - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from ...types.registrar.domain_list_response import DomainListResponse - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from ...types.registrar.domain_get_response import DomainGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options from ...types.registrar import domain_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...types.registrar.domain_get_response import DomainGetResponse +from ...types.registrar.domain_list_response import DomainListResponse +from ...types.registrar.domain_update_response import DomainUpdateResponse __all__ = ["DomainsResource", "AsyncDomainsResource"] diff --git a/src/cloudflare/resources/registrar/registrar.py b/src/cloudflare/resources/registrar/registrar.py index 03a6ec499..aef3e690b 100644 --- a/src/cloudflare/resources/registrar/registrar.py +++ b/src/cloudflare/resources/registrar/registrar.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .domains import DomainsResource, AsyncDomainsResource - -from ..._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .domains import ( DomainsResource, AsyncDomainsResource, @@ -21,6 +10,8 @@ from .domains import ( DomainsResourceWithStreamingResponse, AsyncDomainsResourceWithStreamingResponse, ) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource __all__ = ["RegistrarResource", "AsyncRegistrarResource"] diff --git a/src/cloudflare/resources/request_tracers/__init__.py b/src/cloudflare/resources/request_tracers/__init__.py index a197c2036..c116ff92b 100644 --- a/src/cloudflare/resources/request_tracers/__init__.py +++ b/src/cloudflare/resources/request_tracers/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .traces import TracesResource, AsyncTracesResource from .traces import ( + TracesResource, + AsyncTracesResource, TracesResourceWithRawResponse, AsyncTracesResourceWithRawResponse, TracesResourceWithStreamingResponse, AsyncTracesResourceWithStreamingResponse, ) -from .request_tracers import RequestTracersResource, AsyncRequestTracersResource from .request_tracers import ( + RequestTracersResource, + AsyncRequestTracersResource, RequestTracersResourceWithRawResponse, AsyncRequestTracersResourceWithRawResponse, RequestTracersResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/request_tracers/request_tracers.py b/src/cloudflare/resources/request_tracers/request_tracers.py index 5781a14ff..df986b013 100644 --- a/src/cloudflare/resources/request_tracers/request_tracers.py +++ b/src/cloudflare/resources/request_tracers/request_tracers.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .traces import TracesResource, AsyncTracesResource - -from ..._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .traces import ( TracesResource, AsyncTracesResource, @@ -21,6 +10,8 @@ from .traces import ( TracesResourceWithStreamingResponse, AsyncTracesResourceWithStreamingResponse, ) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource __all__ = ["RequestTracersResource", "AsyncRequestTracersResource"] diff --git a/src/cloudflare/resources/request_tracers/traces.py b/src/cloudflare/resources/request_tracers/traces.py index 8f21c849a..9934896d0 100644 --- a/src/cloudflare/resources/request_tracers/traces.py +++ b/src/cloudflare/resources/request_tracers/traces.py @@ -2,39 +2,27 @@ from __future__ import annotations +from typing import Dict, Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.request_tracers.trace_create_response import TraceCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Dict - -from ..._base_client import make_request_options - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.request_tracers import trace_create_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.request_tracers import trace_create_params -from typing import cast -from typing import cast +from ...types.request_tracers.trace_create_response import TraceCreateResponse __all__ = ["TracesResource", "AsyncTracesResource"] diff --git a/src/cloudflare/resources/rules/__init__.py b/src/cloudflare/resources/rules/__init__.py index d81f4dc0b..93d2881ae 100644 --- a/src/cloudflare/resources/rules/__init__.py +++ b/src/cloudflare/resources/rules/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .lists import ListsResource, AsyncListsResource from .lists import ( + ListsResource, + AsyncListsResource, ListsResourceWithRawResponse, AsyncListsResourceWithRawResponse, ListsResourceWithStreamingResponse, AsyncListsResourceWithStreamingResponse, ) -from .rules import RulesResource, AsyncRulesResource from .rules import ( + RulesResource, + AsyncRulesResource, RulesResourceWithRawResponse, AsyncRulesResourceWithRawResponse, RulesResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/rules/lists/__init__.py b/src/cloudflare/resources/rules/lists/__init__.py index 5da39aa7d..b26e8a39c 100644 --- a/src/cloudflare/resources/rules/lists/__init__.py +++ b/src/cloudflare/resources/rules/lists/__init__.py @@ -1,26 +1,29 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .bulk_operations import BulkOperationsResource, AsyncBulkOperationsResource -from .bulk_operations import ( - BulkOperationsResourceWithRawResponse, - AsyncBulkOperationsResourceWithRawResponse, - BulkOperationsResourceWithStreamingResponse, - AsyncBulkOperationsResourceWithStreamingResponse, -) -from .items import ItemsResource, AsyncItemsResource from .items import ( + ItemsResource, + AsyncItemsResource, ItemsResourceWithRawResponse, AsyncItemsResourceWithRawResponse, ItemsResourceWithStreamingResponse, AsyncItemsResourceWithStreamingResponse, ) -from .lists import ListsResource, AsyncListsResource from .lists import ( + ListsResource, + AsyncListsResource, ListsResourceWithRawResponse, AsyncListsResourceWithRawResponse, ListsResourceWithStreamingResponse, AsyncListsResourceWithStreamingResponse, ) +from .bulk_operations import ( + BulkOperationsResource, + AsyncBulkOperationsResource, + BulkOperationsResourceWithRawResponse, + AsyncBulkOperationsResourceWithRawResponse, + BulkOperationsResourceWithStreamingResponse, + AsyncBulkOperationsResourceWithStreamingResponse, +) __all__ = [ "BulkOperationsResource", diff --git a/src/cloudflare/resources/rules/lists/bulk_operations.py b/src/cloudflare/resources/rules/lists/bulk_operations.py index bc897a02a..2eb998237 100644 --- a/src/cloudflare/resources/rules/lists/bulk_operations.py +++ b/src/cloudflare/resources/rules/lists/bulk_operations.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.rules.lists.bulk_operation_get_response import BulkOperationGetResponse - -from ...._wrappers import ResultWrapper - -from typing import Optional, Type - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.rules.lists.bulk_operation_get_response import BulkOperationGetResponse __all__ = ["BulkOperationsResource", "AsyncBulkOperationsResource"] diff --git a/src/cloudflare/resources/rules/lists/items.py b/src/cloudflare/resources/rules/lists/items.py index 62dcf911d..ead9ba831 100644 --- a/src/cloudflare/resources/rules/lists/items.py +++ b/src/cloudflare/resources/rules/lists/items.py @@ -2,57 +2,31 @@ from __future__ import annotations +from typing import Any, Type, Iterable, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.rules.lists.item_create_response import ItemCreateResponse - -from ...._wrappers import ResultWrapper - -from typing import Iterable, Optional, Type - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.rules.lists.item_update_response import ItemUpdateResponse - -from ....pagination import SyncCursorPagination, AsyncCursorPagination - -from ....types.rules.lists.item_delete_response import ItemDeleteResponse - -from ....types.rules.lists.item_get_response import ItemGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ....types.rules.lists import item_create_params, item_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.rules.lists import item_create_params -from ....types.rules.lists import item_update_params -from ....types.rules.lists import item_list_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncCursorPagination, AsyncCursorPagination +from ...._base_client import AsyncPaginator, make_request_options +from ....types.rules.lists import item_list_params, item_create_params, item_update_params +from ....types.rules.lists.item_get_response import ItemGetResponse +from ....types.rules.lists.item_create_response import ItemCreateResponse +from ....types.rules.lists.item_delete_response import ItemDeleteResponse +from ....types.rules.lists.item_update_response import ItemUpdateResponse __all__ = ["ItemsResource", "AsyncItemsResource"] diff --git a/src/cloudflare/resources/rules/lists/lists.py b/src/cloudflare/resources/rules/lists/lists.py index 2bd26b655..6b5bf0386 100644 --- a/src/cloudflare/resources/rules/lists/lists.py +++ b/src/cloudflare/resources/rules/lists/lists.py @@ -2,54 +2,11 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx -from .bulk_operations import BulkOperationsResource, AsyncBulkOperationsResource - -from ...._compat import cached_property - -from .items import ItemsResource, AsyncItemsResource - -from ....types.rules.lists_list import ListsList - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ....types.rules.list_delete_response import ListDeleteResponse - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.rules import list_create_params -from ....types.rules import list_update_params -from .bulk_operations import ( - BulkOperationsResource, - AsyncBulkOperationsResource, - BulkOperationsResourceWithRawResponse, - AsyncBulkOperationsResourceWithRawResponse, - BulkOperationsResourceWithStreamingResponse, - AsyncBulkOperationsResourceWithStreamingResponse, -) from .items import ( ItemsResource, AsyncItemsResource, @@ -58,14 +15,33 @@ from .items import ( ItemsResourceWithStreamingResponse, AsyncItemsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ....types.rules import list_create_params, list_update_params +from ...._base_client import AsyncPaginator, make_request_options +from .bulk_operations import ( + BulkOperationsResource, + AsyncBulkOperationsResource, + BulkOperationsResourceWithRawResponse, + AsyncBulkOperationsResourceWithRawResponse, + BulkOperationsResourceWithStreamingResponse, + AsyncBulkOperationsResourceWithStreamingResponse, +) +from ....types.rules.lists_list import ListsList +from ....types.rules.list_delete_response import ListDeleteResponse __all__ = ["ListsResource", "AsyncListsResource"] diff --git a/src/cloudflare/resources/rules/rules.py b/src/cloudflare/resources/rules/rules.py index 5f2fab650..e4ebeb782 100644 --- a/src/cloudflare/resources/rules/rules.py +++ b/src/cloudflare/resources/rules/rules.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .lists.lists import ListsResource, AsyncListsResource - -from ..._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .lists import ( ListsResource, AsyncListsResource, @@ -21,6 +10,9 @@ from .lists import ( ListsResourceWithStreamingResponse, AsyncListsResourceWithStreamingResponse, ) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from .lists.lists import ListsResource, AsyncListsResource __all__ = ["RulesResource", "AsyncRulesResource"] diff --git a/src/cloudflare/resources/rulesets/__init__.py b/src/cloudflare/resources/rulesets/__init__.py index 2f56e7ca5..3770eeded 100644 --- a/src/cloudflare/resources/rulesets/__init__.py +++ b/src/cloudflare/resources/rulesets/__init__.py @@ -1,33 +1,37 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .phases import PhasesResource, AsyncPhasesResource -from .phases import ( - PhasesResourceWithRawResponse, - AsyncPhasesResourceWithRawResponse, - PhasesResourceWithStreamingResponse, - AsyncPhasesResourceWithStreamingResponse, -) -from .rules import RulesResource, AsyncRulesResource from .rules import ( + RulesResource, + AsyncRulesResource, RulesResourceWithRawResponse, AsyncRulesResourceWithRawResponse, RulesResourceWithStreamingResponse, AsyncRulesResourceWithStreamingResponse, ) -from .versions import VersionsResource, AsyncVersionsResource -from .versions import ( - VersionsResourceWithRawResponse, - AsyncVersionsResourceWithRawResponse, - VersionsResourceWithStreamingResponse, - AsyncVersionsResourceWithStreamingResponse, +from .phases import ( + PhasesResource, + AsyncPhasesResource, + PhasesResourceWithRawResponse, + AsyncPhasesResourceWithRawResponse, + PhasesResourceWithStreamingResponse, + AsyncPhasesResourceWithStreamingResponse, ) -from .rulesets import RulesetsResource, AsyncRulesetsResource from .rulesets import ( + RulesetsResource, + AsyncRulesetsResource, RulesetsResourceWithRawResponse, AsyncRulesetsResourceWithRawResponse, RulesetsResourceWithStreamingResponse, AsyncRulesetsResourceWithStreamingResponse, ) +from .versions import ( + VersionsResource, + AsyncVersionsResource, + VersionsResourceWithRawResponse, + AsyncVersionsResourceWithRawResponse, + VersionsResourceWithStreamingResponse, + AsyncVersionsResourceWithStreamingResponse, +) __all__ = [ "PhasesResource", diff --git a/src/cloudflare/resources/rulesets/phases/__init__.py b/src/cloudflare/resources/rulesets/phases/__init__.py index a4aa389e2..c8ad5c9ff 100644 --- a/src/cloudflare/resources/rulesets/phases/__init__.py +++ b/src/cloudflare/resources/rulesets/phases/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .versions import VersionsResource, AsyncVersionsResource -from .versions import ( - VersionsResourceWithRawResponse, - AsyncVersionsResourceWithRawResponse, - VersionsResourceWithStreamingResponse, - AsyncVersionsResourceWithStreamingResponse, -) -from .phases import PhasesResource, AsyncPhasesResource from .phases import ( + PhasesResource, + AsyncPhasesResource, PhasesResourceWithRawResponse, AsyncPhasesResourceWithRawResponse, PhasesResourceWithStreamingResponse, AsyncPhasesResourceWithStreamingResponse, ) +from .versions import ( + VersionsResource, + AsyncVersionsResource, + VersionsResourceWithRawResponse, + AsyncVersionsResourceWithRawResponse, + VersionsResourceWithStreamingResponse, + AsyncVersionsResourceWithStreamingResponse, +) __all__ = [ "VersionsResource", diff --git a/src/cloudflare/resources/rulesets/phases/phases.py b/src/cloudflare/resources/rulesets/phases/phases.py index 7f0223a6f..8522d55dc 100644 --- a/src/cloudflare/resources/rulesets/phases/phases.py +++ b/src/cloudflare/resources/rulesets/phases/phases.py @@ -2,45 +2,10 @@ from __future__ import annotations +from typing import Type, Iterable, cast + import httpx -from .versions import VersionsResource, AsyncVersionsResource - -from ...._compat import cached_property - -from ....types.rulesets.phase_update_response import PhaseUpdateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import Type, Iterable - -from ....types.rulesets.phase import Phase - -from ....types.rulesets.phase_get_response import PhaseGetResponse - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -from ....types.rulesets import phase_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.rulesets import phase_update_params -from ....types.rulesets import Phase -from ....types.rulesets import Phase from .versions import ( VersionsResource, AsyncVersionsResource, @@ -49,10 +14,25 @@ from .versions import ( VersionsResourceWithStreamingResponse, AsyncVersionsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.rulesets import Phase, phase_update_params +from ....types.rulesets.phase import Phase +from ....types.rulesets.phase_get_response import PhaseGetResponse +from ....types.rulesets.phase_update_response import PhaseUpdateResponse __all__ = ["PhasesResource", "AsyncPhasesResource"] diff --git a/src/cloudflare/resources/rulesets/phases/versions.py b/src/cloudflare/resources/rulesets/phases/versions.py index ab4896a0c..77ac256ca 100644 --- a/src/cloudflare/resources/rulesets/phases/versions.py +++ b/src/cloudflare/resources/rulesets/phases/versions.py @@ -2,42 +2,26 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.rulesets.phases.version_list_response import VersionListResponse - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.rulesets.phase import Phase - -from ....types.rulesets.phases.version_get_response import VersionGetResponse - -from ...._wrappers import ResultWrapper - -from typing import Type - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options from ....types.rulesets import Phase -from ....types.rulesets import Phase -from typing import cast -from typing import cast +from ....types.rulesets.phase import Phase +from ....types.rulesets.phases.version_get_response import VersionGetResponse +from ....types.rulesets.phases.version_list_response import VersionListResponse __all__ = ["VersionsResource", "AsyncVersionsResource"] diff --git a/src/cloudflare/resources/rulesets/rules.py b/src/cloudflare/resources/rulesets/rules.py index 1c0cd1601..aaedd5f3b 100644 --- a/src/cloudflare/resources/rulesets/rules.py +++ b/src/cloudflare/resources/rulesets/rules.py @@ -2,88 +2,32 @@ from __future__ import annotations +from typing import Type, cast, overload +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + required_args, + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from typing_extensions import Literal - -from ...types.rulesets.logging_param import LoggingParam - -from ...types.rulesets.rule_create_response import RuleCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing import Type - -from ...types.rulesets.rule_delete_response import RuleDeleteResponse - -from ...types.rulesets.rule_edit_response import RuleEditResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ...types.rulesets import rule_create_params, rule_edit_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.rulesets import rule_create_params -from ...types.rulesets import rule_edit_params -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from ...types.rulesets import Logging -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.rulesets import rule_edit_params, rule_create_params +from ...types.rulesets.logging_param import LoggingParam +from ...types.rulesets.rule_edit_response import RuleEditResponse +from ...types.rulesets.rule_create_response import RuleCreateResponse +from ...types.rulesets.rule_delete_response import RuleDeleteResponse __all__ = ["RulesResource", "AsyncRulesResource"] diff --git a/src/cloudflare/resources/rulesets/rulesets.py b/src/cloudflare/resources/rulesets/rulesets.py index 681969718..243a61e9e 100644 --- a/src/cloudflare/resources/rulesets/rulesets.py +++ b/src/cloudflare/resources/rulesets/rulesets.py @@ -2,60 +2,18 @@ from __future__ import annotations +from typing import Type, Iterable, cast + import httpx -from .phases.phases import PhasesResource, AsyncPhasesResource - -from ..._compat import cached_property - -from .rules import RulesResource, AsyncRulesResource - -from .versions.versions import VersionsResource, AsyncVersionsResource - -from ...types.rulesets.ruleset_create_response import RulesetCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from typing import Type, Iterable - -from ...types.rulesets.kind import Kind - -from ...types.rulesets.phase import Phase - -from ...types.rulesets.ruleset_update_response import RulesetUpdateResponse - -from ...types.rulesets.ruleset_list_response import RulesetListResponse - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from ...types.rulesets.ruleset_get_response import RulesetGetResponse - -from ..._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, +from .rules import ( + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, ) - -from ...types.rulesets import ruleset_create_params, ruleset_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.rulesets import ruleset_create_params -from ...types.rulesets import ruleset_update_params -from ...types.rulesets import Kind -from ...types.rulesets import Phase -from ...types.rulesets import Kind -from ...types.rulesets import Phase from .phases import ( PhasesResource, AsyncPhasesResource, @@ -64,13 +22,10 @@ from .phases import ( PhasesResourceWithStreamingResponse, AsyncPhasesResourceWithStreamingResponse, ) -from .rules import ( - RulesResource, - AsyncRulesResource, - RulesResourceWithRawResponse, - AsyncRulesResourceWithRawResponse, - RulesResourceWithStreamingResponse, - AsyncRulesResourceWithStreamingResponse, +from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, ) from .versions import ( VersionsResource, @@ -80,12 +35,26 @@ from .versions import ( VersionsResourceWithStreamingResponse, AsyncVersionsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from .phases.phases import PhasesResource, AsyncPhasesResource +from ..._base_client import AsyncPaginator, make_request_options +from ...types.rulesets import Kind, Phase, ruleset_create_params, ruleset_update_params +from .versions.versions import VersionsResource, AsyncVersionsResource +from ...types.rulesets.kind import Kind +from ...types.rulesets.phase import Phase +from ...types.rulesets.ruleset_get_response import RulesetGetResponse +from ...types.rulesets.ruleset_list_response import RulesetListResponse +from ...types.rulesets.ruleset_create_response import RulesetCreateResponse +from ...types.rulesets.ruleset_update_response import RulesetUpdateResponse __all__ = ["RulesetsResource", "AsyncRulesetsResource"] diff --git a/src/cloudflare/resources/rulesets/versions/__init__.py b/src/cloudflare/resources/rulesets/versions/__init__.py index d582ea92a..8064a2e60 100644 --- a/src/cloudflare/resources/rulesets/versions/__init__.py +++ b/src/cloudflare/resources/rulesets/versions/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .by_tag import ByTagResource, AsyncByTagResource from .by_tag import ( + ByTagResource, + AsyncByTagResource, ByTagResourceWithRawResponse, AsyncByTagResourceWithRawResponse, ByTagResourceWithStreamingResponse, AsyncByTagResourceWithStreamingResponse, ) -from .versions import VersionsResource, AsyncVersionsResource from .versions import ( + VersionsResource, + AsyncVersionsResource, VersionsResourceWithRawResponse, AsyncVersionsResourceWithRawResponse, VersionsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/rulesets/versions/by_tag.py b/src/cloudflare/resources/rulesets/versions/by_tag.py index aa1cc620a..b08564f4b 100644 --- a/src/cloudflare/resources/rulesets/versions/by_tag.py +++ b/src/cloudflare/resources/rulesets/versions/by_tag.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.rulesets.versions.by_tag_get_response import ByTagGetResponse - -from ...._wrappers import ResultWrapper - -from ...._base_client import make_request_options - -from typing import Type - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.rulesets.versions.by_tag_get_response import ByTagGetResponse __all__ = ["ByTagResource", "AsyncByTagResource"] diff --git a/src/cloudflare/resources/rulesets/versions/versions.py b/src/cloudflare/resources/rulesets/versions/versions.py index 18eeb6c6c..408cc80d4 100644 --- a/src/cloudflare/resources/rulesets/versions/versions.py +++ b/src/cloudflare/resources/rulesets/versions/versions.py @@ -2,38 +2,10 @@ from __future__ import annotations +from typing import Type, cast + import httpx -from .by_tag import ByTagResource, AsyncByTagResource - -from ...._compat import cached_property - -from ....types.rulesets.version_list_response import VersionListResponse - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.rulesets.version_get_response import VersionGetResponse - -from ...._wrappers import ResultWrapper - -from typing import Type - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params from .by_tag import ( ByTagResource, AsyncByTagResource, @@ -42,8 +14,20 @@ from .by_tag import ( ByTagResourceWithStreamingResponse, AsyncByTagResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.rulesets.version_get_response import VersionGetResponse +from ....types.rulesets.version_list_response import VersionListResponse __all__ = ["VersionsResource", "AsyncVersionsResource"] diff --git a/src/cloudflare/resources/rum/__init__.py b/src/cloudflare/resources/rum/__init__.py index 7c80d105b..4d891ef6b 100644 --- a/src/cloudflare/resources/rum/__init__.py +++ b/src/cloudflare/resources/rum/__init__.py @@ -1,25 +1,28 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .site_info import SiteInfoResource, AsyncSiteInfoResource -from .site_info import ( - SiteInfoResourceWithRawResponse, - AsyncSiteInfoResourceWithRawResponse, - SiteInfoResourceWithStreamingResponse, - AsyncSiteInfoResourceWithStreamingResponse, +from .rum import ( + RUMResource, + AsyncRUMResource, + RUMResourceWithRawResponse, + AsyncRUMResourceWithRawResponse, + RUMResourceWithStreamingResponse, + AsyncRUMResourceWithStreamingResponse, ) -from .rules import RulesResource, AsyncRulesResource from .rules import ( + RulesResource, + AsyncRulesResource, RulesResourceWithRawResponse, AsyncRulesResourceWithRawResponse, RulesResourceWithStreamingResponse, AsyncRulesResourceWithStreamingResponse, ) -from .rum import RUMResource, AsyncRUMResource -from .rum import ( - RUMResourceWithRawResponse, - AsyncRUMResourceWithRawResponse, - RUMResourceWithStreamingResponse, - AsyncRUMResourceWithStreamingResponse, +from .site_info import ( + SiteInfoResource, + AsyncSiteInfoResource, + SiteInfoResourceWithRawResponse, + AsyncSiteInfoResourceWithRawResponse, + SiteInfoResourceWithStreamingResponse, + AsyncSiteInfoResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/rum/rules.py b/src/cloudflare/resources/rum/rules.py index 71dcf28b2..799901afa 100644 --- a/src/cloudflare/resources/rum/rules.py +++ b/src/cloudflare/resources/rum/rules.py @@ -2,48 +2,29 @@ from __future__ import annotations +from typing import List, Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.rum.rum_rule import RUMRule - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, List - -from ..._base_client import make_request_options - -from ...types.rum.rule_list_response import RuleListResponse - -from ...types.rum.rule_delete_response import RuleDeleteResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.rum import rule_create_params -from ...types.rum import rule_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...types.rum import rule_create_params, rule_update_params +from ..._base_client import make_request_options +from ...types.rum.rum_rule import RUMRule +from ...types.rum.rule_list_response import RuleListResponse +from ...types.rum.rule_delete_response import RuleDeleteResponse __all__ = ["RulesResource", "AsyncRulesResource"] diff --git a/src/cloudflare/resources/rum/rum.py b/src/cloudflare/resources/rum/rum.py index 3c1678321..038a15f3a 100644 --- a/src/cloudflare/resources/rum/rum.py +++ b/src/cloudflare/resources/rum/rum.py @@ -2,27 +2,6 @@ from __future__ import annotations -from .site_info import SiteInfoResource, AsyncSiteInfoResource - -from ..._compat import cached_property - -from .rules import RulesResource, AsyncRulesResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from .site_info import ( - SiteInfoResource, - AsyncSiteInfoResource, - SiteInfoResourceWithRawResponse, - AsyncSiteInfoResourceWithRawResponse, - SiteInfoResourceWithStreamingResponse, - AsyncSiteInfoResourceWithStreamingResponse, -) from .rules import ( RulesResource, AsyncRulesResource, @@ -31,6 +10,16 @@ from .rules import ( RulesResourceWithStreamingResponse, AsyncRulesResourceWithStreamingResponse, ) +from ..._compat import cached_property +from .site_info import ( + SiteInfoResource, + AsyncSiteInfoResource, + SiteInfoResourceWithRawResponse, + AsyncSiteInfoResourceWithRawResponse, + SiteInfoResourceWithStreamingResponse, + AsyncSiteInfoResourceWithStreamingResponse, +) +from ..._resource import SyncAPIResource, AsyncAPIResource __all__ = ["RUMResource", "AsyncRUMResource"] diff --git a/src/cloudflare/resources/rum/site_info.py b/src/cloudflare/resources/rum/site_info.py index 266b77609..51c5e2760 100644 --- a/src/cloudflare/resources/rum/site_info.py +++ b/src/cloudflare/resources/rum/site_info.py @@ -2,51 +2,30 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.rum.site import Site - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options, AsyncPaginator - -from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from typing_extensions import Literal - -from ...types.rum.site_info_delete_response import SiteInfoDeleteResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.rum import site_info_create_params -from ...types.rum import site_info_update_params -from ...types.rum import site_info_list_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...types.rum import site_info_list_params, site_info_create_params, site_info_update_params +from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ..._base_client import AsyncPaginator, make_request_options +from ...types.rum.site import Site +from ...types.rum.site_info_delete_response import SiteInfoDeleteResponse __all__ = ["SiteInfoResource", "AsyncSiteInfoResource"] diff --git a/src/cloudflare/resources/secondary_dns/__init__.py b/src/cloudflare/resources/secondary_dns/__init__.py index 5b2cd608b..3f502a9da 100644 --- a/src/cloudflare/resources/secondary_dns/__init__.py +++ b/src/cloudflare/resources/secondary_dns/__init__.py @@ -1,49 +1,56 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .force_axfr import ForceAXFRResource, AsyncForceAXFRResource -from .force_axfr import ( - ForceAXFRResourceWithRawResponse, - AsyncForceAXFRResourceWithRawResponse, - ForceAXFRResourceWithStreamingResponse, - AsyncForceAXFRResourceWithStreamingResponse, -) -from .incoming import IncomingResource, AsyncIncomingResource -from .incoming import ( - IncomingResourceWithRawResponse, - AsyncIncomingResourceWithRawResponse, - IncomingResourceWithStreamingResponse, - AsyncIncomingResourceWithStreamingResponse, -) -from .outgoing import OutgoingResource, AsyncOutgoingResource -from .outgoing import ( - OutgoingResourceWithRawResponse, - AsyncOutgoingResourceWithRawResponse, - OutgoingResourceWithStreamingResponse, - AsyncOutgoingResourceWithStreamingResponse, -) -from .acls import ACLsResource, AsyncACLsResource from .acls import ( + ACLsResource, + AsyncACLsResource, ACLsResourceWithRawResponse, AsyncACLsResourceWithRawResponse, ACLsResourceWithStreamingResponse, AsyncACLsResourceWithStreamingResponse, ) -from .peers import PeersResource, AsyncPeersResource from .peers import ( + PeersResource, + AsyncPeersResource, PeersResourceWithRawResponse, AsyncPeersResourceWithRawResponse, PeersResourceWithStreamingResponse, AsyncPeersResourceWithStreamingResponse, ) -from .tsigs import TSIGsResource, AsyncTSIGsResource from .tsigs import ( + TSIGsResource, + AsyncTSIGsResource, TSIGsResourceWithRawResponse, AsyncTSIGsResourceWithRawResponse, TSIGsResourceWithStreamingResponse, AsyncTSIGsResourceWithStreamingResponse, ) -from .secondary_dns import SecondaryDNSResource, AsyncSecondaryDNSResource +from .incoming import ( + IncomingResource, + AsyncIncomingResource, + IncomingResourceWithRawResponse, + AsyncIncomingResourceWithRawResponse, + IncomingResourceWithStreamingResponse, + AsyncIncomingResourceWithStreamingResponse, +) +from .outgoing import ( + OutgoingResource, + AsyncOutgoingResource, + OutgoingResourceWithRawResponse, + AsyncOutgoingResourceWithRawResponse, + OutgoingResourceWithStreamingResponse, + AsyncOutgoingResourceWithStreamingResponse, +) +from .force_axfr import ( + ForceAXFRResource, + AsyncForceAXFRResource, + ForceAXFRResourceWithRawResponse, + AsyncForceAXFRResourceWithRawResponse, + ForceAXFRResourceWithStreamingResponse, + AsyncForceAXFRResourceWithStreamingResponse, +) from .secondary_dns import ( + SecondaryDNSResource, + AsyncSecondaryDNSResource, SecondaryDNSResourceWithRawResponse, AsyncSecondaryDNSResourceWithRawResponse, SecondaryDNSResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/secondary_dns/acls.py b/src/cloudflare/resources/secondary_dns/acls.py index e25fd029f..9f0600bf4 100644 --- a/src/cloudflare/resources/secondary_dns/acls.py +++ b/src/cloudflare/resources/secondary_dns/acls.py @@ -2,48 +2,29 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.secondary_dns.acl import ACL - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options, AsyncPaginator - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from ...types.secondary_dns.acl_delete_response import ACLDeleteResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.secondary_dns import acl_create_params -from ...types.secondary_dns import acl_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options +from ...types.secondary_dns import acl_create_params, acl_update_params +from ...types.secondary_dns.acl import ACL +from ...types.secondary_dns.acl_delete_response import ACLDeleteResponse __all__ = ["ACLsResource", "AsyncACLsResource"] diff --git a/src/cloudflare/resources/secondary_dns/force_axfr.py b/src/cloudflare/resources/secondary_dns/force_axfr.py index d3be3f12e..a2fb2cc46 100644 --- a/src/cloudflare/resources/secondary_dns/force_axfr.py +++ b/src/cloudflare/resources/secondary_dns/force_axfr.py @@ -2,37 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...types.secondary_dns.force_axfr import ForceAXFR - -from ..._base_client import make_request_options - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.secondary_dns import force_axfr_create_params -from typing import cast -from typing import cast +from ...types.secondary_dns.force_axfr import ForceAXFR __all__ = ["ForceAXFRResource", "AsyncForceAXFRResource"] diff --git a/src/cloudflare/resources/secondary_dns/incoming.py b/src/cloudflare/resources/secondary_dns/incoming.py index f38819980..c4798198f 100644 --- a/src/cloudflare/resources/secondary_dns/incoming.py +++ b/src/cloudflare/resources/secondary_dns/incoming.py @@ -2,50 +2,30 @@ from __future__ import annotations +from typing import List, Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.secondary_dns.incoming_create_response import IncomingCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, List - -from ..._base_client import make_request_options - -from ...types.secondary_dns.incoming_update_response import IncomingUpdateResponse - -from ...types.secondary_dns.incoming_delete_response import IncomingDeleteResponse - -from ...types.secondary_dns.incoming_get_response import IncomingGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.secondary_dns import incoming_create_params -from ...types.secondary_dns import incoming_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.secondary_dns import incoming_create_params, incoming_update_params +from ...types.secondary_dns.incoming_get_response import IncomingGetResponse +from ...types.secondary_dns.incoming_create_response import IncomingCreateResponse +from ...types.secondary_dns.incoming_delete_response import IncomingDeleteResponse +from ...types.secondary_dns.incoming_update_response import IncomingUpdateResponse __all__ = ["IncomingResource", "AsyncIncomingResource"] diff --git a/src/cloudflare/resources/secondary_dns/outgoing/__init__.py b/src/cloudflare/resources/secondary_dns/outgoing/__init__.py index 2389f319f..29fd61f59 100644 --- a/src/cloudflare/resources/secondary_dns/outgoing/__init__.py +++ b/src/cloudflare/resources/secondary_dns/outgoing/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .status import StatusResource, AsyncStatusResource from .status import ( + StatusResource, + AsyncStatusResource, StatusResourceWithRawResponse, AsyncStatusResourceWithRawResponse, StatusResourceWithStreamingResponse, AsyncStatusResourceWithStreamingResponse, ) -from .outgoing import OutgoingResource, AsyncOutgoingResource from .outgoing import ( + OutgoingResource, + AsyncOutgoingResource, OutgoingResourceWithRawResponse, AsyncOutgoingResourceWithRawResponse, OutgoingResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/secondary_dns/outgoing/outgoing.py b/src/cloudflare/resources/secondary_dns/outgoing/outgoing.py index 91e053df7..d52001ddb 100644 --- a/src/cloudflare/resources/secondary_dns/outgoing/outgoing.py +++ b/src/cloudflare/resources/secondary_dns/outgoing/outgoing.py @@ -2,53 +2,10 @@ from __future__ import annotations +from typing import List, Type, Optional, cast + import httpx -from .status import StatusResource, AsyncStatusResource - -from ...._compat import cached_property - -from ....types.secondary_dns.outgoing_create_response import OutgoingCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, List - -from ...._base_client import make_request_options - -from ....types.secondary_dns.outgoing_update_response import OutgoingUpdateResponse - -from ....types.secondary_dns.outgoing_delete_response import OutgoingDeleteResponse - -from ....types.secondary_dns.disable_transfer import DisableTransfer - -from ....types.secondary_dns.enable_transfer import EnableTransfer - -from ....types.secondary_dns.outgoing_force_notify_response import OutgoingForceNotifyResponse - -from ....types.secondary_dns.outgoing_get_response import OutgoingGetResponse - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.secondary_dns import outgoing_create_params -from ....types.secondary_dns import outgoing_update_params -from ....types.secondary_dns import outgoing_disable_params -from ....types.secondary_dns import outgoing_enable_params -from ....types.secondary_dns import outgoing_force_notify_params from .status import ( StatusResource, AsyncStatusResource, @@ -57,20 +14,35 @@ from .status import ( StatusResourceWithStreamingResponse, AsyncStatusResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.secondary_dns import ( + outgoing_create_params, + outgoing_enable_params, + outgoing_update_params, + outgoing_disable_params, + outgoing_force_notify_params, +) +from ....types.secondary_dns.enable_transfer import EnableTransfer +from ....types.secondary_dns.disable_transfer import DisableTransfer +from ....types.secondary_dns.outgoing_get_response import OutgoingGetResponse +from ....types.secondary_dns.outgoing_create_response import OutgoingCreateResponse +from ....types.secondary_dns.outgoing_delete_response import OutgoingDeleteResponse +from ....types.secondary_dns.outgoing_update_response import OutgoingUpdateResponse +from ....types.secondary_dns.outgoing_force_notify_response import OutgoingForceNotifyResponse __all__ = ["OutgoingResource", "AsyncOutgoingResource"] diff --git a/src/cloudflare/resources/secondary_dns/outgoing/status.py b/src/cloudflare/resources/secondary_dns/outgoing/status.py index 7e9716f67..da0505a75 100644 --- a/src/cloudflare/resources/secondary_dns/outgoing/status.py +++ b/src/cloudflare/resources/secondary_dns/outgoing/status.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ...._wrappers import ResultWrapper - -from typing import Optional, Type - -from ....types.secondary_dns.enable_transfer import EnableTransfer - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.secondary_dns.enable_transfer import EnableTransfer __all__ = ["StatusResource", "AsyncStatusResource"] diff --git a/src/cloudflare/resources/secondary_dns/peers.py b/src/cloudflare/resources/secondary_dns/peers.py index 9d933a15e..a7a905b21 100644 --- a/src/cloudflare/resources/secondary_dns/peers.py +++ b/src/cloudflare/resources/secondary_dns/peers.py @@ -2,48 +2,29 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.secondary_dns.peer import Peer - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options, AsyncPaginator - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from ...types.secondary_dns.peer_delete_response import PeerDeleteResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.secondary_dns import peer_create_params -from ...types.secondary_dns import peer_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options +from ...types.secondary_dns import peer_create_params, peer_update_params +from ...types.secondary_dns.peer import Peer +from ...types.secondary_dns.peer_delete_response import PeerDeleteResponse __all__ = ["PeersResource", "AsyncPeersResource"] diff --git a/src/cloudflare/resources/secondary_dns/secondary_dns.py b/src/cloudflare/resources/secondary_dns/secondary_dns.py index 68f4d3204..de66545fd 100644 --- a/src/cloudflare/resources/secondary_dns/secondary_dns.py +++ b/src/cloudflare/resources/secondary_dns/secondary_dns.py @@ -2,51 +2,6 @@ from __future__ import annotations -from .force_axfr import ForceAXFRResource, AsyncForceAXFRResource - -from ..._compat import cached_property - -from .incoming import IncomingResource, AsyncIncomingResource - -from .outgoing.outgoing import OutgoingResource, AsyncOutgoingResource - -from .acls import ACLsResource, AsyncACLsResource - -from .peers import PeersResource, AsyncPeersResource - -from .tsigs import TSIGsResource, AsyncTSIGsResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from .force_axfr import ( - ForceAXFRResource, - AsyncForceAXFRResource, - ForceAXFRResourceWithRawResponse, - AsyncForceAXFRResourceWithRawResponse, - ForceAXFRResourceWithStreamingResponse, - AsyncForceAXFRResourceWithStreamingResponse, -) -from .incoming import ( - IncomingResource, - AsyncIncomingResource, - IncomingResourceWithRawResponse, - AsyncIncomingResourceWithRawResponse, - IncomingResourceWithStreamingResponse, - AsyncIncomingResourceWithStreamingResponse, -) -from .outgoing import ( - OutgoingResource, - AsyncOutgoingResource, - OutgoingResourceWithRawResponse, - AsyncOutgoingResourceWithRawResponse, - OutgoingResourceWithStreamingResponse, - AsyncOutgoingResourceWithStreamingResponse, -) from .acls import ( ACLsResource, AsyncACLsResource, @@ -71,6 +26,33 @@ from .tsigs import ( TSIGsResourceWithStreamingResponse, AsyncTSIGsResourceWithStreamingResponse, ) +from .incoming import ( + IncomingResource, + AsyncIncomingResource, + IncomingResourceWithRawResponse, + AsyncIncomingResourceWithRawResponse, + IncomingResourceWithStreamingResponse, + AsyncIncomingResourceWithStreamingResponse, +) +from .outgoing import ( + OutgoingResource, + AsyncOutgoingResource, + OutgoingResourceWithRawResponse, + AsyncOutgoingResourceWithRawResponse, + OutgoingResourceWithStreamingResponse, + AsyncOutgoingResourceWithStreamingResponse, +) +from ..._compat import cached_property +from .force_axfr import ( + ForceAXFRResource, + AsyncForceAXFRResource, + ForceAXFRResourceWithRawResponse, + AsyncForceAXFRResourceWithRawResponse, + ForceAXFRResourceWithStreamingResponse, + AsyncForceAXFRResourceWithStreamingResponse, +) +from ..._resource import SyncAPIResource, AsyncAPIResource +from .outgoing.outgoing import OutgoingResource, AsyncOutgoingResource __all__ = ["SecondaryDNSResource", "AsyncSecondaryDNSResource"] diff --git a/src/cloudflare/resources/secondary_dns/tsigs.py b/src/cloudflare/resources/secondary_dns/tsigs.py index 285bd73c3..6b1caa49f 100644 --- a/src/cloudflare/resources/secondary_dns/tsigs.py +++ b/src/cloudflare/resources/secondary_dns/tsigs.py @@ -2,48 +2,29 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.secondary_dns.tsig import TSIG - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options, AsyncPaginator - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from ...types.secondary_dns.tsig_delete_response import TSIGDeleteResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.secondary_dns import tsig_create_params -from ...types.secondary_dns import tsig_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options +from ...types.secondary_dns import tsig_create_params, tsig_update_params +from ...types.secondary_dns.tsig import TSIG +from ...types.secondary_dns.tsig_delete_response import TSIGDeleteResponse __all__ = ["TSIGsResource", "AsyncTSIGsResource"] diff --git a/src/cloudflare/resources/snippets/__init__.py b/src/cloudflare/resources/snippets/__init__.py index 5a1430a69..e3270af6c 100644 --- a/src/cloudflare/resources/snippets/__init__.py +++ b/src/cloudflare/resources/snippets/__init__.py @@ -1,21 +1,24 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .content import ContentResource, AsyncContentResource -from .content import ( - ContentResourceWithRawResponse, - AsyncContentResourceWithRawResponse, - ContentResourceWithStreamingResponse, - AsyncContentResourceWithStreamingResponse, -) -from .rules import RulesResource, AsyncRulesResource from .rules import ( + RulesResource, + AsyncRulesResource, RulesResourceWithRawResponse, AsyncRulesResourceWithRawResponse, RulesResourceWithStreamingResponse, AsyncRulesResourceWithStreamingResponse, ) -from .snippets import SnippetsResource, AsyncSnippetsResource +from .content import ( + ContentResource, + AsyncContentResource, + ContentResourceWithRawResponse, + AsyncContentResourceWithRawResponse, + ContentResourceWithStreamingResponse, + AsyncContentResourceWithStreamingResponse, +) from .snippets import ( + SnippetsResource, + AsyncSnippetsResource, SnippetsResourceWithRawResponse, AsyncSnippetsResourceWithRawResponse, SnippetsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/snippets/content.py b/src/cloudflare/resources/snippets/content.py index 2824cc403..562ba2647 100644 --- a/src/cloudflare/resources/snippets/content.py +++ b/src/cloudflare/resources/snippets/content.py @@ -4,29 +4,21 @@ from __future__ import annotations import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._compat import cached_property - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( BinaryAPIResponse, AsyncBinaryAPIResponse, - to_custom_raw_response_wrapper, - async_to_custom_raw_response_wrapper, - to_custom_streamed_response_wrapper, StreamedBinaryAPIResponse, - async_to_custom_streamed_response_wrapper, AsyncStreamedBinaryAPIResponse, + to_custom_raw_response_wrapper, + to_custom_streamed_response_wrapper, + async_to_custom_raw_response_wrapper, + async_to_custom_streamed_response_wrapper, ) - from ..._base_client import make_request_options -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params - __all__ = ["ContentResource", "AsyncContentResource"] diff --git a/src/cloudflare/resources/snippets/rules.py b/src/cloudflare/resources/snippets/rules.py index 75690cebc..71d202e94 100644 --- a/src/cloudflare/resources/snippets/rules.py +++ b/src/cloudflare/resources/snippets/rules.py @@ -2,43 +2,29 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.snippets.rule_update_response import RuleUpdateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Iterable - -from ..._base_client import make_request_options, AsyncPaginator - -from ...types.snippets.rule_list_response import RuleListResponse - -from ...pagination import SyncSinglePage, AsyncSinglePage - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options from ...types.snippets import rule_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.snippets import rule_update_params -from typing import cast -from typing import cast +from ...types.snippets.rule_list_response import RuleListResponse +from ...types.snippets.rule_update_response import RuleUpdateResponse __all__ = ["RulesResource", "AsyncRulesResource"] diff --git a/src/cloudflare/resources/snippets/snippets.py b/src/cloudflare/resources/snippets/snippets.py index 168058c30..b16336980 100644 --- a/src/cloudflare/resources/snippets/snippets.py +++ b/src/cloudflare/resources/snippets/snippets.py @@ -2,53 +2,10 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .content import ContentResource, AsyncContentResource - -from ..._compat import cached_property - -from .rules import RulesResource, AsyncRulesResource - -from ...types.snippets.snippet import Snippet - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options, AsyncPaginator - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from ...types.snippets.snippet_delete_response import SnippetDeleteResponse - -from ..._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -from ...types.snippets import snippet_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.snippets import snippet_update_params -from .content import ( - ContentResource, - AsyncContentResource, - ContentResourceWithRawResponse, - AsyncContentResourceWithRawResponse, - ContentResourceWithStreamingResponse, - AsyncContentResourceWithStreamingResponse, -) from .rules import ( RulesResource, AsyncRulesResource, @@ -57,10 +14,33 @@ from .rules import ( RulesResourceWithStreamingResponse, AsyncRulesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .content import ( + ContentResource, + AsyncContentResource, + ContentResourceWithRawResponse, + AsyncContentResourceWithRawResponse, + ContentResourceWithStreamingResponse, + AsyncContentResourceWithStreamingResponse, +) +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options +from ...types.snippets import snippet_update_params +from ...types.snippets.snippet import Snippet +from ...types.snippets.snippet_delete_response import SnippetDeleteResponse __all__ = ["SnippetsResource", "AsyncSnippetsResource"] diff --git a/src/cloudflare/resources/spectrum/__init__.py b/src/cloudflare/resources/spectrum/__init__.py index 949263470..2b184b886 100644 --- a/src/cloudflare/resources/spectrum/__init__.py +++ b/src/cloudflare/resources/spectrum/__init__.py @@ -1,26 +1,29 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .analytics import AnalyticsResource, AsyncAnalyticsResource -from .analytics import ( - AnalyticsResourceWithRawResponse, - AsyncAnalyticsResourceWithRawResponse, - AnalyticsResourceWithStreamingResponse, - AsyncAnalyticsResourceWithStreamingResponse, -) -from .apps import AppsResource, AsyncAppsResource from .apps import ( + AppsResource, + AsyncAppsResource, AppsResourceWithRawResponse, AsyncAppsResourceWithRawResponse, AppsResourceWithStreamingResponse, AsyncAppsResourceWithStreamingResponse, ) -from .spectrum import SpectrumResource, AsyncSpectrumResource from .spectrum import ( + SpectrumResource, + AsyncSpectrumResource, SpectrumResourceWithRawResponse, AsyncSpectrumResourceWithRawResponse, SpectrumResourceWithStreamingResponse, AsyncSpectrumResourceWithStreamingResponse, ) +from .analytics import ( + AnalyticsResource, + AsyncAnalyticsResource, + AnalyticsResourceWithRawResponse, + AsyncAnalyticsResourceWithRawResponse, + AnalyticsResourceWithStreamingResponse, + AsyncAnalyticsResourceWithStreamingResponse, +) __all__ = [ "AnalyticsResource", diff --git a/src/cloudflare/resources/spectrum/analytics/__init__.py b/src/cloudflare/resources/spectrum/analytics/__init__.py index ecb19f8eb..7ac3bc6d7 100644 --- a/src/cloudflare/resources/spectrum/analytics/__init__.py +++ b/src/cloudflare/resources/spectrum/analytics/__init__.py @@ -1,26 +1,29 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .aggregates import AggregatesResource, AsyncAggregatesResource -from .aggregates import ( - AggregatesResourceWithRawResponse, - AsyncAggregatesResourceWithRawResponse, - AggregatesResourceWithStreamingResponse, - AsyncAggregatesResourceWithStreamingResponse, -) -from .events import EventsResource, AsyncEventsResource from .events import ( + EventsResource, + AsyncEventsResource, EventsResourceWithRawResponse, AsyncEventsResourceWithRawResponse, EventsResourceWithStreamingResponse, AsyncEventsResourceWithStreamingResponse, ) -from .analytics import AnalyticsResource, AsyncAnalyticsResource from .analytics import ( + AnalyticsResource, + AsyncAnalyticsResource, AnalyticsResourceWithRawResponse, AsyncAnalyticsResourceWithRawResponse, AnalyticsResourceWithStreamingResponse, AsyncAnalyticsResourceWithStreamingResponse, ) +from .aggregates import ( + AggregatesResource, + AsyncAggregatesResource, + AggregatesResourceWithRawResponse, + AsyncAggregatesResourceWithRawResponse, + AggregatesResourceWithStreamingResponse, + AsyncAggregatesResourceWithStreamingResponse, +) __all__ = [ "AggregatesResource", diff --git a/src/cloudflare/resources/spectrum/analytics/aggregates/__init__.py b/src/cloudflare/resources/spectrum/analytics/aggregates/__init__.py index 65b5e6cfa..0976d5319 100644 --- a/src/cloudflare/resources/spectrum/analytics/aggregates/__init__.py +++ b/src/cloudflare/resources/spectrum/analytics/aggregates/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .currents import CurrentsResource, AsyncCurrentsResource from .currents import ( + CurrentsResource, + AsyncCurrentsResource, CurrentsResourceWithRawResponse, AsyncCurrentsResourceWithRawResponse, CurrentsResourceWithStreamingResponse, AsyncCurrentsResourceWithStreamingResponse, ) -from .aggregates import AggregatesResource, AsyncAggregatesResource from .aggregates import ( + AggregatesResource, + AsyncAggregatesResource, AggregatesResourceWithRawResponse, AsyncAggregatesResourceWithRawResponse, AggregatesResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/spectrum/analytics/aggregates/aggregates.py b/src/cloudflare/resources/spectrum/analytics/aggregates/aggregates.py index 97a346d74..706b97669 100644 --- a/src/cloudflare/resources/spectrum/analytics/aggregates/aggregates.py +++ b/src/cloudflare/resources/spectrum/analytics/aggregates/aggregates.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .currents import CurrentsResource, AsyncCurrentsResource - -from ....._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params from .currents import ( CurrentsResource, AsyncCurrentsResource, @@ -21,6 +10,8 @@ from .currents import ( CurrentsResourceWithStreamingResponse, AsyncCurrentsResourceWithStreamingResponse, ) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource __all__ = ["AggregatesResource", "AsyncAggregatesResource"] diff --git a/src/cloudflare/resources/spectrum/analytics/aggregates/currents.py b/src/cloudflare/resources/spectrum/analytics/aggregates/currents.py index 557d9b328..d91e768b4 100644 --- a/src/cloudflare/resources/spectrum/analytics/aggregates/currents.py +++ b/src/cloudflare/resources/spectrum/analytics/aggregates/currents.py @@ -2,37 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.spectrum.analytics.aggregates.current_get_response import CurrentGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ....._base_client import make_request_options - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.spectrum.analytics.aggregates import current_get_params -from typing import cast -from typing import cast +from .....types.spectrum.analytics.aggregates.current_get_response import CurrentGetResponse __all__ = ["CurrentsResource", "AsyncCurrentsResource"] diff --git a/src/cloudflare/resources/spectrum/analytics/analytics.py b/src/cloudflare/resources/spectrum/analytics/analytics.py index b723a8c24..57e52bea7 100644 --- a/src/cloudflare/resources/spectrum/analytics/analytics.py +++ b/src/cloudflare/resources/spectrum/analytics/analytics.py @@ -2,27 +2,6 @@ from __future__ import annotations -from .aggregates.aggregates import AggregatesResource, AsyncAggregatesResource - -from ...._compat import cached_property - -from .events.events import EventsResource, AsyncEventsResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from .aggregates import ( - AggregatesResource, - AsyncAggregatesResource, - AggregatesResourceWithRawResponse, - AsyncAggregatesResourceWithRawResponse, - AggregatesResourceWithStreamingResponse, - AsyncAggregatesResourceWithStreamingResponse, -) from .events import ( EventsResource, AsyncEventsResource, @@ -31,6 +10,18 @@ from .events import ( EventsResourceWithStreamingResponse, AsyncEventsResourceWithStreamingResponse, ) +from ...._compat import cached_property +from .aggregates import ( + AggregatesResource, + AsyncAggregatesResource, + AggregatesResourceWithRawResponse, + AsyncAggregatesResourceWithRawResponse, + AggregatesResourceWithStreamingResponse, + AsyncAggregatesResourceWithStreamingResponse, +) +from ...._resource import SyncAPIResource, AsyncAPIResource +from .events.events import EventsResource, AsyncEventsResource +from .aggregates.aggregates import AggregatesResource, AsyncAggregatesResource __all__ = ["AnalyticsResource", "AsyncAnalyticsResource"] diff --git a/src/cloudflare/resources/spectrum/analytics/events/__init__.py b/src/cloudflare/resources/spectrum/analytics/events/__init__.py index d01e0ba96..58e928340 100644 --- a/src/cloudflare/resources/spectrum/analytics/events/__init__.py +++ b/src/cloudflare/resources/spectrum/analytics/events/__init__.py @@ -1,26 +1,29 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .bytimes import BytimesResource, AsyncBytimesResource +from .events import ( + EventsResource, + AsyncEventsResource, + EventsResourceWithRawResponse, + AsyncEventsResourceWithRawResponse, + EventsResourceWithStreamingResponse, + AsyncEventsResourceWithStreamingResponse, +) from .bytimes import ( + BytimesResource, + AsyncBytimesResource, BytimesResourceWithRawResponse, AsyncBytimesResourceWithRawResponse, BytimesResourceWithStreamingResponse, AsyncBytimesResourceWithStreamingResponse, ) -from .summaries import SummariesResource, AsyncSummariesResource from .summaries import ( + SummariesResource, + AsyncSummariesResource, SummariesResourceWithRawResponse, AsyncSummariesResourceWithRawResponse, SummariesResourceWithStreamingResponse, AsyncSummariesResourceWithStreamingResponse, ) -from .events import EventsResource, AsyncEventsResource -from .events import ( - EventsResourceWithRawResponse, - AsyncEventsResourceWithRawResponse, - EventsResourceWithStreamingResponse, - AsyncEventsResourceWithStreamingResponse, -) __all__ = [ "BytimesResource", diff --git a/src/cloudflare/resources/spectrum/analytics/events/bytimes.py b/src/cloudflare/resources/spectrum/analytics/events/bytimes.py index fcad434b4..e017f7140 100644 --- a/src/cloudflare/resources/spectrum/analytics/events/bytimes.py +++ b/src/cloudflare/resources/spectrum/analytics/events/bytimes.py @@ -2,43 +2,30 @@ from __future__ import annotations +from typing import List, Type, Union, Optional, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.spectrum.analytics.events.bytime_get_response import BytimeGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, List, Union - -from ....._base_client import make_request_options - -from typing_extensions import Literal - -from .....types.spectrum.analytics.dimension import Dimension - -from datetime import datetime - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.spectrum.analytics.events import bytime_get_params -from typing import cast -from typing import cast +from .....types.spectrum.analytics.dimension import Dimension +from .....types.spectrum.analytics.events.bytime_get_response import BytimeGetResponse __all__ = ["BytimesResource", "AsyncBytimesResource"] diff --git a/src/cloudflare/resources/spectrum/analytics/events/events.py b/src/cloudflare/resources/spectrum/analytics/events/events.py index 43d2b3449..de874362a 100644 --- a/src/cloudflare/resources/spectrum/analytics/events/events.py +++ b/src/cloudflare/resources/spectrum/analytics/events/events.py @@ -2,19 +2,6 @@ from __future__ import annotations -from .bytimes import BytimesResource, AsyncBytimesResource - -from ....._compat import cached_property - -from .summaries import SummariesResource, AsyncSummariesResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params from .bytimes import ( BytimesResource, AsyncBytimesResource, @@ -31,6 +18,8 @@ from .summaries import ( SummariesResourceWithStreamingResponse, AsyncSummariesResourceWithStreamingResponse, ) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource __all__ = ["EventsResource", "AsyncEventsResource"] diff --git a/src/cloudflare/resources/spectrum/analytics/events/summaries.py b/src/cloudflare/resources/spectrum/analytics/events/summaries.py index 5986e56c1..b86b0df33 100644 --- a/src/cloudflare/resources/spectrum/analytics/events/summaries.py +++ b/src/cloudflare/resources/spectrum/analytics/events/summaries.py @@ -2,43 +2,30 @@ from __future__ import annotations +from typing import List, Type, Union, Optional, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.spectrum.analytics.events.summary_get_response import SummaryGetResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, List, Union - -from ....._base_client import make_request_options - -from .....types.spectrum.analytics.dimension import Dimension - -from typing_extensions import Literal - -from datetime import datetime - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.spectrum.analytics.events import summary_get_params -from typing import cast -from typing import cast +from .....types.spectrum.analytics.dimension import Dimension +from .....types.spectrum.analytics.events.summary_get_response import SummaryGetResponse __all__ = ["SummariesResource", "AsyncSummariesResource"] diff --git a/src/cloudflare/resources/spectrum/apps.py b/src/cloudflare/resources/spectrum/apps.py index ae7fdb1cf..0dacf8d4f 100644 --- a/src/cloudflare/resources/spectrum/apps.py +++ b/src/cloudflare/resources/spectrum/apps.py @@ -2,83 +2,37 @@ from __future__ import annotations +from typing import Any, List, Type, Optional, cast, overload +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + required_args, + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.spectrum.dns_param import DNSParam - -from typing_extensions import Literal - -from ...types.spectrum.edge_ips_param import EdgeIPsParam - -from typing import List, Optional, Type - -from ...types.spectrum.origin_dns_param import OriginDNSParam - -from ...types.spectrum.origin_port_param import OriginPortParam - -from ...types.spectrum.app_create_response import AppCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from ...types.spectrum.app_update_response import AppUpdateResponse - -from ...types.spectrum.app_list_response import AppListResponse - -from ...types.spectrum.app_delete_response import AppDeleteResponse - -from ...types.spectrum.app_get_response import AppGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.spectrum import app_create_params -from ...types.spectrum import app_update_params -from ...types.spectrum import app_list_params -from ...types.spectrum import DNS -from ...types.spectrum import EdgeIPs -from ...types.spectrum import OriginDNS -from ...types.spectrum import OriginPort -from ...types.spectrum import DNS -from ...types.spectrum import DNS -from ...types.spectrum import EdgeIPs -from ...types.spectrum import OriginDNS -from ...types.spectrum import OriginPort -from ...types.spectrum import DNS -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.spectrum import app_list_params, app_create_params, app_update_params +from ...types.spectrum.dns_param import DNSParam +from ...types.spectrum.edge_ips_param import EdgeIPsParam +from ...types.spectrum.app_get_response import AppGetResponse +from ...types.spectrum.origin_dns_param import OriginDNSParam +from ...types.spectrum.app_list_response import AppListResponse +from ...types.spectrum.origin_port_param import OriginPortParam +from ...types.spectrum.app_create_response import AppCreateResponse +from ...types.spectrum.app_delete_response import AppDeleteResponse +from ...types.spectrum.app_update_response import AppUpdateResponse __all__ = ["AppsResource", "AsyncAppsResource"] diff --git a/src/cloudflare/resources/spectrum/spectrum.py b/src/cloudflare/resources/spectrum/spectrum.py index 45b2d916d..78a765878 100644 --- a/src/cloudflare/resources/spectrum/spectrum.py +++ b/src/cloudflare/resources/spectrum/spectrum.py @@ -2,27 +2,6 @@ from __future__ import annotations -from .analytics.analytics import AnalyticsResource, AsyncAnalyticsResource - -from ..._compat import cached_property - -from .apps import AppsResource, AsyncAppsResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from .analytics import ( - AnalyticsResource, - AsyncAnalyticsResource, - AnalyticsResourceWithRawResponse, - AsyncAnalyticsResourceWithRawResponse, - AnalyticsResourceWithStreamingResponse, - AsyncAnalyticsResourceWithStreamingResponse, -) from .apps import ( AppsResource, AsyncAppsResource, @@ -31,6 +10,17 @@ from .apps import ( AppsResourceWithStreamingResponse, AsyncAppsResourceWithStreamingResponse, ) +from ..._compat import cached_property +from .analytics import ( + AnalyticsResource, + AsyncAnalyticsResource, + AnalyticsResourceWithRawResponse, + AsyncAnalyticsResourceWithRawResponse, + AnalyticsResourceWithStreamingResponse, + AsyncAnalyticsResourceWithStreamingResponse, +) +from ..._resource import SyncAPIResource, AsyncAPIResource +from .analytics.analytics import AnalyticsResource, AsyncAnalyticsResource __all__ = ["SpectrumResource", "AsyncSpectrumResource"] diff --git a/src/cloudflare/resources/speed/__init__.py b/src/cloudflare/resources/speed/__init__.py index 08d00c2b8..2c45eaaa7 100644 --- a/src/cloudflare/resources/speed/__init__.py +++ b/src/cloudflare/resources/speed/__init__.py @@ -1,33 +1,37 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .schedule import ScheduleResource, AsyncScheduleResource -from .schedule import ( - ScheduleResourceWithRawResponse, - AsyncScheduleResourceWithRawResponse, - ScheduleResourceWithStreamingResponse, - AsyncScheduleResourceWithStreamingResponse, -) -from .availabilities import AvailabilitiesResource, AsyncAvailabilitiesResource -from .availabilities import ( - AvailabilitiesResourceWithRawResponse, - AsyncAvailabilitiesResourceWithRawResponse, - AvailabilitiesResourceWithStreamingResponse, - AsyncAvailabilitiesResourceWithStreamingResponse, -) -from .pages import PagesResource, AsyncPagesResource from .pages import ( + PagesResource, + AsyncPagesResource, PagesResourceWithRawResponse, AsyncPagesResourceWithRawResponse, PagesResourceWithStreamingResponse, AsyncPagesResourceWithStreamingResponse, ) -from .speed import SpeedResource, AsyncSpeedResource from .speed import ( + SpeedResource, + AsyncSpeedResource, SpeedResourceWithRawResponse, AsyncSpeedResourceWithRawResponse, SpeedResourceWithStreamingResponse, AsyncSpeedResourceWithStreamingResponse, ) +from .schedule import ( + ScheduleResource, + AsyncScheduleResource, + ScheduleResourceWithRawResponse, + AsyncScheduleResourceWithRawResponse, + ScheduleResourceWithStreamingResponse, + AsyncScheduleResourceWithStreamingResponse, +) +from .availabilities import ( + AvailabilitiesResource, + AsyncAvailabilitiesResource, + AvailabilitiesResourceWithRawResponse, + AsyncAvailabilitiesResourceWithRawResponse, + AvailabilitiesResourceWithStreamingResponse, + AsyncAvailabilitiesResourceWithStreamingResponse, +) __all__ = [ "ScheduleResource", diff --git a/src/cloudflare/resources/speed/availabilities.py b/src/cloudflare/resources/speed/availabilities.py index f18eb6439..91aff6050 100644 --- a/src/cloudflare/resources/speed/availabilities.py +++ b/src/cloudflare/resources/speed/availabilities.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._compat import cached_property - -from ...types.speed.availability import Availability - -from ..._wrappers import ResultWrapper - -from typing import Optional, Type - -from ..._base_client import make_request_options - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.speed.availability import Availability __all__ = ["AvailabilitiesResource", "AsyncAvailabilitiesResource"] diff --git a/src/cloudflare/resources/speed/pages/__init__.py b/src/cloudflare/resources/speed/pages/__init__.py index d1151fae9..4c4bb43a6 100644 --- a/src/cloudflare/resources/speed/pages/__init__.py +++ b/src/cloudflare/resources/speed/pages/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .tests import TestsResource, AsyncTestsResource -from .tests import ( - TestsResourceWithRawResponse, - AsyncTestsResourceWithRawResponse, - TestsResourceWithStreamingResponse, - AsyncTestsResourceWithStreamingResponse, -) -from .pages import PagesResource, AsyncPagesResource from .pages import ( + PagesResource, + AsyncPagesResource, PagesResourceWithRawResponse, AsyncPagesResourceWithRawResponse, PagesResourceWithStreamingResponse, AsyncPagesResourceWithStreamingResponse, ) +from .tests import ( + TestsResource, + AsyncTestsResource, + TestsResourceWithRawResponse, + AsyncTestsResourceWithRawResponse, + TestsResourceWithStreamingResponse, + AsyncTestsResourceWithStreamingResponse, +) __all__ = [ "TestsResource", diff --git a/src/cloudflare/resources/speed/pages/pages.py b/src/cloudflare/resources/speed/pages/pages.py index ce57d2c8a..26f747222 100644 --- a/src/cloudflare/resources/speed/pages/pages.py +++ b/src/cloudflare/resources/speed/pages/pages.py @@ -2,45 +2,12 @@ from __future__ import annotations +from typing import Type, Union, Optional, cast +from datetime import datetime +from typing_extensions import Literal + import httpx -from .tests import TestsResource, AsyncTestsResource - -from ...._compat import cached_property - -from ....types.speed.page_list_response import PageListResponse - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.speed.trend import Trend - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Union - -from typing_extensions import Literal - -from datetime import datetime - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.speed import page_trend_params from .tests import ( TestsResource, AsyncTestsResource, @@ -49,8 +16,25 @@ from .tests import ( TestsResourceWithStreamingResponse, AsyncTestsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ....types.speed import page_trend_params +from ...._base_client import AsyncPaginator, make_request_options +from ....types.speed.trend import Trend +from ....types.speed.page_list_response import PageListResponse __all__ = ["PagesResource", "AsyncPagesResource"] diff --git a/src/cloudflare/resources/speed/pages/tests.py b/src/cloudflare/resources/speed/pages/tests.py index 7d9154bf1..124032fc7 100644 --- a/src/cloudflare/resources/speed/pages/tests.py +++ b/src/cloudflare/resources/speed/pages/tests.py @@ -2,49 +2,30 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.speed.pages.test import Test - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ....types.speed.pages.test_delete_response import TestDeleteResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.speed.pages import test_create_params -from ....types.speed.pages import test_list_params -from ....types.speed.pages import test_delete_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ...._base_client import AsyncPaginator, make_request_options +from ....types.speed.pages import test_list_params, test_create_params, test_delete_params +from ....types.speed.pages.test import Test +from ....types.speed.pages.test_delete_response import TestDeleteResponse __all__ = ["TestsResource", "AsyncTestsResource"] diff --git a/src/cloudflare/resources/speed/schedule.py b/src/cloudflare/resources/speed/schedule.py index 4b3553a4f..55c89ed33 100644 --- a/src/cloudflare/resources/speed/schedule.py +++ b/src/cloudflare/resources/speed/schedule.py @@ -2,49 +2,30 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.speed.schedule_create_response import ScheduleCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from typing_extensions import Literal - -from ...types.speed.schedule_delete_response import ScheduleDeleteResponse - -from ...types.speed.schedule import Schedule - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.speed import schedule_create_params -from ...types.speed import schedule_delete_params -from ...types.speed import schedule_get_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...types.speed import schedule_get_params, schedule_create_params, schedule_delete_params +from ..._base_client import make_request_options +from ...types.speed.schedule import Schedule +from ...types.speed.schedule_create_response import ScheduleCreateResponse +from ...types.speed.schedule_delete_response import ScheduleDeleteResponse __all__ = ["ScheduleResource", "AsyncScheduleResource"] diff --git a/src/cloudflare/resources/speed/speed.py b/src/cloudflare/resources/speed/speed.py index ed5ec75ca..83abbebfa 100644 --- a/src/cloudflare/resources/speed/speed.py +++ b/src/cloudflare/resources/speed/speed.py @@ -2,21 +2,14 @@ from __future__ import annotations -from .schedule import ScheduleResource, AsyncScheduleResource - -from ..._compat import cached_property - -from .availabilities import AvailabilitiesResource, AsyncAvailabilitiesResource - -from .pages.pages import PagesResource, AsyncPagesResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from .pages import ( + PagesResource, + AsyncPagesResource, + PagesResourceWithRawResponse, + AsyncPagesResourceWithRawResponse, + PagesResourceWithStreamingResponse, + AsyncPagesResourceWithStreamingResponse, +) from .schedule import ( ScheduleResource, AsyncScheduleResource, @@ -25,6 +18,9 @@ from .schedule import ( ScheduleResourceWithStreamingResponse, AsyncScheduleResourceWithStreamingResponse, ) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from .pages.pages import PagesResource, AsyncPagesResource from .availabilities import ( AvailabilitiesResource, AsyncAvailabilitiesResource, @@ -33,14 +29,6 @@ from .availabilities import ( AvailabilitiesResourceWithStreamingResponse, AsyncAvailabilitiesResourceWithStreamingResponse, ) -from .pages import ( - PagesResource, - AsyncPagesResource, - PagesResourceWithRawResponse, - AsyncPagesResourceWithRawResponse, - PagesResourceWithStreamingResponse, - AsyncPagesResourceWithStreamingResponse, -) __all__ = ["SpeedResource", "AsyncSpeedResource"] diff --git a/src/cloudflare/resources/ssl/__init__.py b/src/cloudflare/resources/ssl/__init__.py index 12a16701d..59245e44d 100644 --- a/src/cloudflare/resources/ssl/__init__.py +++ b/src/cloudflare/resources/ssl/__init__.py @@ -1,46 +1,52 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .analyze import AnalyzeResource, AsyncAnalyzeResource +from .ssl import ( + SSLResource, + AsyncSSLResource, + SSLResourceWithRawResponse, + AsyncSSLResourceWithRawResponse, + SSLResourceWithStreamingResponse, + AsyncSSLResourceWithStreamingResponse, +) from .analyze import ( + AnalyzeResource, + AsyncAnalyzeResource, AnalyzeResourceWithRawResponse, AsyncAnalyzeResourceWithRawResponse, AnalyzeResourceWithStreamingResponse, AsyncAnalyzeResourceWithStreamingResponse, ) -from .certificate_packs import CertificatePacksResource, AsyncCertificatePacksResource -from .certificate_packs import ( - CertificatePacksResourceWithRawResponse, - AsyncCertificatePacksResourceWithRawResponse, - CertificatePacksResourceWithStreamingResponse, - AsyncCertificatePacksResourceWithStreamingResponse, -) -from .recommendations import RecommendationsResource, AsyncRecommendationsResource -from .recommendations import ( - RecommendationsResourceWithRawResponse, - AsyncRecommendationsResourceWithRawResponse, - RecommendationsResourceWithStreamingResponse, - AsyncRecommendationsResourceWithStreamingResponse, -) -from .universal import UniversalResource, AsyncUniversalResource from .universal import ( + UniversalResource, + AsyncUniversalResource, UniversalResourceWithRawResponse, AsyncUniversalResourceWithRawResponse, UniversalResourceWithStreamingResponse, AsyncUniversalResourceWithStreamingResponse, ) -from .verification import VerificationResource, AsyncVerificationResource from .verification import ( + VerificationResource, + AsyncVerificationResource, VerificationResourceWithRawResponse, AsyncVerificationResourceWithRawResponse, VerificationResourceWithStreamingResponse, AsyncVerificationResourceWithStreamingResponse, ) -from .ssl import SSLResource, AsyncSSLResource -from .ssl import ( - SSLResourceWithRawResponse, - AsyncSSLResourceWithRawResponse, - SSLResourceWithStreamingResponse, - AsyncSSLResourceWithStreamingResponse, +from .recommendations import ( + RecommendationsResource, + AsyncRecommendationsResource, + RecommendationsResourceWithRawResponse, + AsyncRecommendationsResourceWithRawResponse, + RecommendationsResourceWithStreamingResponse, + AsyncRecommendationsResourceWithStreamingResponse, +) +from .certificate_packs import ( + CertificatePacksResource, + AsyncCertificatePacksResource, + CertificatePacksResourceWithRawResponse, + AsyncCertificatePacksResourceWithRawResponse, + CertificatePacksResourceWithStreamingResponse, + AsyncCertificatePacksResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/ssl/analyze.py b/src/cloudflare/resources/ssl/analyze.py index 291a64cf5..fb250529a 100644 --- a/src/cloudflare/resources/ssl/analyze.py +++ b/src/cloudflare/resources/ssl/analyze.py @@ -2,38 +2,28 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from ...types.custom_hostnames.bundle_method import BundleMethod - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper from ...types.ssl import analyze_create_params +from ..._base_client import make_request_options from ...types.custom_hostnames import BundleMethod -from typing import cast -from typing import cast +from ...types.custom_hostnames.bundle_method import BundleMethod __all__ = ["AnalyzeResource", "AsyncAnalyzeResource"] diff --git a/src/cloudflare/resources/ssl/certificate_packs/__init__.py b/src/cloudflare/resources/ssl/certificate_packs/__init__.py index 1af2aa739..ebed46ba6 100644 --- a/src/cloudflare/resources/ssl/certificate_packs/__init__.py +++ b/src/cloudflare/resources/ssl/certificate_packs/__init__.py @@ -1,21 +1,24 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .order import OrderResource, AsyncOrderResource from .order import ( + OrderResource, + AsyncOrderResource, OrderResourceWithRawResponse, AsyncOrderResourceWithRawResponse, OrderResourceWithStreamingResponse, AsyncOrderResourceWithStreamingResponse, ) -from .quota import QuotaResource, AsyncQuotaResource from .quota import ( + QuotaResource, + AsyncQuotaResource, QuotaResourceWithRawResponse, AsyncQuotaResourceWithRawResponse, QuotaResourceWithStreamingResponse, AsyncQuotaResourceWithStreamingResponse, ) -from .certificate_packs import CertificatePacksResource, AsyncCertificatePacksResource from .certificate_packs import ( + CertificatePacksResource, + AsyncCertificatePacksResource, CertificatePacksResourceWithRawResponse, AsyncCertificatePacksResourceWithRawResponse, CertificatePacksResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/ssl/certificate_packs/certificate_packs.py b/src/cloudflare/resources/ssl/certificate_packs/certificate_packs.py index 4b79c1532..1f7eef467 100644 --- a/src/cloudflare/resources/ssl/certificate_packs/certificate_packs.py +++ b/src/cloudflare/resources/ssl/certificate_packs/certificate_packs.py @@ -2,46 +2,11 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx -from .order import OrderResource, AsyncOrderResource - -from ...._compat import cached_property - -from .quota import QuotaResource, AsyncQuotaResource - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from ....types.ssl.certificate_pack_delete_response import CertificatePackDeleteResponse - -from ...._wrappers import ResultWrapper - -from typing import Optional, Type - -from ....types.ssl.certificate_pack_edit_response import CertificatePackEditResponse - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.ssl import certificate_pack_list_params -from ....types.ssl import certificate_pack_edit_params from .order import ( OrderResource, AsyncOrderResource, @@ -58,12 +23,25 @@ from .quota import ( QuotaResourceWithStreamingResponse, AsyncQuotaResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....types.ssl import certificate_pack_edit_params, certificate_pack_list_params +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.ssl.certificate_pack_edit_response import CertificatePackEditResponse +from ....types.ssl.certificate_pack_delete_response import CertificatePackDeleteResponse __all__ = ["CertificatePacksResource", "AsyncCertificatePacksResource"] diff --git a/src/cloudflare/resources/ssl/certificate_packs/order.py b/src/cloudflare/resources/ssl/certificate_packs/order.py index 613bac559..cbb48efcf 100644 --- a/src/cloudflare/resources/ssl/certificate_packs/order.py +++ b/src/cloudflare/resources/ssl/certificate_packs/order.py @@ -2,41 +2,29 @@ from __future__ import annotations +from typing import List, Type, Optional, cast +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.ssl.certificate_packs.order_create_response import OrderCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, List - -from ...._base_client import make_request_options - -from typing_extensions import Literal - -from ....types.ssl.host import Host - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.ssl.host import Host from ....types.ssl.certificate_packs import order_create_params -from typing import cast -from typing import cast +from ....types.ssl.certificate_packs.order_create_response import OrderCreateResponse __all__ = ["OrderResource", "AsyncOrderResource"] diff --git a/src/cloudflare/resources/ssl/certificate_packs/quota.py b/src/cloudflare/resources/ssl/certificate_packs/quota.py index c684c5342..c9a985900 100644 --- a/src/cloudflare/resources/ssl/certificate_packs/quota.py +++ b/src/cloudflare/resources/ssl/certificate_packs/quota.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.ssl.certificate_packs.quota_get_response import QuotaGetResponse - -from ...._wrappers import ResultWrapper - -from typing import Optional, Type - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.ssl.certificate_packs.quota_get_response import QuotaGetResponse __all__ = ["QuotaResource", "AsyncQuotaResource"] diff --git a/src/cloudflare/resources/ssl/recommendations.py b/src/cloudflare/resources/ssl/recommendations.py index 844bee28d..b66214bd7 100644 --- a/src/cloudflare/resources/ssl/recommendations.py +++ b/src/cloudflare/resources/ssl/recommendations.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._compat import cached_property - -from ...types.ssl.recommendation_get_response import RecommendationGetResponse - -from ..._wrappers import ResultWrapper - -from typing import Optional, Type - -from ..._base_client import make_request_options - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.ssl.recommendation_get_response import RecommendationGetResponse __all__ = ["RecommendationsResource", "AsyncRecommendationsResource"] diff --git a/src/cloudflare/resources/ssl/ssl.py b/src/cloudflare/resources/ssl/ssl.py index e53c8809c..45302ec7b 100644 --- a/src/cloudflare/resources/ssl/ssl.py +++ b/src/cloudflare/resources/ssl/ssl.py @@ -2,25 +2,6 @@ from __future__ import annotations -from .analyze import AnalyzeResource, AsyncAnalyzeResource - -from ..._compat import cached_property - -from .certificate_packs.certificate_packs import CertificatePacksResource, AsyncCertificatePacksResource - -from .recommendations import RecommendationsResource, AsyncRecommendationsResource - -from .universal.universal import UniversalResource, AsyncUniversalResource - -from .verification import VerificationResource, AsyncVerificationResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .analyze import ( AnalyzeResource, AsyncAnalyzeResource, @@ -29,13 +10,23 @@ from .analyze import ( AnalyzeResourceWithStreamingResponse, AsyncAnalyzeResourceWithStreamingResponse, ) -from .certificate_packs import ( - CertificatePacksResource, - AsyncCertificatePacksResource, - CertificatePacksResourceWithRawResponse, - AsyncCertificatePacksResourceWithRawResponse, - CertificatePacksResourceWithStreamingResponse, - AsyncCertificatePacksResourceWithStreamingResponse, +from ..._compat import cached_property +from .universal import ( + UniversalResource, + AsyncUniversalResource, + UniversalResourceWithRawResponse, + AsyncUniversalResourceWithRawResponse, + UniversalResourceWithStreamingResponse, + AsyncUniversalResourceWithStreamingResponse, +) +from ..._resource import SyncAPIResource, AsyncAPIResource +from .verification import ( + VerificationResource, + AsyncVerificationResource, + VerificationResourceWithRawResponse, + AsyncVerificationResourceWithRawResponse, + VerificationResourceWithStreamingResponse, + AsyncVerificationResourceWithStreamingResponse, ) from .recommendations import ( RecommendationsResource, @@ -45,22 +36,16 @@ from .recommendations import ( RecommendationsResourceWithStreamingResponse, AsyncRecommendationsResourceWithStreamingResponse, ) -from .universal import ( - UniversalResource, - AsyncUniversalResource, - UniversalResourceWithRawResponse, - AsyncUniversalResourceWithRawResponse, - UniversalResourceWithStreamingResponse, - AsyncUniversalResourceWithStreamingResponse, -) -from .verification import ( - VerificationResource, - AsyncVerificationResource, - VerificationResourceWithRawResponse, - AsyncVerificationResourceWithRawResponse, - VerificationResourceWithStreamingResponse, - AsyncVerificationResourceWithStreamingResponse, +from .certificate_packs import ( + CertificatePacksResource, + AsyncCertificatePacksResource, + CertificatePacksResourceWithRawResponse, + AsyncCertificatePacksResourceWithRawResponse, + CertificatePacksResourceWithStreamingResponse, + AsyncCertificatePacksResourceWithStreamingResponse, ) +from .universal.universal import UniversalResource, AsyncUniversalResource +from .certificate_packs.certificate_packs import CertificatePacksResource, AsyncCertificatePacksResource __all__ = ["SSLResource", "AsyncSSLResource"] diff --git a/src/cloudflare/resources/ssl/universal/__init__.py b/src/cloudflare/resources/ssl/universal/__init__.py index ba717eb1f..176413237 100644 --- a/src/cloudflare/resources/ssl/universal/__init__.py +++ b/src/cloudflare/resources/ssl/universal/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .settings import SettingsResource, AsyncSettingsResource from .settings import ( + SettingsResource, + AsyncSettingsResource, SettingsResourceWithRawResponse, AsyncSettingsResourceWithRawResponse, SettingsResourceWithStreamingResponse, AsyncSettingsResourceWithStreamingResponse, ) -from .universal import UniversalResource, AsyncUniversalResource from .universal import ( + UniversalResource, + AsyncUniversalResource, UniversalResourceWithRawResponse, AsyncUniversalResourceWithRawResponse, UniversalResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/ssl/universal/settings.py b/src/cloudflare/resources/ssl/universal/settings.py index e9daae06c..a595d0c0d 100644 --- a/src/cloudflare/resources/ssl/universal/settings.py +++ b/src/cloudflare/resources/ssl/universal/settings.py @@ -2,39 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.ssl.universal.universal_ssl_settings import UniversalSSLSettings - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.ssl.universal import setting_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....types.ssl.universal.universal_ssl_settings import UniversalSSLSettings __all__ = ["SettingsResource", "AsyncSettingsResource"] diff --git a/src/cloudflare/resources/ssl/universal/universal.py b/src/cloudflare/resources/ssl/universal/universal.py index 4e25bc2ff..7f89451e1 100644 --- a/src/cloudflare/resources/ssl/universal/universal.py +++ b/src/cloudflare/resources/ssl/universal/universal.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .settings import SettingsResource, AsyncSettingsResource - -from ...._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params from .settings import ( SettingsResource, AsyncSettingsResource, @@ -21,6 +10,8 @@ from .settings import ( SettingsResourceWithStreamingResponse, AsyncSettingsResourceWithStreamingResponse, ) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource __all__ = ["UniversalResource", "AsyncUniversalResource"] diff --git a/src/cloudflare/resources/ssl/verification.py b/src/cloudflare/resources/ssl/verification.py index 0722f2c7e..6c5f9e0da 100644 --- a/src/cloudflare/resources/ssl/verification.py +++ b/src/cloudflare/resources/ssl/verification.py @@ -2,44 +2,29 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.ssl.verification_edit_response import VerificationEditResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from typing_extensions import Literal - -from ...types.ssl.verification_get_response import VerificationGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.ssl import verification_edit_params -from ...types.ssl import verification_get_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...types.ssl import verification_get_params, verification_edit_params +from ..._base_client import make_request_options +from ...types.ssl.verification_get_response import VerificationGetResponse +from ...types.ssl.verification_edit_response import VerificationEditResponse __all__ = ["VerificationResource", "AsyncVerificationResource"] diff --git a/src/cloudflare/resources/storage/__init__.py b/src/cloudflare/resources/storage/__init__.py index 81d413e29..9c22eb0dc 100644 --- a/src/cloudflare/resources/storage/__init__.py +++ b/src/cloudflare/resources/storage/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .analytics import AnalyticsResource, AsyncAnalyticsResource -from .analytics import ( - AnalyticsResourceWithRawResponse, - AsyncAnalyticsResourceWithRawResponse, - AnalyticsResourceWithStreamingResponse, - AsyncAnalyticsResourceWithStreamingResponse, -) -from .storage import StorageResource, AsyncStorageResource from .storage import ( + StorageResource, + AsyncStorageResource, StorageResourceWithRawResponse, AsyncStorageResourceWithRawResponse, StorageResourceWithStreamingResponse, AsyncStorageResourceWithStreamingResponse, ) +from .analytics import ( + AnalyticsResource, + AsyncAnalyticsResource, + AnalyticsResourceWithRawResponse, + AsyncAnalyticsResourceWithRawResponse, + AnalyticsResourceWithStreamingResponse, + AsyncAnalyticsResourceWithStreamingResponse, +) __all__ = [ "AnalyticsResource", diff --git a/src/cloudflare/resources/storage/analytics.py b/src/cloudflare/resources/storage/analytics.py index bb441d0f6..fa6849c86 100644 --- a/src/cloudflare/resources/storage/analytics.py +++ b/src/cloudflare/resources/storage/analytics.py @@ -2,44 +2,28 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.storage.schema import Schema - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from ...types.storage.components import Components - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.storage import analytics_list_params, analytics_stored_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.storage import analytics_list_params -from ...types.storage import analytics_stored_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...types.storage.schema import Schema +from ...types.storage.components import Components __all__ = ["AnalyticsResource", "AsyncAnalyticsResource"] diff --git a/src/cloudflare/resources/storage/storage.py b/src/cloudflare/resources/storage/storage.py index f89ecd27a..29fac0d0f 100644 --- a/src/cloudflare/resources/storage/storage.py +++ b/src/cloudflare/resources/storage/storage.py @@ -2,17 +2,7 @@ from __future__ import annotations -from .analytics import AnalyticsResource, AsyncAnalyticsResource - from ..._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .analytics import ( AnalyticsResource, AsyncAnalyticsResource, @@ -21,6 +11,7 @@ from .analytics import ( AnalyticsResourceWithStreamingResponse, AsyncAnalyticsResourceWithStreamingResponse, ) +from ..._resource import SyncAPIResource, AsyncAPIResource __all__ = ["StorageResource", "AsyncStorageResource"] diff --git a/src/cloudflare/resources/stream/__init__.py b/src/cloudflare/resources/stream/__init__.py index ec4c1a872..372e6348d 100644 --- a/src/cloudflare/resources/stream/__init__.py +++ b/src/cloudflare/resources/stream/__init__.py @@ -1,103 +1,117 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .audio_tracks import AudioTracksResource, AsyncAudioTracksResource -from .audio_tracks import ( - AudioTracksResourceWithRawResponse, - AsyncAudioTracksResourceWithRawResponse, - AudioTracksResourceWithStreamingResponse, - AsyncAudioTracksResourceWithStreamingResponse, -) -from .videos import VideosResource, AsyncVideosResource -from .videos import ( - VideosResourceWithRawResponse, - AsyncVideosResourceWithRawResponse, - VideosResourceWithStreamingResponse, - AsyncVideosResourceWithStreamingResponse, -) -from .clip import ClipResource, AsyncClipResource from .clip import ( + ClipResource, + AsyncClipResource, ClipResourceWithRawResponse, AsyncClipResourceWithRawResponse, ClipResourceWithStreamingResponse, AsyncClipResourceWithStreamingResponse, ) -from .copy import CopyResource, AsyncCopyResource from .copy import ( + CopyResource, + AsyncCopyResource, CopyResourceWithRawResponse, AsyncCopyResourceWithRawResponse, CopyResourceWithStreamingResponse, AsyncCopyResourceWithStreamingResponse, ) -from .direct_upload import DirectUploadResource, AsyncDirectUploadResource -from .direct_upload import ( - DirectUploadResourceWithRawResponse, - AsyncDirectUploadResourceWithRawResponse, - DirectUploadResourceWithStreamingResponse, - AsyncDirectUploadResourceWithStreamingResponse, -) -from .keys import KeysResource, AsyncKeysResource from .keys import ( + KeysResource, + AsyncKeysResource, KeysResourceWithRawResponse, AsyncKeysResourceWithRawResponse, KeysResourceWithStreamingResponse, AsyncKeysResourceWithStreamingResponse, ) -from .live_inputs import LiveInputsResource, AsyncLiveInputsResource -from .live_inputs import ( - LiveInputsResourceWithRawResponse, - AsyncLiveInputsResourceWithRawResponse, - LiveInputsResourceWithStreamingResponse, - AsyncLiveInputsResourceWithStreamingResponse, -) -from .watermarks import WatermarksResource, AsyncWatermarksResource -from .watermarks import ( - WatermarksResourceWithRawResponse, - AsyncWatermarksResourceWithRawResponse, - WatermarksResourceWithStreamingResponse, - AsyncWatermarksResourceWithStreamingResponse, -) -from .webhooks import WebhooksResource, AsyncWebhooksResource -from .webhooks import ( - WebhooksResourceWithRawResponse, - AsyncWebhooksResourceWithRawResponse, - WebhooksResourceWithStreamingResponse, - AsyncWebhooksResourceWithStreamingResponse, -) -from .captions import CaptionsResource, AsyncCaptionsResource -from .captions import ( - CaptionsResourceWithRawResponse, - AsyncCaptionsResourceWithRawResponse, - CaptionsResourceWithStreamingResponse, - AsyncCaptionsResourceWithStreamingResponse, -) -from .downloads import DownloadsResource, AsyncDownloadsResource -from .downloads import ( - DownloadsResourceWithRawResponse, - AsyncDownloadsResourceWithRawResponse, - DownloadsResourceWithStreamingResponse, - AsyncDownloadsResourceWithStreamingResponse, -) -from .embed import EmbedResource, AsyncEmbedResource from .embed import ( + EmbedResource, + AsyncEmbedResource, EmbedResourceWithRawResponse, AsyncEmbedResourceWithRawResponse, EmbedResourceWithStreamingResponse, AsyncEmbedResourceWithStreamingResponse, ) -from .token import TokenResource, AsyncTokenResource from .token import ( + TokenResource, + AsyncTokenResource, TokenResourceWithRawResponse, AsyncTokenResourceWithRawResponse, TokenResourceWithStreamingResponse, AsyncTokenResourceWithStreamingResponse, ) -from .stream import StreamResource, AsyncStreamResource from .stream import ( + StreamResource, + AsyncStreamResource, StreamResourceWithRawResponse, AsyncStreamResourceWithRawResponse, StreamResourceWithStreamingResponse, AsyncStreamResourceWithStreamingResponse, ) +from .videos import ( + VideosResource, + AsyncVideosResource, + VideosResourceWithRawResponse, + AsyncVideosResourceWithRawResponse, + VideosResourceWithStreamingResponse, + AsyncVideosResourceWithStreamingResponse, +) +from .captions import ( + CaptionsResource, + AsyncCaptionsResource, + CaptionsResourceWithRawResponse, + AsyncCaptionsResourceWithRawResponse, + CaptionsResourceWithStreamingResponse, + AsyncCaptionsResourceWithStreamingResponse, +) +from .webhooks import ( + WebhooksResource, + AsyncWebhooksResource, + WebhooksResourceWithRawResponse, + AsyncWebhooksResourceWithRawResponse, + WebhooksResourceWithStreamingResponse, + AsyncWebhooksResourceWithStreamingResponse, +) +from .downloads import ( + DownloadsResource, + AsyncDownloadsResource, + DownloadsResourceWithRawResponse, + AsyncDownloadsResourceWithRawResponse, + DownloadsResourceWithStreamingResponse, + AsyncDownloadsResourceWithStreamingResponse, +) +from .watermarks import ( + WatermarksResource, + AsyncWatermarksResource, + WatermarksResourceWithRawResponse, + AsyncWatermarksResourceWithRawResponse, + WatermarksResourceWithStreamingResponse, + AsyncWatermarksResourceWithStreamingResponse, +) +from .live_inputs import ( + LiveInputsResource, + AsyncLiveInputsResource, + LiveInputsResourceWithRawResponse, + AsyncLiveInputsResourceWithRawResponse, + LiveInputsResourceWithStreamingResponse, + AsyncLiveInputsResourceWithStreamingResponse, +) +from .audio_tracks import ( + AudioTracksResource, + AsyncAudioTracksResource, + AudioTracksResourceWithRawResponse, + AsyncAudioTracksResourceWithRawResponse, + AudioTracksResourceWithStreamingResponse, + AsyncAudioTracksResourceWithStreamingResponse, +) +from .direct_upload import ( + DirectUploadResource, + AsyncDirectUploadResource, + DirectUploadResourceWithRawResponse, + AsyncDirectUploadResourceWithRawResponse, + DirectUploadResourceWithStreamingResponse, + AsyncDirectUploadResourceWithStreamingResponse, +) __all__ = [ "AudioTracksResource", diff --git a/src/cloudflare/resources/stream/audio_tracks.py b/src/cloudflare/resources/stream/audio_tracks.py index 7094d0ba6..444bc8bea 100644 --- a/src/cloudflare/resources/stream/audio_tracks.py +++ b/src/cloudflare/resources/stream/audio_tracks.py @@ -2,48 +2,29 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ..._wrappers import ResultWrapper - -from typing import Optional, Type - -from ...types.stream.audio_track_delete_response import AudioTrackDeleteResponse - -from ..._base_client import make_request_options - -from ...types.stream.audio import Audio - -from ..._utils import maybe_transform, async_maybe_transform - -from ...types.stream.audio_track_get_response import AudioTrackGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.stream import audio_track_copy_params -from ...types.stream import audio_track_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.stream import audio_track_copy_params, audio_track_edit_params +from ...types.stream.audio import Audio +from ...types.stream.audio_track_get_response import AudioTrackGetResponse +from ...types.stream.audio_track_delete_response import AudioTrackDeleteResponse __all__ = ["AudioTracksResource", "AsyncAudioTracksResource"] diff --git a/src/cloudflare/resources/stream/captions/__init__.py b/src/cloudflare/resources/stream/captions/__init__.py index 8ca7e2abf..468a1af73 100644 --- a/src/cloudflare/resources/stream/captions/__init__.py +++ b/src/cloudflare/resources/stream/captions/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .language import LanguageResource, AsyncLanguageResource -from .language import ( - LanguageResourceWithRawResponse, - AsyncLanguageResourceWithRawResponse, - LanguageResourceWithStreamingResponse, - AsyncLanguageResourceWithStreamingResponse, -) -from .captions import CaptionsResource, AsyncCaptionsResource from .captions import ( + CaptionsResource, + AsyncCaptionsResource, CaptionsResourceWithRawResponse, AsyncCaptionsResourceWithRawResponse, CaptionsResourceWithStreamingResponse, AsyncCaptionsResourceWithStreamingResponse, ) +from .language import ( + LanguageResource, + AsyncLanguageResource, + LanguageResourceWithRawResponse, + AsyncLanguageResourceWithRawResponse, + LanguageResourceWithStreamingResponse, + AsyncLanguageResourceWithStreamingResponse, +) __all__ = [ "LanguageResource", diff --git a/src/cloudflare/resources/stream/captions/captions.py b/src/cloudflare/resources/stream/captions/captions.py index 8cd0b4c00..c677efa56 100644 --- a/src/cloudflare/resources/stream/captions/captions.py +++ b/src/cloudflare/resources/stream/captions/captions.py @@ -2,34 +2,10 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .language.language import LanguageResource, AsyncLanguageResource - -from ...._compat import cached_property - -from ....types.stream.caption_get_response import CaptionGetResponse - -from ...._wrappers import ResultWrapper - -from typing import Optional, Type - -from ...._base_client import make_request_options - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params from .language import ( LanguageResource, AsyncLanguageResource, @@ -38,8 +14,19 @@ from .language import ( LanguageResourceWithStreamingResponse, AsyncLanguageResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from .language.language import LanguageResource, AsyncLanguageResource +from ....types.stream.caption_get_response import CaptionGetResponse __all__ = ["CaptionsResource", "AsyncCaptionsResource"] diff --git a/src/cloudflare/resources/stream/captions/language/__init__.py b/src/cloudflare/resources/stream/captions/language/__init__.py index fdf9bdf14..8780a9b70 100644 --- a/src/cloudflare/resources/stream/captions/language/__init__.py +++ b/src/cloudflare/resources/stream/captions/language/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .vtt import VttResource, AsyncVttResource from .vtt import ( + VttResource, + AsyncVttResource, VttResourceWithRawResponse, AsyncVttResourceWithRawResponse, VttResourceWithStreamingResponse, AsyncVttResourceWithStreamingResponse, ) -from .language import LanguageResource, AsyncLanguageResource from .language import ( + LanguageResource, + AsyncLanguageResource, LanguageResourceWithRawResponse, AsyncLanguageResourceWithRawResponse, LanguageResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/stream/captions/language/language.py b/src/cloudflare/resources/stream/captions/language/language.py index 90a4a545b..d14623d3f 100644 --- a/src/cloudflare/resources/stream/captions/language/language.py +++ b/src/cloudflare/resources/stream/captions/language/language.py @@ -2,39 +2,10 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .vtt import VttResource, AsyncVttResource - -from ....._compat import cached_property - -from .....types.stream.caption import Caption - -from ....._wrappers import ResultWrapper - -from typing import Optional, Type - -from ....._base_client import make_request_options - -from ....._utils import maybe_transform, async_maybe_transform - -from .....types.stream.captions.language_delete_response import LanguageDeleteResponse - -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.stream.captions import language_update_params from .vtt import ( VttResource, AsyncVttResource, @@ -43,14 +14,24 @@ from .vtt import ( VttResourceWithStreamingResponse, AsyncVttResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.stream.caption import Caption +from .....types.stream.captions import language_update_params +from .....types.stream.captions.language_delete_response import LanguageDeleteResponse __all__ = ["LanguageResource", "AsyncLanguageResource"] diff --git a/src/cloudflare/resources/stream/captions/language/vtt.py b/src/cloudflare/resources/stream/captions/language/vtt.py index 24fb513a8..2d9bc01af 100644 --- a/src/cloudflare/resources/stream/captions/language/vtt.py +++ b/src/cloudflare/resources/stream/captions/language/vtt.py @@ -4,26 +4,16 @@ from __future__ import annotations import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._compat import cached_property - -from ....._base_client import make_request_options - -from .....types.stream.captions.language.vtt_get_response import VttGetResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._base_client import make_request_options __all__ = ["VttResource", "AsyncVttResource"] diff --git a/src/cloudflare/resources/stream/clip.py b/src/cloudflare/resources/stream/clip.py index 65234a99f..f7cfef075 100644 --- a/src/cloudflare/resources/stream/clip.py +++ b/src/cloudflare/resources/stream/clip.py @@ -2,41 +2,28 @@ from __future__ import annotations +from typing import List, Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.stream.clip import Clip - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, List - -from ..._base_client import make_request_options - -from ...types.stream.allowed_origins import AllowedOrigins - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.stream import clip_create_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.stream import clip_create_params -from typing import cast -from typing import cast +from ...types.stream.clip import Clip +from ...types.stream.allowed_origins import AllowedOrigins __all__ = ["ClipResource", "AsyncClipResource"] diff --git a/src/cloudflare/resources/stream/copy.py b/src/cloudflare/resources/stream/copy.py index 2f7ce5728..ba3e51900 100644 --- a/src/cloudflare/resources/stream/copy.py +++ b/src/cloudflare/resources/stream/copy.py @@ -2,43 +2,30 @@ from __future__ import annotations -import httpx - -from ..._compat import cached_property - -from ...types.stream.video import Video - -from ..._wrappers import ResultWrapper - -from ..._utils import is_given, strip_not_given, maybe_transform, async_maybe_transform - -from typing import Optional, Type, List, Union - -from ..._base_client import make_request_options - -from ...types.stream.allowed_origins import AllowedOrigins - +from typing import List, Type, Union, Optional, cast from datetime import datetime +import httpx + +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + strip_not_given, + async_maybe_transform, +) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.stream import copy_create_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.stream import copy_create_params -from typing import cast -from typing import cast +from ...types.stream.video import Video +from ...types.stream.allowed_origins import AllowedOrigins __all__ = ["CopyResource", "AsyncCopyResource"] diff --git a/src/cloudflare/resources/stream/direct_upload.py b/src/cloudflare/resources/stream/direct_upload.py index b8c5295b2..774c9b4ce 100644 --- a/src/cloudflare/resources/stream/direct_upload.py +++ b/src/cloudflare/resources/stream/direct_upload.py @@ -2,43 +2,30 @@ from __future__ import annotations -import httpx - -from ..._compat import cached_property - -from ...types.stream.direct_upload_create_response import DirectUploadCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import is_given, strip_not_given, maybe_transform, async_maybe_transform - -from typing import Optional, Type, List, Union - -from ..._base_client import make_request_options - -from ...types.stream.allowed_origins import AllowedOrigins - +from typing import List, Type, Union, Optional, cast from datetime import datetime +import httpx + +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + strip_not_given, + async_maybe_transform, +) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.stream import direct_upload_create_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.stream import direct_upload_create_params -from typing import cast -from typing import cast +from ...types.stream.allowed_origins import AllowedOrigins +from ...types.stream.direct_upload_create_response import DirectUploadCreateResponse __all__ = ["DirectUploadResource", "AsyncDirectUploadResource"] diff --git a/src/cloudflare/resources/stream/downloads.py b/src/cloudflare/resources/stream/downloads.py index 1dcea1db3..cd9e4fea5 100644 --- a/src/cloudflare/resources/stream/downloads.py +++ b/src/cloudflare/resources/stream/downloads.py @@ -2,41 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from ...types.stream.download_delete_response import DownloadDeleteResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.stream import download_create_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...types.stream.download_delete_response import DownloadDeleteResponse __all__ = ["DownloadsResource", "AsyncDownloadsResource"] diff --git a/src/cloudflare/resources/stream/embed.py b/src/cloudflare/resources/stream/embed.py index cfbe25684..f63b5db6f 100644 --- a/src/cloudflare/resources/stream/embed.py +++ b/src/cloudflare/resources/stream/embed.py @@ -4,26 +4,16 @@ from __future__ import annotations import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._compat import cached_property - -from ..._base_client import make_request_options - -from ...types.stream.embed_get_response import EmbedGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._base_client import make_request_options __all__ = ["EmbedResource", "AsyncEmbedResource"] diff --git a/src/cloudflare/resources/stream/keys.py b/src/cloudflare/resources/stream/keys.py index 96742ff27..2c39d0f74 100644 --- a/src/cloudflare/resources/stream/keys.py +++ b/src/cloudflare/resources/stream/keys.py @@ -2,45 +2,29 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.stream.keys import Keys - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from ...types.stream.key_delete_response import KeyDeleteResponse - -from ...types.stream.key_get_response import KeyGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.stream import key_create_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...types.stream.keys import Keys +from ...types.stream.key_get_response import KeyGetResponse +from ...types.stream.key_delete_response import KeyDeleteResponse __all__ = ["KeysResource", "AsyncKeysResource"] diff --git a/src/cloudflare/resources/stream/live_inputs/__init__.py b/src/cloudflare/resources/stream/live_inputs/__init__.py index a0f1be62e..427b214e4 100644 --- a/src/cloudflare/resources/stream/live_inputs/__init__.py +++ b/src/cloudflare/resources/stream/live_inputs/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .outputs import OutputsResource, AsyncOutputsResource from .outputs import ( + OutputsResource, + AsyncOutputsResource, OutputsResourceWithRawResponse, AsyncOutputsResourceWithRawResponse, OutputsResourceWithStreamingResponse, AsyncOutputsResourceWithStreamingResponse, ) -from .live_inputs import LiveInputsResource, AsyncLiveInputsResource from .live_inputs import ( + LiveInputsResource, + AsyncLiveInputsResource, LiveInputsResourceWithRawResponse, AsyncLiveInputsResourceWithRawResponse, LiveInputsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/stream/live_inputs/live_inputs.py b/src/cloudflare/resources/stream/live_inputs/live_inputs.py index 4f1efd678..1bf4fe344 100644 --- a/src/cloudflare/resources/stream/live_inputs/live_inputs.py +++ b/src/cloudflare/resources/stream/live_inputs/live_inputs.py @@ -2,43 +2,10 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .outputs import OutputsResource, AsyncOutputsResource - -from ...._compat import cached_property - -from ....types.stream.live_input import LiveInput - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options - -from ....types.stream.live_input_list_response import LiveInputListResponse - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -from ....types.stream import live_input_create_params, live_input_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.stream import live_input_create_params -from ....types.stream import live_input_update_params -from ....types.stream import live_input_list_params from .outputs import ( OutputsResource, AsyncOutputsResource, @@ -47,14 +14,24 @@ from .outputs import ( OutputsResourceWithStreamingResponse, AsyncOutputsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.stream import live_input_list_params, live_input_create_params, live_input_update_params +from ....types.stream.live_input import LiveInput +from ....types.stream.live_input_list_response import LiveInputListResponse __all__ = ["LiveInputsResource", "AsyncLiveInputsResource"] diff --git a/src/cloudflare/resources/stream/live_inputs/outputs.py b/src/cloudflare/resources/stream/live_inputs/outputs.py index 24bd67c4c..ef72ec551 100644 --- a/src/cloudflare/resources/stream/live_inputs/outputs.py +++ b/src/cloudflare/resources/stream/live_inputs/outputs.py @@ -2,42 +2,28 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.stream.live_inputs.output import Output - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options, AsyncPaginator - -from ....pagination import SyncSinglePage, AsyncSinglePage - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.stream.live_inputs import output_create_params -from ....types.stream.live_inputs import output_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.stream.live_inputs import output_create_params, output_update_params +from ....types.stream.live_inputs.output import Output __all__ = ["OutputsResource", "AsyncOutputsResource"] diff --git a/src/cloudflare/resources/stream/stream.py b/src/cloudflare/resources/stream/stream.py index cd09dbc93..ce47eef83 100644 --- a/src/cloudflare/resources/stream/stream.py +++ b/src/cloudflare/resources/stream/stream.py @@ -2,84 +2,12 @@ from __future__ import annotations +from typing import Type, Union, Optional, cast +from datetime import datetime +from typing_extensions import Literal + import httpx -from .audio_tracks import AudioTracksResource, AsyncAudioTracksResource - -from ..._compat import cached_property - -from .videos import VideosResource, AsyncVideosResource - -from .clip import ClipResource, AsyncClipResource - -from .copy import CopyResource, AsyncCopyResource - -from .direct_upload import DirectUploadResource, AsyncDirectUploadResource - -from .keys import KeysResource, AsyncKeysResource - -from .live_inputs.live_inputs import LiveInputsResource, AsyncLiveInputsResource - -from .watermarks import WatermarksResource, AsyncWatermarksResource - -from .webhooks import WebhooksResource, AsyncWebhooksResource - -from .captions.captions import CaptionsResource, AsyncCaptionsResource - -from .downloads import DownloadsResource, AsyncDownloadsResource - -from .embed import EmbedResource, AsyncEmbedResource - -from .token import TokenResource, AsyncTokenResource - -from ..._utils import is_given, strip_not_given, maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from ...types.stream.video import Video - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from typing import Union, Optional, Type - -from datetime import datetime - -from ..._wrappers import ResultWrapper - -from ..._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.stream import stream_create_params -from ...types.stream import stream_list_params -from .audio_tracks import ( - AudioTracksResource, - AsyncAudioTracksResource, - AudioTracksResourceWithRawResponse, - AsyncAudioTracksResourceWithRawResponse, - AudioTracksResourceWithStreamingResponse, - AsyncAudioTracksResourceWithStreamingResponse, -) -from .videos import ( - VideosResource, - AsyncVideosResource, - VideosResourceWithRawResponse, - AsyncVideosResourceWithRawResponse, - VideosResourceWithStreamingResponse, - AsyncVideosResourceWithStreamingResponse, -) from .clip import ( ClipResource, AsyncClipResource, @@ -96,14 +24,6 @@ from .copy import ( CopyResourceWithStreamingResponse, AsyncCopyResourceWithStreamingResponse, ) -from .direct_upload import ( - DirectUploadResource, - AsyncDirectUploadResource, - DirectUploadResourceWithRawResponse, - AsyncDirectUploadResourceWithRawResponse, - DirectUploadResourceWithStreamingResponse, - AsyncDirectUploadResourceWithStreamingResponse, -) from .keys import ( KeysResource, AsyncKeysResource, @@ -112,46 +32,6 @@ from .keys import ( KeysResourceWithStreamingResponse, AsyncKeysResourceWithStreamingResponse, ) -from .live_inputs import ( - LiveInputsResource, - AsyncLiveInputsResource, - LiveInputsResourceWithRawResponse, - AsyncLiveInputsResourceWithRawResponse, - LiveInputsResourceWithStreamingResponse, - AsyncLiveInputsResourceWithStreamingResponse, -) -from .watermarks import ( - WatermarksResource, - AsyncWatermarksResource, - WatermarksResourceWithRawResponse, - AsyncWatermarksResourceWithRawResponse, - WatermarksResourceWithStreamingResponse, - AsyncWatermarksResourceWithStreamingResponse, -) -from .webhooks import ( - WebhooksResource, - AsyncWebhooksResource, - WebhooksResourceWithRawResponse, - AsyncWebhooksResourceWithRawResponse, - WebhooksResourceWithStreamingResponse, - AsyncWebhooksResourceWithStreamingResponse, -) -from .captions import ( - CaptionsResource, - AsyncCaptionsResource, - CaptionsResourceWithRawResponse, - AsyncCaptionsResourceWithRawResponse, - CaptionsResourceWithStreamingResponse, - AsyncCaptionsResourceWithStreamingResponse, -) -from .downloads import ( - DownloadsResource, - AsyncDownloadsResource, - DownloadsResourceWithRawResponse, - AsyncDownloadsResourceWithRawResponse, - DownloadsResourceWithStreamingResponse, - AsyncDownloadsResourceWithStreamingResponse, -) from .embed import ( EmbedResource, AsyncEmbedResource, @@ -168,8 +48,91 @@ from .token import ( TokenResourceWithStreamingResponse, AsyncTokenResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from .videos import ( + VideosResource, + AsyncVideosResource, + VideosResourceWithRawResponse, + AsyncVideosResourceWithRawResponse, + VideosResourceWithStreamingResponse, + AsyncVideosResourceWithStreamingResponse, +) +from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven +from ..._utils import ( + maybe_transform, + strip_not_given, + async_maybe_transform, +) +from .captions import ( + CaptionsResource, + AsyncCaptionsResource, + CaptionsResourceWithRawResponse, + AsyncCaptionsResourceWithRawResponse, + CaptionsResourceWithStreamingResponse, + AsyncCaptionsResourceWithStreamingResponse, +) +from .webhooks import ( + WebhooksResource, + AsyncWebhooksResource, + WebhooksResourceWithRawResponse, + AsyncWebhooksResourceWithRawResponse, + WebhooksResourceWithStreamingResponse, + AsyncWebhooksResourceWithStreamingResponse, +) +from ..._compat import cached_property +from .downloads import ( + DownloadsResource, + AsyncDownloadsResource, + DownloadsResourceWithRawResponse, + AsyncDownloadsResourceWithRawResponse, + DownloadsResourceWithStreamingResponse, + AsyncDownloadsResourceWithStreamingResponse, +) +from .watermarks import ( + WatermarksResource, + AsyncWatermarksResource, + WatermarksResourceWithRawResponse, + AsyncWatermarksResourceWithRawResponse, + WatermarksResourceWithStreamingResponse, + AsyncWatermarksResourceWithStreamingResponse, +) +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ..._wrappers import ResultWrapper +from .live_inputs import ( + LiveInputsResource, + AsyncLiveInputsResource, + LiveInputsResourceWithRawResponse, + AsyncLiveInputsResourceWithRawResponse, + LiveInputsResourceWithStreamingResponse, + AsyncLiveInputsResourceWithStreamingResponse, +) +from ...pagination import SyncSinglePage, AsyncSinglePage +from .audio_tracks import ( + AudioTracksResource, + AsyncAudioTracksResource, + AudioTracksResourceWithRawResponse, + AsyncAudioTracksResourceWithRawResponse, + AudioTracksResourceWithStreamingResponse, + AsyncAudioTracksResourceWithStreamingResponse, +) +from .direct_upload import ( + DirectUploadResource, + AsyncDirectUploadResource, + DirectUploadResourceWithRawResponse, + AsyncDirectUploadResourceWithRawResponse, + DirectUploadResourceWithStreamingResponse, + AsyncDirectUploadResourceWithStreamingResponse, +) +from ..._base_client import AsyncPaginator, make_request_options +from ...types.stream import stream_list_params, stream_create_params +from .captions.captions import CaptionsResource, AsyncCaptionsResource +from ...types.stream.video import Video +from .live_inputs.live_inputs import LiveInputsResource, AsyncLiveInputsResource __all__ = ["StreamResource", "AsyncStreamResource"] diff --git a/src/cloudflare/resources/stream/token.py b/src/cloudflare/resources/stream/token.py index 30f9e99c7..1a4d637d5 100644 --- a/src/cloudflare/resources/stream/token.py +++ b/src/cloudflare/resources/stream/token.py @@ -2,39 +2,27 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.stream.token_create_response import TokenCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Iterable - -from ..._base_client import make_request_options - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.stream import token_create_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.stream import token_create_params -from typing import cast -from typing import cast +from ...types.stream.token_create_response import TokenCreateResponse __all__ = ["TokenResource", "AsyncTokenResource"] diff --git a/src/cloudflare/resources/stream/videos.py b/src/cloudflare/resources/stream/videos.py index a88f936cf..a1dcd2db8 100644 --- a/src/cloudflare/resources/stream/videos.py +++ b/src/cloudflare/resources/stream/videos.py @@ -2,37 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.stream.video_storage_usage_response import VideoStorageUsageResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.stream import video_storage_usage_params -from typing import cast -from typing import cast +from ...types.stream.video_storage_usage_response import VideoStorageUsageResponse __all__ = ["VideosResource", "AsyncVideosResource"] diff --git a/src/cloudflare/resources/stream/watermarks.py b/src/cloudflare/resources/stream/watermarks.py index 191c80742..31d905cc4 100644 --- a/src/cloudflare/resources/stream/watermarks.py +++ b/src/cloudflare/resources/stream/watermarks.py @@ -2,45 +2,29 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.stream.watermark import Watermark - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options, AsyncPaginator - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from ...types.stream.watermark_delete_response import WatermarkDeleteResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options from ...types.stream import watermark_create_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...types.stream.watermark import Watermark +from ...types.stream.watermark_delete_response import WatermarkDeleteResponse __all__ = ["WatermarksResource", "AsyncWatermarksResource"] diff --git a/src/cloudflare/resources/stream/webhooks.py b/src/cloudflare/resources/stream/webhooks.py index 70c166c7d..6fb99c4f1 100644 --- a/src/cloudflare/resources/stream/webhooks.py +++ b/src/cloudflare/resources/stream/webhooks.py @@ -2,41 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from ...types.stream.webhook_delete_response import WebhookDeleteResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.stream import webhook_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...types.stream.webhook_delete_response import WebhookDeleteResponse __all__ = ["WebhooksResource", "AsyncWebhooksResource"] diff --git a/src/cloudflare/resources/subscriptions.py b/src/cloudflare/resources/subscriptions.py index 2d8a323a0..a324d8c13 100644 --- a/src/cloudflare/resources/subscriptions.py +++ b/src/cloudflare/resources/subscriptions.py @@ -2,66 +2,34 @@ from __future__ import annotations +from typing import Any, Type, cast +from typing_extensions import Literal + import httpx +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .._utils import ( + maybe_transform, + async_maybe_transform, +) from .._compat import cached_property - -from ..types.subscriptions.subscription_create_response import SubscriptionCreateResponse - -from .._wrappers import ResultWrapper - -from .._utils import maybe_transform, async_maybe_transform - -from .._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from ..types.user.rate_plan_param import RatePlanParam - -from ..types.subscriptions.subscription_update_response import SubscriptionUpdateResponse - -from ..types.user.subscription import Subscription - -from ..pagination import SyncSinglePage, AsyncSinglePage - -from ..types.subscriptions.subscription_delete_response import SubscriptionDeleteResponse - -from typing import Type - -from ..types.subscriptions.subscription_get_response import SubscriptionGetResponse - +from .._resource import SyncAPIResource, AsyncAPIResource from .._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from .._resource import SyncAPIResource, AsyncAPIResource -from ..types import shared_params -from ..types.subscriptions import subscription_create_params -from ..types.subscriptions import subscription_update_params -from ..types.user import RatePlan -from ..types.user import RatePlan -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .._wrappers import ResultWrapper +from ..pagination import SyncSinglePage, AsyncSinglePage +from .._base_client import AsyncPaginator, make_request_options +from ..types.subscriptions import subscription_create_params, subscription_update_params +from ..types.user.subscription import Subscription +from ..types.user.rate_plan_param import RatePlanParam +from ..types.subscriptions.subscription_get_response import SubscriptionGetResponse +from ..types.subscriptions.subscription_create_response import SubscriptionCreateResponse +from ..types.subscriptions.subscription_delete_response import SubscriptionDeleteResponse +from ..types.subscriptions.subscription_update_response import SubscriptionUpdateResponse __all__ = ["SubscriptionsResource", "AsyncSubscriptionsResource"] diff --git a/src/cloudflare/resources/url_normalization.py b/src/cloudflare/resources/url_normalization.py index e2f242854..6fc393df1 100644 --- a/src/cloudflare/resources/url_normalization.py +++ b/src/cloudflare/resources/url_normalization.py @@ -4,31 +4,23 @@ from __future__ import annotations import httpx +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .._utils import ( + maybe_transform, + async_maybe_transform, +) from .._compat import cached_property - -from ..types.url_normalization.url_normalization_update_response import URLNormalizationUpdateResponse - -from .._utils import maybe_transform, async_maybe_transform - -from .._base_client import make_request_options - -from ..types.url_normalization.url_normalization_get_response import URLNormalizationGetResponse - +from .._resource import SyncAPIResource, AsyncAPIResource from .._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from .._resource import SyncAPIResource, AsyncAPIResource -from ..types import shared_params +from .._base_client import make_request_options from ..types.url_normalization import url_normalization_update_params +from ..types.url_normalization.url_normalization_get_response import URLNormalizationGetResponse +from ..types.url_normalization.url_normalization_update_response import URLNormalizationUpdateResponse __all__ = ["URLNormalizationResource", "AsyncURLNormalizationResource"] diff --git a/src/cloudflare/resources/url_scanner/__init__.py b/src/cloudflare/resources/url_scanner/__init__.py index 501ec9ab3..711e0a941 100644 --- a/src/cloudflare/resources/url_scanner/__init__.py +++ b/src/cloudflare/resources/url_scanner/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .scans import ScansResource, AsyncScansResource from .scans import ( + ScansResource, + AsyncScansResource, ScansResourceWithRawResponse, AsyncScansResourceWithRawResponse, ScansResourceWithStreamingResponse, AsyncScansResourceWithStreamingResponse, ) -from .url_scanner import URLScannerResource, AsyncURLScannerResource from .url_scanner import ( + URLScannerResource, + AsyncURLScannerResource, URLScannerResourceWithRawResponse, AsyncURLScannerResourceWithRawResponse, URLScannerResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/url_scanner/scans.py b/src/cloudflare/resources/url_scanner/scans.py index 66fefbb2c..29e1f4918 100644 --- a/src/cloudflare/resources/url_scanner/scans.py +++ b/src/cloudflare/resources/url_scanner/scans.py @@ -2,57 +2,38 @@ from __future__ import annotations -import httpx - -from ..._compat import cached_property - -from ...types.url_scanner.scan_create_response import ScanCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing import Type, Dict, List - +from typing import Dict, List, Type, cast from typing_extensions import Literal -from ...types.url_scanner.scan_get_response import ScanGetResponse - -from ...types.url_scanner.scan_har_response import ScanHarResponse +import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( BinaryAPIResponse, AsyncBinaryAPIResponse, - to_raw_response_wrapper, - to_custom_raw_response_wrapper, - async_to_raw_response_wrapper, - async_to_custom_raw_response_wrapper, - to_streamed_response_wrapper, - to_custom_streamed_response_wrapper, StreamedBinaryAPIResponse, - async_to_streamed_response_wrapper, - async_to_custom_streamed_response_wrapper, AsyncStreamedBinaryAPIResponse, + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + to_custom_raw_response_wrapper, + async_to_streamed_response_wrapper, + to_custom_streamed_response_wrapper, + async_to_custom_raw_response_wrapper, + async_to_custom_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.url_scanner import scan_create_params -from ...types.url_scanner import scan_get_params -from ...types.url_scanner import scan_screenshot_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.url_scanner import scan_get_params, scan_create_params, scan_screenshot_params +from ...types.url_scanner.scan_get_response import ScanGetResponse +from ...types.url_scanner.scan_har_response import ScanHarResponse +from ...types.url_scanner.scan_create_response import ScanCreateResponse __all__ = ["ScansResource", "AsyncScansResource"] diff --git a/src/cloudflare/resources/url_scanner/url_scanner.py b/src/cloudflare/resources/url_scanner/url_scanner.py index dd2e1ce44..4c7bf2e10 100644 --- a/src/cloudflare/resources/url_scanner/url_scanner.py +++ b/src/cloudflare/resources/url_scanner/url_scanner.py @@ -2,39 +2,11 @@ from __future__ import annotations -import httpx - -from .scans import ScansResource, AsyncScansResource - -from ..._compat import cached_property - -from ...types.url_scanner.url_scanner_scan_response import URLScannerScanResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing import Type, Union - +from typing import Type, Union, cast from datetime import datetime -from ..._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) +import httpx -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.url_scanner import url_scanner_scan_params from .scans import ( ScansResource, AsyncScansResource, @@ -43,8 +15,23 @@ from .scans import ( ScansResourceWithStreamingResponse, AsyncScansResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.url_scanner import url_scanner_scan_params +from ...types.url_scanner.url_scanner_scan_response import URLScannerScanResponse __all__ = ["URLScannerResource", "AsyncURLScannerResource"] diff --git a/src/cloudflare/resources/user/__init__.py b/src/cloudflare/resources/user/__init__.py index aa4fd372e..1ae3753c2 100644 --- a/src/cloudflare/resources/user/__init__.py +++ b/src/cloudflare/resources/user/__init__.py @@ -1,53 +1,60 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .audit_logs import AuditLogsResource, AsyncAuditLogsResource -from .audit_logs import ( - AuditLogsResourceWithRawResponse, - AsyncAuditLogsResourceWithRawResponse, - AuditLogsResourceWithStreamingResponse, - AsyncAuditLogsResourceWithStreamingResponse, +from .user import ( + UserResource, + AsyncUserResource, + UserResourceWithRawResponse, + AsyncUserResourceWithRawResponse, + UserResourceWithStreamingResponse, + AsyncUserResourceWithStreamingResponse, ) -from .billing import BillingResource, AsyncBillingResource -from .billing import ( - BillingResourceWithRawResponse, - AsyncBillingResourceWithRawResponse, - BillingResourceWithStreamingResponse, - AsyncBillingResourceWithStreamingResponse, -) -from .invites import InvitesResource, AsyncInvitesResource -from .invites import ( - InvitesResourceWithRawResponse, - AsyncInvitesResourceWithRawResponse, - InvitesResourceWithStreamingResponse, - AsyncInvitesResourceWithStreamingResponse, -) -from .organizations import OrganizationsResource, AsyncOrganizationsResource -from .organizations import ( - OrganizationsResourceWithRawResponse, - AsyncOrganizationsResourceWithRawResponse, - OrganizationsResourceWithStreamingResponse, - AsyncOrganizationsResourceWithStreamingResponse, -) -from .subscriptions import SubscriptionsResource, AsyncSubscriptionsResource -from .subscriptions import ( - SubscriptionsResourceWithRawResponse, - AsyncSubscriptionsResourceWithRawResponse, - SubscriptionsResourceWithStreamingResponse, - AsyncSubscriptionsResourceWithStreamingResponse, -) -from .tokens import TokensResource, AsyncTokensResource from .tokens import ( + TokensResource, + AsyncTokensResource, TokensResourceWithRawResponse, AsyncTokensResourceWithRawResponse, TokensResourceWithStreamingResponse, AsyncTokensResourceWithStreamingResponse, ) -from .user import UserResource, AsyncUserResource -from .user import ( - UserResourceWithRawResponse, - AsyncUserResourceWithRawResponse, - UserResourceWithStreamingResponse, - AsyncUserResourceWithStreamingResponse, +from .billing import ( + BillingResource, + AsyncBillingResource, + BillingResourceWithRawResponse, + AsyncBillingResourceWithRawResponse, + BillingResourceWithStreamingResponse, + AsyncBillingResourceWithStreamingResponse, +) +from .invites import ( + InvitesResource, + AsyncInvitesResource, + InvitesResourceWithRawResponse, + AsyncInvitesResourceWithRawResponse, + InvitesResourceWithStreamingResponse, + AsyncInvitesResourceWithStreamingResponse, +) +from .audit_logs import ( + AuditLogsResource, + AsyncAuditLogsResource, + AuditLogsResourceWithRawResponse, + AsyncAuditLogsResourceWithRawResponse, + AuditLogsResourceWithStreamingResponse, + AsyncAuditLogsResourceWithStreamingResponse, +) +from .organizations import ( + OrganizationsResource, + AsyncOrganizationsResource, + OrganizationsResourceWithRawResponse, + AsyncOrganizationsResourceWithRawResponse, + OrganizationsResourceWithStreamingResponse, + AsyncOrganizationsResourceWithStreamingResponse, +) +from .subscriptions import ( + SubscriptionsResource, + AsyncSubscriptionsResource, + SubscriptionsResourceWithRawResponse, + AsyncSubscriptionsResourceWithRawResponse, + SubscriptionsResourceWithStreamingResponse, + AsyncSubscriptionsResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/user/audit_logs.py b/src/cloudflare/resources/user/audit_logs.py index 36a1a11f7..6c01a9f36 100644 --- a/src/cloudflare/resources/user/audit_logs.py +++ b/src/cloudflare/resources/user/audit_logs.py @@ -2,41 +2,26 @@ from __future__ import annotations +from typing import Union +from datetime import datetime +from typing_extensions import Literal + import httpx -from ..._compat import cached_property - -from ...types.shared.audit_log import AuditLog - -from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._utils import maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from typing import Union - -from datetime import datetime - -from typing_extensions import Literal - +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ...types.user import audit_log_list_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray from ...types.user import audit_log_list_params +from ..._base_client import AsyncPaginator, make_request_options +from ...types.shared.audit_log import AuditLog __all__ = ["AuditLogsResource", "AsyncAuditLogsResource"] diff --git a/src/cloudflare/resources/user/billing/__init__.py b/src/cloudflare/resources/user/billing/__init__.py index 919cc5767..060ff8f72 100644 --- a/src/cloudflare/resources/user/billing/__init__.py +++ b/src/cloudflare/resources/user/billing/__init__.py @@ -1,26 +1,29 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .history import HistoryResource, AsyncHistoryResource +from .billing import ( + BillingResource, + AsyncBillingResource, + BillingResourceWithRawResponse, + AsyncBillingResourceWithRawResponse, + BillingResourceWithStreamingResponse, + AsyncBillingResourceWithStreamingResponse, +) from .history import ( + HistoryResource, + AsyncHistoryResource, HistoryResourceWithRawResponse, AsyncHistoryResourceWithRawResponse, HistoryResourceWithStreamingResponse, AsyncHistoryResourceWithStreamingResponse, ) -from .profile import ProfileResource, AsyncProfileResource from .profile import ( + ProfileResource, + AsyncProfileResource, ProfileResourceWithRawResponse, AsyncProfileResourceWithRawResponse, ProfileResourceWithStreamingResponse, AsyncProfileResourceWithStreamingResponse, ) -from .billing import BillingResource, AsyncBillingResource -from .billing import ( - BillingResourceWithRawResponse, - AsyncBillingResourceWithRawResponse, - BillingResourceWithStreamingResponse, - AsyncBillingResourceWithStreamingResponse, -) __all__ = [ "HistoryResource", diff --git a/src/cloudflare/resources/user/billing/billing.py b/src/cloudflare/resources/user/billing/billing.py index 5ca468083..ceb48cdb4 100644 --- a/src/cloudflare/resources/user/billing/billing.py +++ b/src/cloudflare/resources/user/billing/billing.py @@ -2,19 +2,6 @@ from __future__ import annotations -from .history import HistoryResource, AsyncHistoryResource - -from ...._compat import cached_property - -from .profile import ProfileResource, AsyncProfileResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params from .history import ( HistoryResource, AsyncHistoryResource, @@ -31,6 +18,8 @@ from .profile import ( ProfileResourceWithStreamingResponse, AsyncProfileResourceWithStreamingResponse, ) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource __all__ = ["BillingResource", "AsyncBillingResource"] diff --git a/src/cloudflare/resources/user/billing/history.py b/src/cloudflare/resources/user/billing/history.py index 198aafe8c..f64b0bb29 100644 --- a/src/cloudflare/resources/user/billing/history.py +++ b/src/cloudflare/resources/user/billing/history.py @@ -2,39 +2,26 @@ from __future__ import annotations +from typing import Union +from datetime import datetime +from typing_extensions import Literal + import httpx -from ...._compat import cached_property - -from ....types.user.billing.billing_history import BillingHistory - -from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from typing import Union - -from datetime import datetime - -from typing_extensions import Literal - +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ...._base_client import AsyncPaginator, make_request_options from ....types.user.billing import history_list_params +from ....types.user.billing.billing_history import BillingHistory __all__ = ["HistoryResource", "AsyncHistoryResource"] diff --git a/src/cloudflare/resources/user/billing/profile.py b/src/cloudflare/resources/user/billing/profile.py index f6e9340c1..0713ae481 100644 --- a/src/cloudflare/resources/user/billing/profile.py +++ b/src/cloudflare/resources/user/billing/profile.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.user.billing.profile_get_response import ProfileGetResponse - -from ...._wrappers import ResultWrapper - -from ...._base_client import make_request_options - -from typing import Type - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.user.billing.profile_get_response import ProfileGetResponse __all__ = ["ProfileResource", "AsyncProfileResource"] diff --git a/src/cloudflare/resources/user/invites.py b/src/cloudflare/resources/user/invites.py index b4743732c..51522de11 100644 --- a/src/cloudflare/resources/user/invites.py +++ b/src/cloudflare/resources/user/invites.py @@ -2,43 +2,29 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.user.invite import Invite - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from ..._base_client import make_request_options, AsyncPaginator - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from typing_extensions import Literal - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage from ...types.user import invite_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._base_client import AsyncPaginator, make_request_options +from ...types.user.invite import Invite __all__ = ["InvitesResource", "AsyncInvitesResource"] diff --git a/src/cloudflare/resources/user/organizations.py b/src/cloudflare/resources/user/organizations.py index 461f669b3..6024fd116 100644 --- a/src/cloudflare/resources/user/organizations.py +++ b/src/cloudflare/resources/user/organizations.py @@ -2,43 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx -from ..._compat import cached_property - -from ...types.user.organization import Organization - -from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._utils import maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from ...types.user.organization_delete_response import OrganizationDeleteResponse - -from ..._wrappers import ResultWrapper - -from typing import Optional, Type - +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper +from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray from ...types.user import organization_list_params -from typing import cast -from typing import cast +from ..._base_client import AsyncPaginator, make_request_options +from ...types.user.organization import Organization +from ...types.user.organization_delete_response import OrganizationDeleteResponse __all__ = ["OrganizationsResource", "AsyncOrganizationsResource"] diff --git a/src/cloudflare/resources/user/subscriptions.py b/src/cloudflare/resources/user/subscriptions.py index 2477451b0..eaf411a51 100644 --- a/src/cloudflare/resources/user/subscriptions.py +++ b/src/cloudflare/resources/user/subscriptions.py @@ -2,50 +2,31 @@ from __future__ import annotations +from typing import Any, Type, Optional, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.user.subscription_update_response import SubscriptionUpdateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing_extensions import Literal - -from ...types.user.rate_plan_param import RatePlanParam - -from ...types.user.subscription_delete_response import SubscriptionDeleteResponse - -from ...types.user.subscription_get_response import SubscriptionGetResponse - -from typing import Optional, Type - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper from ...types.user import subscription_update_params -from ...types.user import RatePlan -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._base_client import make_request_options +from ...types.user.rate_plan_param import RatePlanParam +from ...types.user.subscription_get_response import SubscriptionGetResponse +from ...types.user.subscription_delete_response import SubscriptionDeleteResponse +from ...types.user.subscription_update_response import SubscriptionUpdateResponse __all__ = ["SubscriptionsResource", "AsyncSubscriptionsResource"] diff --git a/src/cloudflare/resources/user/tokens/__init__.py b/src/cloudflare/resources/user/tokens/__init__.py index f2f2c3847..f42f09709 100644 --- a/src/cloudflare/resources/user/tokens/__init__.py +++ b/src/cloudflare/resources/user/tokens/__init__.py @@ -1,26 +1,29 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .permission_groups import PermissionGroupsResource, AsyncPermissionGroupsResource -from .permission_groups import ( - PermissionGroupsResourceWithRawResponse, - AsyncPermissionGroupsResourceWithRawResponse, - PermissionGroupsResourceWithStreamingResponse, - AsyncPermissionGroupsResourceWithStreamingResponse, -) -from .value import ValueResource, AsyncValueResource from .value import ( + ValueResource, + AsyncValueResource, ValueResourceWithRawResponse, AsyncValueResourceWithRawResponse, ValueResourceWithStreamingResponse, AsyncValueResourceWithStreamingResponse, ) -from .tokens import TokensResource, AsyncTokensResource from .tokens import ( + TokensResource, + AsyncTokensResource, TokensResourceWithRawResponse, AsyncTokensResourceWithRawResponse, TokensResourceWithStreamingResponse, AsyncTokensResourceWithStreamingResponse, ) +from .permission_groups import ( + PermissionGroupsResource, + AsyncPermissionGroupsResource, + PermissionGroupsResourceWithRawResponse, + AsyncPermissionGroupsResourceWithRawResponse, + PermissionGroupsResourceWithStreamingResponse, + AsyncPermissionGroupsResourceWithStreamingResponse, +) __all__ = [ "PermissionGroupsResource", diff --git a/src/cloudflare/resources/user/tokens/permission_groups.py b/src/cloudflare/resources/user/tokens/permission_groups.py index e960565c4..2a9cc0d5f 100644 --- a/src/cloudflare/resources/user/tokens/permission_groups.py +++ b/src/cloudflare/resources/user/tokens/permission_groups.py @@ -4,26 +4,17 @@ from __future__ import annotations import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ...._base_client import make_request_options, AsyncPaginator - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options __all__ = ["PermissionGroupsResource", "AsyncPermissionGroupsResource"] diff --git a/src/cloudflare/resources/user/tokens/tokens.py b/src/cloudflare/resources/user/tokens/tokens.py index 791dab726..631daca2c 100644 --- a/src/cloudflare/resources/user/tokens/tokens.py +++ b/src/cloudflare/resources/user/tokens/tokens.py @@ -2,69 +2,12 @@ from __future__ import annotations +from typing import Type, Union, Iterable, Optional, cast +from datetime import datetime +from typing_extensions import Literal + import httpx -from .permission_groups import PermissionGroupsResource, AsyncPermissionGroupsResource - -from ...._compat import cached_property - -from .value import ValueResource, AsyncValueResource - -from ....types.user.token_create_response import TokenCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Iterable, Union - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.user.policy_param import PolicyParam - -from datetime import datetime - -from ....types.user.token_update_response import TokenUpdateResponse - -from typing_extensions import Literal - -from ....types.user.token_list_response import TokenListResponse - -from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ....types.user.token_delete_response import TokenDeleteResponse - -from ....types.user.token_get_response import TokenGetResponse - -from ....types.user.token_verify_response import TokenVerifyResponse - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -from ....types.user import token_create_params, token_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.user import token_create_params -from ....types.user import token_update_params -from ....types.user import token_list_params -from .permission_groups import ( - PermissionGroupsResource, - AsyncPermissionGroupsResource, - PermissionGroupsResourceWithRawResponse, - AsyncPermissionGroupsResourceWithRawResponse, - PermissionGroupsResourceWithStreamingResponse, - AsyncPermissionGroupsResourceWithStreamingResponse, -) from .value import ( ValueResource, AsyncValueResource, @@ -73,16 +16,38 @@ from .value import ( ValueResourceWithStreamingResponse, AsyncValueResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ....types.user import token_list_params, token_create_params, token_update_params +from ...._base_client import AsyncPaginator, make_request_options +from .permission_groups import ( + PermissionGroupsResource, + AsyncPermissionGroupsResource, + PermissionGroupsResourceWithRawResponse, + AsyncPermissionGroupsResourceWithRawResponse, + PermissionGroupsResourceWithStreamingResponse, + AsyncPermissionGroupsResourceWithStreamingResponse, +) +from ....types.user.policy_param import PolicyParam +from ....types.user.token_get_response import TokenGetResponse +from ....types.user.token_list_response import TokenListResponse +from ....types.user.token_create_response import TokenCreateResponse +from ....types.user.token_delete_response import TokenDeleteResponse +from ....types.user.token_update_response import TokenUpdateResponse +from ....types.user.token_verify_response import TokenVerifyResponse __all__ = ["TokensResource", "AsyncTokensResource"] diff --git a/src/cloudflare/resources/user/tokens/value.py b/src/cloudflare/resources/user/tokens/value.py index 53f0c1a75..bb22ebb46 100644 --- a/src/cloudflare/resources/user/tokens/value.py +++ b/src/cloudflare/resources/user/tokens/value.py @@ -2,37 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ....types.user.tokens.value import Value - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.user.tokens import value_update_params -from typing import cast -from typing import cast +from ....types.user.tokens.value import Value __all__ = ["ValueResource", "AsyncValueResource"] diff --git a/src/cloudflare/resources/user/user.py b/src/cloudflare/resources/user/user.py index 1f6a8e5d7..cd85bfe6a 100644 --- a/src/cloudflare/resources/user/user.py +++ b/src/cloudflare/resources/user/user.py @@ -2,52 +2,17 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .audit_logs import AuditLogsResource, AsyncAuditLogsResource - -from ..._compat import cached_property - -from .billing.billing import BillingResource, AsyncBillingResource - -from .invites import InvitesResource, AsyncInvitesResource - -from .organizations import OrganizationsResource, AsyncOrganizationsResource - -from .subscriptions import SubscriptionsResource, AsyncSubscriptionsResource - -from .tokens.tokens import TokensResource, AsyncTokensResource - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from ..._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.user import user_edit_params -from .audit_logs import ( - AuditLogsResource, - AsyncAuditLogsResource, - AuditLogsResourceWithRawResponse, - AsyncAuditLogsResourceWithRawResponse, - AuditLogsResourceWithStreamingResponse, - AsyncAuditLogsResourceWithStreamingResponse, +from .tokens import ( + TokensResource, + AsyncTokensResource, + TokensResourceWithRawResponse, + AsyncTokensResourceWithRawResponse, + TokensResourceWithStreamingResponse, + AsyncTokensResourceWithStreamingResponse, ) from .billing import ( BillingResource, @@ -65,6 +30,29 @@ from .invites import ( InvitesResourceWithStreamingResponse, AsyncInvitesResourceWithStreamingResponse, ) +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) +from ..._compat import cached_property +from .audit_logs import ( + AuditLogsResource, + AsyncAuditLogsResource, + AuditLogsResourceWithRawResponse, + AsyncAuditLogsResourceWithRawResponse, + AuditLogsResourceWithStreamingResponse, + AsyncAuditLogsResourceWithStreamingResponse, +) +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ..._wrappers import ResultWrapper +from ...types.user import user_edit_params from .organizations import ( OrganizationsResource, AsyncOrganizationsResource, @@ -81,18 +69,9 @@ from .subscriptions import ( SubscriptionsResourceWithStreamingResponse, AsyncSubscriptionsResourceWithStreamingResponse, ) -from .tokens import ( - TokensResource, - AsyncTokensResource, - TokensResourceWithRawResponse, - AsyncTokensResourceWithRawResponse, - TokensResourceWithStreamingResponse, - AsyncTokensResourceWithStreamingResponse, -) -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .tokens.tokens import TokensResource, AsyncTokensResource +from ..._base_client import make_request_options +from .billing.billing import BillingResource, AsyncBillingResource __all__ = ["UserResource", "AsyncUserResource"] diff --git a/src/cloudflare/resources/vectorize/__init__.py b/src/cloudflare/resources/vectorize/__init__.py index 374e6a852..6ec0cbca1 100644 --- a/src/cloudflare/resources/vectorize/__init__.py +++ b/src/cloudflare/resources/vectorize/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .indexes import IndexesResource, AsyncIndexesResource from .indexes import ( + IndexesResource, + AsyncIndexesResource, IndexesResourceWithRawResponse, AsyncIndexesResourceWithRawResponse, IndexesResourceWithStreamingResponse, AsyncIndexesResourceWithStreamingResponse, ) -from .vectorize import VectorizeResource, AsyncVectorizeResource from .vectorize import ( + VectorizeResource, + AsyncVectorizeResource, VectorizeResourceWithRawResponse, AsyncVectorizeResourceWithRawResponse, VectorizeResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/vectorize/indexes/__init__.py b/src/cloudflare/resources/vectorize/indexes/__init__.py index 2fed7cf8e..6a04dcdc4 100644 --- a/src/cloudflare/resources/vectorize/indexes/__init__.py +++ b/src/cloudflare/resources/vectorize/indexes/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .metadata_index import MetadataIndexResource, AsyncMetadataIndexResource -from .metadata_index import ( - MetadataIndexResourceWithRawResponse, - AsyncMetadataIndexResourceWithRawResponse, - MetadataIndexResourceWithStreamingResponse, - AsyncMetadataIndexResourceWithStreamingResponse, -) -from .indexes import IndexesResource, AsyncIndexesResource from .indexes import ( + IndexesResource, + AsyncIndexesResource, IndexesResourceWithRawResponse, AsyncIndexesResourceWithRawResponse, IndexesResourceWithStreamingResponse, AsyncIndexesResourceWithStreamingResponse, ) +from .metadata_index import ( + MetadataIndexResource, + AsyncMetadataIndexResource, + MetadataIndexResourceWithRawResponse, + AsyncMetadataIndexResourceWithRawResponse, + MetadataIndexResourceWithStreamingResponse, + AsyncMetadataIndexResourceWithStreamingResponse, +) __all__ = [ "MetadataIndexResource", diff --git a/src/cloudflare/resources/vectorize/indexes/indexes.py b/src/cloudflare/resources/vectorize/indexes/indexes.py index bbd3151ee..b2ed0201b 100644 --- a/src/cloudflare/resources/vectorize/indexes/indexes.py +++ b/src/cloudflare/resources/vectorize/indexes/indexes.py @@ -2,62 +2,26 @@ from __future__ import annotations +from typing import Any, List, Type, Iterable, Optional, cast +from typing_extensions import Literal + import httpx -from .metadata_index import MetadataIndexResource, AsyncMetadataIndexResource - +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.vectorize.create_index import CreateIndex - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, List, Iterable - -from ...._base_client import make_request_options, AsyncPaginator - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ....types.vectorize.index_delete_response import IndexDeleteResponse - -from ....types.vectorize.index_delete_by_ids_response import IndexDeleteByIDsResponse - -from ....types.vectorize.index_info_response import IndexInfoResponse - -from ....types.vectorize.index_insert_response import IndexInsertResponse - -from ...._types import FileTypes - -from typing_extensions import Literal - -from ....types.vectorize.index_query_response import IndexQueryResponse - -from ....types.vectorize.index_upsert_response import IndexUpsertResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ....types.vectorize import index_create_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.vectorize import index_create_params -from ....types.vectorize import index_delete_by_ids_params -from ....types.vectorize import index_get_by_ids_params -from ....types.vectorize import index_insert_params -from ....types.vectorize import index_query_params -from ....types.vectorize import index_upsert_params +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage from .metadata_index import ( MetadataIndexResource, AsyncMetadataIndexResource, @@ -66,26 +30,22 @@ from .metadata_index import ( MetadataIndexResourceWithStreamingResponse, AsyncMetadataIndexResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._base_client import AsyncPaginator, make_request_options +from ....types.vectorize import ( + index_query_params, + index_create_params, + index_insert_params, + index_upsert_params, + index_get_by_ids_params, + index_delete_by_ids_params, +) +from ....types.vectorize.create_index import CreateIndex +from ....types.vectorize.index_info_response import IndexInfoResponse +from ....types.vectorize.index_query_response import IndexQueryResponse +from ....types.vectorize.index_delete_response import IndexDeleteResponse +from ....types.vectorize.index_insert_response import IndexInsertResponse +from ....types.vectorize.index_upsert_response import IndexUpsertResponse +from ....types.vectorize.index_delete_by_ids_response import IndexDeleteByIDsResponse __all__ = ["IndexesResource", "AsyncIndexesResource"] diff --git a/src/cloudflare/resources/vectorize/indexes/metadata_index.py b/src/cloudflare/resources/vectorize/indexes/metadata_index.py index 8b6f361e8..03da3f2b5 100644 --- a/src/cloudflare/resources/vectorize/indexes/metadata_index.py +++ b/src/cloudflare/resources/vectorize/indexes/metadata_index.py @@ -2,48 +2,30 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.vectorize.indexes.metadata_index_create_response import MetadataIndexCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options - -from typing_extensions import Literal - -from ....types.vectorize.indexes.metadata_index_list_response import MetadataIndexListResponse - -from ....types.vectorize.indexes.metadata_index_delete_response import MetadataIndexDeleteResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.vectorize.indexes import metadata_index_create_params -from ....types.vectorize.indexes import metadata_index_delete_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.vectorize.indexes import metadata_index_create_params, metadata_index_delete_params +from ....types.vectorize.indexes.metadata_index_list_response import MetadataIndexListResponse +from ....types.vectorize.indexes.metadata_index_create_response import MetadataIndexCreateResponse +from ....types.vectorize.indexes.metadata_index_delete_response import MetadataIndexDeleteResponse __all__ = ["MetadataIndexResource", "AsyncMetadataIndexResource"] diff --git a/src/cloudflare/resources/vectorize/vectorize.py b/src/cloudflare/resources/vectorize/vectorize.py index bd57d49e8..df99f6217 100644 --- a/src/cloudflare/resources/vectorize/vectorize.py +++ b/src/cloudflare/resources/vectorize/vectorize.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .indexes.indexes import IndexesResource, AsyncIndexesResource - -from ..._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .indexes import ( IndexesResource, AsyncIndexesResource, @@ -21,6 +10,9 @@ from .indexes import ( IndexesResourceWithStreamingResponse, AsyncIndexesResourceWithStreamingResponse, ) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from .indexes.indexes import IndexesResource, AsyncIndexesResource __all__ = ["VectorizeResource", "AsyncVectorizeResource"] diff --git a/src/cloudflare/resources/waiting_rooms/__init__.py b/src/cloudflare/resources/waiting_rooms/__init__.py index af8c486ba..17c8b90fe 100644 --- a/src/cloudflare/resources/waiting_rooms/__init__.py +++ b/src/cloudflare/resources/waiting_rooms/__init__.py @@ -1,42 +1,48 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .page import PageResource, AsyncPageResource from .page import ( + PageResource, + AsyncPageResource, PageResourceWithRawResponse, AsyncPageResourceWithRawResponse, PageResourceWithStreamingResponse, AsyncPageResourceWithStreamingResponse, ) -from .events import EventsResource, AsyncEventsResource -from .events import ( - EventsResourceWithRawResponse, - AsyncEventsResourceWithRawResponse, - EventsResourceWithStreamingResponse, - AsyncEventsResourceWithStreamingResponse, -) -from .rules import RulesResource, AsyncRulesResource from .rules import ( + RulesResource, + AsyncRulesResource, RulesResourceWithRawResponse, AsyncRulesResourceWithRawResponse, RulesResourceWithStreamingResponse, AsyncRulesResourceWithStreamingResponse, ) -from .statuses import StatusesResource, AsyncStatusesResource -from .statuses import ( - StatusesResourceWithRawResponse, - AsyncStatusesResourceWithRawResponse, - StatusesResourceWithStreamingResponse, - AsyncStatusesResourceWithStreamingResponse, +from .events import ( + EventsResource, + AsyncEventsResource, + EventsResourceWithRawResponse, + AsyncEventsResourceWithRawResponse, + EventsResourceWithStreamingResponse, + AsyncEventsResourceWithStreamingResponse, ) -from .settings import SettingsResource, AsyncSettingsResource from .settings import ( + SettingsResource, + AsyncSettingsResource, SettingsResourceWithRawResponse, AsyncSettingsResourceWithRawResponse, SettingsResourceWithStreamingResponse, AsyncSettingsResourceWithStreamingResponse, ) -from .waiting_rooms import WaitingRoomsResource, AsyncWaitingRoomsResource +from .statuses import ( + StatusesResource, + AsyncStatusesResource, + StatusesResourceWithRawResponse, + AsyncStatusesResourceWithRawResponse, + StatusesResourceWithStreamingResponse, + AsyncStatusesResourceWithStreamingResponse, +) from .waiting_rooms import ( + WaitingRoomsResource, + AsyncWaitingRoomsResource, WaitingRoomsResourceWithRawResponse, AsyncWaitingRoomsResourceWithRawResponse, WaitingRoomsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/waiting_rooms/events/__init__.py b/src/cloudflare/resources/waiting_rooms/events/__init__.py index 3cc84df88..97c5cce87 100644 --- a/src/cloudflare/resources/waiting_rooms/events/__init__.py +++ b/src/cloudflare/resources/waiting_rooms/events/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .details import DetailsResource, AsyncDetailsResource -from .details import ( - DetailsResourceWithRawResponse, - AsyncDetailsResourceWithRawResponse, - DetailsResourceWithStreamingResponse, - AsyncDetailsResourceWithStreamingResponse, -) -from .events import EventsResource, AsyncEventsResource from .events import ( + EventsResource, + AsyncEventsResource, EventsResourceWithRawResponse, AsyncEventsResourceWithRawResponse, EventsResourceWithStreamingResponse, AsyncEventsResourceWithStreamingResponse, ) +from .details import ( + DetailsResource, + AsyncDetailsResource, + DetailsResourceWithRawResponse, + AsyncDetailsResourceWithRawResponse, + DetailsResourceWithStreamingResponse, + AsyncDetailsResourceWithStreamingResponse, +) __all__ = [ "DetailsResource", diff --git a/src/cloudflare/resources/waiting_rooms/events/details.py b/src/cloudflare/resources/waiting_rooms/events/details.py index 3969c5d18..4496d35d4 100644 --- a/src/cloudflare/resources/waiting_rooms/events/details.py +++ b/src/cloudflare/resources/waiting_rooms/events/details.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.waiting_rooms.events.detail_get_response import DetailGetResponse - -from ...._wrappers import ResultWrapper - -from ...._base_client import make_request_options - -from typing import Type - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.waiting_rooms.events.detail_get_response import DetailGetResponse __all__ = ["DetailsResource", "AsyncDetailsResource"] diff --git a/src/cloudflare/resources/waiting_rooms/events/events.py b/src/cloudflare/resources/waiting_rooms/events/events.py index 88448f267..21771ab74 100644 --- a/src/cloudflare/resources/waiting_rooms/events/events.py +++ b/src/cloudflare/resources/waiting_rooms/events/events.py @@ -2,44 +2,10 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .details import DetailsResource, AsyncDetailsResource - -from ...._compat import cached_property - -from ....types.waiting_rooms.event import Event - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from typing import Type, Optional - -from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ....types.waiting_rooms.event_delete_response import EventDeleteResponse - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.waiting_rooms import event_create_params -from ....types.waiting_rooms import event_update_params -from ....types.waiting_rooms import event_list_params -from ....types.waiting_rooms import event_edit_params from .details import ( DetailsResource, AsyncDetailsResource, @@ -48,16 +14,25 @@ from .details import ( DetailsResourceWithStreamingResponse, AsyncDetailsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ...._base_client import AsyncPaginator, make_request_options +from ....types.waiting_rooms import event_edit_params, event_list_params, event_create_params, event_update_params +from ....types.waiting_rooms.event import Event +from ....types.waiting_rooms.event_delete_response import EventDeleteResponse __all__ = ["EventsResource", "AsyncEventsResource"] diff --git a/src/cloudflare/resources/waiting_rooms/page.py b/src/cloudflare/resources/waiting_rooms/page.py index 35d4ad4e1..e77b2a771 100644 --- a/src/cloudflare/resources/waiting_rooms/page.py +++ b/src/cloudflare/resources/waiting_rooms/page.py @@ -2,37 +2,27 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.waiting_rooms.page_preview_response import PagePreviewResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing import Type - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.waiting_rooms import page_preview_params -from typing import cast -from typing import cast +from ...types.waiting_rooms.page_preview_response import PagePreviewResponse __all__ = ["PageResource", "AsyncPageResource"] diff --git a/src/cloudflare/resources/waiting_rooms/rules.py b/src/cloudflare/resources/waiting_rooms/rules.py index 1dfef0b17..3926e467a 100644 --- a/src/cloudflare/resources/waiting_rooms/rules.py +++ b/src/cloudflare/resources/waiting_rooms/rules.py @@ -2,59 +2,32 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.waiting_rooms.rule_create_response import RuleCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Iterable - -from ..._base_client import make_request_options - -from typing_extensions import Literal - -from ...types.waiting_rooms.rule_update_response import RuleUpdateResponse - -from ...types.waiting_rooms.rule_delete_response import RuleDeleteResponse - -from ...types.waiting_rooms.rule_edit_response import RuleEditResponse - -from ...types.waiting_rooms.rule_get_response import RuleGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ...types.waiting_rooms import rule_update_params, rule_edit_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.waiting_rooms import rule_create_params -from ...types.waiting_rooms import rule_update_params -from ...types.waiting_rooms import rule_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.waiting_rooms import rule_edit_params, rule_create_params, rule_update_params +from ...types.waiting_rooms.rule_get_response import RuleGetResponse +from ...types.waiting_rooms.rule_edit_response import RuleEditResponse +from ...types.waiting_rooms.rule_create_response import RuleCreateResponse +from ...types.waiting_rooms.rule_delete_response import RuleDeleteResponse +from ...types.waiting_rooms.rule_update_response import RuleUpdateResponse __all__ = ["RulesResource", "AsyncRulesResource"] diff --git a/src/cloudflare/resources/waiting_rooms/settings.py b/src/cloudflare/resources/waiting_rooms/settings.py index 2dc503b5d..b3cc49bc0 100644 --- a/src/cloudflare/resources/waiting_rooms/settings.py +++ b/src/cloudflare/resources/waiting_rooms/settings.py @@ -2,46 +2,29 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.waiting_rooms.setting_update_response import SettingUpdateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing import Type - -from ...types.waiting_rooms.setting_edit_response import SettingEditResponse - -from ...types.waiting_rooms.setting_get_response import SettingGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.waiting_rooms import setting_update_params -from ...types.waiting_rooms import setting_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.waiting_rooms import setting_edit_params, setting_update_params +from ...types.waiting_rooms.setting_get_response import SettingGetResponse +from ...types.waiting_rooms.setting_edit_response import SettingEditResponse +from ...types.waiting_rooms.setting_update_response import SettingUpdateResponse __all__ = ["SettingsResource", "AsyncSettingsResource"] diff --git a/src/cloudflare/resources/waiting_rooms/statuses.py b/src/cloudflare/resources/waiting_rooms/statuses.py index 2c87a8eb5..c09b4a8e2 100644 --- a/src/cloudflare/resources/waiting_rooms/statuses.py +++ b/src/cloudflare/resources/waiting_rooms/statuses.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._compat import cached_property - -from ...types.waiting_rooms.status_get_response import StatusGetResponse - -from ..._wrappers import ResultWrapper - -from ..._base_client import make_request_options - -from typing import Type - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.waiting_rooms.status_get_response import StatusGetResponse __all__ = ["StatusesResource", "AsyncStatusesResource"] diff --git a/src/cloudflare/resources/waiting_rooms/waiting_rooms.py b/src/cloudflare/resources/waiting_rooms/waiting_rooms.py index 091471db3..48dab3417 100644 --- a/src/cloudflare/resources/waiting_rooms/waiting_rooms.py +++ b/src/cloudflare/resources/waiting_rooms/waiting_rooms.py @@ -2,61 +2,11 @@ from __future__ import annotations +from typing import List, Type, Iterable, cast +from typing_extensions import Literal + import httpx -from .page import PageResource, AsyncPageResource - -from ..._compat import cached_property - -from .events.events import EventsResource, AsyncEventsResource - -from .rules import RulesResource, AsyncRulesResource - -from .statuses import StatusesResource, AsyncStatusesResource - -from .settings import SettingsResource, AsyncSettingsResource - -from ...types.waiting_rooms.waiting_room import WaitingRoom - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from typing import Type, Iterable, List - -from ...types.waiting_rooms.additional_routes_param import AdditionalRoutesParam - -from ...types.waiting_rooms.cookie_attributes_param import CookieAttributesParam - -from typing_extensions import Literal - -from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from ...types.waiting_rooms.waiting_room_delete_response import WaitingRoomDeleteResponse - -from ..._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.waiting_rooms import waiting_room_create_params -from ...types.waiting_rooms import waiting_room_update_params -from ...types.waiting_rooms import waiting_room_list_params -from ...types.waiting_rooms import waiting_room_edit_params -from ...types.waiting_rooms import CookieAttributes -from ...types.waiting_rooms import CookieAttributes -from ...types.waiting_rooms import CookieAttributes from .page import ( PageResource, AsyncPageResource, @@ -65,14 +15,6 @@ from .page import ( PageResourceWithStreamingResponse, AsyncPageResourceWithStreamingResponse, ) -from .events import ( - EventsResource, - AsyncEventsResource, - EventsResourceWithRawResponse, - AsyncEventsResourceWithRawResponse, - EventsResourceWithStreamingResponse, - AsyncEventsResourceWithStreamingResponse, -) from .rules import ( RulesResource, AsyncRulesResource, @@ -81,13 +23,18 @@ from .rules import ( RulesResourceWithStreamingResponse, AsyncRulesResourceWithStreamingResponse, ) -from .statuses import ( - StatusesResource, - AsyncStatusesResource, - StatusesResourceWithRawResponse, - AsyncStatusesResourceWithRawResponse, - StatusesResourceWithStreamingResponse, - AsyncStatusesResourceWithStreamingResponse, +from .events import ( + EventsResource, + AsyncEventsResource, + EventsResourceWithRawResponse, + AsyncEventsResourceWithRawResponse, + EventsResourceWithStreamingResponse, + AsyncEventsResourceWithStreamingResponse, +) +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, ) from .settings import ( SettingsResource, @@ -97,16 +44,36 @@ from .settings import ( SettingsResourceWithStreamingResponse, AsyncSettingsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .statuses import ( + StatusesResource, + AsyncStatusesResource, + StatusesResourceWithRawResponse, + AsyncStatusesResourceWithRawResponse, + StatusesResourceWithStreamingResponse, + AsyncStatusesResourceWithStreamingResponse, +) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ..._wrappers import ResultWrapper +from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from .events.events import EventsResource, AsyncEventsResource +from ..._base_client import AsyncPaginator, make_request_options +from ...types.waiting_rooms import ( + waiting_room_edit_params, + waiting_room_list_params, + waiting_room_create_params, + waiting_room_update_params, +) +from ...types.waiting_rooms.waiting_room import WaitingRoom +from ...types.waiting_rooms.additional_routes_param import AdditionalRoutesParam +from ...types.waiting_rooms.cookie_attributes_param import CookieAttributesParam +from ...types.waiting_rooms.waiting_room_delete_response import WaitingRoomDeleteResponse __all__ = ["WaitingRoomsResource", "AsyncWaitingRoomsResource"] diff --git a/src/cloudflare/resources/warp_connector.py b/src/cloudflare/resources/warp_connector.py index c89256377..0e97bf21e 100644 --- a/src/cloudflare/resources/warp_connector.py +++ b/src/cloudflare/resources/warp_connector.py @@ -2,75 +2,35 @@ from __future__ import annotations +from typing import Any, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .._utils import ( + maybe_transform, + async_maybe_transform, +) from .._compat import cached_property - -from ..types.warp_connector.warp_connector_create_response import WARPConnectorCreateResponse - -from .._wrappers import ResultWrapper - -from .._utils import maybe_transform, async_maybe_transform - -from .._base_client import make_request_options, AsyncPaginator - -from ..types.warp_connector.warp_connector_list_response import WARPConnectorListResponse - -from ..pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from typing import Union - -from datetime import datetime - -from typing_extensions import Literal - -from ..types.warp_connector.warp_connector_delete_response import WARPConnectorDeleteResponse - -from ..types.warp_connector.warp_connector_edit_response import WARPConnectorEditResponse - -from ..types.warp_connector.warp_connector_get_response import WARPConnectorGetResponse - -from ..types.warp_connector.warp_connector_token_response import WARPConnectorTokenResponse - +from .._resource import SyncAPIResource, AsyncAPIResource from .._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from .._resource import SyncAPIResource, AsyncAPIResource -from ..types import shared_params -from ..types.warp_connector import warp_connector_create_params -from ..types.warp_connector import warp_connector_list_params -from ..types.warp_connector import warp_connector_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .._wrappers import ResultWrapper +from ..pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from .._base_client import AsyncPaginator, make_request_options +from ..types.warp_connector import warp_connector_edit_params, warp_connector_list_params, warp_connector_create_params +from ..types.warp_connector.warp_connector_get_response import WARPConnectorGetResponse +from ..types.warp_connector.warp_connector_edit_response import WARPConnectorEditResponse +from ..types.warp_connector.warp_connector_list_response import WARPConnectorListResponse +from ..types.warp_connector.warp_connector_token_response import WARPConnectorTokenResponse +from ..types.warp_connector.warp_connector_create_response import WARPConnectorCreateResponse +from ..types.warp_connector.warp_connector_delete_response import WARPConnectorDeleteResponse __all__ = ["WARPConnectorResource", "AsyncWARPConnectorResource"] diff --git a/src/cloudflare/resources/web3/__init__.py b/src/cloudflare/resources/web3/__init__.py index a609cfa72..584ed0c43 100644 --- a/src/cloudflare/resources/web3/__init__.py +++ b/src/cloudflare/resources/web3/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .hostnames import HostnamesResource, AsyncHostnamesResource -from .hostnames import ( - HostnamesResourceWithRawResponse, - AsyncHostnamesResourceWithRawResponse, - HostnamesResourceWithStreamingResponse, - AsyncHostnamesResourceWithStreamingResponse, -) -from .web3 import Web3Resource, AsyncWeb3Resource from .web3 import ( + Web3Resource, + AsyncWeb3Resource, Web3ResourceWithRawResponse, AsyncWeb3ResourceWithRawResponse, Web3ResourceWithStreamingResponse, AsyncWeb3ResourceWithStreamingResponse, ) +from .hostnames import ( + HostnamesResource, + AsyncHostnamesResource, + HostnamesResourceWithRawResponse, + AsyncHostnamesResourceWithRawResponse, + HostnamesResourceWithStreamingResponse, + AsyncHostnamesResourceWithStreamingResponse, +) __all__ = [ "HostnamesResource", diff --git a/src/cloudflare/resources/web3/hostnames/__init__.py b/src/cloudflare/resources/web3/hostnames/__init__.py index 7c9919a59..00e23f582 100644 --- a/src/cloudflare/resources/web3/hostnames/__init__.py +++ b/src/cloudflare/resources/web3/hostnames/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .ipfs_universal_paths import IPFSUniversalPathsResource, AsyncIPFSUniversalPathsResource -from .ipfs_universal_paths import ( - IPFSUniversalPathsResourceWithRawResponse, - AsyncIPFSUniversalPathsResourceWithRawResponse, - IPFSUniversalPathsResourceWithStreamingResponse, - AsyncIPFSUniversalPathsResourceWithStreamingResponse, -) -from .hostnames import HostnamesResource, AsyncHostnamesResource from .hostnames import ( + HostnamesResource, + AsyncHostnamesResource, HostnamesResourceWithRawResponse, AsyncHostnamesResourceWithRawResponse, HostnamesResourceWithStreamingResponse, AsyncHostnamesResourceWithStreamingResponse, ) +from .ipfs_universal_paths import ( + IPFSUniversalPathsResource, + AsyncIPFSUniversalPathsResource, + IPFSUniversalPathsResourceWithRawResponse, + AsyncIPFSUniversalPathsResourceWithRawResponse, + IPFSUniversalPathsResourceWithStreamingResponse, + AsyncIPFSUniversalPathsResourceWithStreamingResponse, +) __all__ = [ "IPFSUniversalPathsResource", diff --git a/src/cloudflare/resources/web3/hostnames/hostnames.py b/src/cloudflare/resources/web3/hostnames/hostnames.py index e20ef1096..28d099e9b 100644 --- a/src/cloudflare/resources/web3/hostnames/hostnames.py +++ b/src/cloudflare/resources/web3/hostnames/hostnames.py @@ -2,44 +2,28 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx -from .ipfs_universal_paths.ipfs_universal_paths import IPFSUniversalPathsResource, AsyncIPFSUniversalPathsResource - +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.web3.hostname import Hostname - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from typing import Type, Optional - -from typing_extensions import Literal - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ....types.web3.hostname_delete_response import HostnameDeleteResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.web3 import hostname_create_params -from ....types.web3 import hostname_edit_params +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ....types.web3 import hostname_edit_params, hostname_create_params +from ...._base_client import AsyncPaginator, make_request_options from .ipfs_universal_paths import ( IPFSUniversalPathsResource, AsyncIPFSUniversalPathsResource, @@ -48,14 +32,9 @@ from .ipfs_universal_paths import ( IPFSUniversalPathsResourceWithStreamingResponse, AsyncIPFSUniversalPathsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....types.web3.hostname import Hostname +from ....types.web3.hostname_delete_response import HostnameDeleteResponse +from .ipfs_universal_paths.ipfs_universal_paths import IPFSUniversalPathsResource, AsyncIPFSUniversalPathsResource __all__ = ["HostnamesResource", "AsyncHostnamesResource"] diff --git a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/__init__.py b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/__init__.py index fef725a65..7be509cf9 100644 --- a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/__init__.py +++ b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .content_lists import ContentListsResource, AsyncContentListsResource from .content_lists import ( + ContentListsResource, + AsyncContentListsResource, ContentListsResourceWithRawResponse, AsyncContentListsResourceWithRawResponse, ContentListsResourceWithStreamingResponse, AsyncContentListsResourceWithStreamingResponse, ) -from .ipfs_universal_paths import IPFSUniversalPathsResource, AsyncIPFSUniversalPathsResource from .ipfs_universal_paths import ( + IPFSUniversalPathsResource, + AsyncIPFSUniversalPathsResource, IPFSUniversalPathsResourceWithRawResponse, AsyncIPFSUniversalPathsResourceWithRawResponse, IPFSUniversalPathsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/__init__.py b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/__init__.py index 587cfbbdc..65385e071 100644 --- a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/__init__.py +++ b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .entries import EntriesResource, AsyncEntriesResource from .entries import ( + EntriesResource, + AsyncEntriesResource, EntriesResourceWithRawResponse, AsyncEntriesResourceWithRawResponse, EntriesResourceWithStreamingResponse, AsyncEntriesResourceWithStreamingResponse, ) -from .content_lists import ContentListsResource, AsyncContentListsResource from .content_lists import ( + ContentListsResource, + AsyncContentListsResource, ContentListsResourceWithRawResponse, AsyncContentListsResourceWithRawResponse, ContentListsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/content_lists.py b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/content_lists.py index 84cf21934..6abdc597d 100644 --- a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/content_lists.py +++ b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/content_lists.py @@ -2,41 +2,11 @@ from __future__ import annotations +from typing import Type, Iterable, cast +from typing_extensions import Literal + import httpx -from .entries import EntriesResource, AsyncEntriesResource - -from ......_compat import cached_property - -from ......types.web3.hostnames.ipfs_universal_paths.content_list import ContentList - -from ......_wrappers import ResultWrapper - -from ......_utils import maybe_transform, async_maybe_transform - -from ......_base_client import make_request_options - -from typing import Type, Iterable - -from typing_extensions import Literal - -from ......_response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -from ......types.web3.hostnames.ipfs_universal_paths import content_list_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......_resource import SyncAPIResource, AsyncAPIResource -from ......types import shared_params -from ......types.web3.hostnames.ipfs_universal_paths import content_list_update_params from .entries import ( EntriesResource, AsyncEntriesResource, @@ -45,10 +15,23 @@ from .entries import ( EntriesResourceWithStreamingResponse, AsyncEntriesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ......_utils import ( + maybe_transform, + async_maybe_transform, +) +from ......_compat import cached_property +from ......_resource import SyncAPIResource, AsyncAPIResource +from ......_response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ......_wrappers import ResultWrapper +from ......_base_client import make_request_options +from ......types.web3.hostnames.ipfs_universal_paths import content_list_update_params +from ......types.web3.hostnames.ipfs_universal_paths.content_list import ContentList __all__ = ["ContentListsResource", "AsyncContentListsResource"] diff --git a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/entries.py b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/entries.py index 301826526..c82b575fe 100644 --- a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/entries.py +++ b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/entries.py @@ -2,56 +2,32 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx +from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ......_utils import ( + maybe_transform, + async_maybe_transform, +) from ......_compat import cached_property - -from ......types.web3.hostnames.ipfs_universal_paths.content_lists.entry_create_response import EntryCreateResponse - -from ......_wrappers import ResultWrapper - -from ......_utils import maybe_transform, async_maybe_transform - -from ......_base_client import make_request_options - -from typing import Type, Optional - -from typing_extensions import Literal - -from ......types.web3.hostnames.ipfs_universal_paths.content_lists.entry_update_response import EntryUpdateResponse - -from ......types.web3.hostnames.ipfs_universal_paths.content_lists.entry_list_response import EntryListResponse - -from ......types.web3.hostnames.ipfs_universal_paths.content_lists.entry_delete_response import EntryDeleteResponse - -from ......types.web3.hostnames.ipfs_universal_paths.content_lists.entry_get_response import EntryGetResponse - +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......_resource import SyncAPIResource, AsyncAPIResource -from ......types import shared_params -from ......types.web3.hostnames.ipfs_universal_paths.content_lists import entry_create_params -from ......types.web3.hostnames.ipfs_universal_paths.content_lists import entry_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ......_wrappers import ResultWrapper +from ......_base_client import make_request_options +from ......types.web3.hostnames.ipfs_universal_paths.content_lists import entry_create_params, entry_update_params +from ......types.web3.hostnames.ipfs_universal_paths.content_lists.entry_get_response import EntryGetResponse +from ......types.web3.hostnames.ipfs_universal_paths.content_lists.entry_list_response import EntryListResponse +from ......types.web3.hostnames.ipfs_universal_paths.content_lists.entry_create_response import EntryCreateResponse +from ......types.web3.hostnames.ipfs_universal_paths.content_lists.entry_delete_response import EntryDeleteResponse +from ......types.web3.hostnames.ipfs_universal_paths.content_lists.entry_update_response import EntryUpdateResponse __all__ = ["EntriesResource", "AsyncEntriesResource"] diff --git a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/ipfs_universal_paths.py b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/ipfs_universal_paths.py index a12ef9839..d47da398b 100644 --- a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/ipfs_universal_paths.py +++ b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/ipfs_universal_paths.py @@ -2,17 +2,8 @@ from __future__ import annotations -from .content_lists.content_lists import ContentListsResource, AsyncContentListsResource - from ....._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params from .content_lists import ( ContentListsResource, AsyncContentListsResource, @@ -21,6 +12,7 @@ from .content_lists import ( ContentListsResourceWithStreamingResponse, AsyncContentListsResourceWithStreamingResponse, ) +from .content_lists.content_lists import ContentListsResource, AsyncContentListsResource __all__ = ["IPFSUniversalPathsResource", "AsyncIPFSUniversalPathsResource"] diff --git a/src/cloudflare/resources/web3/web3.py b/src/cloudflare/resources/web3/web3.py index a9c67022d..642a8781c 100644 --- a/src/cloudflare/resources/web3/web3.py +++ b/src/cloudflare/resources/web3/web3.py @@ -2,17 +2,7 @@ from __future__ import annotations -from .hostnames.hostnames import HostnamesResource, AsyncHostnamesResource - from ..._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .hostnames import ( HostnamesResource, AsyncHostnamesResource, @@ -21,6 +11,8 @@ from .hostnames import ( HostnamesResourceWithStreamingResponse, AsyncHostnamesResourceWithStreamingResponse, ) +from ..._resource import SyncAPIResource, AsyncAPIResource +from .hostnames.hostnames import HostnamesResource, AsyncHostnamesResource __all__ = ["Web3Resource", "AsyncWeb3Resource"] diff --git a/src/cloudflare/resources/workers/__init__.py b/src/cloudflare/resources/workers/__init__.py index a7752434a..fd4a31df9 100644 --- a/src/cloudflare/resources/workers/__init__.py +++ b/src/cloudflare/resources/workers/__init__.py @@ -1,46 +1,52 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .ai import AIResource, AsyncAIResource from .ai import ( + AIResource, + AsyncAIResource, AIResourceWithRawResponse, AsyncAIResourceWithRawResponse, AIResourceWithStreamingResponse, AsyncAIResourceWithStreamingResponse, ) -from .scripts import ScriptsResource, AsyncScriptsResource -from .scripts import ( - ScriptsResourceWithRawResponse, - AsyncScriptsResourceWithRawResponse, - ScriptsResourceWithStreamingResponse, - AsyncScriptsResourceWithStreamingResponse, -) -from .account_settings import AccountSettingsResource, AsyncAccountSettingsResource -from .account_settings import ( - AccountSettingsResourceWithRawResponse, - AsyncAccountSettingsResourceWithRawResponse, - AccountSettingsResourceWithStreamingResponse, - AsyncAccountSettingsResourceWithStreamingResponse, -) -from .domains import DomainsResource, AsyncDomainsResource from .domains import ( + DomainsResource, + AsyncDomainsResource, DomainsResourceWithRawResponse, AsyncDomainsResourceWithRawResponse, DomainsResourceWithStreamingResponse, AsyncDomainsResourceWithStreamingResponse, ) -from .subdomains import SubdomainsResource, AsyncSubdomainsResource +from .scripts import ( + ScriptsResource, + AsyncScriptsResource, + ScriptsResourceWithRawResponse, + AsyncScriptsResourceWithRawResponse, + ScriptsResourceWithStreamingResponse, + AsyncScriptsResourceWithStreamingResponse, +) +from .workers import ( + WorkersResource, + AsyncWorkersResource, + WorkersResourceWithRawResponse, + AsyncWorkersResourceWithRawResponse, + WorkersResourceWithStreamingResponse, + AsyncWorkersResourceWithStreamingResponse, +) from .subdomains import ( + SubdomainsResource, + AsyncSubdomainsResource, SubdomainsResourceWithRawResponse, AsyncSubdomainsResourceWithRawResponse, SubdomainsResourceWithStreamingResponse, AsyncSubdomainsResourceWithStreamingResponse, ) -from .workers import WorkersResource, AsyncWorkersResource -from .workers import ( - WorkersResourceWithRawResponse, - AsyncWorkersResourceWithRawResponse, - WorkersResourceWithStreamingResponse, - AsyncWorkersResourceWithStreamingResponse, +from .account_settings import ( + AccountSettingsResource, + AsyncAccountSettingsResource, + AccountSettingsResourceWithRawResponse, + AsyncAccountSettingsResourceWithRawResponse, + AccountSettingsResourceWithStreamingResponse, + AsyncAccountSettingsResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/workers/account_settings.py b/src/cloudflare/resources/workers/account_settings.py index 186aec512..2b2969d1d 100644 --- a/src/cloudflare/resources/workers/account_settings.py +++ b/src/cloudflare/resources/workers/account_settings.py @@ -2,41 +2,28 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.workers.account_setting_update_response import AccountSettingUpdateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from ...types.workers.account_setting_get_response import AccountSettingGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.workers import account_setting_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...types.workers.account_setting_get_response import AccountSettingGetResponse +from ...types.workers.account_setting_update_response import AccountSettingUpdateResponse __all__ = ["AccountSettingsResource", "AsyncAccountSettingsResource"] diff --git a/src/cloudflare/resources/workers/ai/__init__.py b/src/cloudflare/resources/workers/ai/__init__.py index 6158f52db..4921cf245 100644 --- a/src/cloudflare/resources/workers/ai/__init__.py +++ b/src/cloudflare/resources/workers/ai/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .models import ModelsResource, AsyncModelsResource -from .models import ( - ModelsResourceWithRawResponse, - AsyncModelsResourceWithRawResponse, - ModelsResourceWithStreamingResponse, - AsyncModelsResourceWithStreamingResponse, -) -from .ai import AIResource, AsyncAIResource from .ai import ( + AIResource, + AsyncAIResource, AIResourceWithRawResponse, AsyncAIResourceWithRawResponse, AIResourceWithStreamingResponse, AsyncAIResourceWithStreamingResponse, ) +from .models import ( + ModelsResource, + AsyncModelsResource, + ModelsResourceWithRawResponse, + AsyncModelsResourceWithRawResponse, + ModelsResourceWithStreamingResponse, + AsyncModelsResourceWithStreamingResponse, +) __all__ = [ "ModelsResource", diff --git a/src/cloudflare/resources/workers/ai/ai.py b/src/cloudflare/resources/workers/ai/ai.py index 777c28c0d..23db576de 100644 --- a/src/cloudflare/resources/workers/ai/ai.py +++ b/src/cloudflare/resources/workers/ai/ai.py @@ -2,39 +2,10 @@ from __future__ import annotations +from typing import Any, List, Union, Iterable, Optional, cast, overload + import httpx -from .models.models import ModelsResource, AsyncModelsResource - -from ...._compat import cached_property - -from typing import Optional, Iterable, Union, List - -from ....types.workers.ai_run_response import AIRunResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -from ....types.workers import ai_run_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.workers import ai_run_params from .models import ( ModelsResource, AsyncModelsResource, @@ -43,10 +14,25 @@ from .models import ( ModelsResourceWithStreamingResponse, AsyncModelsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + required_args, + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from .models.models import ModelsResource, AsyncModelsResource +from ...._base_client import make_request_options +from ....types.workers import ai_run_params +from ....types.workers.ai_run_response import AIRunResponse __all__ = ["AIResource", "AsyncAIResource"] diff --git a/src/cloudflare/resources/workers/ai/models/__init__.py b/src/cloudflare/resources/workers/ai/models/__init__.py index 010469478..9ccd4fa07 100644 --- a/src/cloudflare/resources/workers/ai/models/__init__.py +++ b/src/cloudflare/resources/workers/ai/models/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .schema import SchemaResource, AsyncSchemaResource -from .schema import ( - SchemaResourceWithRawResponse, - AsyncSchemaResourceWithRawResponse, - SchemaResourceWithStreamingResponse, - AsyncSchemaResourceWithStreamingResponse, -) -from .models import ModelsResource, AsyncModelsResource from .models import ( + ModelsResource, + AsyncModelsResource, ModelsResourceWithRawResponse, AsyncModelsResourceWithRawResponse, ModelsResourceWithStreamingResponse, AsyncModelsResourceWithStreamingResponse, ) +from .schema import ( + SchemaResource, + AsyncSchemaResource, + SchemaResourceWithRawResponse, + AsyncSchemaResourceWithRawResponse, + SchemaResourceWithStreamingResponse, + AsyncSchemaResourceWithStreamingResponse, +) __all__ = [ "SchemaResource", diff --git a/src/cloudflare/resources/workers/ai/models/models.py b/src/cloudflare/resources/workers/ai/models/models.py index deda3e043..8f90eb730 100644 --- a/src/cloudflare/resources/workers/ai/models/models.py +++ b/src/cloudflare/resources/workers/ai/models/models.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .schema import SchemaResource, AsyncSchemaResource - -from ....._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params from .schema import ( SchemaResource, AsyncSchemaResource, @@ -21,6 +10,8 @@ from .schema import ( SchemaResourceWithStreamingResponse, AsyncSchemaResourceWithStreamingResponse, ) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource __all__ = ["ModelsResource", "AsyncModelsResource"] diff --git a/src/cloudflare/resources/workers/ai/models/schema.py b/src/cloudflare/resources/workers/ai/models/schema.py index c2eb46400..7d5d6c315 100644 --- a/src/cloudflare/resources/workers/ai/models/schema.py +++ b/src/cloudflare/resources/workers/ai/models/schema.py @@ -2,35 +2,26 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.workers.ai.models import schema_get_params -from typing import cast -from typing import cast __all__ = ["SchemaResource", "AsyncSchemaResource"] diff --git a/src/cloudflare/resources/workers/domains.py b/src/cloudflare/resources/workers/domains.py index 2097fba66..e87ffbe18 100644 --- a/src/cloudflare/resources/workers/domains.py +++ b/src/cloudflare/resources/workers/domains.py @@ -2,42 +2,28 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.workers.domain import Domain - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options, AsyncPaginator - -from ...pagination import SyncSinglePage, AsyncSinglePage - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.workers import domain_update_params -from ...types.workers import domain_list_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options +from ...types.workers import domain_list_params, domain_update_params +from ...types.workers.domain import Domain __all__ = ["DomainsResource", "AsyncDomainsResource"] diff --git a/src/cloudflare/resources/workers/scripts/__init__.py b/src/cloudflare/resources/workers/scripts/__init__.py index 85855f9e0..8ddeb820c 100644 --- a/src/cloudflare/resources/workers/scripts/__init__.py +++ b/src/cloudflare/resources/workers/scripts/__init__.py @@ -1,53 +1,60 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .schedules import SchedulesResource, AsyncSchedulesResource -from .schedules import ( - SchedulesResourceWithRawResponse, - AsyncSchedulesResourceWithRawResponse, - SchedulesResourceWithStreamingResponse, - AsyncSchedulesResourceWithStreamingResponse, -) -from .tail import TailResource, AsyncTailResource from .tail import ( + TailResource, + AsyncTailResource, TailResourceWithRawResponse, AsyncTailResourceWithRawResponse, TailResourceWithStreamingResponse, AsyncTailResourceWithStreamingResponse, ) -from .content import ContentResource, AsyncContentResource from .content import ( + ContentResource, + AsyncContentResource, ContentResourceWithRawResponse, AsyncContentResourceWithRawResponse, ContentResourceWithStreamingResponse, AsyncContentResourceWithStreamingResponse, ) -from .settings import SettingsResource, AsyncSettingsResource +from .scripts import ( + ScriptsResource, + AsyncScriptsResource, + ScriptsResourceWithRawResponse, + AsyncScriptsResourceWithRawResponse, + ScriptsResourceWithStreamingResponse, + AsyncScriptsResourceWithStreamingResponse, +) from .settings import ( + SettingsResource, + AsyncSettingsResource, SettingsResourceWithRawResponse, AsyncSettingsResourceWithRawResponse, SettingsResourceWithStreamingResponse, AsyncSettingsResourceWithStreamingResponse, ) -from .deployments import DeploymentsResource, AsyncDeploymentsResource -from .deployments import ( - DeploymentsResourceWithRawResponse, - AsyncDeploymentsResourceWithRawResponse, - DeploymentsResourceWithStreamingResponse, - AsyncDeploymentsResourceWithStreamingResponse, -) -from .versions import VersionsResource, AsyncVersionsResource from .versions import ( + VersionsResource, + AsyncVersionsResource, VersionsResourceWithRawResponse, AsyncVersionsResourceWithRawResponse, VersionsResourceWithStreamingResponse, AsyncVersionsResourceWithStreamingResponse, ) -from .scripts import ScriptsResource, AsyncScriptsResource -from .scripts import ( - ScriptsResourceWithRawResponse, - AsyncScriptsResourceWithRawResponse, - ScriptsResourceWithStreamingResponse, - AsyncScriptsResourceWithStreamingResponse, +from .schedules import ( + SchedulesResource, + AsyncSchedulesResource, + SchedulesResourceWithRawResponse, + AsyncSchedulesResourceWithRawResponse, + SchedulesResourceWithStreamingResponse, + AsyncSchedulesResourceWithStreamingResponse, +) +from .deployments import ( + DeploymentsResource, + AsyncDeploymentsResource, + DeploymentsResourceWithRawResponse, + AsyncDeploymentsResourceWithRawResponse, + DeploymentsResourceWithStreamingResponse, + AsyncDeploymentsResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/workers/scripts/content.py b/src/cloudflare/resources/workers/scripts/content.py index 1820f34ff..b57cdfddb 100644 --- a/src/cloudflare/resources/workers/scripts/content.py +++ b/src/cloudflare/resources/workers/scripts/content.py @@ -2,50 +2,39 @@ from __future__ import annotations +from typing import List, Type, Mapping, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes +from ...._utils import ( + extract_files, + maybe_transform, + strip_not_given, + deepcopy_minimal, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.workers.script import Script - -from ...._wrappers import ResultWrapper - -from ...._utils import is_given, strip_not_given, maybe_transform, async_maybe_transform - -from typing import Optional, Type, List - -from ...._base_client import make_request_options - -from ...._types import FileTypes - -from ....types.workers.worker_metadata_param import WorkerMetadataParam - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( BinaryAPIResponse, AsyncBinaryAPIResponse, - to_raw_response_wrapper, - to_custom_raw_response_wrapper, - async_to_raw_response_wrapper, - async_to_custom_raw_response_wrapper, - to_streamed_response_wrapper, - to_custom_streamed_response_wrapper, StreamedBinaryAPIResponse, - async_to_streamed_response_wrapper, - async_to_custom_streamed_response_wrapper, AsyncStreamedBinaryAPIResponse, + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + to_custom_raw_response_wrapper, + async_to_streamed_response_wrapper, + to_custom_streamed_response_wrapper, + async_to_custom_raw_response_wrapper, + async_to_custom_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.workers.script import Script from ....types.workers.scripts import content_update_params -from ....types.workers import WorkerMetadata -from typing import cast -from typing import cast +from ....types.workers.worker_metadata_param import WorkerMetadataParam __all__ = ["ContentResource", "AsyncContentResource"] diff --git a/src/cloudflare/resources/workers/scripts/deployments.py b/src/cloudflare/resources/workers/scripts/deployments.py index 57879165a..2effbb1dc 100644 --- a/src/cloudflare/resources/workers/scripts/deployments.py +++ b/src/cloudflare/resources/workers/scripts/deployments.py @@ -2,48 +2,30 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.workers.scripts.deployment_create_response import DeploymentCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Iterable - -from ...._base_client import make_request_options - -from typing_extensions import Literal - -from ....types.workers.scripts.deployment_param import DeploymentParam - -from ....types.workers.scripts.deployment_get_response import DeploymentGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.workers.scripts import deployment_create_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.workers.scripts import deployment_create_params -from ....types.workers.scripts import Deployment -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....types.workers.scripts.deployment_param import DeploymentParam +from ....types.workers.scripts.deployment_get_response import DeploymentGetResponse +from ....types.workers.scripts.deployment_create_response import DeploymentCreateResponse __all__ = ["DeploymentsResource", "AsyncDeploymentsResource"] diff --git a/src/cloudflare/resources/workers/scripts/schedules.py b/src/cloudflare/resources/workers/scripts/schedules.py index 5bde12246..583341cb1 100644 --- a/src/cloudflare/resources/workers/scripts/schedules.py +++ b/src/cloudflare/resources/workers/scripts/schedules.py @@ -2,43 +2,28 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.workers.scripts.schedule_update_response import ScheduleUpdateResponse - -from ...._wrappers import ResultWrapper - -from typing import Iterable, Optional, Type - -from ....types.workers.scripts.schedule_param import ScheduleParam - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from ....types.workers.scripts.schedule_get_response import ScheduleGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.workers.scripts import schedule_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.workers.scripts.schedule_param import ScheduleParam +from ....types.workers.scripts.schedule_get_response import ScheduleGetResponse +from ....types.workers.scripts.schedule_update_response import ScheduleUpdateResponse __all__ = ["SchedulesResource", "AsyncSchedulesResource"] diff --git a/src/cloudflare/resources/workers/scripts/scripts.py b/src/cloudflare/resources/workers/scripts/scripts.py index fb1682a26..d3594e13d 100644 --- a/src/cloudflare/resources/workers/scripts/scripts.py +++ b/src/cloudflare/resources/workers/scripts/scripts.py @@ -2,72 +2,10 @@ from __future__ import annotations +from typing import List, Type, Optional, cast, overload + import httpx -from .schedules import SchedulesResource, AsyncSchedulesResource - -from ...._compat import cached_property - -from .tail import TailResource, AsyncTailResource - -from .content import ContentResource, AsyncContentResource - -from .settings import SettingsResource, AsyncSettingsResource - -from .deployments import DeploymentsResource, AsyncDeploymentsResource - -from .versions import VersionsResource, AsyncVersionsResource - -from typing import List, Optional, Type - -from ...._types import FileTypes - -from ....types.workers.script_update_response import ScriptUpdateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.workers.script import Script - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ...._response import ( - BinaryAPIResponse, - AsyncBinaryAPIResponse, - to_raw_response_wrapper, - to_custom_raw_response_wrapper, - async_to_raw_response_wrapper, - async_to_custom_raw_response_wrapper, - to_streamed_response_wrapper, - to_custom_streamed_response_wrapper, - StreamedBinaryAPIResponse, - async_to_streamed_response_wrapper, - async_to_custom_streamed_response_wrapper, - AsyncStreamedBinaryAPIResponse, -) - -from ....types.workers import script_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.workers import script_update_params -from ....types.workers import script_delete_params -from .schedules import ( - SchedulesResource, - AsyncSchedulesResource, - SchedulesResourceWithRawResponse, - AsyncSchedulesResourceWithRawResponse, - SchedulesResourceWithStreamingResponse, - AsyncSchedulesResourceWithStreamingResponse, -) from .tail import ( TailResource, AsyncTailResource, @@ -92,14 +30,6 @@ from .settings import ( SettingsResourceWithStreamingResponse, AsyncSettingsResourceWithStreamingResponse, ) -from .deployments import ( - DeploymentsResource, - AsyncDeploymentsResource, - DeploymentsResourceWithRawResponse, - AsyncDeploymentsResourceWithRawResponse, - DeploymentsResourceWithStreamingResponse, - AsyncDeploymentsResourceWithStreamingResponse, -) from .versions import ( VersionsResource, AsyncVersionsResource, @@ -108,8 +38,50 @@ from .versions import ( VersionsResourceWithStreamingResponse, AsyncVersionsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven, FileTypes +from ...._utils import ( + required_args, + maybe_transform, + async_maybe_transform, +) +from .schedules import ( + SchedulesResource, + AsyncSchedulesResource, + SchedulesResourceWithRawResponse, + AsyncSchedulesResourceWithRawResponse, + SchedulesResourceWithStreamingResponse, + AsyncSchedulesResourceWithStreamingResponse, +) +from ...._compat import cached_property +from .deployments import ( + DeploymentsResource, + AsyncDeploymentsResource, + DeploymentsResourceWithRawResponse, + AsyncDeploymentsResourceWithRawResponse, + DeploymentsResourceWithStreamingResponse, + AsyncDeploymentsResourceWithStreamingResponse, +) +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + BinaryAPIResponse, + AsyncBinaryAPIResponse, + StreamedBinaryAPIResponse, + AsyncStreamedBinaryAPIResponse, + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + to_custom_raw_response_wrapper, + async_to_streamed_response_wrapper, + to_custom_streamed_response_wrapper, + async_to_custom_raw_response_wrapper, + async_to_custom_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.workers import script_delete_params, script_update_params +from ....types.workers.script import Script +from ....types.workers.script_update_response import ScriptUpdateResponse __all__ = ["ScriptsResource", "AsyncScriptsResource"] diff --git a/src/cloudflare/resources/workers/scripts/settings.py b/src/cloudflare/resources/workers/scripts/settings.py index ebcc9566d..94c27d833 100644 --- a/src/cloudflare/resources/workers/scripts/settings.py +++ b/src/cloudflare/resources/workers/scripts/settings.py @@ -2,41 +2,28 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.workers.script_setting import ScriptSetting - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Iterable - -from ...._base_client import make_request_options - -from ....types.workers.scripts.consumer_script_param import ConsumerScriptParam - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.workers.scripts import setting_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....types.workers.script_setting import ScriptSetting +from ....types.workers.scripts.consumer_script_param import ConsumerScriptParam __all__ = ["SettingsResource", "AsyncSettingsResource"] diff --git a/src/cloudflare/resources/workers/scripts/tail.py b/src/cloudflare/resources/workers/scripts/tail.py index 7f2cbba16..54e69baa8 100644 --- a/src/cloudflare/resources/workers/scripts/tail.py +++ b/src/cloudflare/resources/workers/scripts/tail.py @@ -2,43 +2,29 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.workers.scripts.tail_create_response import TailCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options - -from ....types.workers.scripts.tail_delete_response import TailDeleteResponse - -from ....types.workers.scripts.tail_get_response import TailGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.workers.scripts import tail_create_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....types.workers.scripts.tail_get_response import TailGetResponse +from ....types.workers.scripts.tail_create_response import TailCreateResponse +from ....types.workers.scripts.tail_delete_response import TailDeleteResponse __all__ = ["TailResource", "AsyncTailResource"] diff --git a/src/cloudflare/resources/workers/scripts/versions.py b/src/cloudflare/resources/workers/scripts/versions.py index 21bd2f3e9..4bb1340a4 100644 --- a/src/cloudflare/resources/workers/scripts/versions.py +++ b/src/cloudflare/resources/workers/scripts/versions.py @@ -2,50 +2,32 @@ from __future__ import annotations +from typing import List, Type, Mapping, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes +from ...._utils import ( + extract_files, + maybe_transform, + deepcopy_minimal, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.workers.scripts.version_create_response import VersionCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, List - -from ...._base_client import make_request_options, AsyncPaginator - -from ...._types import FileTypes - -from ....types.workers.scripts.version_list_response import VersionListResponse - -from ....pagination import SyncV4PagePagination, AsyncV4PagePagination - -from ....types.workers.scripts.version_get_response import VersionGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ....types.workers.scripts import version_create_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.workers.scripts import version_create_params -from ....types.workers.scripts import version_list_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncV4PagePagination, AsyncV4PagePagination +from ...._base_client import AsyncPaginator, make_request_options +from ....types.workers.scripts import version_list_params, version_create_params +from ....types.workers.scripts.version_get_response import VersionGetResponse +from ....types.workers.scripts.version_list_response import VersionListResponse +from ....types.workers.scripts.version_create_response import VersionCreateResponse __all__ = ["VersionsResource", "AsyncVersionsResource"] diff --git a/src/cloudflare/resources/workers/subdomains.py b/src/cloudflare/resources/workers/subdomains.py index a6feafc60..6f5a94b8d 100644 --- a/src/cloudflare/resources/workers/subdomains.py +++ b/src/cloudflare/resources/workers/subdomains.py @@ -2,41 +2,28 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.workers.subdomain_update_response import SubdomainUpdateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from ...types.workers.subdomain_get_response import SubdomainGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.workers import subdomain_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...types.workers.subdomain_get_response import SubdomainGetResponse +from ...types.workers.subdomain_update_response import SubdomainUpdateResponse __all__ = ["SubdomainsResource", "AsyncSubdomainsResource"] diff --git a/src/cloudflare/resources/workers/workers.py b/src/cloudflare/resources/workers/workers.py index 9aa53e177..55326950c 100644 --- a/src/cloudflare/resources/workers/workers.py +++ b/src/cloudflare/resources/workers/workers.py @@ -2,25 +2,6 @@ from __future__ import annotations -from .ai.ai import AIResource, AsyncAIResource - -from ..._compat import cached_property - -from .scripts.scripts import ScriptsResource, AsyncScriptsResource - -from .account_settings import AccountSettingsResource, AsyncAccountSettingsResource - -from .domains import DomainsResource, AsyncDomainsResource - -from .subdomains import SubdomainsResource, AsyncSubdomainsResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .ai import ( AIResource, AsyncAIResource, @@ -29,6 +10,15 @@ from .ai import ( AIResourceWithStreamingResponse, AsyncAIResourceWithStreamingResponse, ) +from .ai.ai import AIResource, AsyncAIResource +from .domains import ( + DomainsResource, + AsyncDomainsResource, + DomainsResourceWithRawResponse, + AsyncDomainsResourceWithRawResponse, + DomainsResourceWithStreamingResponse, + AsyncDomainsResourceWithStreamingResponse, +) from .scripts import ( ScriptsResource, AsyncScriptsResource, @@ -37,22 +27,7 @@ from .scripts import ( ScriptsResourceWithStreamingResponse, AsyncScriptsResourceWithStreamingResponse, ) -from .account_settings import ( - AccountSettingsResource, - AsyncAccountSettingsResource, - AccountSettingsResourceWithRawResponse, - AsyncAccountSettingsResourceWithRawResponse, - AccountSettingsResourceWithStreamingResponse, - AsyncAccountSettingsResourceWithStreamingResponse, -) -from .domains import ( - DomainsResource, - AsyncDomainsResource, - DomainsResourceWithRawResponse, - AsyncDomainsResourceWithRawResponse, - DomainsResourceWithStreamingResponse, - AsyncDomainsResourceWithStreamingResponse, -) +from ..._compat import cached_property from .subdomains import ( SubdomainsResource, AsyncSubdomainsResource, @@ -61,6 +36,16 @@ from .subdomains import ( SubdomainsResourceWithStreamingResponse, AsyncSubdomainsResourceWithStreamingResponse, ) +from ..._resource import SyncAPIResource, AsyncAPIResource +from .scripts.scripts import ScriptsResource, AsyncScriptsResource +from .account_settings import ( + AccountSettingsResource, + AsyncAccountSettingsResource, + AccountSettingsResourceWithRawResponse, + AsyncAccountSettingsResourceWithRawResponse, + AccountSettingsResourceWithStreamingResponse, + AsyncAccountSettingsResourceWithStreamingResponse, +) __all__ = ["WorkersResource", "AsyncWorkersResource"] diff --git a/src/cloudflare/resources/workers_for_platforms/__init__.py b/src/cloudflare/resources/workers_for_platforms/__init__.py index 567347f8c..2b1b30bde 100644 --- a/src/cloudflare/resources/workers_for_platforms/__init__.py +++ b/src/cloudflare/resources/workers_for_platforms/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .dispatch import DispatchResource, AsyncDispatchResource from .dispatch import ( + DispatchResource, + AsyncDispatchResource, DispatchResourceWithRawResponse, AsyncDispatchResourceWithRawResponse, DispatchResourceWithStreamingResponse, AsyncDispatchResourceWithStreamingResponse, ) -from .workers_for_platforms import WorkersForPlatformsResource, AsyncWorkersForPlatformsResource from .workers_for_platforms import ( + WorkersForPlatformsResource, + AsyncWorkersForPlatformsResource, WorkersForPlatformsResourceWithRawResponse, AsyncWorkersForPlatformsResourceWithRawResponse, WorkersForPlatformsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/__init__.py b/src/cloudflare/resources/workers_for_platforms/dispatch/__init__.py index f570b5f40..f74ee5c89 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/__init__.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .namespaces import NamespacesResource, AsyncNamespacesResource -from .namespaces import ( - NamespacesResourceWithRawResponse, - AsyncNamespacesResourceWithRawResponse, - NamespacesResourceWithStreamingResponse, - AsyncNamespacesResourceWithStreamingResponse, -) -from .dispatch import DispatchResource, AsyncDispatchResource from .dispatch import ( + DispatchResource, + AsyncDispatchResource, DispatchResourceWithRawResponse, AsyncDispatchResourceWithRawResponse, DispatchResourceWithStreamingResponse, AsyncDispatchResourceWithStreamingResponse, ) +from .namespaces import ( + NamespacesResource, + AsyncNamespacesResource, + NamespacesResourceWithRawResponse, + AsyncNamespacesResourceWithRawResponse, + NamespacesResourceWithStreamingResponse, + AsyncNamespacesResourceWithStreamingResponse, +) __all__ = [ "NamespacesResource", diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/dispatch.py b/src/cloudflare/resources/workers_for_platforms/dispatch/dispatch.py index 4602457c4..dd56b95c0 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/dispatch.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/dispatch.py @@ -2,17 +2,7 @@ from __future__ import annotations -from .namespaces.namespaces import NamespacesResource, AsyncNamespacesResource - from ...._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params from .namespaces import ( NamespacesResource, AsyncNamespacesResource, @@ -21,6 +11,8 @@ from .namespaces import ( NamespacesResourceWithStreamingResponse, AsyncNamespacesResourceWithStreamingResponse, ) +from ...._resource import SyncAPIResource, AsyncAPIResource +from .namespaces.namespaces import NamespacesResource, AsyncNamespacesResource __all__ = ["DispatchResource", "AsyncDispatchResource"] diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/__init__.py b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/__init__.py index c28f641c9..7a4687c92 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/__init__.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .scripts import ScriptsResource, AsyncScriptsResource from .scripts import ( + ScriptsResource, + AsyncScriptsResource, ScriptsResourceWithRawResponse, AsyncScriptsResourceWithRawResponse, ScriptsResourceWithStreamingResponse, AsyncScriptsResourceWithStreamingResponse, ) -from .namespaces import NamespacesResource, AsyncNamespacesResource from .namespaces import ( + NamespacesResource, + AsyncNamespacesResource, NamespacesResourceWithRawResponse, AsyncNamespacesResourceWithRawResponse, NamespacesResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/namespaces.py b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/namespaces.py index ce987c674..efde6e33c 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/namespaces.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/namespaces.py @@ -2,43 +2,10 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .scripts.scripts import ScriptsResource, AsyncScriptsResource - -from ....._compat import cached_property - -from .....types.workers_for_platforms.dispatch.namespace_create_response import NamespaceCreateResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ....._base_client import make_request_options, AsyncPaginator - -from .....types.workers_for_platforms.dispatch.namespace_list_response import NamespaceListResponse - -from .....pagination import SyncSinglePage, AsyncSinglePage - -from .....types.workers_for_platforms.dispatch.namespace_get_response import NamespaceGetResponse - -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.workers_for_platforms.dispatch import namespace_create_params from .scripts import ( ScriptsResource, AsyncScriptsResource, @@ -47,12 +14,27 @@ from .scripts import ( ScriptsResourceWithStreamingResponse, AsyncScriptsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....._wrappers import ResultWrapper +from .....pagination import SyncSinglePage, AsyncSinglePage +from .scripts.scripts import ScriptsResource, AsyncScriptsResource +from ....._base_client import AsyncPaginator, make_request_options +from .....types.workers_for_platforms.dispatch import namespace_create_params +from .....types.workers_for_platforms.dispatch.namespace_get_response import NamespaceGetResponse +from .....types.workers_for_platforms.dispatch.namespace_list_response import NamespaceListResponse +from .....types.workers_for_platforms.dispatch.namespace_create_response import NamespaceCreateResponse __all__ = ["NamespacesResource", "AsyncNamespacesResource"] diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/__init__.py b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/__init__.py index c107c1f3a..fd5a962f5 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/__init__.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/__init__.py @@ -1,47 +1,53 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .content import ContentResource, AsyncContentResource -from .content import ( - ContentResourceWithRawResponse, - AsyncContentResourceWithRawResponse, - ContentResourceWithStreamingResponse, - AsyncContentResourceWithStreamingResponse, -) -from .settings import SettingsResource, AsyncSettingsResource -from .settings import ( - SettingsResourceWithRawResponse, - AsyncSettingsResourceWithRawResponse, - SettingsResourceWithStreamingResponse, - AsyncSettingsResourceWithStreamingResponse, -) -from .bindings import BindingsResource, AsyncBindingsResource -from .bindings import ( - BindingsResourceWithRawResponse, - AsyncBindingsResourceWithRawResponse, - BindingsResourceWithStreamingResponse, - AsyncBindingsResourceWithStreamingResponse, -) -from .secrets import SecretsResource, AsyncSecretsResource -from .secrets import ( - SecretsResourceWithRawResponse, - AsyncSecretsResourceWithRawResponse, - SecretsResourceWithStreamingResponse, - AsyncSecretsResourceWithStreamingResponse, -) -from .tags import TagsResource, AsyncTagsResource from .tags import ( + TagsResource, + AsyncTagsResource, TagsResourceWithRawResponse, AsyncTagsResourceWithRawResponse, TagsResourceWithStreamingResponse, AsyncTagsResourceWithStreamingResponse, ) -from .scripts import ScriptsResource, AsyncScriptsResource +from .content import ( + ContentResource, + AsyncContentResource, + ContentResourceWithRawResponse, + AsyncContentResourceWithRawResponse, + ContentResourceWithStreamingResponse, + AsyncContentResourceWithStreamingResponse, +) from .scripts import ( + ScriptsResource, + AsyncScriptsResource, ScriptsResourceWithRawResponse, AsyncScriptsResourceWithRawResponse, ScriptsResourceWithStreamingResponse, AsyncScriptsResourceWithStreamingResponse, ) +from .secrets import ( + SecretsResource, + AsyncSecretsResource, + SecretsResourceWithRawResponse, + AsyncSecretsResourceWithRawResponse, + SecretsResourceWithStreamingResponse, + AsyncSecretsResourceWithStreamingResponse, +) +from .bindings import ( + BindingsResource, + AsyncBindingsResource, + BindingsResourceWithRawResponse, + AsyncBindingsResourceWithRawResponse, + BindingsResourceWithStreamingResponse, + AsyncBindingsResourceWithStreamingResponse, +) +from .settings import ( + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, +) __all__ = [ "ContentResource", diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/bindings.py b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/bindings.py index 981af5b36..ae2999678 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/bindings.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/bindings.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven from ......_compat import cached_property - -from ......types.workers_for_platforms.dispatch.namespaces.scripts.binding_get_response import BindingGetResponse - -from ......_wrappers import ResultWrapper - -from typing import Optional, Type - -from ......_base_client import make_request_options - +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......_resource import SyncAPIResource, AsyncAPIResource -from ......types import shared_params -from typing import cast -from typing import cast +from ......_wrappers import ResultWrapper +from ......_base_client import make_request_options +from ......types.workers_for_platforms.dispatch.namespaces.scripts.binding_get_response import BindingGetResponse __all__ = ["BindingsResource", "AsyncBindingsResource"] 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 66ff0bc22..c5159e847 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 @@ -2,50 +2,39 @@ from __future__ import annotations +from typing import List, Type, Mapping, Optional, cast + import httpx +from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes +from ......_utils import ( + extract_files, + maybe_transform, + strip_not_given, + deepcopy_minimal, + async_maybe_transform, +) from ......_compat import cached_property - -from ......types.workers.script import Script - -from ......_wrappers import ResultWrapper - -from ......_utils import is_given, strip_not_given, maybe_transform, async_maybe_transform - -from typing import Optional, Type, List - -from ......_base_client import make_request_options - -from ......_types import FileTypes - -from ......types.workers.worker_metadata_param import WorkerMetadataParam - +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_response import ( BinaryAPIResponse, AsyncBinaryAPIResponse, - to_raw_response_wrapper, - to_custom_raw_response_wrapper, - async_to_raw_response_wrapper, - async_to_custom_raw_response_wrapper, - to_streamed_response_wrapper, - to_custom_streamed_response_wrapper, StreamedBinaryAPIResponse, - async_to_streamed_response_wrapper, - async_to_custom_streamed_response_wrapper, AsyncStreamedBinaryAPIResponse, + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + to_custom_raw_response_wrapper, + async_to_streamed_response_wrapper, + to_custom_streamed_response_wrapper, + async_to_custom_raw_response_wrapper, + async_to_custom_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......_resource import SyncAPIResource, AsyncAPIResource -from ......types import shared_params +from ......_wrappers import ResultWrapper +from ......_base_client import make_request_options +from ......types.workers.script import Script +from ......types.workers.worker_metadata_param import WorkerMetadataParam from ......types.workers_for_platforms.dispatch.namespaces.scripts import content_update_params -from ......types.workers import WorkerMetadata -from typing import cast -from typing import cast __all__ = ["ContentResource", "AsyncContentResource"] diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/scripts.py b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/scripts.py index 262bbef85..c2d601ea5 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/scripts.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/scripts.py @@ -2,52 +2,18 @@ from __future__ import annotations +from typing import List, Type, Optional, cast, overload + import httpx -from .content import ContentResource, AsyncContentResource - -from ......_compat import cached_property - -from .settings import SettingsResource, AsyncSettingsResource - -from .bindings import BindingsResource, AsyncBindingsResource - -from .secrets import SecretsResource, AsyncSecretsResource - -from .tags import TagsResource, AsyncTagsResource - -from typing import List, Optional, Type - -from ......_types import FileTypes - -from ......types.workers_for_platforms.dispatch.namespaces.script_update_response import ScriptUpdateResponse - -from ......_wrappers import ResultWrapper - -from ......_utils import maybe_transform, async_maybe_transform - -from ......_base_client import make_request_options - -from ......types.workers_for_platforms.dispatch.namespaces.script import Script - -from ......_response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, +from .tags import ( + TagsResource, + AsyncTagsResource, + TagsResourceWithRawResponse, + AsyncTagsResourceWithRawResponse, + TagsResourceWithStreamingResponse, + AsyncTagsResourceWithStreamingResponse, ) - -from ......types.workers_for_platforms.dispatch.namespaces import script_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......_resource import SyncAPIResource, AsyncAPIResource -from ......types import shared_params -from ......types.workers_for_platforms.dispatch.namespaces import script_update_params -from ......types.workers_for_platforms.dispatch.namespaces import script_delete_params from .content import ( ContentResource, AsyncContentResource, @@ -56,22 +22,6 @@ from .content import ( ContentResourceWithStreamingResponse, AsyncContentResourceWithStreamingResponse, ) -from .settings import ( - SettingsResource, - AsyncSettingsResource, - SettingsResourceWithRawResponse, - AsyncSettingsResourceWithRawResponse, - SettingsResourceWithStreamingResponse, - AsyncSettingsResourceWithStreamingResponse, -) -from .bindings import ( - BindingsResource, - AsyncBindingsResource, - BindingsResourceWithRawResponse, - AsyncBindingsResourceWithRawResponse, - BindingsResourceWithStreamingResponse, - AsyncBindingsResourceWithStreamingResponse, -) from .secrets import ( SecretsResource, AsyncSecretsResource, @@ -80,18 +30,41 @@ from .secrets import ( SecretsResourceWithStreamingResponse, AsyncSecretsResourceWithStreamingResponse, ) -from .tags import ( - TagsResource, - AsyncTagsResource, - TagsResourceWithRawResponse, - AsyncTagsResourceWithRawResponse, - TagsResourceWithStreamingResponse, - AsyncTagsResourceWithStreamingResponse, +from .bindings import ( + BindingsResource, + AsyncBindingsResource, + BindingsResourceWithRawResponse, + AsyncBindingsResourceWithRawResponse, + BindingsResourceWithStreamingResponse, + AsyncBindingsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .settings import ( + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, +) +from ......_types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven, FileTypes +from ......_utils import ( + required_args, + maybe_transform, + async_maybe_transform, +) +from ......_compat import cached_property +from ......_resource import SyncAPIResource, AsyncAPIResource +from ......_response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ......_wrappers import ResultWrapper +from ......_base_client import make_request_options +from ......types.workers_for_platforms.dispatch.namespaces import script_delete_params, script_update_params +from ......types.workers_for_platforms.dispatch.namespaces.script import Script +from ......types.workers_for_platforms.dispatch.namespaces.script_update_response import ScriptUpdateResponse __all__ = ["ScriptsResource", "AsyncScriptsResource"] diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/secrets.py b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/secrets.py index 45310595c..ae172c94c 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/secrets.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/secrets.py @@ -2,47 +2,31 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx +from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ......_utils import ( + maybe_transform, + async_maybe_transform, +) from ......_compat import cached_property - -from ......types.workers_for_platforms.dispatch.namespaces.scripts.secret_update_response import SecretUpdateResponse - -from ......_wrappers import ResultWrapper - -from ......_utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ......_base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from ......types.workers_for_platforms.dispatch.namespaces.scripts.secret_list_response import SecretListResponse - -from ......pagination import SyncSinglePage, AsyncSinglePage - -from ......types.workers_for_platforms.dispatch.namespaces.scripts.secret_get_response import SecretGetResponse - +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......_resource import SyncAPIResource, AsyncAPIResource -from ......types import shared_params +from ......_wrappers import ResultWrapper +from ......pagination import SyncSinglePage, AsyncSinglePage +from ......_base_client import AsyncPaginator, make_request_options from ......types.workers_for_platforms.dispatch.namespaces.scripts import secret_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ......types.workers_for_platforms.dispatch.namespaces.scripts.secret_get_response import SecretGetResponse +from ......types.workers_for_platforms.dispatch.namespaces.scripts.secret_list_response import SecretListResponse +from ......types.workers_for_platforms.dispatch.namespaces.scripts.secret_update_response import SecretUpdateResponse __all__ = ["SecretsResource", "AsyncSecretsResource"] diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/settings.py b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/settings.py index c3a808ae7..58e4b3105 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/settings.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/settings.py @@ -2,43 +2,28 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ......_utils import ( + maybe_transform, + async_maybe_transform, +) from ......_compat import cached_property - -from ......types.workers_for_platforms.dispatch.namespaces.scripts.setting_edit_response import SettingEditResponse - -from ......_wrappers import ResultWrapper - -from ......_utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ......_base_client import make_request_options - -from ......types.workers_for_platforms.dispatch.namespaces.scripts.setting_get_response import SettingGetResponse - +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ......_wrappers import ResultWrapper +from ......_base_client import make_request_options from ......types.workers_for_platforms.dispatch.namespaces.scripts import setting_edit_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......_resource import SyncAPIResource, AsyncAPIResource -from ......types import shared_params -from ......types.workers_for_platforms.dispatch.namespaces.scripts import setting_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ......types.workers_for_platforms.dispatch.namespaces.scripts.setting_get_response import SettingGetResponse +from ......types.workers_for_platforms.dispatch.namespaces.scripts.setting_edit_response import SettingEditResponse __all__ = ["SettingsResource", "AsyncSettingsResource"] diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/tags.py b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/tags.py index 18827a105..c943ff5d8 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/tags.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/tags.py @@ -2,43 +2,28 @@ from __future__ import annotations +from typing import List, Type, Optional, cast + import httpx +from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ......_utils import ( + maybe_transform, + async_maybe_transform, +) from ......_compat import cached_property - -from ......types.workers_for_platforms.dispatch.namespaces.scripts.tag_update_response import TagUpdateResponse - -from ......_wrappers import ResultWrapper - -from typing import List, Optional, Type - -from ......_utils import maybe_transform, async_maybe_transform - -from ......_base_client import make_request_options, AsyncPaginator - -from ......pagination import SyncSinglePage, AsyncSinglePage - -from ......types.workers_for_platforms.dispatch.namespaces.scripts.tag_list_response import TagListResponse - +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......_resource import SyncAPIResource, AsyncAPIResource -from ......types import shared_params -from ......types.workers_for_platforms.dispatch.namespaces.scripts import tag_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ......_wrappers import ResultWrapper +from ......pagination import SyncSinglePage, AsyncSinglePage +from ......_base_client import AsyncPaginator, make_request_options +from ......types.workers_for_platforms.dispatch.namespaces.scripts.tag_list_response import TagListResponse +from ......types.workers_for_platforms.dispatch.namespaces.scripts.tag_update_response import TagUpdateResponse __all__ = ["TagsResource", "AsyncTagsResource"] diff --git a/src/cloudflare/resources/workers_for_platforms/workers_for_platforms.py b/src/cloudflare/resources/workers_for_platforms/workers_for_platforms.py index c7ce23cd0..9506783f0 100644 --- a/src/cloudflare/resources/workers_for_platforms/workers_for_platforms.py +++ b/src/cloudflare/resources/workers_for_platforms/workers_for_platforms.py @@ -2,17 +2,6 @@ from __future__ import annotations -from .dispatch.dispatch import DispatchResource, AsyncDispatchResource - -from ..._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params from .dispatch import ( DispatchResource, AsyncDispatchResource, @@ -21,6 +10,9 @@ from .dispatch import ( DispatchResourceWithStreamingResponse, AsyncDispatchResourceWithStreamingResponse, ) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from .dispatch.dispatch import DispatchResource, AsyncDispatchResource __all__ = ["WorkersForPlatformsResource", "AsyncWorkersForPlatformsResource"] diff --git a/src/cloudflare/resources/zero_trust/__init__.py b/src/cloudflare/resources/zero_trust/__init__.py index fecc4fa39..7703df18c 100644 --- a/src/cloudflare/resources/zero_trust/__init__.py +++ b/src/cloudflare/resources/zero_trust/__init__.py @@ -1,95 +1,108 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .devices import DevicesResource, AsyncDevicesResource -from .devices import ( - DevicesResourceWithRawResponse, - AsyncDevicesResourceWithRawResponse, - DevicesResourceWithStreamingResponse, - AsyncDevicesResourceWithStreamingResponse, -) -from .identity_providers import IdentityProvidersResource, AsyncIdentityProvidersResource -from .identity_providers import ( - IdentityProvidersResourceWithRawResponse, - AsyncIdentityProvidersResourceWithRawResponse, - IdentityProvidersResourceWithStreamingResponse, - AsyncIdentityProvidersResourceWithStreamingResponse, -) -from .organizations import OrganizationsResource, AsyncOrganizationsResource -from .organizations import ( - OrganizationsResourceWithRawResponse, - AsyncOrganizationsResourceWithRawResponse, - OrganizationsResourceWithStreamingResponse, - AsyncOrganizationsResourceWithStreamingResponse, -) -from .seats import SeatsResource, AsyncSeatsResource -from .seats import ( - SeatsResourceWithRawResponse, - AsyncSeatsResourceWithRawResponse, - SeatsResourceWithStreamingResponse, - AsyncSeatsResourceWithStreamingResponse, -) -from .access import AccessResource, AsyncAccessResource -from .access import ( - AccessResourceWithRawResponse, - AsyncAccessResourceWithRawResponse, - AccessResourceWithStreamingResponse, - AsyncAccessResourceWithStreamingResponse, -) -from .dex import DEXResource, AsyncDEXResource from .dex import ( + DEXResource, + AsyncDEXResource, DEXResourceWithRawResponse, AsyncDEXResourceWithRawResponse, DEXResourceWithStreamingResponse, AsyncDEXResourceWithStreamingResponse, ) -from .tunnels import TunnelsResource, AsyncTunnelsResource -from .tunnels import ( - TunnelsResourceWithRawResponse, - AsyncTunnelsResourceWithRawResponse, - TunnelsResourceWithStreamingResponse, - AsyncTunnelsResourceWithStreamingResponse, -) -from .connectivity_settings import ConnectivitySettingsResource, AsyncConnectivitySettingsResource -from .connectivity_settings import ( - ConnectivitySettingsResourceWithRawResponse, - AsyncConnectivitySettingsResourceWithRawResponse, - ConnectivitySettingsResourceWithStreamingResponse, - AsyncConnectivitySettingsResourceWithStreamingResponse, -) -from .dlp import DLPResource, AsyncDLPResource from .dlp import ( + DLPResource, + AsyncDLPResource, DLPResourceWithRawResponse, AsyncDLPResourceWithRawResponse, DLPResourceWithStreamingResponse, AsyncDLPResourceWithStreamingResponse, ) -from .gateway import GatewayResource, AsyncGatewayResource +from .seats import ( + SeatsResource, + AsyncSeatsResource, + SeatsResourceWithRawResponse, + AsyncSeatsResourceWithRawResponse, + SeatsResourceWithStreamingResponse, + AsyncSeatsResourceWithStreamingResponse, +) +from .access import ( + AccessResource, + AsyncAccessResource, + AccessResourceWithRawResponse, + AsyncAccessResourceWithRawResponse, + AccessResourceWithStreamingResponse, + AsyncAccessResourceWithStreamingResponse, +) +from .devices import ( + DevicesResource, + AsyncDevicesResource, + DevicesResourceWithRawResponse, + AsyncDevicesResourceWithRawResponse, + DevicesResourceWithStreamingResponse, + AsyncDevicesResourceWithStreamingResponse, +) from .gateway import ( + GatewayResource, + AsyncGatewayResource, GatewayResourceWithRawResponse, AsyncGatewayResourceWithRawResponse, GatewayResourceWithStreamingResponse, AsyncGatewayResourceWithStreamingResponse, ) -from .networks import NetworksResource, AsyncNetworksResource +from .tunnels import ( + TunnelsResource, + AsyncTunnelsResource, + TunnelsResourceWithRawResponse, + AsyncTunnelsResourceWithRawResponse, + TunnelsResourceWithStreamingResponse, + AsyncTunnelsResourceWithStreamingResponse, +) from .networks import ( + NetworksResource, + AsyncNetworksResource, NetworksResourceWithRawResponse, AsyncNetworksResourceWithRawResponse, NetworksResourceWithStreamingResponse, AsyncNetworksResourceWithStreamingResponse, ) -from .risk_scoring import RiskScoringResource, AsyncRiskScoringResource +from .zero_trust import ( + ZeroTrustResource, + AsyncZeroTrustResource, + ZeroTrustResourceWithRawResponse, + AsyncZeroTrustResourceWithRawResponse, + ZeroTrustResourceWithStreamingResponse, + AsyncZeroTrustResourceWithStreamingResponse, +) from .risk_scoring import ( + RiskScoringResource, + AsyncRiskScoringResource, RiskScoringResourceWithRawResponse, AsyncRiskScoringResourceWithRawResponse, RiskScoringResourceWithStreamingResponse, AsyncRiskScoringResourceWithStreamingResponse, ) -from .zero_trust import ZeroTrustResource, AsyncZeroTrustResource -from .zero_trust import ( - ZeroTrustResourceWithRawResponse, - AsyncZeroTrustResourceWithRawResponse, - ZeroTrustResourceWithStreamingResponse, - AsyncZeroTrustResourceWithStreamingResponse, +from .organizations import ( + OrganizationsResource, + AsyncOrganizationsResource, + OrganizationsResourceWithRawResponse, + AsyncOrganizationsResourceWithRawResponse, + OrganizationsResourceWithStreamingResponse, + AsyncOrganizationsResourceWithStreamingResponse, +) +from .identity_providers import ( + IdentityProvidersResource, + AsyncIdentityProvidersResource, + IdentityProvidersResourceWithRawResponse, + AsyncIdentityProvidersResourceWithRawResponse, + IdentityProvidersResourceWithStreamingResponse, + AsyncIdentityProvidersResourceWithStreamingResponse, +) +from .connectivity_settings import ( + ConnectivitySettingsResource, + AsyncConnectivitySettingsResource, + ConnectivitySettingsResourceWithRawResponse, + AsyncConnectivitySettingsResourceWithRawResponse, + ConnectivitySettingsResourceWithStreamingResponse, + AsyncConnectivitySettingsResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/zero_trust/access/__init__.py b/src/cloudflare/resources/zero_trust/access/__init__.py index cdc607760..d3fe1996f 100644 --- a/src/cloudflare/resources/zero_trust/access/__init__.py +++ b/src/cloudflare/resources/zero_trust/access/__init__.py @@ -1,88 +1,100 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .applications import ApplicationsResource, AsyncApplicationsResource -from .applications import ( - ApplicationsResourceWithRawResponse, - AsyncApplicationsResourceWithRawResponse, - ApplicationsResourceWithStreamingResponse, - AsyncApplicationsResourceWithStreamingResponse, -) -from .certificates import CertificatesResource, AsyncCertificatesResource -from .certificates import ( - CertificatesResourceWithRawResponse, - AsyncCertificatesResourceWithRawResponse, - CertificatesResourceWithStreamingResponse, - AsyncCertificatesResourceWithStreamingResponse, -) -from .groups import GroupsResource, AsyncGroupsResource -from .groups import ( - GroupsResourceWithRawResponse, - AsyncGroupsResourceWithRawResponse, - GroupsResourceWithStreamingResponse, - AsyncGroupsResourceWithStreamingResponse, -) -from .service_tokens import ServiceTokensResource, AsyncServiceTokensResource -from .service_tokens import ( - ServiceTokensResourceWithRawResponse, - AsyncServiceTokensResourceWithRawResponse, - ServiceTokensResourceWithStreamingResponse, - AsyncServiceTokensResourceWithStreamingResponse, -) -from .bookmarks import BookmarksResource, AsyncBookmarksResource -from .bookmarks import ( - BookmarksResourceWithRawResponse, - AsyncBookmarksResourceWithRawResponse, - BookmarksResourceWithStreamingResponse, - AsyncBookmarksResourceWithStreamingResponse, -) -from .keys import KeysResource, AsyncKeysResource from .keys import ( + KeysResource, + AsyncKeysResource, KeysResourceWithRawResponse, AsyncKeysResourceWithRawResponse, KeysResourceWithStreamingResponse, AsyncKeysResourceWithStreamingResponse, ) -from .logs import LogsResource, AsyncLogsResource from .logs import ( + LogsResource, + AsyncLogsResource, LogsResourceWithRawResponse, AsyncLogsResourceWithRawResponse, LogsResourceWithStreamingResponse, AsyncLogsResourceWithStreamingResponse, ) -from .users import UsersResource, AsyncUsersResource -from .users import ( - UsersResourceWithRawResponse, - AsyncUsersResourceWithRawResponse, - UsersResourceWithStreamingResponse, - AsyncUsersResourceWithStreamingResponse, -) -from .custom_pages import CustomPagesResource, AsyncCustomPagesResource -from .custom_pages import ( - CustomPagesResourceWithRawResponse, - AsyncCustomPagesResourceWithRawResponse, - CustomPagesResourceWithStreamingResponse, - AsyncCustomPagesResourceWithStreamingResponse, -) -from .tags import TagsResource, AsyncTagsResource from .tags import ( + TagsResource, + AsyncTagsResource, TagsResourceWithRawResponse, AsyncTagsResourceWithRawResponse, TagsResourceWithStreamingResponse, AsyncTagsResourceWithStreamingResponse, ) -from .policies import PoliciesResource, AsyncPoliciesResource +from .users import ( + UsersResource, + AsyncUsersResource, + UsersResourceWithRawResponse, + AsyncUsersResourceWithRawResponse, + UsersResourceWithStreamingResponse, + AsyncUsersResourceWithStreamingResponse, +) +from .access import ( + AccessResource, + AsyncAccessResource, + AccessResourceWithRawResponse, + AsyncAccessResourceWithRawResponse, + AccessResourceWithStreamingResponse, + AsyncAccessResourceWithStreamingResponse, +) +from .groups import ( + GroupsResource, + AsyncGroupsResource, + GroupsResourceWithRawResponse, + AsyncGroupsResourceWithRawResponse, + GroupsResourceWithStreamingResponse, + AsyncGroupsResourceWithStreamingResponse, +) from .policies import ( + PoliciesResource, + AsyncPoliciesResource, PoliciesResourceWithRawResponse, AsyncPoliciesResourceWithRawResponse, PoliciesResourceWithStreamingResponse, AsyncPoliciesResourceWithStreamingResponse, ) -from .access import AccessResource, AsyncAccessResource -from .access import ( - AccessResourceWithRawResponse, - AsyncAccessResourceWithRawResponse, - AccessResourceWithStreamingResponse, - AsyncAccessResourceWithStreamingResponse, +from .bookmarks import ( + BookmarksResource, + AsyncBookmarksResource, + BookmarksResourceWithRawResponse, + AsyncBookmarksResourceWithRawResponse, + BookmarksResourceWithStreamingResponse, + AsyncBookmarksResourceWithStreamingResponse, +) +from .applications import ( + ApplicationsResource, + AsyncApplicationsResource, + ApplicationsResourceWithRawResponse, + AsyncApplicationsResourceWithRawResponse, + ApplicationsResourceWithStreamingResponse, + AsyncApplicationsResourceWithStreamingResponse, +) +from .certificates import ( + CertificatesResource, + AsyncCertificatesResource, + CertificatesResourceWithRawResponse, + AsyncCertificatesResourceWithRawResponse, + CertificatesResourceWithStreamingResponse, + AsyncCertificatesResourceWithStreamingResponse, +) +from .custom_pages import ( + CustomPagesResource, + AsyncCustomPagesResource, + CustomPagesResourceWithRawResponse, + AsyncCustomPagesResourceWithRawResponse, + CustomPagesResourceWithStreamingResponse, + AsyncCustomPagesResourceWithStreamingResponse, +) +from .service_tokens import ( + ServiceTokensResource, + AsyncServiceTokensResource, + ServiceTokensResourceWithRawResponse, + AsyncServiceTokensResourceWithRawResponse, + ServiceTokensResourceWithStreamingResponse, + AsyncServiceTokensResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/zero_trust/access/access.py b/src/cloudflare/resources/zero_trust/access/access.py index b27651757..b0be13c5c 100644 --- a/src/cloudflare/resources/zero_trust/access/access.py +++ b/src/cloudflare/resources/zero_trust/access/access.py @@ -2,77 +2,6 @@ from __future__ import annotations -from .applications.applications import ApplicationsResource, AsyncApplicationsResource - -from ...._compat import cached_property - -from .certificates.certificates import CertificatesResource, AsyncCertificatesResource - -from .groups import GroupsResource, AsyncGroupsResource - -from .service_tokens import ServiceTokensResource, AsyncServiceTokensResource - -from .bookmarks import BookmarksResource, AsyncBookmarksResource - -from .keys import KeysResource, AsyncKeysResource - -from .logs.logs import LogsResource, AsyncLogsResource - -from .users.users import UsersResource, AsyncUsersResource - -from .custom_pages import CustomPagesResource, AsyncCustomPagesResource - -from .tags import TagsResource, AsyncTagsResource - -from .policies import PoliciesResource, AsyncPoliciesResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from .applications import ( - ApplicationsResource, - AsyncApplicationsResource, - ApplicationsResourceWithRawResponse, - AsyncApplicationsResourceWithRawResponse, - ApplicationsResourceWithStreamingResponse, - AsyncApplicationsResourceWithStreamingResponse, -) -from .certificates import ( - CertificatesResource, - AsyncCertificatesResource, - CertificatesResourceWithRawResponse, - AsyncCertificatesResourceWithRawResponse, - CertificatesResourceWithStreamingResponse, - AsyncCertificatesResourceWithStreamingResponse, -) -from .groups import ( - GroupsResource, - AsyncGroupsResource, - GroupsResourceWithRawResponse, - AsyncGroupsResourceWithRawResponse, - GroupsResourceWithStreamingResponse, - AsyncGroupsResourceWithStreamingResponse, -) -from .service_tokens import ( - ServiceTokensResource, - AsyncServiceTokensResource, - ServiceTokensResourceWithRawResponse, - AsyncServiceTokensResourceWithRawResponse, - ServiceTokensResourceWithStreamingResponse, - AsyncServiceTokensResourceWithStreamingResponse, -) -from .bookmarks import ( - BookmarksResource, - AsyncBookmarksResource, - BookmarksResourceWithRawResponse, - AsyncBookmarksResourceWithRawResponse, - BookmarksResourceWithStreamingResponse, - AsyncBookmarksResourceWithStreamingResponse, -) from .keys import ( KeysResource, AsyncKeysResource, @@ -89,6 +18,14 @@ from .logs import ( LogsResourceWithStreamingResponse, AsyncLogsResourceWithStreamingResponse, ) +from .tags import ( + TagsResource, + AsyncTagsResource, + TagsResourceWithRawResponse, + AsyncTagsResourceWithRawResponse, + TagsResourceWithStreamingResponse, + AsyncTagsResourceWithStreamingResponse, +) from .users import ( UsersResource, AsyncUsersResource, @@ -97,21 +34,13 @@ from .users import ( UsersResourceWithStreamingResponse, AsyncUsersResourceWithStreamingResponse, ) -from .custom_pages import ( - CustomPagesResource, - AsyncCustomPagesResource, - CustomPagesResourceWithRawResponse, - AsyncCustomPagesResourceWithRawResponse, - CustomPagesResourceWithStreamingResponse, - AsyncCustomPagesResourceWithStreamingResponse, -) -from .tags import ( - TagsResource, - AsyncTagsResource, - TagsResourceWithRawResponse, - AsyncTagsResourceWithRawResponse, - TagsResourceWithStreamingResponse, - AsyncTagsResourceWithStreamingResponse, +from .groups import ( + GroupsResource, + AsyncGroupsResource, + GroupsResourceWithRawResponse, + AsyncGroupsResourceWithRawResponse, + GroupsResourceWithStreamingResponse, + AsyncGroupsResourceWithStreamingResponse, ) from .policies import ( PoliciesResource, @@ -121,6 +50,52 @@ from .policies import ( PoliciesResourceWithStreamingResponse, AsyncPoliciesResourceWithStreamingResponse, ) +from .bookmarks import ( + BookmarksResource, + AsyncBookmarksResource, + BookmarksResourceWithRawResponse, + AsyncBookmarksResourceWithRawResponse, + BookmarksResourceWithStreamingResponse, + AsyncBookmarksResourceWithStreamingResponse, +) +from .logs.logs import LogsResource, AsyncLogsResource +from ...._compat import cached_property +from .users.users import UsersResource, AsyncUsersResource +from ...._resource import SyncAPIResource, AsyncAPIResource +from .applications import ( + ApplicationsResource, + AsyncApplicationsResource, + ApplicationsResourceWithRawResponse, + AsyncApplicationsResourceWithRawResponse, + ApplicationsResourceWithStreamingResponse, + AsyncApplicationsResourceWithStreamingResponse, +) +from .certificates import ( + CertificatesResource, + AsyncCertificatesResource, + CertificatesResourceWithRawResponse, + AsyncCertificatesResourceWithRawResponse, + CertificatesResourceWithStreamingResponse, + AsyncCertificatesResourceWithStreamingResponse, +) +from .custom_pages import ( + CustomPagesResource, + AsyncCustomPagesResource, + CustomPagesResourceWithRawResponse, + AsyncCustomPagesResourceWithRawResponse, + CustomPagesResourceWithStreamingResponse, + AsyncCustomPagesResourceWithStreamingResponse, +) +from .service_tokens import ( + ServiceTokensResource, + AsyncServiceTokensResource, + ServiceTokensResourceWithRawResponse, + AsyncServiceTokensResourceWithRawResponse, + ServiceTokensResourceWithStreamingResponse, + AsyncServiceTokensResourceWithStreamingResponse, +) +from .applications.applications import ApplicationsResource, AsyncApplicationsResource +from .certificates.certificates import CertificatesResource, AsyncCertificatesResource __all__ = ["AccessResource", "AsyncAccessResource"] diff --git a/src/cloudflare/resources/zero_trust/access/applications/__init__.py b/src/cloudflare/resources/zero_trust/access/applications/__init__.py index a5adf4ee0..35dcb92c4 100644 --- a/src/cloudflare/resources/zero_trust/access/applications/__init__.py +++ b/src/cloudflare/resources/zero_trust/access/applications/__init__.py @@ -1,39 +1,44 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .cas import CAsResource, AsyncCAsResource from .cas import ( + CAsResource, + AsyncCAsResource, CAsResourceWithRawResponse, AsyncCAsResourceWithRawResponse, CAsResourceWithStreamingResponse, AsyncCAsResourceWithStreamingResponse, ) -from .user_policy_checks import UserPolicyChecksResource, AsyncUserPolicyChecksResource -from .user_policy_checks import ( - UserPolicyChecksResourceWithRawResponse, - AsyncUserPolicyChecksResourceWithRawResponse, - UserPolicyChecksResourceWithStreamingResponse, - AsyncUserPolicyChecksResourceWithStreamingResponse, -) -from .policies import PoliciesResource, AsyncPoliciesResource from .policies import ( + PoliciesResource, + AsyncPoliciesResource, PoliciesResourceWithRawResponse, AsyncPoliciesResourceWithRawResponse, PoliciesResourceWithStreamingResponse, AsyncPoliciesResourceWithStreamingResponse, ) -from .policy_tests import PolicyTestsResource, AsyncPolicyTestsResource +from .applications import ( + ApplicationsResource, + AsyncApplicationsResource, + ApplicationsResourceWithRawResponse, + AsyncApplicationsResourceWithRawResponse, + ApplicationsResourceWithStreamingResponse, + AsyncApplicationsResourceWithStreamingResponse, +) from .policy_tests import ( + PolicyTestsResource, + AsyncPolicyTestsResource, PolicyTestsResourceWithRawResponse, AsyncPolicyTestsResourceWithRawResponse, PolicyTestsResourceWithStreamingResponse, AsyncPolicyTestsResourceWithStreamingResponse, ) -from .applications import ApplicationsResource, AsyncApplicationsResource -from .applications import ( - ApplicationsResourceWithRawResponse, - AsyncApplicationsResourceWithRawResponse, - ApplicationsResourceWithStreamingResponse, - AsyncApplicationsResourceWithStreamingResponse, +from .user_policy_checks import ( + UserPolicyChecksResource, + AsyncUserPolicyChecksResource, + UserPolicyChecksResourceWithRawResponse, + AsyncUserPolicyChecksResourceWithRawResponse, + UserPolicyChecksResourceWithStreamingResponse, + AsyncUserPolicyChecksResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/zero_trust/access/applications/applications.py b/src/cloudflare/resources/zero_trust/access/applications/applications.py index c8116387e..ff00cc95e 100644 --- a/src/cloudflare/resources/zero_trust/access/applications/applications.py +++ b/src/cloudflare/resources/zero_trust/access/applications/applications.py @@ -2,89 +2,10 @@ from __future__ import annotations +from typing import Any, List, Type, Iterable, Optional, cast, overload + import httpx -from .cas import CAsResource, AsyncCAsResource - -from ....._compat import cached_property - -from .user_policy_checks import UserPolicyChecksResource, AsyncUserPolicyChecksResource - -from .policies import PoliciesResource, AsyncPoliciesResource - -from .policy_tests.policy_tests import PolicyTestsResource, AsyncPolicyTestsResource - -from typing import List, Optional, Iterable, Type - -from .....types.zero_trust.access.allowed_idps import AllowedIdPs - -from .....types.zero_trust.access.cors_headers_param import CORSHeadersParam - -from .....types.zero_trust.access.self_hosted_domains import SelfHostedDomains - -from .....types.zero_trust.access.application_create_response import ApplicationCreateResponse - -from .....types.zero_trust.access.application_type import ApplicationType - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options, AsyncPaginator - -from .....types.zero_trust.access.app_id import AppID - -from .....types.zero_trust.access.application_update_response import ApplicationUpdateResponse - -from .....types.zero_trust.access.application_list_response import ApplicationListResponse - -from .....pagination import SyncSinglePage, AsyncSinglePage - -from .....types.zero_trust.access.application_delete_response import ApplicationDeleteResponse - -from .....types.zero_trust.access.application_get_response import ApplicationGetResponse - -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -from .....types.zero_trust.access import application_create_params, application_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.zero_trust.access import application_create_params -from .....types.zero_trust.access import application_update_params -from .....types.zero_trust.access import CORSHeaders -from .....types.zero_trust.access import CORSHeaders -from .....types.zero_trust.access import CORSHeaders -from .....types.zero_trust.access import ApplicationType -from .....types.zero_trust.access import ApplicationType -from .....types.zero_trust.access import ApplicationType -from .....types.zero_trust.access import AppID -from .....types.zero_trust.access import CORSHeaders -from .....types.zero_trust.access import AppID -from .....types.zero_trust.access import AppID -from .....types.zero_trust.access import CORSHeaders -from .....types.zero_trust.access import AppID -from .....types.zero_trust.access import CORSHeaders -from .....types.zero_trust.access import AppID -from .....types.zero_trust.access import ApplicationType -from .....types.zero_trust.access import AppID -from .....types.zero_trust.access import ApplicationType -from .....types.zero_trust.access import AppID -from .....types.zero_trust.access import ApplicationType -from .....types.zero_trust.access import AppID -from .....types.zero_trust.access import AppID -from .....types.zero_trust.access import AppID -from .....types.zero_trust.access import AppID from .cas import ( CAsResource, AsyncCAsResource, @@ -93,14 +14,6 @@ from .cas import ( CAsResourceWithStreamingResponse, AsyncCAsResourceWithStreamingResponse, ) -from .user_policy_checks import ( - UserPolicyChecksResource, - AsyncUserPolicyChecksResource, - UserPolicyChecksResourceWithRawResponse, - AsyncUserPolicyChecksResourceWithRawResponse, - UserPolicyChecksResourceWithStreamingResponse, - AsyncUserPolicyChecksResourceWithStreamingResponse, -) from .policies import ( PoliciesResource, AsyncPoliciesResource, @@ -109,6 +22,12 @@ from .policies import ( PoliciesResourceWithStreamingResponse, AsyncPoliciesResourceWithStreamingResponse, ) +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) +from ....._compat import cached_property from .policy_tests import ( PolicyTestsResource, AsyncPolicyTestsResource, @@ -117,24 +36,41 @@ from .policy_tests import ( PolicyTestsResourceWithStreamingResponse, AsyncPolicyTestsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....._wrappers import ResultWrapper +from .....pagination import SyncSinglePage, AsyncSinglePage +from ....._base_client import AsyncPaginator, make_request_options +from .user_policy_checks import ( + UserPolicyChecksResource, + AsyncUserPolicyChecksResource, + UserPolicyChecksResourceWithRawResponse, + AsyncUserPolicyChecksResourceWithRawResponse, + UserPolicyChecksResourceWithStreamingResponse, + AsyncUserPolicyChecksResourceWithStreamingResponse, +) +from .policy_tests.policy_tests import PolicyTestsResource, AsyncPolicyTestsResource +from .....types.zero_trust.access import ( + AppID, + ApplicationType, + application_create_params, + application_update_params, +) +from .....types.zero_trust.access.app_id import AppID +from .....types.zero_trust.access.allowed_idps import AllowedIdPs +from .....types.zero_trust.access.application_type import ApplicationType +from .....types.zero_trust.access.cors_headers_param import CORSHeadersParam +from .....types.zero_trust.access.self_hosted_domains import SelfHostedDomains +from .....types.zero_trust.access.application_get_response import ApplicationGetResponse +from .....types.zero_trust.access.application_list_response import ApplicationListResponse +from .....types.zero_trust.access.application_create_response import ApplicationCreateResponse +from .....types.zero_trust.access.application_delete_response import ApplicationDeleteResponse +from .....types.zero_trust.access.application_update_response import ApplicationUpdateResponse __all__ = ["ApplicationsResource", "AsyncApplicationsResource"] diff --git a/src/cloudflare/resources/zero_trust/access/applications/cas.py b/src/cloudflare/resources/zero_trust/access/applications/cas.py index d83998eff..71c9d03ed 100644 --- a/src/cloudflare/resources/zero_trust/access/applications/cas.py +++ b/src/cloudflare/resources/zero_trust/access/applications/cas.py @@ -2,42 +2,24 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._compat import cached_property - -from ....._wrappers import ResultWrapper - -from typing import Optional, Type - -from ....._base_client import make_request_options, AsyncPaginator - -from .....types.zero_trust.access.applications.ca import CA - -from .....pagination import SyncSinglePage, AsyncSinglePage - -from .....types.zero_trust.access.applications.ca_delete_response import CADeleteResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._wrappers import ResultWrapper +from .....pagination import SyncSinglePage, AsyncSinglePage +from ....._base_client import AsyncPaginator, make_request_options +from .....types.zero_trust.access.applications.ca import CA +from .....types.zero_trust.access.applications.ca_delete_response import CADeleteResponse __all__ = ["CAsResource", "AsyncCAsResource"] diff --git a/src/cloudflare/resources/zero_trust/access/applications/policies.py b/src/cloudflare/resources/zero_trust/access/applications/policies.py index 5597b88e7..0214cb2b8 100644 --- a/src/cloudflare/resources/zero_trust/access/applications/policies.py +++ b/src/cloudflare/resources/zero_trust/access/applications/policies.py @@ -2,56 +2,33 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.zero_trust.access.application_policy import ApplicationPolicy - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Iterable - -from ....._base_client import make_request_options, AsyncPaginator - -from .....types.zero_trust.access.decision import Decision - -from .....types.zero_trust.access_rule_param import AccessRuleParam - -from .....types.zero_trust.access.applications.approval_group_param import ApprovalGroupParam - -from .....pagination import SyncSinglePage, AsyncSinglePage - -from .....types.zero_trust.access.applications.policy_delete_response import PolicyDeleteResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.zero_trust.access.applications import policy_create_params -from .....types.zero_trust.access.applications import policy_update_params +from ....._wrappers import ResultWrapper +from .....pagination import SyncSinglePage, AsyncSinglePage +from ....._base_client import AsyncPaginator, make_request_options from .....types.zero_trust.access import Decision -from .....types.zero_trust.access import Decision -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .....types.zero_trust.access.decision import Decision +from .....types.zero_trust.access_rule_param import AccessRuleParam +from .....types.zero_trust.access.applications import policy_create_params, policy_update_params +from .....types.zero_trust.access.application_policy import ApplicationPolicy +from .....types.zero_trust.access.applications.approval_group_param import ApprovalGroupParam +from .....types.zero_trust.access.applications.policy_delete_response import PolicyDeleteResponse __all__ = ["PoliciesResource", "AsyncPoliciesResource"] diff --git a/src/cloudflare/resources/zero_trust/access/applications/policy_tests/__init__.py b/src/cloudflare/resources/zero_trust/access/applications/policy_tests/__init__.py index b543a5512..4be05f55f 100755 --- a/src/cloudflare/resources/zero_trust/access/applications/policy_tests/__init__.py +++ b/src/cloudflare/resources/zero_trust/access/applications/policy_tests/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .users import UsersResource, AsyncUsersResource from .users import ( + UsersResource, + AsyncUsersResource, UsersResourceWithRawResponse, AsyncUsersResourceWithRawResponse, UsersResourceWithStreamingResponse, AsyncUsersResourceWithStreamingResponse, ) -from .policy_tests import PolicyTestsResource, AsyncPolicyTestsResource from .policy_tests import ( + PolicyTestsResource, + AsyncPolicyTestsResource, PolicyTestsResourceWithRawResponse, AsyncPolicyTestsResourceWithRawResponse, PolicyTestsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/zero_trust/access/applications/policy_tests/policy_tests.py b/src/cloudflare/resources/zero_trust/access/applications/policy_tests/policy_tests.py index 60461a871..5f0cb024b 100755 --- a/src/cloudflare/resources/zero_trust/access/applications/policy_tests/policy_tests.py +++ b/src/cloudflare/resources/zero_trust/access/applications/policy_tests/policy_tests.py @@ -2,44 +2,10 @@ from __future__ import annotations -import httpx - -from .users import UsersResource, AsyncUsersResource - -from ......_compat import cached_property - -from ......types.zero_trust.access.applications.policy_test_create_response import PolicyTestCreateResponse - -from ......_utils import maybe_transform, async_maybe_transform - -from ......_base_client import make_request_options - from typing import Iterable -from ......types.zero_trust.access.applications.approval_group_param import ApprovalGroupParam +import httpx -from ......types.zero_trust.access.decision import Decision - -from ......types.zero_trust.access_rule_param import AccessRuleParam - -from ......types.zero_trust.access.applications.policy_test_get_response import PolicyTestGetResponse - -from ......_response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......_resource import SyncAPIResource, AsyncAPIResource -from ......types import shared_params -from ......types.zero_trust.access.applications import policy_test_create_params -from ......types.zero_trust.access import Decision from .users import ( UsersResource, AsyncUsersResource, @@ -48,6 +14,27 @@ from .users import ( UsersResourceWithStreamingResponse, AsyncUsersResourceWithStreamingResponse, ) +from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ......_utils import ( + maybe_transform, + async_maybe_transform, +) +from ......_compat import cached_property +from ......_resource import SyncAPIResource, AsyncAPIResource +from ......_response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ......_base_client import make_request_options +from ......types.zero_trust.access import Decision +from ......types.zero_trust.access.decision import Decision +from ......types.zero_trust.access_rule_param import AccessRuleParam +from ......types.zero_trust.access.applications import policy_test_create_params +from ......types.zero_trust.access.applications.approval_group_param import ApprovalGroupParam +from ......types.zero_trust.access.applications.policy_test_get_response import PolicyTestGetResponse +from ......types.zero_trust.access.applications.policy_test_create_response import PolicyTestCreateResponse __all__ = ["PolicyTestsResource", "AsyncPolicyTestsResource"] diff --git a/src/cloudflare/resources/zero_trust/access/applications/policy_tests/users.py b/src/cloudflare/resources/zero_trust/access/applications/policy_tests/users.py index 6f51c24f2..ebf517f84 100755 --- a/src/cloudflare/resources/zero_trust/access/applications/policy_tests/users.py +++ b/src/cloudflare/resources/zero_trust/access/applications/policy_tests/users.py @@ -4,26 +4,17 @@ from __future__ import annotations import httpx +from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven from ......_compat import cached_property - -from ......types.zero_trust.access.applications.policy_tests.user_list_response import UserListResponse - -from ......_base_client import make_request_options - +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......_resource import SyncAPIResource, AsyncAPIResource -from ......types import shared_params +from ......_base_client import make_request_options +from ......types.zero_trust.access.applications.policy_tests.user_list_response import UserListResponse __all__ = ["UsersResource", "AsyncUsersResource"] diff --git a/src/cloudflare/resources/zero_trust/access/applications/user_policy_checks.py b/src/cloudflare/resources/zero_trust/access/applications/user_policy_checks.py index 56c21d70f..cb713939f 100644 --- a/src/cloudflare/resources/zero_trust/access/applications/user_policy_checks.py +++ b/src/cloudflare/resources/zero_trust/access/applications/user_policy_checks.py @@ -2,37 +2,24 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._compat import cached_property - -from .....types.zero_trust.access.applications.user_policy_check_list_response import UserPolicyCheckListResponse - -from ....._wrappers import ResultWrapper - -from typing import Optional, Type - -from ....._base_client import make_request_options - -from .....types.zero_trust.access.app_id import AppID - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.zero_trust.access import AppID -from typing import cast -from typing import cast +from .....types.zero_trust.access.app_id import AppID +from .....types.zero_trust.access.applications.user_policy_check_list_response import UserPolicyCheckListResponse __all__ = ["UserPolicyChecksResource", "AsyncUserPolicyChecksResource"] diff --git a/src/cloudflare/resources/zero_trust/access/bookmarks.py b/src/cloudflare/resources/zero_trust/access/bookmarks.py index 41d83f3fc..38b1802f3 100644 --- a/src/cloudflare/resources/zero_trust/access/bookmarks.py +++ b/src/cloudflare/resources/zero_trust/access/bookmarks.py @@ -2,48 +2,29 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.access.bookmark import Bookmark - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options, AsyncPaginator - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ....types.zero_trust.access.bookmark_delete_response import BookmarkDeleteResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.zero_trust.access import bookmark_create_params -from ....types.zero_trust.access import bookmark_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.zero_trust.access import bookmark_create_params, bookmark_update_params +from ....types.zero_trust.access.bookmark import Bookmark +from ....types.zero_trust.access.bookmark_delete_response import BookmarkDeleteResponse __all__ = ["BookmarksResource", "AsyncBookmarksResource"] diff --git a/src/cloudflare/resources/zero_trust/access/certificates/__init__.py b/src/cloudflare/resources/zero_trust/access/certificates/__init__.py index 77f488c29..41b51f15d 100644 --- a/src/cloudflare/resources/zero_trust/access/certificates/__init__.py +++ b/src/cloudflare/resources/zero_trust/access/certificates/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .settings import SettingsResource, AsyncSettingsResource from .settings import ( + SettingsResource, + AsyncSettingsResource, SettingsResourceWithRawResponse, AsyncSettingsResourceWithRawResponse, SettingsResourceWithStreamingResponse, AsyncSettingsResourceWithStreamingResponse, ) -from .certificates import CertificatesResource, AsyncCertificatesResource from .certificates import ( + CertificatesResource, + AsyncCertificatesResource, CertificatesResourceWithRawResponse, AsyncCertificatesResourceWithRawResponse, CertificatesResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/zero_trust/access/certificates/certificates.py b/src/cloudflare/resources/zero_trust/access/certificates/certificates.py index 989a14eae..6584f895e 100644 --- a/src/cloudflare/resources/zero_trust/access/certificates/certificates.py +++ b/src/cloudflare/resources/zero_trust/access/certificates/certificates.py @@ -2,44 +2,10 @@ from __future__ import annotations +from typing import List, Type, Optional, cast + import httpx -from .settings import SettingsResource, AsyncSettingsResource - -from ....._compat import cached_property - -from .....types.zero_trust.access.certificate import Certificate - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, List - -from ....._base_client import make_request_options, AsyncPaginator - -from .....types.zero_trust.access.associated_hostnames import AssociatedHostnames - -from .....pagination import SyncSinglePage, AsyncSinglePage - -from .....types.zero_trust.access.certificate_delete_response import CertificateDeleteResponse - -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.zero_trust.access import certificate_create_params -from .....types.zero_trust.access import certificate_update_params from .settings import ( SettingsResource, AsyncSettingsResource, @@ -48,14 +14,26 @@ from .settings import ( SettingsResourceWithStreamingResponse, AsyncSettingsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....._wrappers import ResultWrapper +from .....pagination import SyncSinglePage, AsyncSinglePage +from ....._base_client import AsyncPaginator, make_request_options +from .....types.zero_trust.access import certificate_create_params, certificate_update_params +from .....types.zero_trust.access.certificate import Certificate +from .....types.zero_trust.access.associated_hostnames import AssociatedHostnames +from .....types.zero_trust.access.certificate_delete_response import CertificateDeleteResponse __all__ = ["CertificatesResource", "AsyncCertificatesResource"] diff --git a/src/cloudflare/resources/zero_trust/access/certificates/settings.py b/src/cloudflare/resources/zero_trust/access/certificates/settings.py index b0a25722b..597647546 100644 --- a/src/cloudflare/resources/zero_trust/access/certificates/settings.py +++ b/src/cloudflare/resources/zero_trust/access/certificates/settings.py @@ -2,43 +2,29 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.zero_trust.access.certificates.setting_update_response import SettingUpdateResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Iterable - -from ....._base_client import make_request_options - -from .....types.zero_trust.access.certificates.certificate_settings_param import CertificateSettingsParam - -from .....types.zero_trust.access.certificates.setting_get_response import SettingGetResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.zero_trust.access.certificates import setting_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .....types.zero_trust.access.certificates.setting_get_response import SettingGetResponse +from .....types.zero_trust.access.certificates.setting_update_response import SettingUpdateResponse +from .....types.zero_trust.access.certificates.certificate_settings_param import CertificateSettingsParam __all__ = ["SettingsResource", "AsyncSettingsResource"] diff --git a/src/cloudflare/resources/zero_trust/access/custom_pages.py b/src/cloudflare/resources/zero_trust/access/custom_pages.py index de8106db3..7290b33dd 100644 --- a/src/cloudflare/resources/zero_trust/access/custom_pages.py +++ b/src/cloudflare/resources/zero_trust/access/custom_pages.py @@ -2,52 +2,31 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.access.custom_page_without_html import CustomPageWithoutHTML - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ....types.zero_trust.access.custom_page_delete_response import CustomPageDeleteResponse - -from ....types.zero_trust.access.custom_page import CustomPage - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.zero_trust.access import custom_page_create_params -from ....types.zero_trust.access import custom_page_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.zero_trust.access import custom_page_create_params, custom_page_update_params +from ....types.zero_trust.access.custom_page import CustomPage +from ....types.zero_trust.access.custom_page_without_html import CustomPageWithoutHTML +from ....types.zero_trust.access.custom_page_delete_response import CustomPageDeleteResponse __all__ = ["CustomPagesResource", "AsyncCustomPagesResource"] diff --git a/src/cloudflare/resources/zero_trust/access/groups.py b/src/cloudflare/resources/zero_trust/access/groups.py index 53fcaf1a1..bb9002a04 100644 --- a/src/cloudflare/resources/zero_trust/access/groups.py +++ b/src/cloudflare/resources/zero_trust/access/groups.py @@ -2,50 +2,30 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.access.zero_trust_group import ZeroTrustGroup - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Iterable - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.zero_trust.access_rule_param import AccessRuleParam - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ....types.zero_trust.access.group_delete_response import GroupDeleteResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.zero_trust.access import group_create_params -from ....types.zero_trust.access import group_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.zero_trust.access import group_create_params, group_update_params +from ....types.zero_trust.access_rule_param import AccessRuleParam +from ....types.zero_trust.access.zero_trust_group import ZeroTrustGroup +from ....types.zero_trust.access.group_delete_response import GroupDeleteResponse __all__ = ["GroupsResource", "AsyncGroupsResource"] diff --git a/src/cloudflare/resources/zero_trust/access/keys.py b/src/cloudflare/resources/zero_trust/access/keys.py index 6529733cf..8e9f9f626 100644 --- a/src/cloudflare/resources/zero_trust/access/keys.py +++ b/src/cloudflare/resources/zero_trust/access/keys.py @@ -2,45 +2,29 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.access.key_update_response import KeyUpdateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options - -from ....types.zero_trust.access.key_get_response import KeyGetResponse - -from ....types.zero_trust.access.key_rotate_response import KeyRotateResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.zero_trust.access import key_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....types.zero_trust.access.key_get_response import KeyGetResponse +from ....types.zero_trust.access.key_rotate_response import KeyRotateResponse +from ....types.zero_trust.access.key_update_response import KeyUpdateResponse __all__ = ["KeysResource", "AsyncKeysResource"] diff --git a/src/cloudflare/resources/zero_trust/access/logs/__init__.py b/src/cloudflare/resources/zero_trust/access/logs/__init__.py index bc2e2be79..7479c1fbe 100644 --- a/src/cloudflare/resources/zero_trust/access/logs/__init__.py +++ b/src/cloudflare/resources/zero_trust/access/logs/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .access_requests import AccessRequestsResource, AsyncAccessRequestsResource -from .access_requests import ( - AccessRequestsResourceWithRawResponse, - AsyncAccessRequestsResourceWithRawResponse, - AccessRequestsResourceWithStreamingResponse, - AsyncAccessRequestsResourceWithStreamingResponse, -) -from .logs import LogsResource, AsyncLogsResource from .logs import ( + LogsResource, + AsyncLogsResource, LogsResourceWithRawResponse, AsyncLogsResourceWithRawResponse, LogsResourceWithStreamingResponse, AsyncLogsResourceWithStreamingResponse, ) +from .access_requests import ( + AccessRequestsResource, + AsyncAccessRequestsResource, + AccessRequestsResourceWithRawResponse, + AsyncAccessRequestsResourceWithRawResponse, + AccessRequestsResourceWithStreamingResponse, + AsyncAccessRequestsResourceWithStreamingResponse, +) __all__ = [ "AccessRequestsResource", diff --git a/src/cloudflare/resources/zero_trust/access/logs/access_requests.py b/src/cloudflare/resources/zero_trust/access/logs/access_requests.py index 2c09754cf..8e31f904d 100644 --- a/src/cloudflare/resources/zero_trust/access/logs/access_requests.py +++ b/src/cloudflare/resources/zero_trust/access/logs/access_requests.py @@ -2,41 +2,29 @@ from __future__ import annotations +from typing import Type, Union, Optional, cast +from datetime import datetime +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.zero_trust.access.logs.access_request_list_response import AccessRequestListResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Union - -from ....._base_client import make_request_options - -from typing_extensions import Literal - -from datetime import datetime - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.zero_trust.access.logs import access_request_list_params -from typing import cast -from typing import cast +from .....types.zero_trust.access.logs.access_request_list_response import AccessRequestListResponse __all__ = ["AccessRequestsResource", "AsyncAccessRequestsResource"] diff --git a/src/cloudflare/resources/zero_trust/access/logs/logs.py b/src/cloudflare/resources/zero_trust/access/logs/logs.py index da4a3b265..39226d429 100644 --- a/src/cloudflare/resources/zero_trust/access/logs/logs.py +++ b/src/cloudflare/resources/zero_trust/access/logs/logs.py @@ -2,17 +2,8 @@ from __future__ import annotations -from .access_requests import AccessRequestsResource, AsyncAccessRequestsResource - from ....._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params from .access_requests import ( AccessRequestsResource, AsyncAccessRequestsResource, diff --git a/src/cloudflare/resources/zero_trust/access/policies.py b/src/cloudflare/resources/zero_trust/access/policies.py index 346db1607..a18331e7a 100644 --- a/src/cloudflare/resources/zero_trust/access/policies.py +++ b/src/cloudflare/resources/zero_trust/access/policies.py @@ -2,62 +2,35 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.access.policy_create_response import PolicyCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Iterable - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.zero_trust.access.decision import Decision - -from ....types.zero_trust.access_rule_param import AccessRuleParam - -from ....types.zero_trust.access.applications.approval_group_param import ApprovalGroupParam - -from ....types.zero_trust.access.policy_update_response import PolicyUpdateResponse - -from ....types.zero_trust.access.policy_list_response import PolicyListResponse - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ....types.zero_trust.access.policy_delete_response import PolicyDeleteResponse - -from ....types.zero_trust.access.policy_get_response import PolicyGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.zero_trust.access import policy_create_params -from ....types.zero_trust.access import policy_update_params -from ....types.zero_trust.access import Decision -from ....types.zero_trust.access import Decision -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.zero_trust.access import Decision, policy_create_params, policy_update_params +from ....types.zero_trust.access.decision import Decision +from ....types.zero_trust.access_rule_param import AccessRuleParam +from ....types.zero_trust.access.policy_get_response import PolicyGetResponse +from ....types.zero_trust.access.policy_list_response import PolicyListResponse +from ....types.zero_trust.access.policy_create_response import PolicyCreateResponse +from ....types.zero_trust.access.policy_delete_response import PolicyDeleteResponse +from ....types.zero_trust.access.policy_update_response import PolicyUpdateResponse +from ....types.zero_trust.access.applications.approval_group_param import ApprovalGroupParam __all__ = ["PoliciesResource", "AsyncPoliciesResource"] diff --git a/src/cloudflare/resources/zero_trust/access/service_tokens.py b/src/cloudflare/resources/zero_trust/access/service_tokens.py index e559513bd..85d275e4b 100644 --- a/src/cloudflare/resources/zero_trust/access/service_tokens.py +++ b/src/cloudflare/resources/zero_trust/access/service_tokens.py @@ -2,54 +2,30 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.access.service_token_create_response import ServiceTokenCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.zero_trust.access.service_token import ServiceToken - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ....types.zero_trust.access.service_token_rotate_response import ServiceTokenRotateResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.zero_trust.access import service_token_create_params -from ....types.zero_trust.access import service_token_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.zero_trust.access import service_token_create_params, service_token_update_params +from ....types.zero_trust.access.service_token import ServiceToken +from ....types.zero_trust.access.service_token_create_response import ServiceTokenCreateResponse +from ....types.zero_trust.access.service_token_rotate_response import ServiceTokenRotateResponse __all__ = ["ServiceTokensResource", "AsyncServiceTokensResource"] diff --git a/src/cloudflare/resources/zero_trust/access/tags.py b/src/cloudflare/resources/zero_trust/access/tags.py index 9afcef5bd..4c25db07d 100644 --- a/src/cloudflare/resources/zero_trust/access/tags.py +++ b/src/cloudflare/resources/zero_trust/access/tags.py @@ -2,48 +2,29 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.access.tag import Tag - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options, AsyncPaginator - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ....types.zero_trust.access.tag_delete_response import TagDeleteResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.zero_trust.access import tag_create_params -from ....types.zero_trust.access import tag_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.zero_trust.access import tag_create_params, tag_update_params +from ....types.zero_trust.access.tag import Tag +from ....types.zero_trust.access.tag_delete_response import TagDeleteResponse __all__ = ["TagsResource", "AsyncTagsResource"] diff --git a/src/cloudflare/resources/zero_trust/access/users/__init__.py b/src/cloudflare/resources/zero_trust/access/users/__init__.py index 71a62d610..c5766c142 100644 --- a/src/cloudflare/resources/zero_trust/access/users/__init__.py +++ b/src/cloudflare/resources/zero_trust/access/users/__init__.py @@ -1,32 +1,36 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .active_sessions import ActiveSessionsResource, AsyncActiveSessionsResource -from .active_sessions import ( - ActiveSessionsResourceWithRawResponse, - AsyncActiveSessionsResourceWithRawResponse, - ActiveSessionsResourceWithStreamingResponse, - AsyncActiveSessionsResourceWithStreamingResponse, +from .users import ( + UsersResource, + AsyncUsersResource, + UsersResourceWithRawResponse, + AsyncUsersResourceWithRawResponse, + UsersResourceWithStreamingResponse, + AsyncUsersResourceWithStreamingResponse, ) -from .last_seen_identity import LastSeenIdentityResource, AsyncLastSeenIdentityResource -from .last_seen_identity import ( - LastSeenIdentityResourceWithRawResponse, - AsyncLastSeenIdentityResourceWithRawResponse, - LastSeenIdentityResourceWithStreamingResponse, - AsyncLastSeenIdentityResourceWithStreamingResponse, -) -from .failed_logins import FailedLoginsResource, AsyncFailedLoginsResource from .failed_logins import ( + FailedLoginsResource, + AsyncFailedLoginsResource, FailedLoginsResourceWithRawResponse, AsyncFailedLoginsResourceWithRawResponse, FailedLoginsResourceWithStreamingResponse, AsyncFailedLoginsResourceWithStreamingResponse, ) -from .users import UsersResource, AsyncUsersResource -from .users import ( - UsersResourceWithRawResponse, - AsyncUsersResourceWithRawResponse, - UsersResourceWithStreamingResponse, - AsyncUsersResourceWithStreamingResponse, +from .active_sessions import ( + ActiveSessionsResource, + AsyncActiveSessionsResource, + ActiveSessionsResourceWithRawResponse, + AsyncActiveSessionsResourceWithRawResponse, + ActiveSessionsResourceWithStreamingResponse, + AsyncActiveSessionsResourceWithStreamingResponse, +) +from .last_seen_identity import ( + LastSeenIdentityResource, + AsyncLastSeenIdentityResource, + LastSeenIdentityResourceWithRawResponse, + AsyncLastSeenIdentityResourceWithRawResponse, + LastSeenIdentityResourceWithStreamingResponse, + AsyncLastSeenIdentityResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/zero_trust/access/users/active_sessions.py b/src/cloudflare/resources/zero_trust/access/users/active_sessions.py index fea48cd9d..a31050055 100644 --- a/src/cloudflare/resources/zero_trust/access/users/active_sessions.py +++ b/src/cloudflare/resources/zero_trust/access/users/active_sessions.py @@ -2,38 +2,24 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._compat import cached_property - -from .....types.zero_trust.access.users.active_session_list_response import ActiveSessionListResponse - -from .....pagination import SyncSinglePage, AsyncSinglePage - -from ....._base_client import make_request_options, AsyncPaginator - -from .....types.zero_trust.access.users.active_session_get_response import ActiveSessionGetResponse - -from ....._wrappers import ResultWrapper - -from typing import Optional, Type - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from typing import cast -from typing import cast +from ....._wrappers import ResultWrapper +from .....pagination import SyncSinglePage, AsyncSinglePage +from ....._base_client import AsyncPaginator, make_request_options +from .....types.zero_trust.access.users.active_session_get_response import ActiveSessionGetResponse +from .....types.zero_trust.access.users.active_session_list_response import ActiveSessionListResponse __all__ = ["ActiveSessionsResource", "AsyncActiveSessionsResource"] diff --git a/src/cloudflare/resources/zero_trust/access/users/failed_logins.py b/src/cloudflare/resources/zero_trust/access/users/failed_logins.py index 3b54b0a56..bf60de4dc 100644 --- a/src/cloudflare/resources/zero_trust/access/users/failed_logins.py +++ b/src/cloudflare/resources/zero_trust/access/users/failed_logins.py @@ -4,28 +4,18 @@ from __future__ import annotations import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._compat import cached_property - -from .....types.zero_trust.access.users.failed_login_list_response import FailedLoginListResponse - -from .....pagination import SyncSinglePage, AsyncSinglePage - -from ....._base_client import make_request_options, AsyncPaginator - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from .....pagination import SyncSinglePage, AsyncSinglePage +from ....._base_client import AsyncPaginator, make_request_options +from .....types.zero_trust.access.users.failed_login_list_response import FailedLoginListResponse __all__ = ["FailedLoginsResource", "AsyncFailedLoginsResource"] diff --git a/src/cloudflare/resources/zero_trust/access/users/last_seen_identity.py b/src/cloudflare/resources/zero_trust/access/users/last_seen_identity.py index f57821579..9a01ce912 100644 --- a/src/cloudflare/resources/zero_trust/access/users/last_seen_identity.py +++ b/src/cloudflare/resources/zero_trust/access/users/last_seen_identity.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._compat import cached_property - -from .....types.zero_trust.access.users.identity import Identity - -from ....._wrappers import ResultWrapper - -from typing import Optional, Type - -from ....._base_client import make_request_options - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from typing import cast -from typing import cast +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.zero_trust.access.users.identity import Identity __all__ = ["LastSeenIdentityResource", "AsyncLastSeenIdentityResource"] diff --git a/src/cloudflare/resources/zero_trust/access/users/users.py b/src/cloudflare/resources/zero_trust/access/users/users.py index 2309982c0..dd6d43cbe 100644 --- a/src/cloudflare/resources/zero_trust/access/users/users.py +++ b/src/cloudflare/resources/zero_trust/access/users/users.py @@ -4,50 +4,15 @@ from __future__ import annotations import httpx -from .active_sessions import ActiveSessionsResource, AsyncActiveSessionsResource - +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._compat import cached_property - -from .last_seen_identity import LastSeenIdentityResource, AsyncLastSeenIdentityResource - -from .failed_logins import FailedLoginsResource, AsyncFailedLoginsResource - -from .....types.zero_trust.access.access_user import AccessUser - -from .....pagination import SyncSinglePage, AsyncSinglePage - -from ....._base_client import make_request_options, AsyncPaginator - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .active_sessions import ( - ActiveSessionsResource, - AsyncActiveSessionsResource, - ActiveSessionsResourceWithRawResponse, - AsyncActiveSessionsResourceWithRawResponse, - ActiveSessionsResourceWithStreamingResponse, - AsyncActiveSessionsResourceWithStreamingResponse, -) -from .last_seen_identity import ( - LastSeenIdentityResource, - AsyncLastSeenIdentityResource, - LastSeenIdentityResourceWithRawResponse, - AsyncLastSeenIdentityResourceWithRawResponse, - LastSeenIdentityResourceWithStreamingResponse, - AsyncLastSeenIdentityResourceWithStreamingResponse, -) from .failed_logins import ( FailedLoginsResource, AsyncFailedLoginsResource, @@ -56,6 +21,25 @@ from .failed_logins import ( FailedLoginsResourceWithStreamingResponse, AsyncFailedLoginsResourceWithStreamingResponse, ) +from .....pagination import SyncSinglePage, AsyncSinglePage +from .active_sessions import ( + ActiveSessionsResource, + AsyncActiveSessionsResource, + ActiveSessionsResourceWithRawResponse, + AsyncActiveSessionsResourceWithRawResponse, + ActiveSessionsResourceWithStreamingResponse, + AsyncActiveSessionsResourceWithStreamingResponse, +) +from ....._base_client import AsyncPaginator, make_request_options +from .last_seen_identity import ( + LastSeenIdentityResource, + AsyncLastSeenIdentityResource, + LastSeenIdentityResourceWithRawResponse, + AsyncLastSeenIdentityResourceWithRawResponse, + LastSeenIdentityResourceWithStreamingResponse, + AsyncLastSeenIdentityResourceWithStreamingResponse, +) +from .....types.zero_trust.access.access_user import AccessUser __all__ = ["UsersResource", "AsyncUsersResource"] diff --git a/src/cloudflare/resources/zero_trust/connectivity_settings.py b/src/cloudflare/resources/zero_trust/connectivity_settings.py index c2c10458c..615f43e2d 100644 --- a/src/cloudflare/resources/zero_trust/connectivity_settings.py +++ b/src/cloudflare/resources/zero_trust/connectivity_settings.py @@ -2,41 +2,28 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.zero_trust.connectivity_setting_edit_response import ConnectivitySettingEditResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing import Type - -from ...types.zero_trust.connectivity_setting_get_response import ConnectivitySettingGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.zero_trust import connectivity_setting_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...types.zero_trust.connectivity_setting_get_response import ConnectivitySettingGetResponse +from ...types.zero_trust.connectivity_setting_edit_response import ConnectivitySettingEditResponse __all__ = ["ConnectivitySettingsResource", "AsyncConnectivitySettingsResource"] diff --git a/src/cloudflare/resources/zero_trust/devices/__init__.py b/src/cloudflare/resources/zero_trust/devices/__init__.py index bfd3935c6..3002bba61 100644 --- a/src/cloudflare/resources/zero_trust/devices/__init__.py +++ b/src/cloudflare/resources/zero_trust/devices/__init__.py @@ -1,68 +1,77 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .dex_tests import DEXTestsResource, AsyncDEXTestsResource -from .dex_tests import ( - DEXTestsResourceWithRawResponse, - AsyncDEXTestsResourceWithRawResponse, - DEXTestsResourceWithStreamingResponse, - AsyncDEXTestsResourceWithStreamingResponse, -) -from .networks import NetworksResource, AsyncNetworksResource -from .networks import ( - NetworksResourceWithRawResponse, - AsyncNetworksResourceWithRawResponse, - NetworksResourceWithStreamingResponse, - AsyncNetworksResourceWithStreamingResponse, -) -from .policies import PoliciesResource, AsyncPoliciesResource -from .policies import ( - PoliciesResourceWithRawResponse, - AsyncPoliciesResourceWithRawResponse, - PoliciesResourceWithStreamingResponse, - AsyncPoliciesResourceWithStreamingResponse, -) -from .posture import PostureResource, AsyncPostureResource -from .posture import ( - PostureResourceWithRawResponse, - AsyncPostureResourceWithRawResponse, - PostureResourceWithStreamingResponse, - AsyncPostureResourceWithStreamingResponse, -) -from .revoke import RevokeResource, AsyncRevokeResource from .revoke import ( + RevokeResource, + AsyncRevokeResource, RevokeResourceWithRawResponse, AsyncRevokeResourceWithRawResponse, RevokeResourceWithStreamingResponse, AsyncRevokeResourceWithStreamingResponse, ) -from .settings import SettingsResource, AsyncSettingsResource +from .devices import ( + DevicesResource, + AsyncDevicesResource, + DevicesResourceWithRawResponse, + AsyncDevicesResourceWithRawResponse, + DevicesResourceWithStreamingResponse, + AsyncDevicesResourceWithStreamingResponse, +) +from .posture import ( + PostureResource, + AsyncPostureResource, + PostureResourceWithRawResponse, + AsyncPostureResourceWithRawResponse, + PostureResourceWithStreamingResponse, + AsyncPostureResourceWithStreamingResponse, +) +from .networks import ( + NetworksResource, + AsyncNetworksResource, + NetworksResourceWithRawResponse, + AsyncNetworksResourceWithRawResponse, + NetworksResourceWithStreamingResponse, + AsyncNetworksResourceWithStreamingResponse, +) +from .policies import ( + PoliciesResource, + AsyncPoliciesResource, + PoliciesResourceWithRawResponse, + AsyncPoliciesResourceWithRawResponse, + PoliciesResourceWithStreamingResponse, + AsyncPoliciesResourceWithStreamingResponse, +) from .settings import ( + SettingsResource, + AsyncSettingsResource, SettingsResourceWithRawResponse, AsyncSettingsResourceWithRawResponse, SettingsResourceWithStreamingResponse, AsyncSettingsResourceWithStreamingResponse, ) -from .unrevoke import UnrevokeResource, AsyncUnrevokeResource from .unrevoke import ( + UnrevokeResource, + AsyncUnrevokeResource, UnrevokeResourceWithRawResponse, AsyncUnrevokeResourceWithRawResponse, UnrevokeResourceWithStreamingResponse, AsyncUnrevokeResourceWithStreamingResponse, ) -from .override_codes import OverrideCodesResource, AsyncOverrideCodesResource +from .dex_tests import ( + DEXTestsResource, + AsyncDEXTestsResource, + DEXTestsResourceWithRawResponse, + AsyncDEXTestsResourceWithRawResponse, + DEXTestsResourceWithStreamingResponse, + AsyncDEXTestsResourceWithStreamingResponse, +) from .override_codes import ( + OverrideCodesResource, + AsyncOverrideCodesResource, OverrideCodesResourceWithRawResponse, AsyncOverrideCodesResourceWithRawResponse, OverrideCodesResourceWithStreamingResponse, AsyncOverrideCodesResourceWithStreamingResponse, ) -from .devices import DevicesResource, AsyncDevicesResource -from .devices import ( - DevicesResourceWithRawResponse, - AsyncDevicesResourceWithRawResponse, - DevicesResourceWithStreamingResponse, - AsyncDevicesResourceWithStreamingResponse, -) __all__ = [ "DEXTestsResource", diff --git a/src/cloudflare/resources/zero_trust/devices/devices.py b/src/cloudflare/resources/zero_trust/devices/devices.py index ed61b1cfb..ef59e0833 100644 --- a/src/cloudflare/resources/zero_trust/devices/devices.py +++ b/src/cloudflare/resources/zero_trust/devices/devices.py @@ -2,59 +2,25 @@ from __future__ import annotations +from typing import Any, Optional, cast + import httpx -from .dex_tests import DEXTestsResource, AsyncDEXTestsResource - -from ...._compat import cached_property - -from .networks import NetworksResource, AsyncNetworksResource - -from .policies.policies import PoliciesResource, AsyncPoliciesResource - -from .posture.posture import PostureResource, AsyncPostureResource - -from .revoke import RevokeResource, AsyncRevokeResource - -from .settings import SettingsResource, AsyncSettingsResource - -from .unrevoke import UnrevokeResource, AsyncUnrevokeResource - -from .override_codes import OverrideCodesResource, AsyncOverrideCodesResource - -from ....types.zero_trust.device import Device - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.zero_trust.device_get_response import DeviceGetResponse - -from ...._wrappers import ResultWrapper - -from typing import Optional - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, +from .revoke import ( + RevokeResource, + AsyncRevokeResource, + RevokeResourceWithRawResponse, + AsyncRevokeResourceWithRawResponse, + RevokeResourceWithStreamingResponse, + AsyncRevokeResourceWithStreamingResponse, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from .dex_tests import ( - DEXTestsResource, - AsyncDEXTestsResource, - DEXTestsResourceWithRawResponse, - AsyncDEXTestsResourceWithRawResponse, - DEXTestsResourceWithStreamingResponse, - AsyncDEXTestsResourceWithStreamingResponse, +from .posture import ( + PostureResource, + AsyncPostureResource, + PostureResourceWithRawResponse, + AsyncPostureResourceWithRawResponse, + PostureResourceWithStreamingResponse, + AsyncPostureResourceWithStreamingResponse, ) from .networks import ( NetworksResource, @@ -72,22 +38,6 @@ from .policies import ( PoliciesResourceWithStreamingResponse, AsyncPoliciesResourceWithStreamingResponse, ) -from .posture import ( - PostureResource, - AsyncPostureResource, - PostureResourceWithRawResponse, - AsyncPostureResourceWithRawResponse, - PostureResourceWithStreamingResponse, - AsyncPostureResourceWithStreamingResponse, -) -from .revoke import ( - RevokeResource, - AsyncRevokeResource, - RevokeResourceWithRawResponse, - AsyncRevokeResourceWithRawResponse, - RevokeResourceWithStreamingResponse, - AsyncRevokeResourceWithStreamingResponse, -) from .settings import ( SettingsResource, AsyncSettingsResource, @@ -104,6 +54,25 @@ from .unrevoke import ( UnrevokeResourceWithStreamingResponse, AsyncUnrevokeResourceWithStreamingResponse, ) +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .dex_tests import ( + DEXTestsResource, + AsyncDEXTestsResource, + DEXTestsResourceWithRawResponse, + AsyncDEXTestsResourceWithRawResponse, + DEXTestsResourceWithStreamingResponse, + AsyncDEXTestsResourceWithStreamingResponse, +) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage from .override_codes import ( OverrideCodesResource, AsyncOverrideCodesResource, @@ -112,10 +81,11 @@ from .override_codes import ( OverrideCodesResourceWithStreamingResponse, AsyncOverrideCodesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._base_client import AsyncPaginator, make_request_options +from .posture.posture import PostureResource, AsyncPostureResource +from .policies.policies import PoliciesResource, AsyncPoliciesResource +from ....types.zero_trust.device import Device +from ....types.zero_trust.device_get_response import DeviceGetResponse __all__ = ["DevicesResource", "AsyncDevicesResource"] diff --git a/src/cloudflare/resources/zero_trust/devices/dex_tests.py b/src/cloudflare/resources/zero_trust/devices/dex_tests.py index 01a48f4e3..26c2c0330 100644 --- a/src/cloudflare/resources/zero_trust/devices/dex_tests.py +++ b/src/cloudflare/resources/zero_trust/devices/dex_tests.py @@ -2,54 +2,30 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.devices.schema_http import SchemaHTTP - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Iterable - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.zero_trust.devices.schema_data_param import SchemaDataParam - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ....types.zero_trust.devices.dex_test_delete_response import DEXTestDeleteResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options from ....types.zero_trust.devices import dex_test_create_params, dex_test_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.zero_trust.devices import dex_test_create_params -from ....types.zero_trust.devices import dex_test_update_params -from ....types.zero_trust.devices import SchemaData -from ....types.zero_trust.devices import SchemaData -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....types.zero_trust.devices.schema_http import SchemaHTTP +from ....types.zero_trust.devices.schema_data_param import SchemaDataParam +from ....types.zero_trust.devices.dex_test_delete_response import DEXTestDeleteResponse __all__ = ["DEXTestsResource", "AsyncDEXTestsResource"] diff --git a/src/cloudflare/resources/zero_trust/devices/networks.py b/src/cloudflare/resources/zero_trust/devices/networks.py index 5b742f7bd..c8940c45e 100644 --- a/src/cloudflare/resources/zero_trust/devices/networks.py +++ b/src/cloudflare/resources/zero_trust/devices/networks.py @@ -2,52 +2,30 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.devices.device_network import DeviceNetwork - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ....types.zero_trust.devices.network_delete_response import NetworkDeleteResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options from ....types.zero_trust.devices import network_create_params, network_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.zero_trust.devices import network_create_params -from ....types.zero_trust.devices import network_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....types.zero_trust.devices.device_network import DeviceNetwork +from ....types.zero_trust.devices.network_delete_response import NetworkDeleteResponse __all__ = ["NetworksResource", "AsyncNetworksResource"] diff --git a/src/cloudflare/resources/zero_trust/devices/override_codes.py b/src/cloudflare/resources/zero_trust/devices/override_codes.py index f6d0a486e..cad19ee9c 100644 --- a/src/cloudflare/resources/zero_trust/devices/override_codes.py +++ b/src/cloudflare/resources/zero_trust/devices/override_codes.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.zero_trust.devices.override_code_list_response import OverrideCodeListResponse - -from ...._wrappers import ResultWrapper - -from typing import Optional, Type - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.zero_trust.devices.override_code_list_response import OverrideCodeListResponse __all__ = ["OverrideCodesResource", "AsyncOverrideCodesResource"] diff --git a/src/cloudflare/resources/zero_trust/devices/policies/__init__.py b/src/cloudflare/resources/zero_trust/devices/policies/__init__.py index fe7d1a468..d2ee86ffe 100644 --- a/src/cloudflare/resources/zero_trust/devices/policies/__init__.py +++ b/src/cloudflare/resources/zero_trust/devices/policies/__init__.py @@ -1,47 +1,53 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .certificates import CertificatesResource, AsyncCertificatesResource -from .certificates import ( - CertificatesResourceWithRawResponse, - AsyncCertificatesResourceWithRawResponse, - CertificatesResourceWithStreamingResponse, - AsyncCertificatesResourceWithStreamingResponse, -) -from .default_policy import DefaultPolicyResource, AsyncDefaultPolicyResource -from .default_policy import ( - DefaultPolicyResourceWithRawResponse, - AsyncDefaultPolicyResourceWithRawResponse, - DefaultPolicyResourceWithStreamingResponse, - AsyncDefaultPolicyResourceWithStreamingResponse, -) -from .excludes import ExcludesResource, AsyncExcludesResource from .excludes import ( + ExcludesResource, + AsyncExcludesResource, ExcludesResourceWithRawResponse, AsyncExcludesResourceWithRawResponse, ExcludesResourceWithStreamingResponse, AsyncExcludesResourceWithStreamingResponse, ) -from .fallback_domains import FallbackDomainsResource, AsyncFallbackDomainsResource -from .fallback_domains import ( - FallbackDomainsResourceWithRawResponse, - AsyncFallbackDomainsResourceWithRawResponse, - FallbackDomainsResourceWithStreamingResponse, - AsyncFallbackDomainsResourceWithStreamingResponse, -) -from .includes import IncludesResource, AsyncIncludesResource from .includes import ( + IncludesResource, + AsyncIncludesResource, IncludesResourceWithRawResponse, AsyncIncludesResourceWithRawResponse, IncludesResourceWithStreamingResponse, AsyncIncludesResourceWithStreamingResponse, ) -from .policies import PoliciesResource, AsyncPoliciesResource from .policies import ( + PoliciesResource, + AsyncPoliciesResource, PoliciesResourceWithRawResponse, AsyncPoliciesResourceWithRawResponse, PoliciesResourceWithStreamingResponse, AsyncPoliciesResourceWithStreamingResponse, ) +from .certificates import ( + CertificatesResource, + AsyncCertificatesResource, + CertificatesResourceWithRawResponse, + AsyncCertificatesResourceWithRawResponse, + CertificatesResourceWithStreamingResponse, + AsyncCertificatesResourceWithStreamingResponse, +) +from .default_policy import ( + DefaultPolicyResource, + AsyncDefaultPolicyResource, + DefaultPolicyResourceWithRawResponse, + AsyncDefaultPolicyResourceWithRawResponse, + DefaultPolicyResourceWithStreamingResponse, + AsyncDefaultPolicyResourceWithStreamingResponse, +) +from .fallback_domains import ( + FallbackDomainsResource, + AsyncFallbackDomainsResource, + FallbackDomainsResourceWithRawResponse, + AsyncFallbackDomainsResourceWithRawResponse, + FallbackDomainsResourceWithStreamingResponse, + AsyncFallbackDomainsResourceWithStreamingResponse, +) __all__ = [ "CertificatesResource", diff --git a/src/cloudflare/resources/zero_trust/devices/policies/certificates.py b/src/cloudflare/resources/zero_trust/devices/policies/certificates.py index 6676efc19..2e4dc42ef 100755 --- a/src/cloudflare/resources/zero_trust/devices/policies/certificates.py +++ b/src/cloudflare/resources/zero_trust/devices/policies/certificates.py @@ -2,45 +2,28 @@ from __future__ import annotations +from typing import Any, Optional, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.zero_trust.devices.policies.certificate_update_response import CertificateUpdateResponse - -from ....._wrappers import ResultWrapper - -from typing import Optional - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from .....types.zero_trust.devices.policies.certificate_get_response import CertificateGetResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.zero_trust.devices.policies import certificate_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .....types.zero_trust.devices.policies.certificate_get_response import CertificateGetResponse +from .....types.zero_trust.devices.policies.certificate_update_response import CertificateUpdateResponse __all__ = ["CertificatesResource", "AsyncCertificatesResource"] diff --git a/src/cloudflare/resources/zero_trust/devices/policies/default_policy.py b/src/cloudflare/resources/zero_trust/devices/policies/default_policy.py index abcb43255..6a19573c0 100644 --- a/src/cloudflare/resources/zero_trust/devices/policies/default_policy.py +++ b/src/cloudflare/resources/zero_trust/devices/policies/default_policy.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._compat import cached_property - -from .....types.zero_trust.devices.policies.default_policy_get_response import DefaultPolicyGetResponse - -from ....._wrappers import ResultWrapper - -from typing import Optional, Type - -from ....._base_client import make_request_options - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from typing import cast -from typing import cast +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.zero_trust.devices.policies.default_policy_get_response import DefaultPolicyGetResponse __all__ = ["DefaultPolicyResource", "AsyncDefaultPolicyResource"] diff --git a/src/cloudflare/resources/zero_trust/devices/policies/excludes.py b/src/cloudflare/resources/zero_trust/devices/policies/excludes.py index e68e0acd9..db9c09b46 100644 --- a/src/cloudflare/resources/zero_trust/devices/policies/excludes.py +++ b/src/cloudflare/resources/zero_trust/devices/policies/excludes.py @@ -2,47 +2,30 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.zero_trust.devices.policies.exclude_update_response import ExcludeUpdateResponse - -from ....._wrappers import ResultWrapper - -from typing import Iterable, Optional, Type - -from .....types.zero_trust.devices.policies.split_tunnel_exclude_param import SplitTunnelExcludeParam - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options, AsyncPaginator - -from .....types.zero_trust.devices.policies.split_tunnel_exclude import SplitTunnelExclude - -from .....pagination import SyncSinglePage, AsyncSinglePage - -from .....types.zero_trust.devices.policies.exclude_get_response import ExcludeGetResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.zero_trust.devices.policies import exclude_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._wrappers import ResultWrapper +from .....pagination import SyncSinglePage, AsyncSinglePage +from ....._base_client import AsyncPaginator, make_request_options +from .....types.zero_trust.devices.policies.exclude_get_response import ExcludeGetResponse +from .....types.zero_trust.devices.policies.split_tunnel_exclude import SplitTunnelExclude +from .....types.zero_trust.devices.policies.exclude_update_response import ExcludeUpdateResponse +from .....types.zero_trust.devices.policies.split_tunnel_exclude_param import SplitTunnelExcludeParam __all__ = ["ExcludesResource", "AsyncExcludesResource"] diff --git a/src/cloudflare/resources/zero_trust/devices/policies/fallback_domains.py b/src/cloudflare/resources/zero_trust/devices/policies/fallback_domains.py index 8c3a43f63..9a68401f9 100644 --- a/src/cloudflare/resources/zero_trust/devices/policies/fallback_domains.py +++ b/src/cloudflare/resources/zero_trust/devices/policies/fallback_domains.py @@ -2,47 +2,30 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.zero_trust.devices.policies.fallback_domain_update_response import FallbackDomainUpdateResponse - -from ....._wrappers import ResultWrapper - -from typing import Iterable, Optional, Type - -from .....types.zero_trust.devices.policies.fallback_domain_param import FallbackDomainParam - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options, AsyncPaginator - -from .....types.zero_trust.devices.policies.fallback_domain import FallbackDomain - -from .....pagination import SyncSinglePage, AsyncSinglePage - -from .....types.zero_trust.devices.policies.fallback_domain_get_response import FallbackDomainGetResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.zero_trust.devices.policies import fallback_domain_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._wrappers import ResultWrapper +from .....pagination import SyncSinglePage, AsyncSinglePage +from ....._base_client import AsyncPaginator, make_request_options +from .....types.zero_trust.devices.policies.fallback_domain import FallbackDomain +from .....types.zero_trust.devices.policies.fallback_domain_param import FallbackDomainParam +from .....types.zero_trust.devices.policies.fallback_domain_get_response import FallbackDomainGetResponse +from .....types.zero_trust.devices.policies.fallback_domain_update_response import FallbackDomainUpdateResponse __all__ = ["FallbackDomainsResource", "AsyncFallbackDomainsResource"] diff --git a/src/cloudflare/resources/zero_trust/devices/policies/includes.py b/src/cloudflare/resources/zero_trust/devices/policies/includes.py index 206cd47ba..d2ffb6af4 100644 --- a/src/cloudflare/resources/zero_trust/devices/policies/includes.py +++ b/src/cloudflare/resources/zero_trust/devices/policies/includes.py @@ -2,47 +2,30 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.zero_trust.devices.policies.include_update_response import IncludeUpdateResponse - -from ....._wrappers import ResultWrapper - -from typing import Iterable, Optional, Type - -from .....types.zero_trust.devices.policies.split_tunnel_include_param import SplitTunnelIncludeParam - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options, AsyncPaginator - -from .....types.zero_trust.devices.policies.split_tunnel_include import SplitTunnelInclude - -from .....pagination import SyncSinglePage, AsyncSinglePage - -from .....types.zero_trust.devices.policies.include_get_response import IncludeGetResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.zero_trust.devices.policies import include_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._wrappers import ResultWrapper +from .....pagination import SyncSinglePage, AsyncSinglePage +from ....._base_client import AsyncPaginator, make_request_options +from .....types.zero_trust.devices.policies.include_get_response import IncludeGetResponse +from .....types.zero_trust.devices.policies.split_tunnel_include import SplitTunnelInclude +from .....types.zero_trust.devices.policies.include_update_response import IncludeUpdateResponse +from .....types.zero_trust.devices.policies.split_tunnel_include_param import SplitTunnelIncludeParam __all__ = ["IncludesResource", "AsyncIncludesResource"] diff --git a/src/cloudflare/resources/zero_trust/devices/policies/policies.py b/src/cloudflare/resources/zero_trust/devices/policies/policies.py index 89531f1b7..f13c2200e 100644 --- a/src/cloudflare/resources/zero_trust/devices/policies/policies.py +++ b/src/cloudflare/resources/zero_trust/devices/policies/policies.py @@ -2,68 +2,10 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .certificates import CertificatesResource, AsyncCertificatesResource - -from ....._compat import cached_property - -from .default_policy import DefaultPolicyResource, AsyncDefaultPolicyResource - -from .excludes import ExcludesResource, AsyncExcludesResource - -from .fallback_domains import FallbackDomainsResource, AsyncFallbackDomainsResource - -from .includes import IncludesResource, AsyncIncludesResource - -from .....types.zero_trust.devices.settings_policy import SettingsPolicy - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ....._base_client import make_request_options, AsyncPaginator - -from .....pagination import SyncSinglePage, AsyncSinglePage - -from .....types.zero_trust.devices.policy_delete_response import PolicyDeleteResponse - -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -from .....types.zero_trust.devices import policy_create_params, policy_edit_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.zero_trust.devices import policy_create_params -from .....types.zero_trust.devices import policy_edit_params -from .certificates import ( - CertificatesResource, - AsyncCertificatesResource, - CertificatesResourceWithRawResponse, - AsyncCertificatesResourceWithRawResponse, - CertificatesResourceWithStreamingResponse, - AsyncCertificatesResourceWithStreamingResponse, -) -from .default_policy import ( - DefaultPolicyResource, - AsyncDefaultPolicyResource, - DefaultPolicyResourceWithRawResponse, - AsyncDefaultPolicyResourceWithRawResponse, - DefaultPolicyResourceWithStreamingResponse, - AsyncDefaultPolicyResourceWithStreamingResponse, -) from .excludes import ( ExcludesResource, AsyncExcludesResource, @@ -72,14 +14,6 @@ from .excludes import ( ExcludesResourceWithStreamingResponse, AsyncExcludesResourceWithStreamingResponse, ) -from .fallback_domains import ( - FallbackDomainsResource, - AsyncFallbackDomainsResource, - FallbackDomainsResourceWithRawResponse, - AsyncFallbackDomainsResourceWithRawResponse, - FallbackDomainsResourceWithStreamingResponse, - AsyncFallbackDomainsResourceWithStreamingResponse, -) from .includes import ( IncludesResource, AsyncIncludesResource, @@ -88,14 +22,49 @@ from .includes import ( IncludesResourceWithStreamingResponse, AsyncIncludesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) +from ....._compat import cached_property +from .certificates import ( + CertificatesResource, + AsyncCertificatesResource, + CertificatesResourceWithRawResponse, + AsyncCertificatesResourceWithRawResponse, + CertificatesResourceWithStreamingResponse, + AsyncCertificatesResourceWithStreamingResponse, +) +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....._wrappers import ResultWrapper +from .....pagination import SyncSinglePage, AsyncSinglePage +from .default_policy import ( + DefaultPolicyResource, + AsyncDefaultPolicyResource, + DefaultPolicyResourceWithRawResponse, + AsyncDefaultPolicyResourceWithRawResponse, + DefaultPolicyResourceWithStreamingResponse, + AsyncDefaultPolicyResourceWithStreamingResponse, +) +from ....._base_client import AsyncPaginator, make_request_options +from .fallback_domains import ( + FallbackDomainsResource, + AsyncFallbackDomainsResource, + FallbackDomainsResourceWithRawResponse, + AsyncFallbackDomainsResourceWithRawResponse, + FallbackDomainsResourceWithStreamingResponse, + AsyncFallbackDomainsResourceWithStreamingResponse, +) +from .....types.zero_trust.devices import policy_edit_params, policy_create_params +from .....types.zero_trust.devices.settings_policy import SettingsPolicy +from .....types.zero_trust.devices.policy_delete_response import PolicyDeleteResponse __all__ = ["PoliciesResource", "AsyncPoliciesResource"] diff --git a/src/cloudflare/resources/zero_trust/devices/posture/__init__.py b/src/cloudflare/resources/zero_trust/devices/posture/__init__.py index a218685cf..b43760546 100644 --- a/src/cloudflare/resources/zero_trust/devices/posture/__init__.py +++ b/src/cloudflare/resources/zero_trust/devices/posture/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .integrations import IntegrationsResource, AsyncIntegrationsResource -from .integrations import ( - IntegrationsResourceWithRawResponse, - AsyncIntegrationsResourceWithRawResponse, - IntegrationsResourceWithStreamingResponse, - AsyncIntegrationsResourceWithStreamingResponse, -) -from .posture import PostureResource, AsyncPostureResource from .posture import ( + PostureResource, + AsyncPostureResource, PostureResourceWithRawResponse, AsyncPostureResourceWithRawResponse, PostureResourceWithStreamingResponse, AsyncPostureResourceWithStreamingResponse, ) +from .integrations import ( + IntegrationsResource, + AsyncIntegrationsResource, + IntegrationsResourceWithRawResponse, + AsyncIntegrationsResourceWithRawResponse, + IntegrationsResourceWithStreamingResponse, + AsyncIntegrationsResourceWithStreamingResponse, +) __all__ = [ "IntegrationsResource", diff --git a/src/cloudflare/resources/zero_trust/devices/posture/integrations.py b/src/cloudflare/resources/zero_trust/devices/posture/integrations.py index 849834b8a..d6dfef46e 100644 --- a/src/cloudflare/resources/zero_trust/devices/posture/integrations.py +++ b/src/cloudflare/resources/zero_trust/devices/posture/integrations.py @@ -2,54 +2,30 @@ from __future__ import annotations +from typing import Any, Type, Optional, cast +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.zero_trust.devices.posture.integration import Integration - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ....._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from .....pagination import SyncSinglePage, AsyncSinglePage - -from .....types.zero_trust.devices.posture.integration_delete_response import IntegrationDeleteResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from .....types.zero_trust.devices.posture import integration_create_params, integration_edit_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.zero_trust.devices.posture import integration_create_params -from .....types.zero_trust.devices.posture import integration_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._wrappers import ResultWrapper +from .....pagination import SyncSinglePage, AsyncSinglePage +from ....._base_client import AsyncPaginator, make_request_options +from .....types.zero_trust.devices.posture import integration_edit_params, integration_create_params +from .....types.zero_trust.devices.posture.integration import Integration +from .....types.zero_trust.devices.posture.integration_delete_response import IntegrationDeleteResponse __all__ = ["IntegrationsResource", "AsyncIntegrationsResource"] diff --git a/src/cloudflare/resources/zero_trust/devices/posture/posture.py b/src/cloudflare/resources/zero_trust/devices/posture/posture.py index 217f60310..365637e7c 100644 --- a/src/cloudflare/resources/zero_trust/devices/posture/posture.py +++ b/src/cloudflare/resources/zero_trust/devices/posture/posture.py @@ -2,50 +2,17 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast +from typing_extensions import Literal + import httpx -from .integrations import IntegrationsResource, AsyncIntegrationsResource - -from ....._compat import cached_property - -from .....types.zero_trust.devices.device_posture_rule import DevicePostureRule - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Iterable - -from ....._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from .....types.zero_trust.devices.device_input_param import DeviceInputParam - -from .....types.zero_trust.devices.device_match_param import DeviceMatchParam - -from .....pagination import SyncSinglePage, AsyncSinglePage - -from .....types.zero_trust.devices.posture_delete_response import PostureDeleteResponse - -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.zero_trust.devices import posture_create_params -from .....types.zero_trust.devices import posture_update_params -from .....types.zero_trust.devices import DeviceInput -from .....types.zero_trust.devices import DeviceInput +from ....._compat import cached_property from .integrations import ( IntegrationsResource, AsyncIntegrationsResource, @@ -54,14 +21,21 @@ from .integrations import ( IntegrationsResourceWithStreamingResponse, AsyncIntegrationsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....._wrappers import ResultWrapper +from .....pagination import SyncSinglePage, AsyncSinglePage +from ....._base_client import AsyncPaginator, make_request_options +from .....types.zero_trust.devices import posture_create_params, posture_update_params +from .....types.zero_trust.devices.device_input_param import DeviceInputParam +from .....types.zero_trust.devices.device_match_param import DeviceMatchParam +from .....types.zero_trust.devices.device_posture_rule import DevicePostureRule +from .....types.zero_trust.devices.posture_delete_response import PostureDeleteResponse __all__ = ["PostureResource", "AsyncPostureResource"] diff --git a/src/cloudflare/resources/zero_trust/devices/revoke.py b/src/cloudflare/resources/zero_trust/devices/revoke.py index 8235a93f7..3500124dc 100644 --- a/src/cloudflare/resources/zero_trust/devices/revoke.py +++ b/src/cloudflare/resources/zero_trust/devices/revoke.py @@ -2,39 +2,26 @@ from __future__ import annotations +from typing import Any, List, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.devices.revoke_create_response import RevokeCreateResponse - -from ...._wrappers import ResultWrapper - -from typing import Optional, List - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.zero_trust.devices import revoke_create_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.zero_trust.devices.revoke_create_response import RevokeCreateResponse __all__ = ["RevokeResource", "AsyncRevokeResource"] diff --git a/src/cloudflare/resources/zero_trust/devices/settings.py b/src/cloudflare/resources/zero_trust/devices/settings.py index fe46e8800..002dcb093 100644 --- a/src/cloudflare/resources/zero_trust/devices/settings.py +++ b/src/cloudflare/resources/zero_trust/devices/settings.py @@ -2,42 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.devices.device_settings import DeviceSettings - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.zero_trust.devices import setting_update_params -from ....types.zero_trust.devices import setting_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.zero_trust.devices import setting_edit_params, setting_update_params +from ....types.zero_trust.devices.device_settings import DeviceSettings __all__ = ["SettingsResource", "AsyncSettingsResource"] diff --git a/src/cloudflare/resources/zero_trust/devices/unrevoke.py b/src/cloudflare/resources/zero_trust/devices/unrevoke.py index 311b8f217..52fe4c65c 100644 --- a/src/cloudflare/resources/zero_trust/devices/unrevoke.py +++ b/src/cloudflare/resources/zero_trust/devices/unrevoke.py @@ -2,39 +2,26 @@ from __future__ import annotations +from typing import Any, List, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.devices.unrevoke_create_response import UnrevokeCreateResponse - -from ...._wrappers import ResultWrapper - -from typing import Optional, List - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.zero_trust.devices import unrevoke_create_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.zero_trust.devices.unrevoke_create_response import UnrevokeCreateResponse __all__ = ["UnrevokeResource", "AsyncUnrevokeResource"] diff --git a/src/cloudflare/resources/zero_trust/dex/__init__.py b/src/cloudflare/resources/zero_trust/dex/__init__.py index 8802c8805..b79e8e9ec 100644 --- a/src/cloudflare/resources/zero_trust/dex/__init__.py +++ b/src/cloudflare/resources/zero_trust/dex/__init__.py @@ -1,53 +1,60 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .colos import ColosResource, AsyncColosResource +from .dex import ( + DEXResource, + AsyncDEXResource, + DEXResourceWithRawResponse, + AsyncDEXResourceWithRawResponse, + DEXResourceWithStreamingResponse, + AsyncDEXResourceWithStreamingResponse, +) from .colos import ( + ColosResource, + AsyncColosResource, ColosResourceWithRawResponse, AsyncColosResourceWithRawResponse, ColosResourceWithStreamingResponse, AsyncColosResourceWithStreamingResponse, ) -from .fleet_status import FleetStatusResource, AsyncFleetStatusResource -from .fleet_status import ( - FleetStatusResourceWithRawResponse, - AsyncFleetStatusResourceWithRawResponse, - FleetStatusResourceWithStreamingResponse, - AsyncFleetStatusResourceWithStreamingResponse, -) -from .http_tests import HTTPTestsResource, AsyncHTTPTestsResource -from .http_tests import ( - HTTPTestsResourceWithRawResponse, - AsyncHTTPTestsResourceWithRawResponse, - HTTPTestsResourceWithStreamingResponse, - AsyncHTTPTestsResourceWithStreamingResponse, -) -from .tests import TestsResource, AsyncTestsResource from .tests import ( + TestsResource, + AsyncTestsResource, TestsResourceWithRawResponse, AsyncTestsResourceWithRawResponse, TestsResourceWithStreamingResponse, AsyncTestsResourceWithStreamingResponse, ) -from .traceroute_test_results import TracerouteTestResultsResource, AsyncTracerouteTestResultsResource -from .traceroute_test_results import ( - TracerouteTestResultsResourceWithRawResponse, - AsyncTracerouteTestResultsResourceWithRawResponse, - TracerouteTestResultsResourceWithStreamingResponse, - AsyncTracerouteTestResultsResourceWithStreamingResponse, +from .http_tests import ( + HTTPTestsResource, + AsyncHTTPTestsResource, + HTTPTestsResourceWithRawResponse, + AsyncHTTPTestsResourceWithRawResponse, + HTTPTestsResourceWithStreamingResponse, + AsyncHTTPTestsResourceWithStreamingResponse, +) +from .fleet_status import ( + FleetStatusResource, + AsyncFleetStatusResource, + FleetStatusResourceWithRawResponse, + AsyncFleetStatusResourceWithRawResponse, + FleetStatusResourceWithStreamingResponse, + AsyncFleetStatusResourceWithStreamingResponse, ) -from .traceroute_tests import TracerouteTestsResource, AsyncTracerouteTestsResource from .traceroute_tests import ( + TracerouteTestsResource, + AsyncTracerouteTestsResource, TracerouteTestsResourceWithRawResponse, AsyncTracerouteTestsResourceWithRawResponse, TracerouteTestsResourceWithStreamingResponse, AsyncTracerouteTestsResourceWithStreamingResponse, ) -from .dex import DEXResource, AsyncDEXResource -from .dex import ( - DEXResourceWithRawResponse, - AsyncDEXResourceWithRawResponse, - DEXResourceWithStreamingResponse, - AsyncDEXResourceWithStreamingResponse, +from .traceroute_test_results import ( + TracerouteTestResultsResource, + AsyncTracerouteTestResultsResource, + TracerouteTestResultsResourceWithRawResponse, + AsyncTracerouteTestResultsResourceWithRawResponse, + TracerouteTestResultsResourceWithStreamingResponse, + AsyncTracerouteTestResultsResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/zero_trust/dex/colos.py b/src/cloudflare/resources/zero_trust/dex/colos.py index 81b79142a..3fe36f0bd 100644 --- a/src/cloudflare/resources/zero_trust/dex/colos.py +++ b/src/cloudflare/resources/zero_trust/dex/colos.py @@ -2,32 +2,22 @@ from __future__ import annotations +from typing_extensions import Literal + import httpx -from ...._compat import cached_property - -from ....pagination import SyncSinglePage, AsyncSinglePage - +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options from ....types.zero_trust.dex import colo_list_params __all__ = ["ColosResource", "AsyncColosResource"] diff --git a/src/cloudflare/resources/zero_trust/dex/dex.py b/src/cloudflare/resources/zero_trust/dex/dex.py index affda29ac..51c3e3dad 100644 --- a/src/cloudflare/resources/zero_trust/dex/dex.py +++ b/src/cloudflare/resources/zero_trust/dex/dex.py @@ -2,30 +2,6 @@ from __future__ import annotations -from .colos import ColosResource, AsyncColosResource - -from ...._compat import cached_property - -from .fleet_status.fleet_status import FleetStatusResource, AsyncFleetStatusResource - -from .http_tests.http_tests import HTTPTestsResource, AsyncHTTPTestsResource - -from .tests.tests import TestsResource, AsyncTestsResource - -from .traceroute_test_results.traceroute_test_results import ( - TracerouteTestResultsResource, - AsyncTracerouteTestResultsResource, -) - -from .traceroute_tests import TracerouteTestsResource, AsyncTracerouteTestsResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params from .colos import ( ColosResource, AsyncColosResource, @@ -34,22 +10,6 @@ from .colos import ( ColosResourceWithStreamingResponse, AsyncColosResourceWithStreamingResponse, ) -from .fleet_status import ( - FleetStatusResource, - AsyncFleetStatusResource, - FleetStatusResourceWithRawResponse, - AsyncFleetStatusResourceWithRawResponse, - FleetStatusResourceWithStreamingResponse, - AsyncFleetStatusResourceWithStreamingResponse, -) -from .http_tests import ( - HTTPTestsResource, - AsyncHTTPTestsResource, - HTTPTestsResourceWithRawResponse, - AsyncHTTPTestsResourceWithRawResponse, - HTTPTestsResourceWithStreamingResponse, - AsyncHTTPTestsResourceWithStreamingResponse, -) from .tests import ( TestsResource, AsyncTestsResource, @@ -58,13 +18,24 @@ from .tests import ( TestsResourceWithStreamingResponse, AsyncTestsResourceWithStreamingResponse, ) -from .traceroute_test_results import ( - TracerouteTestResultsResource, - AsyncTracerouteTestResultsResource, - TracerouteTestResultsResourceWithRawResponse, - AsyncTracerouteTestResultsResourceWithRawResponse, - TracerouteTestResultsResourceWithStreamingResponse, - AsyncTracerouteTestResultsResourceWithStreamingResponse, +from ...._compat import cached_property +from .http_tests import ( + HTTPTestsResource, + AsyncHTTPTestsResource, + HTTPTestsResourceWithRawResponse, + AsyncHTTPTestsResourceWithRawResponse, + HTTPTestsResourceWithStreamingResponse, + AsyncHTTPTestsResourceWithStreamingResponse, +) +from .tests.tests import TestsResource, AsyncTestsResource +from ...._resource import SyncAPIResource, AsyncAPIResource +from .fleet_status import ( + FleetStatusResource, + AsyncFleetStatusResource, + FleetStatusResourceWithRawResponse, + AsyncFleetStatusResourceWithRawResponse, + FleetStatusResourceWithStreamingResponse, + AsyncFleetStatusResourceWithStreamingResponse, ) from .traceroute_tests import ( TracerouteTestsResource, @@ -74,6 +45,20 @@ from .traceroute_tests import ( TracerouteTestsResourceWithStreamingResponse, AsyncTracerouteTestsResourceWithStreamingResponse, ) +from .http_tests.http_tests import HTTPTestsResource, AsyncHTTPTestsResource +from .traceroute_test_results import ( + TracerouteTestResultsResource, + AsyncTracerouteTestResultsResource, + TracerouteTestResultsResourceWithRawResponse, + AsyncTracerouteTestResultsResourceWithRawResponse, + TracerouteTestResultsResourceWithStreamingResponse, + AsyncTracerouteTestResultsResourceWithStreamingResponse, +) +from .fleet_status.fleet_status import FleetStatusResource, AsyncFleetStatusResource +from .traceroute_test_results.traceroute_test_results import ( + TracerouteTestResultsResource, + AsyncTracerouteTestResultsResource, +) __all__ = ["DEXResource", "AsyncDEXResource"] diff --git a/src/cloudflare/resources/zero_trust/dex/fleet_status/__init__.py b/src/cloudflare/resources/zero_trust/dex/fleet_status/__init__.py index a6a8f3953..7d9516cc1 100644 --- a/src/cloudflare/resources/zero_trust/dex/fleet_status/__init__.py +++ b/src/cloudflare/resources/zero_trust/dex/fleet_status/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .devices import DevicesResource, AsyncDevicesResource from .devices import ( + DevicesResource, + AsyncDevicesResource, DevicesResourceWithRawResponse, AsyncDevicesResourceWithRawResponse, DevicesResourceWithStreamingResponse, AsyncDevicesResourceWithStreamingResponse, ) -from .fleet_status import FleetStatusResource, AsyncFleetStatusResource from .fleet_status import ( + FleetStatusResource, + AsyncFleetStatusResource, FleetStatusResourceWithRawResponse, AsyncFleetStatusResourceWithRawResponse, FleetStatusResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/zero_trust/dex/fleet_status/devices.py b/src/cloudflare/resources/zero_trust/dex/fleet_status/devices.py index 180c3f599..624bfc32b 100644 --- a/src/cloudflare/resources/zero_trust/dex/fleet_status/devices.py +++ b/src/cloudflare/resources/zero_trust/dex/fleet_status/devices.py @@ -2,35 +2,24 @@ from __future__ import annotations +from typing_extensions import Literal + import httpx -from ....._compat import cached_property - -from .....types.zero_trust.dex.fleet_status.device_list_response import DeviceListResponse - -from .....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._utils import maybe_transform - -from ....._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from .....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ....._base_client import AsyncPaginator, make_request_options from .....types.zero_trust.dex.fleet_status import device_list_params +from .....types.zero_trust.dex.fleet_status.device_list_response import DeviceListResponse __all__ = ["DevicesResource", "AsyncDevicesResource"] diff --git a/src/cloudflare/resources/zero_trust/dex/fleet_status/fleet_status.py b/src/cloudflare/resources/zero_trust/dex/fleet_status/fleet_status.py index a6d869eec..590b2c8fd 100644 --- a/src/cloudflare/resources/zero_trust/dex/fleet_status/fleet_status.py +++ b/src/cloudflare/resources/zero_trust/dex/fleet_status/fleet_status.py @@ -2,38 +2,10 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .devices import DevicesResource, AsyncDevicesResource - -from ....._compat import cached_property - -from .....types.zero_trust.dex.fleet_status_live_response import FleetStatusLiveResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ....._base_client import make_request_options - -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.zero_trust.dex import fleet_status_live_params -from .....types.zero_trust.dex import fleet_status_over_time_params from .devices import ( DevicesResource, AsyncDevicesResource, @@ -42,8 +14,23 @@ from .devices import ( DevicesResourceWithStreamingResponse, AsyncDevicesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from ....._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.zero_trust.dex import fleet_status_live_params, fleet_status_over_time_params +from .....types.zero_trust.dex.fleet_status_live_response import FleetStatusLiveResponse __all__ = ["FleetStatusResource", "AsyncFleetStatusResource"] diff --git a/src/cloudflare/resources/zero_trust/dex/http_tests/__init__.py b/src/cloudflare/resources/zero_trust/dex/http_tests/__init__.py index b346c4c2e..f2d51e982 100644 --- a/src/cloudflare/resources/zero_trust/dex/http_tests/__init__.py +++ b/src/cloudflare/resources/zero_trust/dex/http_tests/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .percentiles import PercentilesResource, AsyncPercentilesResource -from .percentiles import ( - PercentilesResourceWithRawResponse, - AsyncPercentilesResourceWithRawResponse, - PercentilesResourceWithStreamingResponse, - AsyncPercentilesResourceWithStreamingResponse, -) -from .http_tests import HTTPTestsResource, AsyncHTTPTestsResource from .http_tests import ( + HTTPTestsResource, + AsyncHTTPTestsResource, HTTPTestsResourceWithRawResponse, AsyncHTTPTestsResourceWithRawResponse, HTTPTestsResourceWithStreamingResponse, AsyncHTTPTestsResourceWithStreamingResponse, ) +from .percentiles import ( + PercentilesResource, + AsyncPercentilesResource, + PercentilesResourceWithRawResponse, + AsyncPercentilesResourceWithRawResponse, + PercentilesResourceWithStreamingResponse, + AsyncPercentilesResourceWithStreamingResponse, +) __all__ = [ "PercentilesResource", diff --git a/src/cloudflare/resources/zero_trust/dex/http_tests/http_tests.py b/src/cloudflare/resources/zero_trust/dex/http_tests/http_tests.py index 9d643afbd..4aeb2f1f9 100644 --- a/src/cloudflare/resources/zero_trust/dex/http_tests/http_tests.py +++ b/src/cloudflare/resources/zero_trust/dex/http_tests/http_tests.py @@ -2,39 +2,17 @@ from __future__ import annotations +from typing import List, Type, Optional, cast +from typing_extensions import Literal + import httpx -from .percentiles import PercentilesResource, AsyncPercentilesResource - -from ....._compat import cached_property - -from .....types.zero_trust.dex.http_details import HTTPDetails - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, List - -from ....._base_client import make_request_options - -from typing_extensions import Literal - -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.zero_trust.dex import http_test_get_params +from ....._compat import cached_property from .percentiles import ( PercentilesResource, AsyncPercentilesResource, @@ -43,8 +21,17 @@ from .percentiles import ( PercentilesResourceWithStreamingResponse, AsyncPercentilesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.zero_trust.dex import http_test_get_params +from .....types.zero_trust.dex.http_details import HTTPDetails __all__ = ["HTTPTestsResource", "AsyncHTTPTestsResource"] diff --git a/src/cloudflare/resources/zero_trust/dex/http_tests/percentiles.py b/src/cloudflare/resources/zero_trust/dex/http_tests/percentiles.py index fc6f8c9cd..183aaf795 100644 --- a/src/cloudflare/resources/zero_trust/dex/http_tests/percentiles.py +++ b/src/cloudflare/resources/zero_trust/dex/http_tests/percentiles.py @@ -2,37 +2,27 @@ from __future__ import annotations +from typing import List, Type, Optional, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.zero_trust.dex.http_tests.http_details_percentiles import HTTPDetailsPercentiles - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, List - -from ....._base_client import make_request_options - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.zero_trust.dex.http_tests import percentile_get_params -from typing import cast -from typing import cast +from .....types.zero_trust.dex.http_tests.http_details_percentiles import HTTPDetailsPercentiles __all__ = ["PercentilesResource", "AsyncPercentilesResource"] diff --git a/src/cloudflare/resources/zero_trust/dex/tests/__init__.py b/src/cloudflare/resources/zero_trust/dex/tests/__init__.py index 6adf28766..ab45ccf22 100644 --- a/src/cloudflare/resources/zero_trust/dex/tests/__init__.py +++ b/src/cloudflare/resources/zero_trust/dex/tests/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .unique_devices import UniqueDevicesResource, AsyncUniqueDevicesResource -from .unique_devices import ( - UniqueDevicesResourceWithRawResponse, - AsyncUniqueDevicesResourceWithRawResponse, - UniqueDevicesResourceWithStreamingResponse, - AsyncUniqueDevicesResourceWithStreamingResponse, -) -from .tests import TestsResource, AsyncTestsResource from .tests import ( + TestsResource, + AsyncTestsResource, TestsResourceWithRawResponse, AsyncTestsResourceWithRawResponse, TestsResourceWithStreamingResponse, AsyncTestsResourceWithStreamingResponse, ) +from .unique_devices import ( + UniqueDevicesResource, + AsyncUniqueDevicesResource, + UniqueDevicesResourceWithRawResponse, + AsyncUniqueDevicesResourceWithRawResponse, + UniqueDevicesResourceWithStreamingResponse, + AsyncUniqueDevicesResourceWithStreamingResponse, +) __all__ = [ "UniqueDevicesResource", diff --git a/src/cloudflare/resources/zero_trust/dex/tests/tests.py b/src/cloudflare/resources/zero_trust/dex/tests/tests.py index 2c19f71b3..e99c10c48 100644 --- a/src/cloudflare/resources/zero_trust/dex/tests/tests.py +++ b/src/cloudflare/resources/zero_trust/dex/tests/tests.py @@ -2,37 +2,21 @@ from __future__ import annotations -import httpx - -from .unique_devices import UniqueDevicesResource, AsyncUniqueDevicesResource - -from ....._compat import cached_property - -from .....types.zero_trust.dex.test_list_response import TestListResponse - -from .....pagination import SyncV4PagePagination, AsyncV4PagePagination - -from ....._utils import maybe_transform - -from ....._base_client import make_request_options, AsyncPaginator - from typing import List +import httpx + +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import maybe_transform +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.zero_trust.dex import test_list_params +from .....pagination import SyncV4PagePagination, AsyncV4PagePagination from .unique_devices import ( UniqueDevicesResource, AsyncUniqueDevicesResource, @@ -41,6 +25,9 @@ from .unique_devices import ( UniqueDevicesResourceWithStreamingResponse, AsyncUniqueDevicesResourceWithStreamingResponse, ) +from ....._base_client import AsyncPaginator, make_request_options +from .....types.zero_trust.dex import test_list_params +from .....types.zero_trust.dex.test_list_response import TestListResponse __all__ = ["TestsResource", "AsyncTestsResource"] diff --git a/src/cloudflare/resources/zero_trust/dex/tests/unique_devices.py b/src/cloudflare/resources/zero_trust/dex/tests/unique_devices.py index a184301df..a17988863 100644 --- a/src/cloudflare/resources/zero_trust/dex/tests/unique_devices.py +++ b/src/cloudflare/resources/zero_trust/dex/tests/unique_devices.py @@ -2,37 +2,27 @@ from __future__ import annotations +from typing import List, Type, Optional, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.zero_trust.dex.tests.unique_devices import UniqueDevices - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, List - -from ....._base_client import make_request_options - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.zero_trust.dex.tests import unique_device_list_params -from typing import cast -from typing import cast +from .....types.zero_trust.dex.tests.unique_devices import UniqueDevices __all__ = ["UniqueDevicesResource", "AsyncUniqueDevicesResource"] diff --git a/src/cloudflare/resources/zero_trust/dex/traceroute_test_results/__init__.py b/src/cloudflare/resources/zero_trust/dex/traceroute_test_results/__init__.py index f8db78184..7f21e0c03 100644 --- a/src/cloudflare/resources/zero_trust/dex/traceroute_test_results/__init__.py +++ b/src/cloudflare/resources/zero_trust/dex/traceroute_test_results/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .network_path import NetworkPathResource, AsyncNetworkPathResource from .network_path import ( + NetworkPathResource, + AsyncNetworkPathResource, NetworkPathResourceWithRawResponse, AsyncNetworkPathResourceWithRawResponse, NetworkPathResourceWithStreamingResponse, AsyncNetworkPathResourceWithStreamingResponse, ) -from .traceroute_test_results import TracerouteTestResultsResource, AsyncTracerouteTestResultsResource from .traceroute_test_results import ( + TracerouteTestResultsResource, + AsyncTracerouteTestResultsResource, TracerouteTestResultsResourceWithRawResponse, AsyncTracerouteTestResultsResourceWithRawResponse, TracerouteTestResultsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/zero_trust/dex/traceroute_test_results/network_path.py b/src/cloudflare/resources/zero_trust/dex/traceroute_test_results/network_path.py index 122c18b49..803376660 100644 --- a/src/cloudflare/resources/zero_trust/dex/traceroute_test_results/network_path.py +++ b/src/cloudflare/resources/zero_trust/dex/traceroute_test_results/network_path.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._compat import cached_property - -from .....types.zero_trust.dex.traceroute_test_results.network_path_get_response import NetworkPathGetResponse - -from ....._wrappers import ResultWrapper - -from typing import Optional, Type - -from ....._base_client import make_request_options - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from typing import cast -from typing import cast +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.zero_trust.dex.traceroute_test_results.network_path_get_response import NetworkPathGetResponse __all__ = ["NetworkPathResource", "AsyncNetworkPathResource"] diff --git a/src/cloudflare/resources/zero_trust/dex/traceroute_test_results/traceroute_test_results.py b/src/cloudflare/resources/zero_trust/dex/traceroute_test_results/traceroute_test_results.py index ea0620bda..abc3834ee 100644 --- a/src/cloudflare/resources/zero_trust/dex/traceroute_test_results/traceroute_test_results.py +++ b/src/cloudflare/resources/zero_trust/dex/traceroute_test_results/traceroute_test_results.py @@ -2,17 +2,7 @@ from __future__ import annotations -from .network_path import NetworkPathResource, AsyncNetworkPathResource - from ....._compat import cached_property - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params from .network_path import ( NetworkPathResource, AsyncNetworkPathResource, @@ -21,6 +11,7 @@ from .network_path import ( NetworkPathResourceWithStreamingResponse, AsyncNetworkPathResourceWithStreamingResponse, ) +from ....._resource import SyncAPIResource, AsyncAPIResource __all__ = ["TracerouteTestResultsResource", "AsyncTracerouteTestResultsResource"] diff --git a/src/cloudflare/resources/zero_trust/dex/traceroute_tests.py b/src/cloudflare/resources/zero_trust/dex/traceroute_tests.py index 7a9240f33..b801c55a3 100644 --- a/src/cloudflare/resources/zero_trust/dex/traceroute_tests.py +++ b/src/cloudflare/resources/zero_trust/dex/traceroute_tests.py @@ -2,49 +2,34 @@ from __future__ import annotations +from typing import List, Type, Optional, cast +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.dex.traceroute import Traceroute - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, List - -from ...._base_client import make_request_options - -from typing_extensions import Literal - -from ....types.zero_trust.network_path_response import NetworkPathResponse - -from ....types.zero_trust.dex.traceroute_test_percentiles_response import TracerouteTestPercentilesResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.zero_trust.dex import traceroute_test_get_params -from ....types.zero_trust.dex import traceroute_test_network_path_params -from ....types.zero_trust.dex import traceroute_test_percentiles_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.zero_trust.dex import ( + traceroute_test_get_params, + traceroute_test_percentiles_params, + traceroute_test_network_path_params, +) +from ....types.zero_trust.dex.traceroute import Traceroute +from ....types.zero_trust.network_path_response import NetworkPathResponse +from ....types.zero_trust.dex.traceroute_test_percentiles_response import TracerouteTestPercentilesResponse __all__ = ["TracerouteTestsResource", "AsyncTracerouteTestsResource"] diff --git a/src/cloudflare/resources/zero_trust/dlp/__init__.py b/src/cloudflare/resources/zero_trust/dlp/__init__.py index 144843bdb..8bd7a4b45 100644 --- a/src/cloudflare/resources/zero_trust/dlp/__init__.py +++ b/src/cloudflare/resources/zero_trust/dlp/__init__.py @@ -1,46 +1,52 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .datasets import DatasetsResource, AsyncDatasetsResource -from .datasets import ( - DatasetsResourceWithRawResponse, - AsyncDatasetsResourceWithRawResponse, - DatasetsResourceWithStreamingResponse, - AsyncDatasetsResourceWithStreamingResponse, +from .dlp import ( + DLPResource, + AsyncDLPResource, + DLPResourceWithRawResponse, + AsyncDLPResourceWithRawResponse, + DLPResourceWithStreamingResponse, + AsyncDLPResourceWithStreamingResponse, ) -from .patterns import PatternsResource, AsyncPatternsResource -from .patterns import ( - PatternsResourceWithRawResponse, - AsyncPatternsResourceWithRawResponse, - PatternsResourceWithStreamingResponse, - AsyncPatternsResourceWithStreamingResponse, -) -from .payload_logs import PayloadLogsResource, AsyncPayloadLogsResource -from .payload_logs import ( - PayloadLogsResourceWithRawResponse, - AsyncPayloadLogsResourceWithRawResponse, - PayloadLogsResourceWithStreamingResponse, - AsyncPayloadLogsResourceWithStreamingResponse, -) -from .profiles import ProfilesResource, AsyncProfilesResource -from .profiles import ( - ProfilesResourceWithRawResponse, - AsyncProfilesResourceWithRawResponse, - ProfilesResourceWithStreamingResponse, - AsyncProfilesResourceWithStreamingResponse, -) -from .limits import LimitsResource, AsyncLimitsResource from .limits import ( + LimitsResource, + AsyncLimitsResource, LimitsResourceWithRawResponse, AsyncLimitsResourceWithRawResponse, LimitsResourceWithStreamingResponse, AsyncLimitsResourceWithStreamingResponse, ) -from .dlp import DLPResource, AsyncDLPResource -from .dlp import ( - DLPResourceWithRawResponse, - AsyncDLPResourceWithRawResponse, - DLPResourceWithStreamingResponse, - AsyncDLPResourceWithStreamingResponse, +from .datasets import ( + DatasetsResource, + AsyncDatasetsResource, + DatasetsResourceWithRawResponse, + AsyncDatasetsResourceWithRawResponse, + DatasetsResourceWithStreamingResponse, + AsyncDatasetsResourceWithStreamingResponse, +) +from .patterns import ( + PatternsResource, + AsyncPatternsResource, + PatternsResourceWithRawResponse, + AsyncPatternsResourceWithRawResponse, + PatternsResourceWithStreamingResponse, + AsyncPatternsResourceWithStreamingResponse, +) +from .profiles import ( + ProfilesResource, + AsyncProfilesResource, + ProfilesResourceWithRawResponse, + AsyncProfilesResourceWithRawResponse, + ProfilesResourceWithStreamingResponse, + AsyncProfilesResourceWithStreamingResponse, +) +from .payload_logs import ( + PayloadLogsResource, + AsyncPayloadLogsResource, + PayloadLogsResourceWithRawResponse, + AsyncPayloadLogsResourceWithRawResponse, + PayloadLogsResourceWithStreamingResponse, + AsyncPayloadLogsResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/zero_trust/dlp/datasets/__init__.py b/src/cloudflare/resources/zero_trust/dlp/datasets/__init__.py index 9748d604c..9ee2063c6 100644 --- a/src/cloudflare/resources/zero_trust/dlp/datasets/__init__.py +++ b/src/cloudflare/resources/zero_trust/dlp/datasets/__init__.py @@ -1,26 +1,29 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .upload import UploadResource, AsyncUploadResource from .upload import ( + UploadResource, + AsyncUploadResource, UploadResourceWithRawResponse, AsyncUploadResourceWithRawResponse, UploadResourceWithStreamingResponse, AsyncUploadResourceWithStreamingResponse, ) -from .versions import VersionsResource, AsyncVersionsResource -from .versions import ( - VersionsResourceWithRawResponse, - AsyncVersionsResourceWithRawResponse, - VersionsResourceWithStreamingResponse, - AsyncVersionsResourceWithStreamingResponse, -) -from .datasets import DatasetsResource, AsyncDatasetsResource from .datasets import ( + DatasetsResource, + AsyncDatasetsResource, DatasetsResourceWithRawResponse, AsyncDatasetsResourceWithRawResponse, DatasetsResourceWithStreamingResponse, AsyncDatasetsResourceWithStreamingResponse, ) +from .versions import ( + VersionsResource, + AsyncVersionsResource, + VersionsResourceWithRawResponse, + AsyncVersionsResourceWithRawResponse, + VersionsResourceWithStreamingResponse, + AsyncVersionsResourceWithStreamingResponse, +) __all__ = [ "UploadResource", diff --git a/src/cloudflare/resources/zero_trust/dlp/datasets/datasets.py b/src/cloudflare/resources/zero_trust/dlp/datasets/datasets.py index afa44f033..6ba661df3 100644 --- a/src/cloudflare/resources/zero_trust/dlp/datasets/datasets.py +++ b/src/cloudflare/resources/zero_trust/dlp/datasets/datasets.py @@ -2,44 +2,10 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .upload import UploadResource, AsyncUploadResource - -from ....._compat import cached_property - -from .versions.versions import VersionsResource, AsyncVersionsResource - -from .....types.zero_trust.dlp.dataset_creation import DatasetCreation - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ....._base_client import make_request_options, AsyncPaginator - -from .....types.zero_trust.dlp.dataset import Dataset - -from .....pagination import SyncSinglePage, AsyncSinglePage - -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.zero_trust.dlp import dataset_create_params -from .....types.zero_trust.dlp import dataset_update_params from .upload import ( UploadResource, AsyncUploadResource, @@ -56,12 +22,26 @@ from .versions import ( VersionsResourceWithStreamingResponse, AsyncVersionsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....._wrappers import ResultWrapper +from .....pagination import SyncSinglePage, AsyncSinglePage +from ....._base_client import AsyncPaginator, make_request_options +from .versions.versions import VersionsResource, AsyncVersionsResource +from .....types.zero_trust.dlp import dataset_create_params, dataset_update_params +from .....types.zero_trust.dlp.dataset import Dataset +from .....types.zero_trust.dlp.dataset_creation import DatasetCreation __all__ = ["DatasetsResource", "AsyncDatasetsResource"] diff --git a/src/cloudflare/resources/zero_trust/dlp/datasets/upload.py b/src/cloudflare/resources/zero_trust/dlp/datasets/upload.py index 2cd84d02e..041e98de9 100644 --- a/src/cloudflare/resources/zero_trust/dlp/datasets/upload.py +++ b/src/cloudflare/resources/zero_trust/dlp/datasets/upload.py @@ -2,41 +2,28 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.zero_trust.dlp.datasets.new_version import NewVersion - -from ....._wrappers import ResultWrapper - -from typing import Optional, Type - -from ....._base_client import make_request_options - -from .....types.zero_trust.dlp.dataset import Dataset - -from ....._utils import maybe_transform, async_maybe_transform - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.zero_trust.dlp.dataset import Dataset from .....types.zero_trust.dlp.datasets import upload_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .....types.zero_trust.dlp.datasets.new_version import NewVersion __all__ = ["UploadResource", "AsyncUploadResource"] diff --git a/src/cloudflare/resources/zero_trust/dlp/datasets/versions/__init__.py b/src/cloudflare/resources/zero_trust/dlp/datasets/versions/__init__.py index bb9bee591..d1e2bd1be 100755 --- a/src/cloudflare/resources/zero_trust/dlp/datasets/versions/__init__.py +++ b/src/cloudflare/resources/zero_trust/dlp/datasets/versions/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .entries import EntriesResource, AsyncEntriesResource from .entries import ( + EntriesResource, + AsyncEntriesResource, EntriesResourceWithRawResponse, AsyncEntriesResourceWithRawResponse, EntriesResourceWithStreamingResponse, AsyncEntriesResourceWithStreamingResponse, ) -from .versions import VersionsResource, AsyncVersionsResource from .versions import ( + VersionsResource, + AsyncVersionsResource, VersionsResourceWithRawResponse, AsyncVersionsResourceWithRawResponse, VersionsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/zero_trust/dlp/datasets/versions/entries.py b/src/cloudflare/resources/zero_trust/dlp/datasets/versions/entries.py index 7520e0e81..1e41c6d4d 100755 --- a/src/cloudflare/resources/zero_trust/dlp/datasets/versions/entries.py +++ b/src/cloudflare/resources/zero_trust/dlp/datasets/versions/entries.py @@ -2,37 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ......_utils import ( + maybe_transform, + async_maybe_transform, +) from ......_compat import cached_property - -from ......types.zero_trust.dlp.datasets.versions.entry_create_response import EntryCreateResponse - -from ......_wrappers import ResultWrapper - -from ......_utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ......_base_client import make_request_options - +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......_resource import SyncAPIResource, AsyncAPIResource -from ......types import shared_params +from ......_wrappers import ResultWrapper +from ......_base_client import make_request_options from ......types.zero_trust.dlp.datasets.versions import entry_create_params -from typing import cast -from typing import cast +from ......types.zero_trust.dlp.datasets.versions.entry_create_response import EntryCreateResponse __all__ = ["EntriesResource", "AsyncEntriesResource"] diff --git a/src/cloudflare/resources/zero_trust/dlp/datasets/versions/versions.py b/src/cloudflare/resources/zero_trust/dlp/datasets/versions/versions.py index 1bbaa5880..0a16dd901 100755 --- a/src/cloudflare/resources/zero_trust/dlp/datasets/versions/versions.py +++ b/src/cloudflare/resources/zero_trust/dlp/datasets/versions/versions.py @@ -2,39 +2,10 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast + import httpx -from .entries import EntriesResource, AsyncEntriesResource - -from ......_compat import cached_property - -from ......types.zero_trust.dlp.datasets.version_create_response import VersionCreateResponse - -from ......_wrappers import ResultWrapper - -from typing import Iterable, Optional, Type - -from ......_utils import maybe_transform, async_maybe_transform - -from ......_base_client import make_request_options - -from ......_response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -from ......types.zero_trust.dlp.datasets import version_create_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ......_resource import SyncAPIResource, AsyncAPIResource -from ......types import shared_params -from ......types.zero_trust.dlp.datasets import version_create_params from .entries import ( EntriesResource, AsyncEntriesResource, @@ -43,8 +14,23 @@ from .entries import ( EntriesResourceWithStreamingResponse, AsyncEntriesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast +from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ......_utils import ( + maybe_transform, + async_maybe_transform, +) +from ......_compat import cached_property +from ......_resource import SyncAPIResource, AsyncAPIResource +from ......_response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ......_wrappers import ResultWrapper +from ......_base_client import make_request_options +from ......types.zero_trust.dlp.datasets import version_create_params +from ......types.zero_trust.dlp.datasets.version_create_response import VersionCreateResponse __all__ = ["VersionsResource", "AsyncVersionsResource"] diff --git a/src/cloudflare/resources/zero_trust/dlp/dlp.py b/src/cloudflare/resources/zero_trust/dlp/dlp.py index 218cfd67e..d85883ab5 100644 --- a/src/cloudflare/resources/zero_trust/dlp/dlp.py +++ b/src/cloudflare/resources/zero_trust/dlp/dlp.py @@ -2,25 +2,14 @@ from __future__ import annotations -from .datasets.datasets import DatasetsResource, AsyncDatasetsResource - -from ...._compat import cached_property - -from .patterns import PatternsResource, AsyncPatternsResource - -from .payload_logs import PayloadLogsResource, AsyncPayloadLogsResource - -from .profiles.profiles import ProfilesResource, AsyncProfilesResource - -from .limits import LimitsResource, AsyncLimitsResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from .limits import ( + LimitsResource, + AsyncLimitsResource, + LimitsResourceWithRawResponse, + AsyncLimitsResourceWithRawResponse, + LimitsResourceWithStreamingResponse, + AsyncLimitsResourceWithStreamingResponse, +) from .datasets import ( DatasetsResource, AsyncDatasetsResource, @@ -37,14 +26,6 @@ from .patterns import ( PatternsResourceWithStreamingResponse, AsyncPatternsResourceWithStreamingResponse, ) -from .payload_logs import ( - PayloadLogsResource, - AsyncPayloadLogsResource, - PayloadLogsResourceWithRawResponse, - AsyncPayloadLogsResourceWithRawResponse, - PayloadLogsResourceWithStreamingResponse, - AsyncPayloadLogsResourceWithStreamingResponse, -) from .profiles import ( ProfilesResource, AsyncProfilesResource, @@ -53,14 +34,18 @@ from .profiles import ( ProfilesResourceWithStreamingResponse, AsyncProfilesResourceWithStreamingResponse, ) -from .limits import ( - LimitsResource, - AsyncLimitsResource, - LimitsResourceWithRawResponse, - AsyncLimitsResourceWithRawResponse, - LimitsResourceWithStreamingResponse, - AsyncLimitsResourceWithStreamingResponse, +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from .payload_logs import ( + PayloadLogsResource, + AsyncPayloadLogsResource, + PayloadLogsResourceWithRawResponse, + AsyncPayloadLogsResourceWithRawResponse, + PayloadLogsResourceWithStreamingResponse, + AsyncPayloadLogsResourceWithStreamingResponse, ) +from .datasets.datasets import DatasetsResource, AsyncDatasetsResource +from .profiles.profiles import ProfilesResource, AsyncProfilesResource __all__ = ["DLPResource", "AsyncDLPResource"] diff --git a/src/cloudflare/resources/zero_trust/dlp/limits.py b/src/cloudflare/resources/zero_trust/dlp/limits.py index 14ada195c..481e2e1eb 100755 --- a/src/cloudflare/resources/zero_trust/dlp/limits.py +++ b/src/cloudflare/resources/zero_trust/dlp/limits.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.zero_trust.dlp.limit_list_response import LimitListResponse - -from ...._wrappers import ResultWrapper - -from typing import Optional, Type - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.zero_trust.dlp.limit_list_response import LimitListResponse __all__ = ["LimitsResource", "AsyncLimitsResource"] diff --git a/src/cloudflare/resources/zero_trust/dlp/patterns.py b/src/cloudflare/resources/zero_trust/dlp/patterns.py index 3e2176cb1..3197e8273 100644 --- a/src/cloudflare/resources/zero_trust/dlp/patterns.py +++ b/src/cloudflare/resources/zero_trust/dlp/patterns.py @@ -2,37 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.dlp.pattern_validate_response import PatternValidateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.zero_trust.dlp import pattern_validate_params -from typing import cast -from typing import cast +from ....types.zero_trust.dlp.pattern_validate_response import PatternValidateResponse __all__ = ["PatternsResource", "AsyncPatternsResource"] diff --git a/src/cloudflare/resources/zero_trust/dlp/payload_logs.py b/src/cloudflare/resources/zero_trust/dlp/payload_logs.py index 54235510e..e0621cd66 100644 --- a/src/cloudflare/resources/zero_trust/dlp/payload_logs.py +++ b/src/cloudflare/resources/zero_trust/dlp/payload_logs.py @@ -2,41 +2,28 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.dlp.payload_log_update_response import PayloadLogUpdateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options - -from ....types.zero_trust.dlp.payload_log_get_response import PayloadLogGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.zero_trust.dlp import payload_log_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....types.zero_trust.dlp.payload_log_get_response import PayloadLogGetResponse +from ....types.zero_trust.dlp.payload_log_update_response import PayloadLogUpdateResponse __all__ = ["PayloadLogsResource", "AsyncPayloadLogsResource"] diff --git a/src/cloudflare/resources/zero_trust/dlp/profiles/__init__.py b/src/cloudflare/resources/zero_trust/dlp/profiles/__init__.py index c9e495bb4..967f99cb1 100644 --- a/src/cloudflare/resources/zero_trust/dlp/profiles/__init__.py +++ b/src/cloudflare/resources/zero_trust/dlp/profiles/__init__.py @@ -1,26 +1,29 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .custom import CustomResource, AsyncCustomResource from .custom import ( + CustomResource, + AsyncCustomResource, CustomResourceWithRawResponse, AsyncCustomResourceWithRawResponse, CustomResourceWithStreamingResponse, AsyncCustomResourceWithStreamingResponse, ) -from .predefined import PredefinedResource, AsyncPredefinedResource -from .predefined import ( - PredefinedResourceWithRawResponse, - AsyncPredefinedResourceWithRawResponse, - PredefinedResourceWithStreamingResponse, - AsyncPredefinedResourceWithStreamingResponse, -) -from .profiles import ProfilesResource, AsyncProfilesResource from .profiles import ( + ProfilesResource, + AsyncProfilesResource, ProfilesResourceWithRawResponse, AsyncProfilesResourceWithRawResponse, ProfilesResourceWithStreamingResponse, AsyncProfilesResourceWithStreamingResponse, ) +from .predefined import ( + PredefinedResource, + AsyncPredefinedResource, + PredefinedResourceWithRawResponse, + AsyncPredefinedResourceWithRawResponse, + PredefinedResourceWithStreamingResponse, + AsyncPredefinedResourceWithStreamingResponse, +) __all__ = [ "CustomResource", diff --git a/src/cloudflare/resources/zero_trust/dlp/profiles/custom.py b/src/cloudflare/resources/zero_trust/dlp/profiles/custom.py index 05b54a2d2..c90b652ea 100644 --- a/src/cloudflare/resources/zero_trust/dlp/profiles/custom.py +++ b/src/cloudflare/resources/zero_trust/dlp/profiles/custom.py @@ -2,55 +2,29 @@ from __future__ import annotations +from typing import Any, Type, Iterable, Optional, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.zero_trust.dlp.profiles.custom_create_response import CustomCreateResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Iterable - -from ....._base_client import make_request_options - -from .....types.zero_trust.dlp.profile import Profile - -from .....types.zero_trust.dlp.context_awareness_param import ContextAwarenessParam - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.zero_trust.dlp.profile import Profile from .....types.zero_trust.dlp.profiles import custom_create_params, custom_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.zero_trust.dlp.profiles import custom_create_params -from .....types.zero_trust.dlp.profiles import custom_update_params -from .....types.zero_trust.dlp import ContextAwareness -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .....types.zero_trust.dlp.context_awareness_param import ContextAwarenessParam +from .....types.zero_trust.dlp.profiles.custom_create_response import CustomCreateResponse __all__ = ["CustomResource", "AsyncCustomResource"] diff --git a/src/cloudflare/resources/zero_trust/dlp/profiles/predefined.py b/src/cloudflare/resources/zero_trust/dlp/profiles/predefined.py index 771ce13e9..67f45a070 100644 --- a/src/cloudflare/resources/zero_trust/dlp/profiles/predefined.py +++ b/src/cloudflare/resources/zero_trust/dlp/profiles/predefined.py @@ -2,48 +2,28 @@ from __future__ import annotations +from typing import Any, Iterable, Optional, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.zero_trust.dlp.profile import Profile - -from ....._wrappers import ResultWrapper - -from typing import Optional, Iterable - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from .....types.zero_trust.dlp.context_awareness_param import ContextAwarenessParam - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.zero_trust.dlp.profile import Profile from .....types.zero_trust.dlp.profiles import predefined_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.zero_trust.dlp.profiles import predefined_update_params -from .....types.zero_trust.dlp import ContextAwareness -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .....types.zero_trust.dlp.context_awareness_param import ContextAwarenessParam __all__ = ["PredefinedResource", "AsyncPredefinedResource"] diff --git a/src/cloudflare/resources/zero_trust/dlp/profiles/profiles.py b/src/cloudflare/resources/zero_trust/dlp/profiles/profiles.py index abd762fef..2287eddb2 100644 --- a/src/cloudflare/resources/zero_trust/dlp/profiles/profiles.py +++ b/src/cloudflare/resources/zero_trust/dlp/profiles/profiles.py @@ -2,41 +2,10 @@ from __future__ import annotations +from typing import Any, Optional, cast + import httpx -from .custom import CustomResource, AsyncCustomResource - -from ....._compat import cached_property - -from .predefined import PredefinedResource, AsyncPredefinedResource - -from .....types.zero_trust.dlp.profile import Profile - -from .....pagination import SyncSinglePage, AsyncSinglePage - -from ....._utils import maybe_transform - -from ....._base_client import make_request_options, AsyncPaginator - -from ....._wrappers import ResultWrapper - -from typing import Optional - -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.zero_trust.dlp import profile_list_params from .custom import ( CustomResource, AsyncCustomResource, @@ -45,6 +14,8 @@ from .custom import ( CustomResourceWithStreamingResponse, AsyncCustomResourceWithStreamingResponse, ) +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import maybe_transform from .predefined import ( PredefinedResource, AsyncPredefinedResource, @@ -53,12 +24,19 @@ from .predefined import ( PredefinedResourceWithStreamingResponse, AsyncPredefinedResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....._wrappers import ResultWrapper +from .....pagination import SyncSinglePage, AsyncSinglePage +from ....._base_client import AsyncPaginator, make_request_options +from .....types.zero_trust.dlp import profile_list_params +from .....types.zero_trust.dlp.profile import Profile __all__ = ["ProfilesResource", "AsyncProfilesResource"] diff --git a/src/cloudflare/resources/zero_trust/gateway/__init__.py b/src/cloudflare/resources/zero_trust/gateway/__init__.py index 44f4de8ee..dd7142963 100644 --- a/src/cloudflare/resources/zero_trust/gateway/__init__.py +++ b/src/cloudflare/resources/zero_trust/gateway/__init__.py @@ -1,81 +1,92 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .audit_ssh_settings import AuditSSHSettingsResource, AsyncAuditSSHSettingsResource -from .audit_ssh_settings import ( - AuditSSHSettingsResourceWithRawResponse, - AsyncAuditSSHSettingsResourceWithRawResponse, - AuditSSHSettingsResourceWithStreamingResponse, - AsyncAuditSSHSettingsResourceWithStreamingResponse, -) -from .categories import CategoriesResource, AsyncCategoriesResource -from .categories import ( - CategoriesResourceWithRawResponse, - AsyncCategoriesResourceWithRawResponse, - CategoriesResourceWithStreamingResponse, - AsyncCategoriesResourceWithStreamingResponse, -) -from .app_types import AppTypesResource, AsyncAppTypesResource -from .app_types import ( - AppTypesResourceWithRawResponse, - AsyncAppTypesResourceWithRawResponse, - AppTypesResourceWithStreamingResponse, - AsyncAppTypesResourceWithStreamingResponse, -) -from .configurations import ConfigurationsResource, AsyncConfigurationsResource -from .configurations import ( - ConfigurationsResourceWithRawResponse, - AsyncConfigurationsResourceWithRawResponse, - ConfigurationsResourceWithStreamingResponse, - AsyncConfigurationsResourceWithStreamingResponse, -) -from .lists import ListsResource, AsyncListsResource from .lists import ( + ListsResource, + AsyncListsResource, ListsResourceWithRawResponse, AsyncListsResourceWithRawResponse, ListsResourceWithStreamingResponse, AsyncListsResourceWithStreamingResponse, ) -from .locations import LocationsResource, AsyncLocationsResource -from .locations import ( - LocationsResourceWithRawResponse, - AsyncLocationsResourceWithRawResponse, - LocationsResourceWithStreamingResponse, - AsyncLocationsResourceWithStreamingResponse, -) -from .logging import LoggingResource, AsyncLoggingResource -from .logging import ( - LoggingResourceWithRawResponse, - AsyncLoggingResourceWithRawResponse, - LoggingResourceWithStreamingResponse, - AsyncLoggingResourceWithStreamingResponse, -) -from .proxy_endpoints import ProxyEndpointsResource, AsyncProxyEndpointsResource -from .proxy_endpoints import ( - ProxyEndpointsResourceWithRawResponse, - AsyncProxyEndpointsResourceWithRawResponse, - ProxyEndpointsResourceWithStreamingResponse, - AsyncProxyEndpointsResourceWithStreamingResponse, -) -from .rules import RulesResource, AsyncRulesResource from .rules import ( + RulesResource, + AsyncRulesResource, RulesResourceWithRawResponse, AsyncRulesResourceWithRawResponse, RulesResourceWithStreamingResponse, AsyncRulesResourceWithStreamingResponse, ) -from .certificates import CertificatesResource, AsyncCertificatesResource +from .gateway import ( + GatewayResource, + AsyncGatewayResource, + GatewayResourceWithRawResponse, + AsyncGatewayResourceWithRawResponse, + GatewayResourceWithStreamingResponse, + AsyncGatewayResourceWithStreamingResponse, +) +from .logging import ( + LoggingResource, + AsyncLoggingResource, + LoggingResourceWithRawResponse, + AsyncLoggingResourceWithRawResponse, + LoggingResourceWithStreamingResponse, + AsyncLoggingResourceWithStreamingResponse, +) +from .app_types import ( + AppTypesResource, + AsyncAppTypesResource, + AppTypesResourceWithRawResponse, + AsyncAppTypesResourceWithRawResponse, + AppTypesResourceWithStreamingResponse, + AsyncAppTypesResourceWithStreamingResponse, +) +from .locations import ( + LocationsResource, + AsyncLocationsResource, + LocationsResourceWithRawResponse, + AsyncLocationsResourceWithRawResponse, + LocationsResourceWithStreamingResponse, + AsyncLocationsResourceWithStreamingResponse, +) +from .categories import ( + CategoriesResource, + AsyncCategoriesResource, + CategoriesResourceWithRawResponse, + AsyncCategoriesResourceWithRawResponse, + CategoriesResourceWithStreamingResponse, + AsyncCategoriesResourceWithStreamingResponse, +) from .certificates import ( + CertificatesResource, + AsyncCertificatesResource, CertificatesResourceWithRawResponse, AsyncCertificatesResourceWithRawResponse, CertificatesResourceWithStreamingResponse, AsyncCertificatesResourceWithStreamingResponse, ) -from .gateway import GatewayResource, AsyncGatewayResource -from .gateway import ( - GatewayResourceWithRawResponse, - AsyncGatewayResourceWithRawResponse, - GatewayResourceWithStreamingResponse, - AsyncGatewayResourceWithStreamingResponse, +from .configurations import ( + ConfigurationsResource, + AsyncConfigurationsResource, + ConfigurationsResourceWithRawResponse, + AsyncConfigurationsResourceWithRawResponse, + ConfigurationsResourceWithStreamingResponse, + AsyncConfigurationsResourceWithStreamingResponse, +) +from .proxy_endpoints import ( + ProxyEndpointsResource, + AsyncProxyEndpointsResource, + ProxyEndpointsResourceWithRawResponse, + AsyncProxyEndpointsResourceWithRawResponse, + ProxyEndpointsResourceWithStreamingResponse, + AsyncProxyEndpointsResourceWithStreamingResponse, +) +from .audit_ssh_settings import ( + AuditSSHSettingsResource, + AsyncAuditSSHSettingsResource, + AuditSSHSettingsResourceWithRawResponse, + AsyncAuditSSHSettingsResourceWithRawResponse, + AuditSSHSettingsResourceWithStreamingResponse, + AsyncAuditSSHSettingsResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/zero_trust/gateway/app_types.py b/src/cloudflare/resources/zero_trust/gateway/app_types.py index 344856469..bb06a6f6f 100644 --- a/src/cloudflare/resources/zero_trust/gateway/app_types.py +++ b/src/cloudflare/resources/zero_trust/gateway/app_types.py @@ -2,32 +2,22 @@ from __future__ import annotations +from typing import Any, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.zero_trust.gateway.app_type import AppType - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ...._base_client import make_request_options, AsyncPaginator - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.zero_trust.gateway.app_type import AppType __all__ = ["AppTypesResource", "AsyncAppTypesResource"] diff --git a/src/cloudflare/resources/zero_trust/gateway/audit_ssh_settings.py b/src/cloudflare/resources/zero_trust/gateway/audit_ssh_settings.py index 181828137..44a542f75 100644 --- a/src/cloudflare/resources/zero_trust/gateway/audit_ssh_settings.py +++ b/src/cloudflare/resources/zero_trust/gateway/audit_ssh_settings.py @@ -2,39 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.gateway.gateway_settings import GatewaySettings - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.zero_trust.gateway import audit_ssh_setting_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....types.zero_trust.gateway.gateway_settings import GatewaySettings __all__ = ["AuditSSHSettingsResource", "AsyncAuditSSHSettingsResource"] diff --git a/src/cloudflare/resources/zero_trust/gateway/categories.py b/src/cloudflare/resources/zero_trust/gateway/categories.py index 0f4b4ac70..9b8f47fdc 100644 --- a/src/cloudflare/resources/zero_trust/gateway/categories.py +++ b/src/cloudflare/resources/zero_trust/gateway/categories.py @@ -4,28 +4,18 @@ from __future__ import annotations import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.zero_trust.gateway.category import Category - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ...._base_client import make_request_options, AsyncPaginator - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.zero_trust.gateway.category import Category __all__ = ["CategoriesResource", "AsyncCategoriesResource"] diff --git a/src/cloudflare/resources/zero_trust/gateway/certificates.py b/src/cloudflare/resources/zero_trust/gateway/certificates.py index 033de09da..087d1b173 100644 --- a/src/cloudflare/resources/zero_trust/gateway/certificates.py +++ b/src/cloudflare/resources/zero_trust/gateway/certificates.py @@ -2,59 +2,37 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.gateway.certificate_create_response import CertificateCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.zero_trust.gateway.certificate_list_response import CertificateListResponse - -from ....pagination import SyncSinglePage, AsyncSinglePage - -from ....types.zero_trust.gateway.certificate_delete_response import CertificateDeleteResponse - -from ....types.zero_trust.gateway.certificate_activate_response import CertificateActivateResponse - -from ....types.zero_trust.gateway.certificate_deactivate_response import CertificateDeactivateResponse - -from ....types.zero_trust.gateway.certificate_get_response import CertificateGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.zero_trust.gateway import certificate_create_params -from ....types.zero_trust.gateway import certificate_activate_params -from ....types.zero_trust.gateway import certificate_deactivate_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.zero_trust.gateway import ( + certificate_create_params, + certificate_activate_params, + certificate_deactivate_params, +) +from ....types.zero_trust.gateway.certificate_get_response import CertificateGetResponse +from ....types.zero_trust.gateway.certificate_list_response import CertificateListResponse +from ....types.zero_trust.gateway.certificate_create_response import CertificateCreateResponse +from ....types.zero_trust.gateway.certificate_delete_response import CertificateDeleteResponse +from ....types.zero_trust.gateway.certificate_activate_response import CertificateActivateResponse +from ....types.zero_trust.gateway.certificate_deactivate_response import CertificateDeactivateResponse __all__ = ["CertificatesResource", "AsyncCertificatesResource"] diff --git a/src/cloudflare/resources/zero_trust/gateway/configurations/__init__.py b/src/cloudflare/resources/zero_trust/gateway/configurations/__init__.py index 666a16d47..7fce5672e 100755 --- a/src/cloudflare/resources/zero_trust/gateway/configurations/__init__.py +++ b/src/cloudflare/resources/zero_trust/gateway/configurations/__init__.py @@ -1,19 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .custom_certificate import CustomCertificateResource, AsyncCustomCertificateResource -from .custom_certificate import ( - CustomCertificateResourceWithRawResponse, - AsyncCustomCertificateResourceWithRawResponse, - CustomCertificateResourceWithStreamingResponse, - AsyncCustomCertificateResourceWithStreamingResponse, -) -from .configurations import ConfigurationsResource, AsyncConfigurationsResource from .configurations import ( + ConfigurationsResource, + AsyncConfigurationsResource, ConfigurationsResourceWithRawResponse, AsyncConfigurationsResourceWithRawResponse, ConfigurationsResourceWithStreamingResponse, AsyncConfigurationsResourceWithStreamingResponse, ) +from .custom_certificate import ( + CustomCertificateResource, + AsyncCustomCertificateResource, + CustomCertificateResourceWithRawResponse, + AsyncCustomCertificateResourceWithRawResponse, + CustomCertificateResourceWithStreamingResponse, + AsyncCustomCertificateResourceWithStreamingResponse, +) __all__ = [ "CustomCertificateResource", diff --git a/src/cloudflare/resources/zero_trust/gateway/configurations/configurations.py b/src/cloudflare/resources/zero_trust/gateway/configurations/configurations.py index 6381869a0..f469deb3b 100755 --- a/src/cloudflare/resources/zero_trust/gateway/configurations/configurations.py +++ b/src/cloudflare/resources/zero_trust/gateway/configurations/configurations.py @@ -2,46 +2,25 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .custom_certificate import CustomCertificateResource, AsyncCustomCertificateResource - +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.zero_trust.gateway.configuration_update_response import ConfigurationUpdateResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ....._base_client import make_request_options - -from .....types.zero_trust.gateway.gateway_configuration_settings_param import GatewayConfigurationSettingsParam - -from .....types.zero_trust.gateway.configuration_edit_response import ConfigurationEditResponse - -from .....types.zero_trust.gateway.configuration_get_response import ConfigurationGetResponse - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.zero_trust.gateway import configuration_update_params -from .....types.zero_trust.gateway import configuration_edit_params -from .....types.zero_trust.gateway import GatewayConfigurationSettings -from .....types.zero_trust.gateway import GatewayConfigurationSettings +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .custom_certificate import ( CustomCertificateResource, AsyncCustomCertificateResource, @@ -50,12 +29,14 @@ from .custom_certificate import ( CustomCertificateResourceWithStreamingResponse, AsyncCustomCertificateResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .....types.zero_trust.gateway import ( + configuration_edit_params, + configuration_update_params, +) +from .....types.zero_trust.gateway.configuration_get_response import ConfigurationGetResponse +from .....types.zero_trust.gateway.configuration_edit_response import ConfigurationEditResponse +from .....types.zero_trust.gateway.configuration_update_response import ConfigurationUpdateResponse +from .....types.zero_trust.gateway.gateway_configuration_settings_param import GatewayConfigurationSettingsParam __all__ = ["ConfigurationsResource", "AsyncConfigurationsResource"] diff --git a/src/cloudflare/resources/zero_trust/gateway/configurations/custom_certificate.py b/src/cloudflare/resources/zero_trust/gateway/configurations/custom_certificate.py index d28030ce7..17054f15f 100755 --- a/src/cloudflare/resources/zero_trust/gateway/configurations/custom_certificate.py +++ b/src/cloudflare/resources/zero_trust/gateway/configurations/custom_certificate.py @@ -4,26 +4,17 @@ from __future__ import annotations import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._compat import cached_property - -from .....types.zero_trust.gateway.custom_certificate_settings import CustomCertificateSettings - -from ....._base_client import make_request_options - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._base_client import make_request_options +from .....types.zero_trust.gateway.custom_certificate_settings import CustomCertificateSettings __all__ = ["CustomCertificateResource", "AsyncCustomCertificateResource"] diff --git a/src/cloudflare/resources/zero_trust/gateway/gateway.py b/src/cloudflare/resources/zero_trust/gateway/gateway.py index 9fa810fdb..fd4c45429 100644 --- a/src/cloudflare/resources/zero_trust/gateway/gateway.py +++ b/src/cloudflare/resources/zero_trust/gateway/gateway.py @@ -2,86 +2,10 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .audit_ssh_settings import AuditSSHSettingsResource, AsyncAuditSSHSettingsResource - -from ...._compat import cached_property - -from .categories import CategoriesResource, AsyncCategoriesResource - -from .app_types import AppTypesResource, AsyncAppTypesResource - -from .configurations.configurations import ConfigurationsResource, AsyncConfigurationsResource - -from .lists.lists import ListsResource, AsyncListsResource - -from .locations import LocationsResource, AsyncLocationsResource - -from .logging import LoggingResource, AsyncLoggingResource - -from .proxy_endpoints import ProxyEndpointsResource, AsyncProxyEndpointsResource - -from .rules import RulesResource, AsyncRulesResource - -from .certificates import CertificatesResource, AsyncCertificatesResource - -from ....types.zero_trust.gateway_create_response import GatewayCreateResponse - -from ...._wrappers import ResultWrapper - -from typing import Optional, Type - -from ...._base_client import make_request_options - -from ....types.zero_trust.gateway_list_response import GatewayListResponse - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from .audit_ssh_settings import ( - AuditSSHSettingsResource, - AsyncAuditSSHSettingsResource, - AuditSSHSettingsResourceWithRawResponse, - AsyncAuditSSHSettingsResourceWithRawResponse, - AuditSSHSettingsResourceWithStreamingResponse, - AsyncAuditSSHSettingsResourceWithStreamingResponse, -) -from .categories import ( - CategoriesResource, - AsyncCategoriesResource, - CategoriesResourceWithRawResponse, - AsyncCategoriesResourceWithRawResponse, - CategoriesResourceWithStreamingResponse, - AsyncCategoriesResourceWithStreamingResponse, -) -from .app_types import ( - AppTypesResource, - AsyncAppTypesResource, - AppTypesResourceWithRawResponse, - AsyncAppTypesResourceWithRawResponse, - AppTypesResourceWithStreamingResponse, - AsyncAppTypesResourceWithStreamingResponse, -) -from .configurations import ( - ConfigurationsResource, - AsyncConfigurationsResource, - ConfigurationsResourceWithRawResponse, - AsyncConfigurationsResourceWithRawResponse, - ConfigurationsResourceWithStreamingResponse, - AsyncConfigurationsResourceWithStreamingResponse, -) from .lists import ( ListsResource, AsyncListsResource, @@ -90,30 +14,6 @@ from .lists import ( ListsResourceWithStreamingResponse, AsyncListsResourceWithStreamingResponse, ) -from .locations import ( - LocationsResource, - AsyncLocationsResource, - LocationsResourceWithRawResponse, - AsyncLocationsResourceWithRawResponse, - LocationsResourceWithStreamingResponse, - AsyncLocationsResourceWithStreamingResponse, -) -from .logging import ( - LoggingResource, - AsyncLoggingResource, - LoggingResourceWithRawResponse, - AsyncLoggingResourceWithRawResponse, - LoggingResourceWithStreamingResponse, - AsyncLoggingResourceWithStreamingResponse, -) -from .proxy_endpoints import ( - ProxyEndpointsResource, - AsyncProxyEndpointsResource, - ProxyEndpointsResourceWithRawResponse, - AsyncProxyEndpointsResourceWithRawResponse, - ProxyEndpointsResourceWithStreamingResponse, - AsyncProxyEndpointsResourceWithStreamingResponse, -) from .rules import ( RulesResource, AsyncRulesResource, @@ -122,6 +22,49 @@ from .rules import ( RulesResourceWithStreamingResponse, AsyncRulesResourceWithStreamingResponse, ) +from .logging import ( + LoggingResource, + AsyncLoggingResource, + LoggingResourceWithRawResponse, + AsyncLoggingResourceWithRawResponse, + LoggingResourceWithStreamingResponse, + AsyncLoggingResourceWithStreamingResponse, +) +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .app_types import ( + AppTypesResource, + AsyncAppTypesResource, + AppTypesResourceWithRawResponse, + AsyncAppTypesResourceWithRawResponse, + AppTypesResourceWithStreamingResponse, + AsyncAppTypesResourceWithStreamingResponse, +) +from .locations import ( + LocationsResource, + AsyncLocationsResource, + LocationsResourceWithRawResponse, + AsyncLocationsResourceWithRawResponse, + LocationsResourceWithStreamingResponse, + AsyncLocationsResourceWithStreamingResponse, +) +from ...._compat import cached_property +from .categories import ( + CategoriesResource, + AsyncCategoriesResource, + CategoriesResourceWithRawResponse, + AsyncCategoriesResourceWithRawResponse, + CategoriesResourceWithStreamingResponse, + AsyncCategoriesResourceWithStreamingResponse, +) +from .lists.lists import ListsResource, AsyncListsResource +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper from .certificates import ( CertificatesResource, AsyncCertificatesResource, @@ -130,10 +73,34 @@ from .certificates import ( CertificatesResourceWithStreamingResponse, AsyncCertificatesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .configurations import ( + ConfigurationsResource, + AsyncConfigurationsResource, + ConfigurationsResourceWithRawResponse, + AsyncConfigurationsResourceWithRawResponse, + ConfigurationsResourceWithStreamingResponse, + AsyncConfigurationsResourceWithStreamingResponse, +) +from ...._base_client import make_request_options +from .proxy_endpoints import ( + ProxyEndpointsResource, + AsyncProxyEndpointsResource, + ProxyEndpointsResourceWithRawResponse, + AsyncProxyEndpointsResourceWithRawResponse, + ProxyEndpointsResourceWithStreamingResponse, + AsyncProxyEndpointsResourceWithStreamingResponse, +) +from .audit_ssh_settings import ( + AuditSSHSettingsResource, + AsyncAuditSSHSettingsResource, + AuditSSHSettingsResourceWithRawResponse, + AsyncAuditSSHSettingsResourceWithRawResponse, + AuditSSHSettingsResourceWithStreamingResponse, + AsyncAuditSSHSettingsResourceWithStreamingResponse, +) +from .configurations.configurations import ConfigurationsResource, AsyncConfigurationsResource +from ....types.zero_trust.gateway_list_response import GatewayListResponse +from ....types.zero_trust.gateway_create_response import GatewayCreateResponse __all__ = ["GatewayResource", "AsyncGatewayResource"] diff --git a/src/cloudflare/resources/zero_trust/gateway/lists/__init__.py b/src/cloudflare/resources/zero_trust/gateway/lists/__init__.py index cf8fe5eca..5646bb1ae 100644 --- a/src/cloudflare/resources/zero_trust/gateway/lists/__init__.py +++ b/src/cloudflare/resources/zero_trust/gateway/lists/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .items import ItemsResource, AsyncItemsResource from .items import ( + ItemsResource, + AsyncItemsResource, ItemsResourceWithRawResponse, AsyncItemsResourceWithRawResponse, ItemsResourceWithStreamingResponse, AsyncItemsResourceWithStreamingResponse, ) -from .lists import ListsResource, AsyncListsResource from .lists import ( + ListsResource, + AsyncListsResource, ListsResourceWithRawResponse, AsyncListsResourceWithRawResponse, ListsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/zero_trust/gateway/lists/items.py b/src/cloudflare/resources/zero_trust/gateway/lists/items.py index 47f9fa9c7..8a43c7e6c 100644 --- a/src/cloudflare/resources/zero_trust/gateway/lists/items.py +++ b/src/cloudflare/resources/zero_trust/gateway/lists/items.py @@ -4,28 +4,18 @@ from __future__ import annotations import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._compat import cached_property - -from .....types.zero_trust.gateway.lists.item_list_response import ItemListResponse - -from .....pagination import SyncSinglePage, AsyncSinglePage - -from ....._base_client import make_request_options, AsyncPaginator - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from .....pagination import SyncSinglePage, AsyncSinglePage +from ....._base_client import AsyncPaginator, make_request_options +from .....types.zero_trust.gateway.lists.item_list_response import ItemListResponse __all__ = ["ItemsResource", "AsyncItemsResource"] diff --git a/src/cloudflare/resources/zero_trust/gateway/lists/lists.py b/src/cloudflare/resources/zero_trust/gateway/lists/lists.py index 2e77a4b09..9e8ff3d02 100644 --- a/src/cloudflare/resources/zero_trust/gateway/lists/lists.py +++ b/src/cloudflare/resources/zero_trust/gateway/lists/lists.py @@ -2,48 +2,11 @@ from __future__ import annotations +from typing import List, Type, Iterable, Optional, cast +from typing_extensions import Literal + import httpx -from .items import ItemsResource, AsyncItemsResource - -from ....._compat import cached_property - -from .....types.zero_trust.gateway.list_create_response import ListCreateResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Iterable, List - -from ....._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from .....types.zero_trust.gateway.gateway_item_param import GatewayItemParam - -from .....types.zero_trust.gateway.gateway_list import GatewayList - -from .....pagination import SyncSinglePage, AsyncSinglePage - -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.zero_trust.gateway import list_create_params -from .....types.zero_trust.gateway import list_update_params -from .....types.zero_trust.gateway import list_list_params -from .....types.zero_trust.gateway import list_edit_params from .items import ( ItemsResource, AsyncItemsResource, @@ -52,16 +15,26 @@ from .items import ( ItemsResourceWithStreamingResponse, AsyncItemsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....._wrappers import ResultWrapper +from .....pagination import SyncSinglePage, AsyncSinglePage +from ....._base_client import AsyncPaginator, make_request_options +from .....types.zero_trust.gateway import list_edit_params, list_list_params, list_create_params, list_update_params +from .....types.zero_trust.gateway.gateway_list import GatewayList +from .....types.zero_trust.gateway.gateway_item_param import GatewayItemParam +from .....types.zero_trust.gateway.list_create_response import ListCreateResponse __all__ = ["ListsResource", "AsyncListsResource"] diff --git a/src/cloudflare/resources/zero_trust/gateway/locations.py b/src/cloudflare/resources/zero_trust/gateway/locations.py index d4f65944b..c87a43a58 100644 --- a/src/cloudflare/resources/zero_trust/gateway/locations.py +++ b/src/cloudflare/resources/zero_trust/gateway/locations.py @@ -2,52 +2,29 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.gateway.location import Location - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Iterable - -from ...._base_client import make_request_options, AsyncPaginator - -from ....types.zero_trust.gateway.endpoint_param import EndpointParam - -from ....pagination import SyncSinglePage, AsyncSinglePage - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options from ....types.zero_trust.gateway import location_create_params, location_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.zero_trust.gateway import location_create_params -from ....types.zero_trust.gateway import location_update_params -from ....types.zero_trust.gateway import Endpoint -from ....types.zero_trust.gateway import Endpoint -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....types.zero_trust.gateway.location import Location +from ....types.zero_trust.gateway.endpoint_param import EndpointParam __all__ = ["LocationsResource", "AsyncLocationsResource"] diff --git a/src/cloudflare/resources/zero_trust/gateway/logging.py b/src/cloudflare/resources/zero_trust/gateway/logging.py index 5a45a0423..64eff13ef 100644 --- a/src/cloudflare/resources/zero_trust/gateway/logging.py +++ b/src/cloudflare/resources/zero_trust/gateway/logging.py @@ -2,41 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.gateway.logging_setting import LoggingSetting - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.zero_trust.gateway import logging_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.zero_trust.gateway import logging_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....types.zero_trust.gateway.logging_setting import LoggingSetting __all__ = ["LoggingResource", "AsyncLoggingResource"] diff --git a/src/cloudflare/resources/zero_trust/gateway/proxy_endpoints.py b/src/cloudflare/resources/zero_trust/gateway/proxy_endpoints.py index 1d38158a3..dfbbb06a2 100644 --- a/src/cloudflare/resources/zero_trust/gateway/proxy_endpoints.py +++ b/src/cloudflare/resources/zero_trust/gateway/proxy_endpoints.py @@ -2,50 +2,29 @@ from __future__ import annotations +from typing import List, Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.gateway.proxy_endpoint import ProxyEndpoint - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, List - -from ...._base_client import make_request_options - -from ....types.zero_trust.gateway.gateway_ips import GatewayIPs - -from ....types.zero_trust.gateway.proxy_endpoint_get_response import ProxyEndpointGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.zero_trust.gateway import proxy_endpoint_create_params -from ....types.zero_trust.gateway import proxy_endpoint_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.zero_trust.gateway import proxy_endpoint_edit_params, proxy_endpoint_create_params +from ....types.zero_trust.gateway.gateway_ips import GatewayIPs +from ....types.zero_trust.gateway.proxy_endpoint import ProxyEndpoint +from ....types.zero_trust.gateway.proxy_endpoint_get_response import ProxyEndpointGetResponse __all__ = ["ProxyEndpointsResource", "AsyncProxyEndpointsResource"] diff --git a/src/cloudflare/resources/zero_trust/gateway/rules.py b/src/cloudflare/resources/zero_trust/gateway/rules.py index a40934859..69458d224 100644 --- a/src/cloudflare/resources/zero_trust/gateway/rules.py +++ b/src/cloudflare/resources/zero_trust/gateway/rules.py @@ -2,58 +2,32 @@ from __future__ import annotations +from typing import List, Type, Optional, cast +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.gateway.gateway_rule import GatewayRule - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, List - -from ...._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from ....types.zero_trust.gateway.gateway_filter import GatewayFilter - -from ....types.zero_trust.gateway.rule_setting_param import RuleSettingParam - -from ....types.zero_trust.gateway.schedule_param import ScheduleParam - -from ....pagination import SyncSinglePage, AsyncSinglePage - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.zero_trust.gateway import rule_create_params -from ....types.zero_trust.gateway import rule_update_params -from ....types.zero_trust.gateway import RuleSetting -from ....types.zero_trust.gateway import Schedule -from ....types.zero_trust.gateway import RuleSetting -from ....types.zero_trust.gateway import Schedule -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.zero_trust.gateway import rule_create_params, rule_update_params +from ....types.zero_trust.gateway.gateway_rule import GatewayRule +from ....types.zero_trust.gateway.gateway_filter import GatewayFilter +from ....types.zero_trust.gateway.schedule_param import ScheduleParam +from ....types.zero_trust.gateway.rule_setting_param import RuleSettingParam __all__ = ["RulesResource", "AsyncRulesResource"] diff --git a/src/cloudflare/resources/zero_trust/identity_providers.py b/src/cloudflare/resources/zero_trust/identity_providers.py index 6608afc42..4de151f0e 100644 --- a/src/cloudflare/resources/zero_trust/identity_providers.py +++ b/src/cloudflare/resources/zero_trust/identity_providers.py @@ -2,130 +2,38 @@ from __future__ import annotations +from typing import Any, Type, Optional, cast, overload + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + required_args, + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.zero_trust.identity_provider_type import IdentityProviderType - -from ...types.zero_trust.identity_provider_scim_config_param import IdentityProviderSCIMConfigParam - -from typing import Optional, Type - -from ...types.zero_trust.identity_provider import IdentityProvider - -from ...types.zero_trust.generic_oauth_config_param import GenericOAuthConfigParam - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options, AsyncPaginator - -from ...types.zero_trust.identity_provider_list_response import IdentityProviderListResponse - -from ...pagination import SyncSinglePage, AsyncSinglePage - -from ...types.zero_trust.identity_provider_delete_response import IdentityProviderDeleteResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ...types.zero_trust import identity_provider_create_params, identity_provider_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.zero_trust import identity_provider_create_params -from ...types.zero_trust import identity_provider_update_params -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import GenericOAuthConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import GenericOAuthConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import GenericOAuthConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import GenericOAuthConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import GenericOAuthConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import GenericOAuthConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import GenericOAuthConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import GenericOAuthConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from ...types.zero_trust import IdentityProviderType -from ...types.zero_trust import IdentityProviderSCIMConfig -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...pagination import SyncSinglePage, AsyncSinglePage +from ..._base_client import AsyncPaginator, make_request_options +from ...types.zero_trust import ( + IdentityProviderType, + identity_provider_create_params, + identity_provider_update_params, +) +from ...types.zero_trust.identity_provider import IdentityProvider +from ...types.zero_trust.identity_provider_type import IdentityProviderType +from ...types.zero_trust.generic_oauth_config_param import GenericOAuthConfigParam +from ...types.zero_trust.identity_provider_list_response import IdentityProviderListResponse +from ...types.zero_trust.identity_provider_delete_response import IdentityProviderDeleteResponse +from ...types.zero_trust.identity_provider_scim_config_param import IdentityProviderSCIMConfigParam __all__ = ["IdentityProvidersResource", "AsyncIdentityProvidersResource"] diff --git a/src/cloudflare/resources/zero_trust/networks/__init__.py b/src/cloudflare/resources/zero_trust/networks/__init__.py index 236ae5327..0672f0849 100644 --- a/src/cloudflare/resources/zero_trust/networks/__init__.py +++ b/src/cloudflare/resources/zero_trust/networks/__init__.py @@ -1,26 +1,29 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .routes import RoutesResource, AsyncRoutesResource from .routes import ( + RoutesResource, + AsyncRoutesResource, RoutesResourceWithRawResponse, AsyncRoutesResourceWithRawResponse, RoutesResourceWithStreamingResponse, AsyncRoutesResourceWithStreamingResponse, ) -from .virtual_networks import VirtualNetworksResource, AsyncVirtualNetworksResource -from .virtual_networks import ( - VirtualNetworksResourceWithRawResponse, - AsyncVirtualNetworksResourceWithRawResponse, - VirtualNetworksResourceWithStreamingResponse, - AsyncVirtualNetworksResourceWithStreamingResponse, -) -from .networks import NetworksResource, AsyncNetworksResource from .networks import ( + NetworksResource, + AsyncNetworksResource, NetworksResourceWithRawResponse, AsyncNetworksResourceWithRawResponse, NetworksResourceWithStreamingResponse, AsyncNetworksResourceWithStreamingResponse, ) +from .virtual_networks import ( + VirtualNetworksResource, + AsyncVirtualNetworksResource, + VirtualNetworksResourceWithRawResponse, + AsyncVirtualNetworksResourceWithRawResponse, + VirtualNetworksResourceWithStreamingResponse, + AsyncVirtualNetworksResourceWithStreamingResponse, +) __all__ = [ "RoutesResource", diff --git a/src/cloudflare/resources/zero_trust/networks/networks.py b/src/cloudflare/resources/zero_trust/networks/networks.py index ce98b3e98..0fb746f07 100644 --- a/src/cloudflare/resources/zero_trust/networks/networks.py +++ b/src/cloudflare/resources/zero_trust/networks/networks.py @@ -2,19 +2,6 @@ from __future__ import annotations -from .routes.routes import RoutesResource, AsyncRoutesResource - -from ...._compat import cached_property - -from .virtual_networks import VirtualNetworksResource, AsyncVirtualNetworksResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params from .routes import ( RoutesResource, AsyncRoutesResource, @@ -23,6 +10,9 @@ from .routes import ( RoutesResourceWithStreamingResponse, AsyncRoutesResourceWithStreamingResponse, ) +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from .routes.routes import RoutesResource, AsyncRoutesResource from .virtual_networks import ( VirtualNetworksResource, AsyncVirtualNetworksResource, diff --git a/src/cloudflare/resources/zero_trust/networks/routes/__init__.py b/src/cloudflare/resources/zero_trust/networks/routes/__init__.py index e8fac4e0b..ab04f3fbc 100644 --- a/src/cloudflare/resources/zero_trust/networks/routes/__init__.py +++ b/src/cloudflare/resources/zero_trust/networks/routes/__init__.py @@ -1,26 +1,29 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .ips import IPsResource, AsyncIPsResource from .ips import ( + IPsResource, + AsyncIPsResource, IPsResourceWithRawResponse, AsyncIPsResourceWithRawResponse, IPsResourceWithStreamingResponse, AsyncIPsResourceWithStreamingResponse, ) -from .networks import NetworksResource, AsyncNetworksResource -from .networks import ( - NetworksResourceWithRawResponse, - AsyncNetworksResourceWithRawResponse, - NetworksResourceWithStreamingResponse, - AsyncNetworksResourceWithStreamingResponse, -) -from .routes import RoutesResource, AsyncRoutesResource from .routes import ( + RoutesResource, + AsyncRoutesResource, RoutesResourceWithRawResponse, AsyncRoutesResourceWithRawResponse, RoutesResourceWithStreamingResponse, AsyncRoutesResourceWithStreamingResponse, ) +from .networks import ( + NetworksResource, + AsyncNetworksResource, + NetworksResourceWithRawResponse, + AsyncNetworksResourceWithRawResponse, + NetworksResourceWithStreamingResponse, + AsyncNetworksResourceWithStreamingResponse, +) __all__ = [ "IPsResource", diff --git a/src/cloudflare/resources/zero_trust/networks/routes/ips.py b/src/cloudflare/resources/zero_trust/networks/routes/ips.py index 8cd2817d4..c0dfa2f67 100644 --- a/src/cloudflare/resources/zero_trust/networks/routes/ips.py +++ b/src/cloudflare/resources/zero_trust/networks/routes/ips.py @@ -2,37 +2,27 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.zero_trust.networks.teamnet import Teamnet - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options from .....types.zero_trust.networks.routes import ip_get_params -from typing import cast -from typing import cast +from .....types.zero_trust.networks.teamnet import Teamnet __all__ = ["IPsResource", "AsyncIPsResource"] diff --git a/src/cloudflare/resources/zero_trust/networks/routes/networks.py b/src/cloudflare/resources/zero_trust/networks/routes/networks.py index 74737d94f..6363a91a9 100644 --- a/src/cloudflare/resources/zero_trust/networks/routes/networks.py +++ b/src/cloudflare/resources/zero_trust/networks/routes/networks.py @@ -2,44 +2,28 @@ from __future__ import annotations +from typing import Type, cast +from typing_extensions import Literal + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) from ....._compat import cached_property - -from .....types.zero_trust.networks.route import Route - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options - -from typing import Type - -from typing_extensions import Literal - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.zero_trust.networks.routes import network_create_params -from .....types.zero_trust.networks.routes import network_delete_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.zero_trust.networks.route import Route +from .....types.zero_trust.networks.routes import network_create_params, network_delete_params __all__ = ["NetworksResource", "AsyncNetworksResource"] diff --git a/src/cloudflare/resources/zero_trust/networks/routes/routes.py b/src/cloudflare/resources/zero_trust/networks/routes/routes.py index 322c9804f..e2520102b 100644 --- a/src/cloudflare/resources/zero_trust/networks/routes/routes.py +++ b/src/cloudflare/resources/zero_trust/networks/routes/routes.py @@ -2,47 +2,11 @@ from __future__ import annotations -import httpx - -from .ips import IPsResource, AsyncIPsResource - -from ....._compat import cached_property - -from .networks import NetworksResource, AsyncNetworksResource - -from .....types.zero_trust.networks.route import Route - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from ....._base_client import make_request_options, AsyncPaginator - -from typing import Type, Union - -from .....types.zero_trust.networks.teamnet import Teamnet - -from .....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +from typing import Type, Union, cast from datetime import datetime -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) +import httpx -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.zero_trust.networks import route_create_params -from .....types.zero_trust.networks import route_list_params -from .....types.zero_trust.networks import route_edit_params from .ips import ( IPsResource, AsyncIPsResource, @@ -59,14 +23,25 @@ from .networks import ( NetworksResourceWithStreamingResponse, AsyncNetworksResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, +) +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....._wrappers import ResultWrapper +from .....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ....._base_client import AsyncPaginator, make_request_options +from .....types.zero_trust.networks import route_edit_params, route_list_params, route_create_params +from .....types.zero_trust.networks.route import Route +from .....types.zero_trust.networks.teamnet import Teamnet __all__ = ["RoutesResource", "AsyncRoutesResource"] diff --git a/src/cloudflare/resources/zero_trust/networks/virtual_networks.py b/src/cloudflare/resources/zero_trust/networks/virtual_networks.py index aa25453ec..bda282949 100644 --- a/src/cloudflare/resources/zero_trust/networks/virtual_networks.py +++ b/src/cloudflare/resources/zero_trust/networks/virtual_networks.py @@ -2,47 +2,32 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.networks.virtual_network import VirtualNetwork - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from typing import Type - -from ....pagination import SyncSinglePage, AsyncSinglePage - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.zero_trust.networks import virtual_network_create_params -from ....types.zero_trust.networks import virtual_network_list_params -from ....types.zero_trust.networks import virtual_network_edit_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ....pagination import SyncSinglePage, AsyncSinglePage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.zero_trust.networks import ( + virtual_network_edit_params, + virtual_network_list_params, + virtual_network_create_params, +) +from ....types.zero_trust.networks.virtual_network import VirtualNetwork __all__ = ["VirtualNetworksResource", "AsyncVirtualNetworksResource"] diff --git a/src/cloudflare/resources/zero_trust/organizations.py b/src/cloudflare/resources/zero_trust/organizations.py index 5957025ee..c3bd1fede 100644 --- a/src/cloudflare/resources/zero_trust/organizations.py +++ b/src/cloudflare/resources/zero_trust/organizations.py @@ -2,53 +2,33 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.zero_trust.organization import Organization - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from ...types.zero_trust.login_design_param import LoginDesignParam - -from ...types.zero_trust.organization_revoke_users_response import OrganizationRevokeUsersResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -from ...types.zero_trust import organization_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.zero_trust import organization_create_params -from ...types.zero_trust import organization_update_params -from ...types.zero_trust import organization_revoke_users_params -from ...types.zero_trust import LoginDesign -from ...types.zero_trust import LoginDesign -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.zero_trust import ( + organization_create_params, + organization_update_params, + organization_revoke_users_params, +) +from ...types.zero_trust.organization import Organization +from ...types.zero_trust.login_design_param import LoginDesignParam +from ...types.zero_trust.organization_revoke_users_response import OrganizationRevokeUsersResponse __all__ = ["OrganizationsResource", "AsyncOrganizationsResource"] diff --git a/src/cloudflare/resources/zero_trust/risk_scoring/__init__.py b/src/cloudflare/resources/zero_trust/risk_scoring/__init__.py index 3752472fe..444ef4d0a 100644 --- a/src/cloudflare/resources/zero_trust/risk_scoring/__init__.py +++ b/src/cloudflare/resources/zero_trust/risk_scoring/__init__.py @@ -1,28 +1,32 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .behaviours import BehavioursResource, AsyncBehavioursResource -from .behaviours import ( - BehavioursResourceWithRawResponse, - AsyncBehavioursResourceWithRawResponse, - BehavioursResourceWithStreamingResponse, - AsyncBehavioursResourceWithStreamingResponse, -) -from .summary import SummaryResource, AsyncSummaryResource from .summary import ( + SummaryResource, + AsyncSummaryResource, SummaryResourceWithRawResponse, AsyncSummaryResourceWithRawResponse, SummaryResourceWithStreamingResponse, AsyncSummaryResourceWithStreamingResponse, ) -from .integrations import IntegrationsResource, AsyncIntegrationsResource +from .behaviours import ( + BehavioursResource, + AsyncBehavioursResource, + BehavioursResourceWithRawResponse, + AsyncBehavioursResourceWithRawResponse, + BehavioursResourceWithStreamingResponse, + AsyncBehavioursResourceWithStreamingResponse, +) from .integrations import ( + IntegrationsResource, + AsyncIntegrationsResource, IntegrationsResourceWithRawResponse, AsyncIntegrationsResourceWithRawResponse, IntegrationsResourceWithStreamingResponse, AsyncIntegrationsResourceWithStreamingResponse, ) -from .risk_scoring import RiskScoringResource, AsyncRiskScoringResource from .risk_scoring import ( + RiskScoringResource, + AsyncRiskScoringResource, RiskScoringResourceWithRawResponse, AsyncRiskScoringResourceWithRawResponse, RiskScoringResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/zero_trust/risk_scoring/behaviours.py b/src/cloudflare/resources/zero_trust/risk_scoring/behaviours.py index d31c73a99..5eb4fa38d 100644 --- a/src/cloudflare/resources/zero_trust/risk_scoring/behaviours.py +++ b/src/cloudflare/resources/zero_trust/risk_scoring/behaviours.py @@ -2,43 +2,28 @@ from __future__ import annotations +from typing import Dict, Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.risk_scoring.behaviour_update_response import BehaviourUpdateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type, Dict - -from ...._base_client import make_request_options - -from ....types.zero_trust.risk_scoring.behaviour_get_response import BehaviourGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.zero_trust.risk_scoring import behaviour_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.zero_trust.risk_scoring import behaviour_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....types.zero_trust.risk_scoring.behaviour_get_response import BehaviourGetResponse +from ....types.zero_trust.risk_scoring.behaviour_update_response import BehaviourUpdateResponse __all__ = ["BehavioursResource", "AsyncBehavioursResource"] diff --git a/src/cloudflare/resources/zero_trust/risk_scoring/integrations/__init__.py b/src/cloudflare/resources/zero_trust/risk_scoring/integrations/__init__.py index 152030c00..8de5cdc28 100644 --- a/src/cloudflare/resources/zero_trust/risk_scoring/integrations/__init__.py +++ b/src/cloudflare/resources/zero_trust/risk_scoring/integrations/__init__.py @@ -1,14 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .references import ReferencesResource, AsyncReferencesResource from .references import ( + ReferencesResource, + AsyncReferencesResource, ReferencesResourceWithRawResponse, AsyncReferencesResourceWithRawResponse, ReferencesResourceWithStreamingResponse, AsyncReferencesResourceWithStreamingResponse, ) -from .integrations import IntegrationsResource, AsyncIntegrationsResource from .integrations import ( + IntegrationsResource, + AsyncIntegrationsResource, IntegrationsResourceWithRawResponse, AsyncIntegrationsResourceWithRawResponse, IntegrationsResourceWithStreamingResponse, diff --git a/src/cloudflare/resources/zero_trust/risk_scoring/integrations/integrations.py b/src/cloudflare/resources/zero_trust/risk_scoring/integrations/integrations.py index d75467800..b85a81748 100644 --- a/src/cloudflare/resources/zero_trust/risk_scoring/integrations/integrations.py +++ b/src/cloudflare/resources/zero_trust/risk_scoring/integrations/integrations.py @@ -2,48 +2,16 @@ from __future__ import annotations +from typing import Type, Optional, cast +from typing_extensions import Literal + import httpx -from .references import ReferencesResource, AsyncReferencesResource - -from ....._compat import cached_property - -from .....types.zero_trust.risk_scoring.integration_create_response import IntegrationCreateResponse - -from ....._wrappers import ResultWrapper - -from ....._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ....._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from .....types.zero_trust.risk_scoring.integration_update_response import IntegrationUpdateResponse - -from .....types.zero_trust.risk_scoring.integration_list_response import IntegrationListResponse - -from .....pagination import SyncSinglePage, AsyncSinglePage - -from .....types.zero_trust.risk_scoring.integration_get_response import IntegrationGetResponse - -from ....._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( + maybe_transform, + async_maybe_transform, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from .....types.zero_trust.risk_scoring import integration_create_params -from .....types.zero_trust.risk_scoring import integration_update_params from .references import ( ReferencesResource, AsyncReferencesResource, @@ -52,14 +20,22 @@ from .references import ( ReferencesResourceWithStreamingResponse, AsyncReferencesResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ....._wrappers import ResultWrapper +from .....pagination import SyncSinglePage, AsyncSinglePage +from ....._base_client import AsyncPaginator, make_request_options +from .....types.zero_trust.risk_scoring import integration_create_params, integration_update_params +from .....types.zero_trust.risk_scoring.integration_get_response import IntegrationGetResponse +from .....types.zero_trust.risk_scoring.integration_list_response import IntegrationListResponse +from .....types.zero_trust.risk_scoring.integration_create_response import IntegrationCreateResponse +from .....types.zero_trust.risk_scoring.integration_update_response import IntegrationUpdateResponse __all__ = ["IntegrationsResource", "AsyncIntegrationsResource"] diff --git a/src/cloudflare/resources/zero_trust/risk_scoring/integrations/references.py b/src/cloudflare/resources/zero_trust/risk_scoring/integrations/references.py index 9118dd14c..654afa2cc 100644 --- a/src/cloudflare/resources/zero_trust/risk_scoring/integrations/references.py +++ b/src/cloudflare/resources/zero_trust/risk_scoring/integrations/references.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._compat import cached_property - -from .....types.zero_trust.risk_scoring.integrations.reference_get_response import ReferenceGetResponse - -from ....._wrappers import ResultWrapper - -from typing import Optional, Type - -from ....._base_client import make_request_options - +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ....._resource import SyncAPIResource, AsyncAPIResource -from .....types import shared_params -from typing import cast -from typing import cast +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.zero_trust.risk_scoring.integrations.reference_get_response import ReferenceGetResponse __all__ = ["ReferencesResource", "AsyncReferencesResource"] diff --git a/src/cloudflare/resources/zero_trust/risk_scoring/risk_scoring.py b/src/cloudflare/resources/zero_trust/risk_scoring/risk_scoring.py index 2c58dfb25..d3cd7566b 100644 --- a/src/cloudflare/resources/zero_trust/risk_scoring/risk_scoring.py +++ b/src/cloudflare/resources/zero_trust/risk_scoring/risk_scoring.py @@ -2,46 +2,10 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx -from .behaviours import BehavioursResource, AsyncBehavioursResource - -from ...._compat import cached_property - -from .summary import SummaryResource, AsyncSummaryResource - -from .integrations.integrations import IntegrationsResource, AsyncIntegrationsResource - -from ....types.zero_trust.risk_scoring_get_response import RiskScoringGetResponse - -from ...._wrappers import ResultWrapper - -from typing import Optional, Type - -from ...._base_client import make_request_options - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from .behaviours import ( - BehavioursResource, - AsyncBehavioursResource, - BehavioursResourceWithRawResponse, - AsyncBehavioursResourceWithRawResponse, - BehavioursResourceWithStreamingResponse, - AsyncBehavioursResourceWithStreamingResponse, -) from .summary import ( SummaryResource, AsyncSummaryResource, @@ -50,6 +14,24 @@ from .summary import ( SummaryResourceWithStreamingResponse, AsyncSummaryResourceWithStreamingResponse, ) +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._compat import cached_property +from .behaviours import ( + BehavioursResource, + AsyncBehavioursResource, + BehavioursResourceWithRawResponse, + AsyncBehavioursResourceWithRawResponse, + BehavioursResourceWithStreamingResponse, + AsyncBehavioursResourceWithStreamingResponse, +) +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper from .integrations import ( IntegrationsResource, AsyncIntegrationsResource, @@ -58,10 +40,9 @@ from .integrations import ( IntegrationsResourceWithStreamingResponse, AsyncIntegrationsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._base_client import make_request_options +from .integrations.integrations import IntegrationsResource, AsyncIntegrationsResource +from ....types.zero_trust.risk_scoring_get_response import RiskScoringGetResponse __all__ = ["RiskScoringResource", "AsyncRiskScoringResource"] diff --git a/src/cloudflare/resources/zero_trust/risk_scoring/summary.py b/src/cloudflare/resources/zero_trust/risk_scoring/summary.py index b39be8a7a..c318ed501 100644 --- a/src/cloudflare/resources/zero_trust/risk_scoring/summary.py +++ b/src/cloudflare/resources/zero_trust/risk_scoring/summary.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.zero_trust.risk_scoring.summary_get_response import SummaryGetResponse - -from ...._wrappers import ResultWrapper - -from typing import Optional, Type - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.zero_trust.risk_scoring.summary_get_response import SummaryGetResponse __all__ = ["SummaryResource", "AsyncSummaryResource"] diff --git a/src/cloudflare/resources/zero_trust/seats.py b/src/cloudflare/resources/zero_trust/seats.py index 347580458..a96c9b18e 100644 --- a/src/cloudflare/resources/zero_trust/seats.py +++ b/src/cloudflare/resources/zero_trust/seats.py @@ -2,39 +2,27 @@ from __future__ import annotations +from typing import Type, Iterable, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.zero_trust.seat_edit_response import SeatEditResponse - -from ..._wrappers import ResultWrapper - -from typing import Iterable, Optional, Type - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options from ...types.zero_trust import seat_edit_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.zero_trust import seat_edit_params -from typing import cast -from typing import cast +from ...types.zero_trust.seat_edit_response import SeatEditResponse __all__ = ["SeatsResource", "AsyncSeatsResource"] diff --git a/src/cloudflare/resources/zero_trust/tunnels/__init__.py b/src/cloudflare/resources/zero_trust/tunnels/__init__.py index 1726a58c0..6b6b14ed6 100644 --- a/src/cloudflare/resources/zero_trust/tunnels/__init__.py +++ b/src/cloudflare/resources/zero_trust/tunnels/__init__.py @@ -1,46 +1,52 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .configurations import ConfigurationsResource, AsyncConfigurationsResource -from .configurations import ( - ConfigurationsResourceWithRawResponse, - AsyncConfigurationsResourceWithRawResponse, - ConfigurationsResourceWithStreamingResponse, - AsyncConfigurationsResourceWithStreamingResponse, -) -from .connections import ConnectionsResource, AsyncConnectionsResource -from .connections import ( - ConnectionsResourceWithRawResponse, - AsyncConnectionsResourceWithRawResponse, - ConnectionsResourceWithStreamingResponse, - AsyncConnectionsResourceWithStreamingResponse, -) -from .token import TokenResource, AsyncTokenResource from .token import ( + TokenResource, + AsyncTokenResource, TokenResourceWithRawResponse, AsyncTokenResourceWithRawResponse, TokenResourceWithStreamingResponse, AsyncTokenResourceWithStreamingResponse, ) -from .connectors import ConnectorsResource, AsyncConnectorsResource +from .tunnels import ( + TunnelsResource, + AsyncTunnelsResource, + TunnelsResourceWithRawResponse, + AsyncTunnelsResourceWithRawResponse, + TunnelsResourceWithStreamingResponse, + AsyncTunnelsResourceWithStreamingResponse, +) from .connectors import ( + ConnectorsResource, + AsyncConnectorsResource, ConnectorsResourceWithRawResponse, AsyncConnectorsResourceWithRawResponse, ConnectorsResourceWithStreamingResponse, AsyncConnectorsResourceWithStreamingResponse, ) -from .management import ManagementResource, AsyncManagementResource from .management import ( + ManagementResource, + AsyncManagementResource, ManagementResourceWithRawResponse, AsyncManagementResourceWithRawResponse, ManagementResourceWithStreamingResponse, AsyncManagementResourceWithStreamingResponse, ) -from .tunnels import TunnelsResource, AsyncTunnelsResource -from .tunnels import ( - TunnelsResourceWithRawResponse, - AsyncTunnelsResourceWithRawResponse, - TunnelsResourceWithStreamingResponse, - AsyncTunnelsResourceWithStreamingResponse, +from .connections import ( + ConnectionsResource, + AsyncConnectionsResource, + ConnectionsResourceWithRawResponse, + AsyncConnectionsResourceWithRawResponse, + ConnectionsResourceWithStreamingResponse, + AsyncConnectionsResourceWithStreamingResponse, +) +from .configurations import ( + ConfigurationsResource, + AsyncConfigurationsResource, + ConfigurationsResourceWithRawResponse, + AsyncConfigurationsResourceWithRawResponse, + ConfigurationsResourceWithStreamingResponse, + AsyncConfigurationsResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/zero_trust/tunnels/configurations.py b/src/cloudflare/resources/zero_trust/tunnels/configurations.py index ef468a6d7..11b6fd376 100644 --- a/src/cloudflare/resources/zero_trust/tunnels/configurations.py +++ b/src/cloudflare/resources/zero_trust/tunnels/configurations.py @@ -2,43 +2,28 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.tunnels.configuration_update_response import ConfigurationUpdateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options - -from ....types.zero_trust.tunnels.configuration_get_response import ConfigurationGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.zero_trust.tunnels import configuration_update_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.zero_trust.tunnels import configuration_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....types.zero_trust.tunnels.configuration_get_response import ConfigurationGetResponse +from ....types.zero_trust.tunnels.configuration_update_response import ConfigurationUpdateResponse __all__ = ["ConfigurationsResource", "AsyncConfigurationsResource"] diff --git a/src/cloudflare/resources/zero_trust/tunnels/connections.py b/src/cloudflare/resources/zero_trust/tunnels/connections.py index ce0500994..11429008a 100644 --- a/src/cloudflare/resources/zero_trust/tunnels/connections.py +++ b/src/cloudflare/resources/zero_trust/tunnels/connections.py @@ -2,39 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ...._base_client import make_request_options - -from ....types.zero_trust.tunnels.connection_get_response import ConnectionGetResponse - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.zero_trust.tunnels import connection_delete_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....types.zero_trust.tunnels.connection_get_response import ConnectionGetResponse __all__ = ["ConnectionsResource", "AsyncConnectionsResource"] diff --git a/src/cloudflare/resources/zero_trust/tunnels/connectors.py b/src/cloudflare/resources/zero_trust/tunnels/connectors.py index b2b4e8bd7..3e446f0d7 100644 --- a/src/cloudflare/resources/zero_trust/tunnels/connectors.py +++ b/src/cloudflare/resources/zero_trust/tunnels/connectors.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.zero_trust.tunnels.client import Client - -from ...._wrappers import ResultWrapper - -from ...._base_client import make_request_options - -from typing import Type - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.zero_trust.tunnels.client import Client __all__ = ["ConnectorsResource", "AsyncConnectorsResource"] diff --git a/src/cloudflare/resources/zero_trust/tunnels/management.py b/src/cloudflare/resources/zero_trust/tunnels/management.py index 6833f2d6d..4da193130 100644 --- a/src/cloudflare/resources/zero_trust/tunnels/management.py +++ b/src/cloudflare/resources/zero_trust/tunnels/management.py @@ -2,41 +2,28 @@ from __future__ import annotations +from typing import Any, List, cast +from typing_extensions import Literal + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) from ...._compat import cached_property - -from ....types.zero_trust.tunnels.management_create_response import ManagementCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options - -from typing import List - -from typing_extensions import Literal - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options from ....types.zero_trust.tunnels import management_create_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ....types.zero_trust.tunnels.management_create_response import ManagementCreateResponse __all__ = ["ManagementResource", "AsyncManagementResource"] diff --git a/src/cloudflare/resources/zero_trust/tunnels/token.py b/src/cloudflare/resources/zero_trust/tunnels/token.py index ff3a9e29e..2f98dd710 100644 --- a/src/cloudflare/resources/zero_trust/tunnels/token.py +++ b/src/cloudflare/resources/zero_trust/tunnels/token.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Any, cast + import httpx +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property - -from ....types.zero_trust.tunnels.token_get_response import TokenGetResponse - -from ...._wrappers import ResultWrapper - -from ...._base_client import make_request_options - +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ...._wrappers import ResultWrapper +from ...._base_client import make_request_options +from ....types.zero_trust.tunnels.token_get_response import TokenGetResponse __all__ = ["TokenResource", "AsyncTokenResource"] diff --git a/src/cloudflare/resources/zero_trust/tunnels/tunnels.py b/src/cloudflare/resources/zero_trust/tunnels/tunnels.py index e20c9c926..d1723c2aa 100644 --- a/src/cloudflare/resources/zero_trust/tunnels/tunnels.py +++ b/src/cloudflare/resources/zero_trust/tunnels/tunnels.py @@ -2,77 +2,12 @@ from __future__ import annotations +from typing import Any, Union, cast +from datetime import datetime +from typing_extensions import Literal + import httpx -from .configurations import ConfigurationsResource, AsyncConfigurationsResource - -from ...._compat import cached_property - -from .connections import ConnectionsResource, AsyncConnectionsResource - -from .token import TokenResource, AsyncTokenResource - -from .connectors import ConnectorsResource, AsyncConnectorsResource - -from .management import ManagementResource, AsyncManagementResource - -from ....types.zero_trust.tunnel_create_response import TunnelCreateResponse - -from ...._wrappers import ResultWrapper - -from ...._utils import maybe_transform, async_maybe_transform - -from ...._base_client import make_request_options, AsyncPaginator - -from typing_extensions import Literal - -from ....types.zero_trust.tunnel_list_response import TunnelListResponse - -from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from typing import Union - -from datetime import datetime - -from ....types.zero_trust.tunnel_delete_response import TunnelDeleteResponse - -from ....types.zero_trust.tunnel_edit_response import TunnelEditResponse - -from ....types.zero_trust.tunnel_get_response import TunnelGetResponse - -from ...._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, -) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ...._resource import SyncAPIResource, AsyncAPIResource -from ....types import shared_params -from ....types.zero_trust import tunnel_create_params -from ....types.zero_trust import tunnel_list_params -from ....types.zero_trust import tunnel_edit_params -from .configurations import ( - ConfigurationsResource, - AsyncConfigurationsResource, - ConfigurationsResourceWithRawResponse, - AsyncConfigurationsResourceWithRawResponse, - ConfigurationsResourceWithStreamingResponse, - AsyncConfigurationsResourceWithStreamingResponse, -) -from .connections import ( - ConnectionsResource, - AsyncConnectionsResource, - ConnectionsResourceWithRawResponse, - AsyncConnectionsResourceWithRawResponse, - ConnectionsResourceWithStreamingResponse, - AsyncConnectionsResourceWithStreamingResponse, -) from .token import ( TokenResource, AsyncTokenResource, @@ -81,6 +16,12 @@ from .token import ( TokenResourceWithStreamingResponse, AsyncTokenResourceWithStreamingResponse, ) +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( + maybe_transform, + async_maybe_transform, +) +from ...._compat import cached_property from .connectors import ( ConnectorsResource, AsyncConnectorsResource, @@ -97,24 +38,38 @@ from .management import ( ManagementResourceWithStreamingResponse, AsyncManagementResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from .connections import ( + ConnectionsResource, + AsyncConnectionsResource, + ConnectionsResourceWithRawResponse, + AsyncConnectionsResourceWithRawResponse, + ConnectionsResourceWithStreamingResponse, + AsyncConnectionsResourceWithStreamingResponse, +) +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ...._wrappers import ResultWrapper +from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from .configurations import ( + ConfigurationsResource, + AsyncConfigurationsResource, + ConfigurationsResourceWithRawResponse, + AsyncConfigurationsResourceWithRawResponse, + ConfigurationsResourceWithStreamingResponse, + AsyncConfigurationsResourceWithStreamingResponse, +) +from ...._base_client import AsyncPaginator, make_request_options +from ....types.zero_trust import tunnel_edit_params, tunnel_list_params, tunnel_create_params +from ....types.zero_trust.tunnel_get_response import TunnelGetResponse +from ....types.zero_trust.tunnel_edit_response import TunnelEditResponse +from ....types.zero_trust.tunnel_list_response import TunnelListResponse +from ....types.zero_trust.tunnel_create_response import TunnelCreateResponse +from ....types.zero_trust.tunnel_delete_response import TunnelDeleteResponse __all__ = ["TunnelsResource", "AsyncTunnelsResource"] diff --git a/src/cloudflare/resources/zero_trust/zero_trust.py b/src/cloudflare/resources/zero_trust/zero_trust.py index 92362d3bf..63aefc65a 100644 --- a/src/cloudflare/resources/zero_trust/zero_trust.py +++ b/src/cloudflare/resources/zero_trust/zero_trust.py @@ -2,62 +2,21 @@ from __future__ import annotations -from .devices.devices import DevicesResource, AsyncDevicesResource - -from ..._compat import cached_property - -from .identity_providers import IdentityProvidersResource, AsyncIdentityProvidersResource - -from .organizations import OrganizationsResource, AsyncOrganizationsResource - -from .seats import SeatsResource, AsyncSeatsResource - -from .access.access import AccessResource, AsyncAccessResource - -from .dex.dex import DEXResource, AsyncDEXResource - -from .tunnels.tunnels import TunnelsResource, AsyncTunnelsResource - -from .connectivity_settings import ConnectivitySettingsResource, AsyncConnectivitySettingsResource - -from .dlp.dlp import DLPResource, AsyncDLPResource - -from .gateway.gateway import GatewayResource, AsyncGatewayResource - -from .networks.networks import NetworksResource, AsyncNetworksResource - -from .risk_scoring.risk_scoring import RiskScoringResource, AsyncRiskScoringResource - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from .devices import ( - DevicesResource, - AsyncDevicesResource, - DevicesResourceWithRawResponse, - AsyncDevicesResourceWithRawResponse, - DevicesResourceWithStreamingResponse, - AsyncDevicesResourceWithStreamingResponse, +from .dex import ( + DEXResource, + AsyncDEXResource, + DEXResourceWithRawResponse, + AsyncDEXResourceWithRawResponse, + DEXResourceWithStreamingResponse, + AsyncDEXResourceWithStreamingResponse, ) -from .identity_providers import ( - IdentityProvidersResource, - AsyncIdentityProvidersResource, - IdentityProvidersResourceWithRawResponse, - AsyncIdentityProvidersResourceWithRawResponse, - IdentityProvidersResourceWithStreamingResponse, - AsyncIdentityProvidersResourceWithStreamingResponse, -) -from .organizations import ( - OrganizationsResource, - AsyncOrganizationsResource, - OrganizationsResourceWithRawResponse, - AsyncOrganizationsResourceWithRawResponse, - OrganizationsResourceWithStreamingResponse, - AsyncOrganizationsResourceWithStreamingResponse, +from .dlp import ( + DLPResource, + AsyncDLPResource, + DLPResourceWithRawResponse, + AsyncDLPResourceWithRawResponse, + DLPResourceWithStreamingResponse, + AsyncDLPResourceWithStreamingResponse, ) from .seats import ( SeatsResource, @@ -75,13 +34,23 @@ from .access import ( AccessResourceWithStreamingResponse, AsyncAccessResourceWithStreamingResponse, ) -from .dex import ( - DEXResource, - AsyncDEXResource, - DEXResourceWithRawResponse, - AsyncDEXResourceWithRawResponse, - DEXResourceWithStreamingResponse, - AsyncDEXResourceWithStreamingResponse, +from .devices import ( + DevicesResource, + AsyncDevicesResource, + DevicesResourceWithRawResponse, + AsyncDevicesResourceWithRawResponse, + DevicesResourceWithStreamingResponse, + AsyncDevicesResourceWithStreamingResponse, +) +from .dex.dex import DEXResource, AsyncDEXResource +from .dlp.dlp import DLPResource, AsyncDLPResource +from .gateway import ( + GatewayResource, + AsyncGatewayResource, + GatewayResourceWithRawResponse, + AsyncGatewayResourceWithRawResponse, + GatewayResourceWithStreamingResponse, + AsyncGatewayResourceWithStreamingResponse, ) from .tunnels import ( TunnelsResource, @@ -91,30 +60,6 @@ from .tunnels import ( TunnelsResourceWithStreamingResponse, AsyncTunnelsResourceWithStreamingResponse, ) -from .connectivity_settings import ( - ConnectivitySettingsResource, - AsyncConnectivitySettingsResource, - ConnectivitySettingsResourceWithRawResponse, - AsyncConnectivitySettingsResourceWithRawResponse, - ConnectivitySettingsResourceWithStreamingResponse, - AsyncConnectivitySettingsResourceWithStreamingResponse, -) -from .dlp import ( - DLPResource, - AsyncDLPResource, - DLPResourceWithRawResponse, - AsyncDLPResourceWithRawResponse, - DLPResourceWithStreamingResponse, - AsyncDLPResourceWithStreamingResponse, -) -from .gateway import ( - GatewayResource, - AsyncGatewayResource, - GatewayResourceWithRawResponse, - AsyncGatewayResourceWithRawResponse, - GatewayResourceWithStreamingResponse, - AsyncGatewayResourceWithStreamingResponse, -) from .networks import ( NetworksResource, AsyncNetworksResource, @@ -123,6 +68,8 @@ from .networks import ( NetworksResourceWithStreamingResponse, AsyncNetworksResourceWithStreamingResponse, ) +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource from .risk_scoring import ( RiskScoringResource, AsyncRiskScoringResource, @@ -131,6 +78,36 @@ from .risk_scoring import ( RiskScoringResourceWithStreamingResponse, AsyncRiskScoringResourceWithStreamingResponse, ) +from .access.access import AccessResource, AsyncAccessResource +from .organizations import ( + OrganizationsResource, + AsyncOrganizationsResource, + OrganizationsResourceWithRawResponse, + AsyncOrganizationsResourceWithRawResponse, + OrganizationsResourceWithStreamingResponse, + AsyncOrganizationsResourceWithStreamingResponse, +) +from .devices.devices import DevicesResource, AsyncDevicesResource +from .gateway.gateway import GatewayResource, AsyncGatewayResource +from .tunnels.tunnels import TunnelsResource, AsyncTunnelsResource +from .networks.networks import NetworksResource, AsyncNetworksResource +from .identity_providers import ( + IdentityProvidersResource, + AsyncIdentityProvidersResource, + IdentityProvidersResourceWithRawResponse, + AsyncIdentityProvidersResourceWithRawResponse, + IdentityProvidersResourceWithStreamingResponse, + AsyncIdentityProvidersResourceWithStreamingResponse, +) +from .connectivity_settings import ( + ConnectivitySettingsResource, + AsyncConnectivitySettingsResource, + ConnectivitySettingsResourceWithRawResponse, + AsyncConnectivitySettingsResourceWithRawResponse, + ConnectivitySettingsResourceWithStreamingResponse, + AsyncConnectivitySettingsResourceWithStreamingResponse, +) +from .risk_scoring.risk_scoring import RiskScoringResource, AsyncRiskScoringResource __all__ = ["ZeroTrustResource", "AsyncZeroTrustResource"] diff --git a/src/cloudflare/resources/zones/__init__.py b/src/cloudflare/resources/zones/__init__.py index 45d622327..06e8291ed 100644 --- a/src/cloudflare/resources/zones/__init__.py +++ b/src/cloudflare/resources/zones/__init__.py @@ -1,46 +1,52 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .activation_check import ActivationCheckResource, AsyncActivationCheckResource -from .activation_check import ( - ActivationCheckResourceWithRawResponse, - AsyncActivationCheckResourceWithRawResponse, - ActivationCheckResourceWithStreamingResponse, - AsyncActivationCheckResourceWithStreamingResponse, -) -from .settings import SettingsResource, AsyncSettingsResource -from .settings import ( - SettingsResourceWithRawResponse, - AsyncSettingsResourceWithRawResponse, - SettingsResourceWithStreamingResponse, - AsyncSettingsResourceWithStreamingResponse, -) -from .custom_nameservers import CustomNameserversResource, AsyncCustomNameserversResource -from .custom_nameservers import ( - CustomNameserversResourceWithRawResponse, - AsyncCustomNameserversResourceWithRawResponse, - CustomNameserversResourceWithStreamingResponse, - AsyncCustomNameserversResourceWithStreamingResponse, -) -from .holds import HoldsResource, AsyncHoldsResource from .holds import ( + HoldsResource, + AsyncHoldsResource, HoldsResourceWithRawResponse, AsyncHoldsResourceWithRawResponse, HoldsResourceWithStreamingResponse, AsyncHoldsResourceWithStreamingResponse, ) -from .subscriptions import SubscriptionsResource, AsyncSubscriptionsResource +from .zones import ( + ZonesResource, + AsyncZonesResource, + ZonesResourceWithRawResponse, + AsyncZonesResourceWithRawResponse, + ZonesResourceWithStreamingResponse, + AsyncZonesResourceWithStreamingResponse, +) +from .settings import ( + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, +) from .subscriptions import ( + SubscriptionsResource, + AsyncSubscriptionsResource, SubscriptionsResourceWithRawResponse, AsyncSubscriptionsResourceWithRawResponse, SubscriptionsResourceWithStreamingResponse, AsyncSubscriptionsResourceWithStreamingResponse, ) -from .zones import ZonesResource, AsyncZonesResource -from .zones import ( - ZonesResourceWithRawResponse, - AsyncZonesResourceWithRawResponse, - ZonesResourceWithStreamingResponse, - AsyncZonesResourceWithStreamingResponse, +from .activation_check import ( + ActivationCheckResource, + AsyncActivationCheckResource, + ActivationCheckResourceWithRawResponse, + AsyncActivationCheckResourceWithRawResponse, + ActivationCheckResourceWithStreamingResponse, + AsyncActivationCheckResourceWithStreamingResponse, +) +from .custom_nameservers import ( + CustomNameserversResource, + AsyncCustomNameserversResource, + CustomNameserversResourceWithRawResponse, + AsyncCustomNameserversResourceWithRawResponse, + CustomNameserversResourceWithStreamingResponse, + AsyncCustomNameserversResourceWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/zones/activation_check.py b/src/cloudflare/resources/zones/activation_check.py index 253d89b85..7770e90f7 100644 --- a/src/cloudflare/resources/zones/activation_check.py +++ b/src/cloudflare/resources/zones/activation_check.py @@ -2,34 +2,22 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._compat import cached_property - -from ...types.zones.activation_check_trigger_response import ActivationCheckTriggerResponse - -from ..._wrappers import ResultWrapper - -from typing import Optional, Type - -from ..._base_client import make_request_options - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ..._base_client import make_request_options +from ...types.zones.activation_check_trigger_response import ActivationCheckTriggerResponse __all__ = ["ActivationCheckResource", "AsyncActivationCheckResource"] diff --git a/src/cloudflare/resources/zones/custom_nameservers.py b/src/cloudflare/resources/zones/custom_nameservers.py index 63a307bf5..a0bb540a1 100644 --- a/src/cloudflare/resources/zones/custom_nameservers.py +++ b/src/cloudflare/resources/zones/custom_nameservers.py @@ -2,41 +2,28 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.zones.custom_nameserver_update_response import CustomNameserverUpdateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type - -from ..._base_client import make_request_options - -from ...types.zones.custom_nameserver_get_response import CustomNameserverGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params +from ..._wrappers import ResultWrapper from ...types.zones import custom_nameserver_update_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._base_client import make_request_options +from ...types.zones.custom_nameserver_get_response import CustomNameserverGetResponse +from ...types.zones.custom_nameserver_update_response import CustomNameserverUpdateResponse __all__ = ["CustomNameserversResource", "AsyncCustomNameserversResource"] diff --git a/src/cloudflare/resources/zones/holds.py b/src/cloudflare/resources/zones/holds.py index 0c2614f4c..3e96ed85a 100644 --- a/src/cloudflare/resources/zones/holds.py +++ b/src/cloudflare/resources/zones/holds.py @@ -2,42 +2,27 @@ from __future__ import annotations +from typing import Type, Optional, cast + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.zones.zone_hold import ZoneHold - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing import Type, Optional - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.zones import hold_create_params -from ...types.zones import hold_delete_params -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...types.zones import hold_create_params, hold_delete_params +from ..._base_client import make_request_options +from ...types.zones.zone_hold import ZoneHold __all__ = ["HoldsResource", "AsyncHoldsResource"] diff --git a/src/cloudflare/resources/zones/settings.py b/src/cloudflare/resources/zones/settings.py index 5f81885d9..7ac025527 100644 --- a/src/cloudflare/resources/zones/settings.py +++ b/src/cloudflare/resources/zones/settings.py @@ -2,52 +2,31 @@ from __future__ import annotations +from typing import Any, List, Optional, cast, overload +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + required_args, + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from typing_extensions import Literal - -from typing import Optional, List - -from ...types.zones.setting_edit_response import SettingEditResponse - -from ...types.zones.automatic_platform_optimization_param import AutomaticPlatformOptimizationParam - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from ...types.zones.setting_get_response import SettingGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - +from ..._wrappers import ResultWrapper from ...types.zones import setting_edit_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.zones import setting_edit_params -from ...types.zones import AutomaticPlatformOptimization -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._base_client import make_request_options +from ...types.zones.setting_get_response import SettingGetResponse +from ...types.zones.setting_edit_response import SettingEditResponse +from ...types.zones.automatic_platform_optimization_param import AutomaticPlatformOptimizationParam __all__ = ["SettingsResource", "AsyncSettingsResource"] diff --git a/src/cloudflare/resources/zones/subscriptions.py b/src/cloudflare/resources/zones/subscriptions.py index bd8cb4b5a..8e6858cb3 100644 --- a/src/cloudflare/resources/zones/subscriptions.py +++ b/src/cloudflare/resources/zones/subscriptions.py @@ -2,56 +2,31 @@ from __future__ import annotations +from typing import Any, cast +from typing_extensions import Literal + import httpx +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, +) from ..._compat import cached_property - -from ...types.zones.subscription_create_response import SubscriptionCreateResponse - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from ..._base_client import make_request_options - -from typing_extensions import Literal - -from ...types.user.rate_plan_param import RatePlanParam - -from ...types.zones.subscription_update_response import SubscriptionUpdateResponse - -from ...types.zones.subscription_get_response import SubscriptionGetResponse - +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( to_raw_response_wrapper, - async_to_raw_response_wrapper, to_streamed_response_wrapper, + async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.zones import subscription_create_params -from ...types.zones import subscription_update_params -from ...types.user import RatePlan -from ...types.user import RatePlan -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._wrappers import ResultWrapper +from ...types.zones import subscription_create_params, subscription_update_params +from ..._base_client import make_request_options +from ...types.user.rate_plan_param import RatePlanParam +from ...types.zones.subscription_get_response import SubscriptionGetResponse +from ...types.zones.subscription_create_response import SubscriptionCreateResponse +from ...types.zones.subscription_update_response import SubscriptionUpdateResponse __all__ = ["SubscriptionsResource", "AsyncSubscriptionsResource"] diff --git a/src/cloudflare/resources/zones/zones.py b/src/cloudflare/resources/zones/zones.py index ba7364327..90fd1472d 100644 --- a/src/cloudflare/resources/zones/zones.py +++ b/src/cloudflare/resources/zones/zones.py @@ -2,65 +2,23 @@ from __future__ import annotations +from typing import List, Type as TypingType, Optional, cast +from typing_extensions import Literal + import httpx -from .activation_check import ActivationCheckResource, AsyncActivationCheckResource - -from ..._compat import cached_property - -from .settings import SettingsResource, AsyncSettingsResource - -from .custom_nameservers import CustomNameserversResource, AsyncCustomNameserversResource - -from .holds import HoldsResource, AsyncHoldsResource - -from .subscriptions import SubscriptionsResource, AsyncSubscriptionsResource - -from ...types.zones.zone import Zone - -from ..._wrappers import ResultWrapper - -from ..._utils import maybe_transform, async_maybe_transform - -from typing import Optional, Type as TypingType, List - -from ..._base_client import make_request_options, AsyncPaginator - -from ...types.zones.type import Type as ZonesType - -from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from typing_extensions import Literal - -from ...types.zones.zone_delete_response import ZoneDeleteResponse - -from ..._response import ( - to_raw_response_wrapper, - async_to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_streamed_response_wrapper, +from .holds import ( + HoldsResource, + AsyncHoldsResource, + HoldsResourceWithRawResponse, + AsyncHoldsResourceWithRawResponse, + HoldsResourceWithStreamingResponse, + AsyncHoldsResourceWithStreamingResponse, ) - -from ...types.zones import zone_create_params, zone_list_params - -import warnings -from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload -from typing_extensions import Literal -from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given -from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent -from ..._resource import SyncAPIResource, AsyncAPIResource -from ...types import shared_params -from ...types.zones import zone_create_params -from ...types.zones import zone_list_params -from ...types.zones import zone_edit_params -from ...types.zones import Type -from .activation_check import ( - ActivationCheckResource, - AsyncActivationCheckResource, - ActivationCheckResourceWithRawResponse, - AsyncActivationCheckResourceWithRawResponse, - ActivationCheckResourceWithStreamingResponse, - AsyncActivationCheckResourceWithStreamingResponse, +from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ..._utils import ( + maybe_transform, + async_maybe_transform, ) from .settings import ( SettingsResource, @@ -70,22 +28,17 @@ from .settings import ( SettingsResourceWithStreamingResponse, AsyncSettingsResourceWithStreamingResponse, ) -from .custom_nameservers import ( - CustomNameserversResource, - AsyncCustomNameserversResource, - CustomNameserversResourceWithRawResponse, - AsyncCustomNameserversResourceWithRawResponse, - CustomNameserversResourceWithStreamingResponse, - AsyncCustomNameserversResourceWithStreamingResponse, -) -from .holds import ( - HoldsResource, - AsyncHoldsResource, - HoldsResourceWithRawResponse, - AsyncHoldsResourceWithRawResponse, - HoldsResourceWithStreamingResponse, - AsyncHoldsResourceWithStreamingResponse, +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, ) +from ..._wrappers import ResultWrapper +from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from ...types.zones import zone_edit_params, zone_list_params, zone_create_params from .subscriptions import ( SubscriptionsResource, AsyncSubscriptionsResource, @@ -94,14 +47,26 @@ from .subscriptions import ( SubscriptionsResourceWithStreamingResponse, AsyncSubscriptionsResourceWithStreamingResponse, ) -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast -from typing import cast +from ..._base_client import AsyncPaginator, make_request_options +from .activation_check import ( + ActivationCheckResource, + AsyncActivationCheckResource, + ActivationCheckResourceWithRawResponse, + AsyncActivationCheckResourceWithRawResponse, + ActivationCheckResourceWithStreamingResponse, + AsyncActivationCheckResourceWithStreamingResponse, +) +from ...types.zones.type import Type as ZonesType +from ...types.zones.zone import Zone +from .custom_nameservers import ( + CustomNameserversResource, + AsyncCustomNameserversResource, + CustomNameserversResourceWithRawResponse, + AsyncCustomNameserversResourceWithRawResponse, + CustomNameserversResourceWithStreamingResponse, + AsyncCustomNameserversResourceWithStreamingResponse, +) +from ...types.zones.zone_delete_response import ZoneDeleteResponse __all__ = ["ZonesResource", "AsyncZonesResource"] diff --git a/src/cloudflare/types/__init__.py b/src/cloudflare/types/__init__.py index a2dd35e8c..d99e0567a 100644 --- a/src/cloudflare/types/__init__.py +++ b/src/cloudflare/types/__init__.py @@ -4,19 +4,19 @@ from __future__ import annotations from .shared import ( ASN as ASN, + Role as Role, + Member as Member, + Result as Result, AuditLog as AuditLog, - CertificateCA as CertificateCA, - CertificateRequestType as CertificateRequestType, - CloudflareTunnel as CloudflareTunnel, ErrorData as ErrorData, Identifier as Identifier, - LoadBalancerPreview as LoadBalancerPreview, - Member as Member, - PaginationInfo as PaginationInfo, Permission as Permission, - PermissionGrant as PermissionGrant, ResponseInfo as ResponseInfo, - Result as Result, - Role as Role, + CertificateCA as CertificateCA, SortDirection as SortDirection, + PaginationInfo as PaginationInfo, + PermissionGrant as PermissionGrant, + CloudflareTunnel as CloudflareTunnel, + LoadBalancerPreview as LoadBalancerPreview, + CertificateRequestType as CertificateRequestType, ) diff --git a/src/cloudflare/types/accounts/__init__.py b/src/cloudflare/types/accounts/__init__.py index f6df21a89..0a22d888b 100644 --- a/src/cloudflare/types/accounts/__init__.py +++ b/src/cloudflare/types/accounts/__init__.py @@ -2,17 +2,17 @@ from __future__ import annotations -from .account import Account as Account -from .account_delete_response import AccountDeleteResponse as AccountDeleteResponse -from .account_create_params import AccountCreateParams as AccountCreateParams -from .account_update_params import AccountUpdateParams as AccountUpdateParams -from .account_list_params import AccountListParams as AccountListParams from .status import Status as Status -from .member_create_response import MemberCreateResponse as MemberCreateResponse -from .member_update_response import MemberUpdateResponse as MemberUpdateResponse -from .member_list_response import MemberListResponse as MemberListResponse -from .member_delete_response import MemberDeleteResponse as MemberDeleteResponse +from .account import Account as Account +from .member_list_params import MemberListParams as MemberListParams +from .account_list_params import AccountListParams as AccountListParams from .member_get_response import MemberGetResponse as MemberGetResponse from .member_create_params import MemberCreateParams as MemberCreateParams +from .member_list_response import MemberListResponse as MemberListResponse from .member_update_params import MemberUpdateParams as MemberUpdateParams -from .member_list_params import MemberListParams as MemberListParams +from .account_create_params import AccountCreateParams as AccountCreateParams +from .account_update_params import AccountUpdateParams as AccountUpdateParams +from .member_create_response import MemberCreateResponse as MemberCreateResponse +from .member_delete_response import MemberDeleteResponse as MemberDeleteResponse +from .member_update_response import MemberUpdateResponse as MemberUpdateResponse +from .account_delete_response import AccountDeleteResponse as AccountDeleteResponse diff --git a/src/cloudflare/types/accounts/account.py b/src/cloudflare/types/accounts/account.py index c6312c496..1c26f03b2 100644 --- a/src/cloudflare/types/accounts/account.py +++ b/src/cloudflare/types/accounts/account.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - -from typing_extensions import Literal - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["Account", "Settings"] diff --git a/src/cloudflare/types/accounts/account_create_params.py b/src/cloudflare/types/accounts/account_create_params.py index 424c5b977..5829ccda5 100755 --- a/src/cloudflare/types/accounts/account_create_params.py +++ b/src/cloudflare/types/accounts/account_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["AccountCreateParams", "Unit"] diff --git a/src/cloudflare/types/accounts/account_delete_response.py b/src/cloudflare/types/accounts/account_delete_response.py index 5452cd7cf..85870dfa7 100755 --- a/src/cloudflare/types/accounts/account_delete_response.py +++ b/src/cloudflare/types/accounts/account_delete_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["AccountDeleteResponse"] diff --git a/src/cloudflare/types/accounts/account_list_params.py b/src/cloudflare/types/accounts/account_list_params.py index 052a5e460..427c758c0 100644 --- a/src/cloudflare/types/accounts/account_list_params.py +++ b/src/cloudflare/types/accounts/account_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, TypedDict __all__ = ["AccountListParams"] diff --git a/src/cloudflare/types/accounts/account_update_params.py b/src/cloudflare/types/accounts/account_update_params.py index 7c7e1bb3d..21657deb0 100644 --- a/src/cloudflare/types/accounts/account_update_params.py +++ b/src/cloudflare/types/accounts/account_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["AccountUpdateParams", "Settings"] diff --git a/src/cloudflare/types/accounts/member_create_params.py b/src/cloudflare/types/accounts/member_create_params.py index 3c846cd3a..2dc2d30e0 100644 --- a/src/cloudflare/types/accounts/member_create_params.py +++ b/src/cloudflare/types/accounts/member_create_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias - -from typing import List, Iterable - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing import List, Union, Iterable +from typing_extensions import Literal, Required, TypeAlias, TypedDict __all__ = [ "MemberCreateParams", diff --git a/src/cloudflare/types/accounts/member_create_response.py b/src/cloudflare/types/accounts/member_create_response.py index d0b726519..06b3835b9 100644 --- a/src/cloudflare/types/accounts/member_create_response.py +++ b/src/cloudflare/types/accounts/member_create_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel - -from typing import Optional, List - -from typing_extensions import Literal - from ..shared.role import Role -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = [ "MemberCreateResponse", "Policy", diff --git a/src/cloudflare/types/accounts/member_delete_response.py b/src/cloudflare/types/accounts/member_delete_response.py index e9494a1a3..78ae311b6 100644 --- a/src/cloudflare/types/accounts/member_delete_response.py +++ b/src/cloudflare/types/accounts/member_delete_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["MemberDeleteResponse"] diff --git a/src/cloudflare/types/accounts/member_get_response.py b/src/cloudflare/types/accounts/member_get_response.py index b25beb35f..a1469e7cf 100644 --- a/src/cloudflare/types/accounts/member_get_response.py +++ b/src/cloudflare/types/accounts/member_get_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel - -from typing import Optional, List - -from typing_extensions import Literal - from ..shared.role import Role -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = [ "MemberGetResponse", "Policy", diff --git a/src/cloudflare/types/accounts/member_list_params.py b/src/cloudflare/types/accounts/member_list_params.py index 879eeb86f..cda9328b1 100644 --- a/src/cloudflare/types/accounts/member_list_params.py +++ b/src/cloudflare/types/accounts/member_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["MemberListParams"] diff --git a/src/cloudflare/types/accounts/member_list_response.py b/src/cloudflare/types/accounts/member_list_response.py index eb5e65b81..84c4f7b42 100644 --- a/src/cloudflare/types/accounts/member_list_response.py +++ b/src/cloudflare/types/accounts/member_list_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel - -from typing import Optional, List - -from typing_extensions import Literal - from ..shared.role import Role -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = [ "MemberListResponse", "Policy", diff --git a/src/cloudflare/types/accounts/member_update_params.py b/src/cloudflare/types/accounts/member_update_params.py index d9644375f..accd38793 100644 --- a/src/cloudflare/types/accounts/member_update_params.py +++ b/src/cloudflare/types/accounts/member_update_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias - -from typing import Iterable - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing import Union, Iterable +from typing_extensions import Literal, Required, TypeAlias, TypedDict __all__ = [ "MemberUpdateParams", diff --git a/src/cloudflare/types/accounts/member_update_response.py b/src/cloudflare/types/accounts/member_update_response.py index ec76387ce..8c1ff8c99 100644 --- a/src/cloudflare/types/accounts/member_update_response.py +++ b/src/cloudflare/types/accounts/member_update_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel - -from typing import Optional, List - -from typing_extensions import Literal - from ..shared.role import Role -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = [ "MemberUpdateResponse", "Policy", diff --git a/src/cloudflare/types/accounts/status.py b/src/cloudflare/types/accounts/status.py index 3807a850c..c525afffa 100644 --- a/src/cloudflare/types/accounts/status.py +++ b/src/cloudflare/types/accounts/status.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Status"] Status: TypeAlias = Literal["member", "invited"] diff --git a/src/cloudflare/types/acm/__init__.py b/src/cloudflare/types/acm/__init__.py index 9000f84ae..3e75a5089 100644 --- a/src/cloudflare/types/acm/__init__.py +++ b/src/cloudflare/types/acm/__init__.py @@ -3,6 +3,6 @@ from __future__ import annotations from .certificate_authority import CertificateAuthority as CertificateAuthority -from .total_tls_create_response import TotalTLSCreateResponse as TotalTLSCreateResponse from .total_tls_get_response import TotalTLSGetResponse as TotalTLSGetResponse from .total_tls_create_params import TotalTLSCreateParams as TotalTLSCreateParams +from .total_tls_create_response import TotalTLSCreateResponse as TotalTLSCreateResponse diff --git a/src/cloudflare/types/acm/certificate_authority.py b/src/cloudflare/types/acm/certificate_authority.py index 7d57a85e5..aedf043e5 100644 --- a/src/cloudflare/types/acm/certificate_authority.py +++ b/src/cloudflare/types/acm/certificate_authority.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["CertificateAuthority"] CertificateAuthority: TypeAlias = Literal["google", "lets_encrypt", "ssl_com"] diff --git a/src/cloudflare/types/acm/total_tls_create_params.py b/src/cloudflare/types/acm/total_tls_create_params.py index d26238fc0..aa4980276 100644 --- a/src/cloudflare/types/acm/total_tls_create_params.py +++ b/src/cloudflare/types/acm/total_tls_create_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict from .certificate_authority import CertificateAuthority -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["TotalTLSCreateParams"] diff --git a/src/cloudflare/types/acm/total_tls_create_response.py b/src/cloudflare/types/acm/total_tls_create_response.py index 5a3dc790e..990226277 100644 --- a/src/cloudflare/types/acm/total_tls_create_response.py +++ b/src/cloudflare/types/acm/total_tls_create_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional +from typing_extensions import Literal +from ..._models import BaseModel from .certificate_authority import CertificateAuthority -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["TotalTLSCreateResponse"] diff --git a/src/cloudflare/types/acm/total_tls_get_response.py b/src/cloudflare/types/acm/total_tls_get_response.py index 67e770b91..41f51a7ac 100644 --- a/src/cloudflare/types/acm/total_tls_get_response.py +++ b/src/cloudflare/types/acm/total_tls_get_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional +from typing_extensions import Literal +from ..._models import BaseModel from .certificate_authority import CertificateAuthority -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["TotalTLSGetResponse"] diff --git a/src/cloudflare/types/addressing/__init__.py b/src/cloudflare/types/addressing/__init__.py index 27ce914f0..1c96d654c 100644 --- a/src/cloudflare/types/addressing/__init__.py +++ b/src/cloudflare/types/addressing/__init__.py @@ -2,24 +2,24 @@ from __future__ import annotations -from .regional_hostname_create_response import RegionalHostnameCreateResponse as RegionalHostnameCreateResponse -from .regional_hostname_list_response import RegionalHostnameListResponse as RegionalHostnameListResponse -from .regional_hostname_delete_response import RegionalHostnameDeleteResponse as RegionalHostnameDeleteResponse -from .regional_hostname_edit_response import RegionalHostnameEditResponse as RegionalHostnameEditResponse -from .regional_hostname_get_response import RegionalHostnameGetResponse as RegionalHostnameGetResponse -from .regional_hostname_create_params import RegionalHostnameCreateParams as RegionalHostnameCreateParams -from .regional_hostname_edit_params import RegionalHostnameEditParams as RegionalHostnameEditParams -from .service_list_response import ServiceListResponse as ServiceListResponse -from .address_map import AddressMap as AddressMap from .kind import Kind as Kind -from .address_map_create_response import AddressMapCreateResponse as AddressMapCreateResponse -from .address_map_delete_response import AddressMapDeleteResponse as AddressMapDeleteResponse +from .prefix import Prefix as Prefix +from .address_map import AddressMap as AddressMap +from .prefix_edit_params import PrefixEditParams as PrefixEditParams +from .prefix_create_params import PrefixCreateParams as PrefixCreateParams +from .service_list_response import ServiceListResponse as ServiceListResponse +from .prefix_delete_response import PrefixDeleteResponse as PrefixDeleteResponse +from .address_map_edit_params import AddressMapEditParams as AddressMapEditParams from .address_map_get_response import AddressMapGetResponse as AddressMapGetResponse from .address_map_create_params import AddressMapCreateParams as AddressMapCreateParams -from .address_map_edit_params import AddressMapEditParams as AddressMapEditParams -from .loa_document_create_response import LOADocumentCreateResponse as LOADocumentCreateResponse from .loa_document_create_params import LOADocumentCreateParams as LOADocumentCreateParams -from .prefix import Prefix as Prefix -from .prefix_delete_response import PrefixDeleteResponse as PrefixDeleteResponse -from .prefix_create_params import PrefixCreateParams as PrefixCreateParams -from .prefix_edit_params import PrefixEditParams as PrefixEditParams +from .address_map_create_response import AddressMapCreateResponse as AddressMapCreateResponse +from .address_map_delete_response import AddressMapDeleteResponse as AddressMapDeleteResponse +from .loa_document_create_response import LOADocumentCreateResponse as LOADocumentCreateResponse +from .regional_hostname_edit_params import RegionalHostnameEditParams as RegionalHostnameEditParams +from .regional_hostname_get_response import RegionalHostnameGetResponse as RegionalHostnameGetResponse +from .regional_hostname_create_params import RegionalHostnameCreateParams as RegionalHostnameCreateParams +from .regional_hostname_edit_response import RegionalHostnameEditResponse as RegionalHostnameEditResponse +from .regional_hostname_list_response import RegionalHostnameListResponse as RegionalHostnameListResponse +from .regional_hostname_create_response import RegionalHostnameCreateResponse as RegionalHostnameCreateResponse +from .regional_hostname_delete_response import RegionalHostnameDeleteResponse as RegionalHostnameDeleteResponse diff --git a/src/cloudflare/types/addressing/address_map.py b/src/cloudflare/types/addressing/address_map.py index b5981ce2e..dff7660e5 100644 --- a/src/cloudflare/types/addressing/address_map.py +++ b/src/cloudflare/types/addressing/address_map.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["AddressMap"] diff --git a/src/cloudflare/types/addressing/address_map_create_params.py b/src/cloudflare/types/addressing/address_map_create_params.py index feff753a4..ac313102d 100644 --- a/src/cloudflare/types/addressing/address_map_create_params.py +++ b/src/cloudflare/types/addressing/address_map_create_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import Optional, List, Iterable +from typing import List, Iterable, Optional +from typing_extensions import Required, TypedDict from .kind import Kind -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["AddressMapCreateParams", "Membership"] diff --git a/src/cloudflare/types/addressing/address_map_create_response.py b/src/cloudflare/types/addressing/address_map_create_response.py index da3e79344..032e1166d 100644 --- a/src/cloudflare/types/addressing/address_map_create_response.py +++ b/src/cloudflare/types/addressing/address_map_create_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime from .kind import Kind - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["AddressMapCreateResponse", "IP", "Membership"] diff --git a/src/cloudflare/types/addressing/address_map_delete_response.py b/src/cloudflare/types/addressing/address_map_delete_response.py index 8982104a4..84e3c8f4e 100644 --- a/src/cloudflare/types/addressing/address_map_delete_response.py +++ b/src/cloudflare/types/addressing/address_map_delete_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel - -from typing import Optional, List - from ..shared.response_info import ResponseInfo -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AddressMapDeleteResponse", "ResultInfo"] diff --git a/src/cloudflare/types/addressing/address_map_edit_params.py b/src/cloudflare/types/addressing/address_map_edit_params.py index 6686aa82d..5d91c15da 100644 --- a/src/cloudflare/types/addressing/address_map_edit_params.py +++ b/src/cloudflare/types/addressing/address_map_edit_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Optional - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["AddressMapEditParams"] diff --git a/src/cloudflare/types/addressing/address_map_get_response.py b/src/cloudflare/types/addressing/address_map_get_response.py index 52906efc5..0eb306ccd 100644 --- a/src/cloudflare/types/addressing/address_map_get_response.py +++ b/src/cloudflare/types/addressing/address_map_get_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime from .kind import Kind - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["AddressMapGetResponse", "IP", "Membership"] diff --git a/src/cloudflare/types/addressing/address_maps/__init__.py b/src/cloudflare/types/addressing/address_maps/__init__.py index c9752ccd0..baa9905d0 100644 --- a/src/cloudflare/types/addressing/address_maps/__init__.py +++ b/src/cloudflare/types/addressing/address_maps/__init__.py @@ -2,12 +2,12 @@ from __future__ import annotations -from .account_update_response import AccountUpdateResponse as AccountUpdateResponse -from .account_delete_response import AccountDeleteResponse as AccountDeleteResponse -from .account_update_params import AccountUpdateParams as AccountUpdateParams -from .ip_update_response import IPUpdateResponse as IPUpdateResponse -from .ip_delete_response import IPDeleteResponse as IPDeleteResponse from .ip_update_params import IPUpdateParams as IPUpdateParams -from .zone_update_response import ZoneUpdateResponse as ZoneUpdateResponse -from .zone_delete_response import ZoneDeleteResponse as ZoneDeleteResponse +from .ip_delete_response import IPDeleteResponse as IPDeleteResponse +from .ip_update_response import IPUpdateResponse as IPUpdateResponse from .zone_update_params import ZoneUpdateParams as ZoneUpdateParams +from .zone_delete_response import ZoneDeleteResponse as ZoneDeleteResponse +from .zone_update_response import ZoneUpdateResponse as ZoneUpdateResponse +from .account_update_params import AccountUpdateParams as AccountUpdateParams +from .account_delete_response import AccountDeleteResponse as AccountDeleteResponse +from .account_update_response import AccountUpdateResponse as AccountUpdateResponse diff --git a/src/cloudflare/types/addressing/address_maps/account_delete_response.py b/src/cloudflare/types/addressing/address_maps/account_delete_response.py index f4d8ff968..744418d64 100644 --- a/src/cloudflare/types/addressing/address_maps/account_delete_response.py +++ b/src/cloudflare/types/addressing/address_maps/account_delete_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ...._models import BaseModel - -from typing import Optional, List - from ...shared.response_info import ResponseInfo -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AccountDeleteResponse", "ResultInfo"] diff --git a/src/cloudflare/types/addressing/address_maps/account_update_params.py b/src/cloudflare/types/addressing/address_maps/account_update_params.py index b04eaab04..f06483675 100644 --- a/src/cloudflare/types/addressing/address_maps/account_update_params.py +++ b/src/cloudflare/types/addressing/address_maps/account_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["AccountUpdateParams"] diff --git a/src/cloudflare/types/addressing/address_maps/account_update_response.py b/src/cloudflare/types/addressing/address_maps/account_update_response.py index 10e8a7ae3..fd478f16a 100644 --- a/src/cloudflare/types/addressing/address_maps/account_update_response.py +++ b/src/cloudflare/types/addressing/address_maps/account_update_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ...._models import BaseModel - -from typing import Optional, List - from ...shared.response_info import ResponseInfo -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AccountUpdateResponse", "ResultInfo"] diff --git a/src/cloudflare/types/addressing/address_maps/ip_delete_response.py b/src/cloudflare/types/addressing/address_maps/ip_delete_response.py index d12aedcdc..6a1fda031 100644 --- a/src/cloudflare/types/addressing/address_maps/ip_delete_response.py +++ b/src/cloudflare/types/addressing/address_maps/ip_delete_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ...._models import BaseModel - -from typing import Optional, List - from ...shared.response_info import ResponseInfo -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["IPDeleteResponse", "ResultInfo"] diff --git a/src/cloudflare/types/addressing/address_maps/ip_update_params.py b/src/cloudflare/types/addressing/address_maps/ip_update_params.py index 932d3a600..41cd04d50 100644 --- a/src/cloudflare/types/addressing/address_maps/ip_update_params.py +++ b/src/cloudflare/types/addressing/address_maps/ip_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["IPUpdateParams"] diff --git a/src/cloudflare/types/addressing/address_maps/ip_update_response.py b/src/cloudflare/types/addressing/address_maps/ip_update_response.py index c7d3dc7be..c224d9f38 100644 --- a/src/cloudflare/types/addressing/address_maps/ip_update_response.py +++ b/src/cloudflare/types/addressing/address_maps/ip_update_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ...._models import BaseModel - -from typing import Optional, List - from ...shared.response_info import ResponseInfo -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["IPUpdateResponse", "ResultInfo"] diff --git a/src/cloudflare/types/addressing/address_maps/zone_delete_response.py b/src/cloudflare/types/addressing/address_maps/zone_delete_response.py index a515c658b..62ae20be6 100644 --- a/src/cloudflare/types/addressing/address_maps/zone_delete_response.py +++ b/src/cloudflare/types/addressing/address_maps/zone_delete_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ...._models import BaseModel - -from typing import Optional, List - from ...shared.response_info import ResponseInfo -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ZoneDeleteResponse", "ResultInfo"] diff --git a/src/cloudflare/types/addressing/address_maps/zone_update_params.py b/src/cloudflare/types/addressing/address_maps/zone_update_params.py index 93f65ecca..3cd7060a7 100644 --- a/src/cloudflare/types/addressing/address_maps/zone_update_params.py +++ b/src/cloudflare/types/addressing/address_maps/zone_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ZoneUpdateParams"] diff --git a/src/cloudflare/types/addressing/address_maps/zone_update_response.py b/src/cloudflare/types/addressing/address_maps/zone_update_response.py index e6fe6f72c..8d9473e4e 100644 --- a/src/cloudflare/types/addressing/address_maps/zone_update_response.py +++ b/src/cloudflare/types/addressing/address_maps/zone_update_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ...._models import BaseModel - -from typing import Optional, List - from ...shared.response_info import ResponseInfo -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ZoneUpdateResponse", "ResultInfo"] diff --git a/src/cloudflare/types/addressing/kind.py b/src/cloudflare/types/addressing/kind.py index 947cc502f..7efd73f1c 100644 --- a/src/cloudflare/types/addressing/kind.py +++ b/src/cloudflare/types/addressing/kind.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Kind"] Kind: TypeAlias = Literal["zone", "account"] diff --git a/src/cloudflare/types/addressing/loa_document_create_params.py b/src/cloudflare/types/addressing/loa_document_create_params.py index df822f0e2..4f8da69a2 100644 --- a/src/cloudflare/types/addressing/loa_document_create_params.py +++ b/src/cloudflare/types/addressing/loa_document_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["LOADocumentCreateParams"] diff --git a/src/cloudflare/types/addressing/loa_document_create_response.py b/src/cloudflare/types/addressing/loa_document_create_response.py index 0bb6b2b1b..f621a9f2d 100644 --- a/src/cloudflare/types/addressing/loa_document_create_response.py +++ b/src/cloudflare/types/addressing/loa_document_create_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["LOADocumentCreateResponse"] diff --git a/src/cloudflare/types/addressing/prefix.py b/src/cloudflare/types/addressing/prefix.py index f6e4719e6..9dd129477 100644 --- a/src/cloudflare/types/addressing/prefix.py +++ b/src/cloudflare/types/addressing/prefix.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Prefix"] diff --git a/src/cloudflare/types/addressing/prefix_create_params.py b/src/cloudflare/types/addressing/prefix_create_params.py index bb15e4fad..edbe51ebc 100644 --- a/src/cloudflare/types/addressing/prefix_create_params.py +++ b/src/cloudflare/types/addressing/prefix_create_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Optional - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["PrefixCreateParams"] diff --git a/src/cloudflare/types/addressing/prefix_delete_response.py b/src/cloudflare/types/addressing/prefix_delete_response.py index e693a61cb..641bfe8f4 100644 --- a/src/cloudflare/types/addressing/prefix_delete_response.py +++ b/src/cloudflare/types/addressing/prefix_delete_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel - -from typing import Optional, List - from ..shared.response_info import ResponseInfo -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["PrefixDeleteResponse", "ResultInfo"] diff --git a/src/cloudflare/types/addressing/prefix_edit_params.py b/src/cloudflare/types/addressing/prefix_edit_params.py index d7994bccf..9f4b08a8b 100644 --- a/src/cloudflare/types/addressing/prefix_edit_params.py +++ b/src/cloudflare/types/addressing/prefix_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["PrefixEditParams"] diff --git a/src/cloudflare/types/addressing/prefixes/__init__.py b/src/cloudflare/types/addressing/prefixes/__init__.py index 1dc1f3894..3f5ae7763 100644 --- a/src/cloudflare/types/addressing/prefixes/__init__.py +++ b/src/cloudflare/types/addressing/prefixes/__init__.py @@ -3,5 +3,5 @@ from __future__ import annotations from .delegations import Delegations as Delegations -from .delegation_delete_response import DelegationDeleteResponse as DelegationDeleteResponse from .delegation_create_params import DelegationCreateParams as DelegationCreateParams +from .delegation_delete_response import DelegationDeleteResponse as DelegationDeleteResponse diff --git a/src/cloudflare/types/addressing/prefixes/bgp/__init__.py b/src/cloudflare/types/addressing/prefixes/bgp/__init__.py index 832ac067c..bf70ca011 100644 --- a/src/cloudflare/types/addressing/prefixes/bgp/__init__.py +++ b/src/cloudflare/types/addressing/prefixes/bgp/__init__.py @@ -2,11 +2,11 @@ from __future__ import annotations -from .service_binding import ServiceBinding as ServiceBinding -from .binding_delete_response import BindingDeleteResponse as BindingDeleteResponse -from .binding_create_params import BindingCreateParams as BindingCreateParams from .bgp_prefix import BGPPrefix as BGPPrefix +from .service_binding import ServiceBinding as ServiceBinding from .prefix_edit_params import PrefixEditParams as PrefixEditParams -from .status_edit_response import StatusEditResponse as StatusEditResponse -from .status_get_response import StatusGetResponse as StatusGetResponse from .status_edit_params import StatusEditParams as StatusEditParams +from .status_get_response import StatusGetResponse as StatusGetResponse +from .status_edit_response import StatusEditResponse as StatusEditResponse +from .binding_create_params import BindingCreateParams as BindingCreateParams +from .binding_delete_response import BindingDeleteResponse as BindingDeleteResponse diff --git a/src/cloudflare/types/addressing/prefixes/bgp/bgp_prefix.py b/src/cloudflare/types/addressing/prefixes/bgp/bgp_prefix.py index e6b4311ba..d9eecdf9d 100644 --- a/src/cloudflare/types/addressing/prefixes/bgp/bgp_prefix.py +++ b/src/cloudflare/types/addressing/prefixes/bgp/bgp_prefix.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["BGPPrefix", "BGPSignalOpts", "OnDemand"] diff --git a/src/cloudflare/types/addressing/prefixes/bgp/binding_create_params.py b/src/cloudflare/types/addressing/prefixes/bgp/binding_create_params.py index 49c593b15..d4b3604ae 100644 --- a/src/cloudflare/types/addressing/prefixes/bgp/binding_create_params.py +++ b/src/cloudflare/types/addressing/prefixes/bgp/binding_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["BindingCreateParams"] diff --git a/src/cloudflare/types/addressing/prefixes/bgp/binding_delete_response.py b/src/cloudflare/types/addressing/prefixes/bgp/binding_delete_response.py index 93f92d4e8..9746074b3 100644 --- a/src/cloudflare/types/addressing/prefixes/bgp/binding_delete_response.py +++ b/src/cloudflare/types/addressing/prefixes/bgp/binding_delete_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import List +from typing_extensions import Literal +from ....._models import BaseModel from ....shared.response_info import ResponseInfo -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["BindingDeleteResponse"] diff --git a/src/cloudflare/types/addressing/prefixes/bgp/prefix_edit_params.py b/src/cloudflare/types/addressing/prefixes/bgp/prefix_edit_params.py index 73a6296fe..5040a427e 100644 --- a/src/cloudflare/types/addressing/prefixes/bgp/prefix_edit_params.py +++ b/src/cloudflare/types/addressing/prefixes/bgp/prefix_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["PrefixEditParams", "OnDemand"] diff --git a/src/cloudflare/types/addressing/prefixes/bgp/service_binding.py b/src/cloudflare/types/addressing/prefixes/bgp/service_binding.py index 523c9bccd..505f89b7c 100644 --- a/src/cloudflare/types/addressing/prefixes/bgp/service_binding.py +++ b/src/cloudflare/types/addressing/prefixes/bgp/service_binding.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["ServiceBinding", "Provisioning"] diff --git a/src/cloudflare/types/addressing/prefixes/bgp/status_edit_params.py b/src/cloudflare/types/addressing/prefixes/bgp/status_edit_params.py index a8af3b39c..10f8c1cf7 100644 --- a/src/cloudflare/types/addressing/prefixes/bgp/status_edit_params.py +++ b/src/cloudflare/types/addressing/prefixes/bgp/status_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["StatusEditParams"] diff --git a/src/cloudflare/types/addressing/prefixes/bgp/status_edit_response.py b/src/cloudflare/types/addressing/prefixes/bgp/status_edit_response.py index d843fc82d..f67cfc5ba 100644 --- a/src/cloudflare/types/addressing/prefixes/bgp/status_edit_response.py +++ b/src/cloudflare/types/addressing/prefixes/bgp/status_edit_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["StatusEditResponse"] diff --git a/src/cloudflare/types/addressing/prefixes/bgp/status_get_response.py b/src/cloudflare/types/addressing/prefixes/bgp/status_get_response.py index aff0e1816..a6012cb77 100644 --- a/src/cloudflare/types/addressing/prefixes/bgp/status_get_response.py +++ b/src/cloudflare/types/addressing/prefixes/bgp/status_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["StatusGetResponse"] diff --git a/src/cloudflare/types/addressing/prefixes/delegation_create_params.py b/src/cloudflare/types/addressing/prefixes/delegation_create_params.py index c793b1176..f8f9c9719 100644 --- a/src/cloudflare/types/addressing/prefixes/delegation_create_params.py +++ b/src/cloudflare/types/addressing/prefixes/delegation_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["DelegationCreateParams"] diff --git a/src/cloudflare/types/addressing/prefixes/delegation_delete_response.py b/src/cloudflare/types/addressing/prefixes/delegation_delete_response.py index 5a49d2621..3581f2c3c 100644 --- a/src/cloudflare/types/addressing/prefixes/delegation_delete_response.py +++ b/src/cloudflare/types/addressing/prefixes/delegation_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["DelegationDeleteResponse"] diff --git a/src/cloudflare/types/addressing/prefixes/delegations.py b/src/cloudflare/types/addressing/prefixes/delegations.py index 6af3f4f3c..8a2d2d8fe 100644 --- a/src/cloudflare/types/addressing/prefixes/delegations.py +++ b/src/cloudflare/types/addressing/prefixes/delegations.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["Delegations"] diff --git a/src/cloudflare/types/addressing/regional_hostname_create_params.py b/src/cloudflare/types/addressing/regional_hostname_create_params.py index 9c98de360..630c2f0be 100644 --- a/src/cloudflare/types/addressing/regional_hostname_create_params.py +++ b/src/cloudflare/types/addressing/regional_hostname_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["RegionalHostnameCreateParams"] diff --git a/src/cloudflare/types/addressing/regional_hostname_create_response.py b/src/cloudflare/types/addressing/regional_hostname_create_response.py index 4726c57fe..f2717ccf6 100644 --- a/src/cloudflare/types/addressing/regional_hostname_create_response.py +++ b/src/cloudflare/types/addressing/regional_hostname_create_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RegionalHostnameCreateResponse"] diff --git a/src/cloudflare/types/addressing/regional_hostname_delete_response.py b/src/cloudflare/types/addressing/regional_hostname_delete_response.py index 37975aa88..103116666 100644 --- a/src/cloudflare/types/addressing/regional_hostname_delete_response.py +++ b/src/cloudflare/types/addressing/regional_hostname_delete_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List +from typing_extensions import Literal +from ..._models import BaseModel from ..shared.response_info import ResponseInfo -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["RegionalHostnameDeleteResponse"] diff --git a/src/cloudflare/types/addressing/regional_hostname_edit_params.py b/src/cloudflare/types/addressing/regional_hostname_edit_params.py index ee5c4f2bf..a205f2de6 100644 --- a/src/cloudflare/types/addressing/regional_hostname_edit_params.py +++ b/src/cloudflare/types/addressing/regional_hostname_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["RegionalHostnameEditParams"] diff --git a/src/cloudflare/types/addressing/regional_hostname_edit_response.py b/src/cloudflare/types/addressing/regional_hostname_edit_response.py index 7dbae324f..06a760610 100644 --- a/src/cloudflare/types/addressing/regional_hostname_edit_response.py +++ b/src/cloudflare/types/addressing/regional_hostname_edit_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RegionalHostnameEditResponse"] diff --git a/src/cloudflare/types/addressing/regional_hostname_get_response.py b/src/cloudflare/types/addressing/regional_hostname_get_response.py index ed548e129..24fe021f2 100644 --- a/src/cloudflare/types/addressing/regional_hostname_get_response.py +++ b/src/cloudflare/types/addressing/regional_hostname_get_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RegionalHostnameGetResponse"] diff --git a/src/cloudflare/types/addressing/regional_hostname_list_response.py b/src/cloudflare/types/addressing/regional_hostname_list_response.py index 735077151..fe454021d 100644 --- a/src/cloudflare/types/addressing/regional_hostname_list_response.py +++ b/src/cloudflare/types/addressing/regional_hostname_list_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RegionalHostnameListResponse"] diff --git a/src/cloudflare/types/addressing/regional_hostnames/region_list_response.py b/src/cloudflare/types/addressing/regional_hostnames/region_list_response.py index afb2c04d2..d17c6577e 100644 --- a/src/cloudflare/types/addressing/regional_hostnames/region_list_response.py +++ b/src/cloudflare/types/addressing/regional_hostnames/region_list_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["RegionListResponse"] diff --git a/src/cloudflare/types/addressing/service_list_response.py b/src/cloudflare/types/addressing/service_list_response.py index 7d1433e5e..e4e660400 100644 --- a/src/cloudflare/types/addressing/service_list_response.py +++ b/src/cloudflare/types/addressing/service_list_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ServiceListResponse"] diff --git a/src/cloudflare/types/ai_gateway/__init__.py b/src/cloudflare/types/ai_gateway/__init__.py index b5c1c710b..8a4216b8e 100644 --- a/src/cloudflare/types/ai_gateway/__init__.py +++ b/src/cloudflare/types/ai_gateway/__init__.py @@ -2,13 +2,13 @@ from __future__ import annotations -from .ai_gateway_create_response import AIGatewayCreateResponse as AIGatewayCreateResponse -from .ai_gateway_update_response import AIGatewayUpdateResponse as AIGatewayUpdateResponse -from .ai_gateway_list_response import AIGatewayListResponse as AIGatewayListResponse -from .ai_gateway_delete_response import AIGatewayDeleteResponse as AIGatewayDeleteResponse +from .log_list_params import LogListParams as LogListParams +from .log_list_response import LogListResponse as LogListResponse +from .ai_gateway_list_params import AIGatewayListParams as AIGatewayListParams from .ai_gateway_get_response import AIGatewayGetResponse as AIGatewayGetResponse from .ai_gateway_create_params import AIGatewayCreateParams as AIGatewayCreateParams +from .ai_gateway_list_response import AIGatewayListResponse as AIGatewayListResponse from .ai_gateway_update_params import AIGatewayUpdateParams as AIGatewayUpdateParams -from .ai_gateway_list_params import AIGatewayListParams as AIGatewayListParams -from .log_list_response import LogListResponse as LogListResponse -from .log_list_params import LogListParams as LogListParams +from .ai_gateway_create_response import AIGatewayCreateResponse as AIGatewayCreateResponse +from .ai_gateway_delete_response import AIGatewayDeleteResponse as AIGatewayDeleteResponse +from .ai_gateway_update_response import AIGatewayUpdateResponse as AIGatewayUpdateResponse diff --git a/src/cloudflare/types/ai_gateway/ai_gateway_create_params.py b/src/cloudflare/types/ai_gateway/ai_gateway_create_params.py index 83ed8771b..666a25e17 100644 --- a/src/cloudflare/types/ai_gateway/ai_gateway_create_params.py +++ b/src/cloudflare/types/ai_gateway/ai_gateway_create_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Optional - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["AIGatewayCreateParams"] diff --git a/src/cloudflare/types/ai_gateway/ai_gateway_create_response.py b/src/cloudflare/types/ai_gateway/ai_gateway_create_response.py index 77106452c..de8640082 100644 --- a/src/cloudflare/types/ai_gateway/ai_gateway_create_response.py +++ b/src/cloudflare/types/ai_gateway/ai_gateway_create_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["AIGatewayCreateResponse"] diff --git a/src/cloudflare/types/ai_gateway/ai_gateway_delete_response.py b/src/cloudflare/types/ai_gateway/ai_gateway_delete_response.py index 980e1f803..e66ae46e8 100644 --- a/src/cloudflare/types/ai_gateway/ai_gateway_delete_response.py +++ b/src/cloudflare/types/ai_gateway/ai_gateway_delete_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["AIGatewayDeleteResponse"] diff --git a/src/cloudflare/types/ai_gateway/ai_gateway_get_response.py b/src/cloudflare/types/ai_gateway/ai_gateway_get_response.py index a8337a7f3..d62e61d19 100644 --- a/src/cloudflare/types/ai_gateway/ai_gateway_get_response.py +++ b/src/cloudflare/types/ai_gateway/ai_gateway_get_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["AIGatewayGetResponse"] diff --git a/src/cloudflare/types/ai_gateway/ai_gateway_list_params.py b/src/cloudflare/types/ai_gateway/ai_gateway_list_params.py index 5f94342a6..02d1cae36 100644 --- a/src/cloudflare/types/ai_gateway/ai_gateway_list_params.py +++ b/src/cloudflare/types/ai_gateway/ai_gateway_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["AIGatewayListParams"] diff --git a/src/cloudflare/types/ai_gateway/ai_gateway_list_response.py b/src/cloudflare/types/ai_gateway/ai_gateway_list_response.py index 96440e73e..bd4a36e0b 100644 --- a/src/cloudflare/types/ai_gateway/ai_gateway_list_response.py +++ b/src/cloudflare/types/ai_gateway/ai_gateway_list_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["AIGatewayListResponse"] diff --git a/src/cloudflare/types/ai_gateway/ai_gateway_update_params.py b/src/cloudflare/types/ai_gateway/ai_gateway_update_params.py index 1860210e5..05588bd7c 100644 --- a/src/cloudflare/types/ai_gateway/ai_gateway_update_params.py +++ b/src/cloudflare/types/ai_gateway/ai_gateway_update_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Optional - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["AIGatewayUpdateParams"] diff --git a/src/cloudflare/types/ai_gateway/ai_gateway_update_response.py b/src/cloudflare/types/ai_gateway/ai_gateway_update_response.py index 227926eea..f07218099 100644 --- a/src/cloudflare/types/ai_gateway/ai_gateway_update_response.py +++ b/src/cloudflare/types/ai_gateway/ai_gateway_update_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["AIGatewayUpdateResponse"] diff --git a/src/cloudflare/types/ai_gateway/log_list_params.py b/src/cloudflare/types/ai_gateway/log_list_params.py index 8398e12f2..b53c6b3f3 100644 --- a/src/cloudflare/types/ai_gateway/log_list_params.py +++ b/src/cloudflare/types/ai_gateway/log_list_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, Annotated - from typing import Union - from datetime import datetime +from typing_extensions import Literal, Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["LogListParams"] diff --git a/src/cloudflare/types/ai_gateway/log_list_response.py b/src/cloudflare/types/ai_gateway/log_list_response.py index 8692db7b6..c7eab8e3d 100644 --- a/src/cloudflare/types/ai_gateway/log_list_response.py +++ b/src/cloudflare/types/ai_gateway/log_list_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import Optional from datetime import datetime -from typing import Optional - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["LogListResponse"] diff --git a/src/cloudflare/types/alerting/__init__.py b/src/cloudflare/types/alerting/__init__.py index 864558c1e..bb4a0f9f7 100644 --- a/src/cloudflare/types/alerting/__init__.py +++ b/src/cloudflare/types/alerting/__init__.py @@ -2,16 +2,16 @@ from __future__ import annotations -from .available_alert_list_response import AvailableAlertListResponse as AvailableAlertListResponse -from .history import History as History -from .history_list_params import HistoryListParams as HistoryListParams -from .mechanism import Mechanism as Mechanism -from .mechanism_param import MechanismParam as MechanismParam from .policy import Policy as Policy +from .history import History as History +from .mechanism import Mechanism as Mechanism from .policy_filter import PolicyFilter as PolicyFilter +from .mechanism_param import MechanismParam as MechanismParam +from .history_list_params import HistoryListParams as HistoryListParams from .policy_filter_param import PolicyFilterParam as PolicyFilterParam -from .policy_create_response import PolicyCreateResponse as PolicyCreateResponse -from .policy_update_response import PolicyUpdateResponse as PolicyUpdateResponse -from .policy_delete_response import PolicyDeleteResponse as PolicyDeleteResponse from .policy_create_params import PolicyCreateParams as PolicyCreateParams from .policy_update_params import PolicyUpdateParams as PolicyUpdateParams +from .policy_create_response import PolicyCreateResponse as PolicyCreateResponse +from .policy_delete_response import PolicyDeleteResponse as PolicyDeleteResponse +from .policy_update_response import PolicyUpdateResponse as PolicyUpdateResponse +from .available_alert_list_response import AvailableAlertListResponse as AvailableAlertListResponse diff --git a/src/cloudflare/types/alerting/available_alert_list_response.py b/src/cloudflare/types/alerting/available_alert_list_response.py index 1715b3d20..b8b9efc1b 100644 --- a/src/cloudflare/types/alerting/available_alert_list_response.py +++ b/src/cloudflare/types/alerting/available_alert_list_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import Dict, List, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["AvailableAlertListResponse", "AvailableAlertListResponseItem"] diff --git a/src/cloudflare/types/alerting/destinations/__init__.py b/src/cloudflare/types/alerting/destinations/__init__.py index ce08068d6..fd61e30e2 100644 --- a/src/cloudflare/types/alerting/destinations/__init__.py +++ b/src/cloudflare/types/alerting/destinations/__init__.py @@ -2,15 +2,15 @@ from __future__ import annotations -from .eligible_get_response import EligibleGetResponse as EligibleGetResponse -from .pagerduty import Pagerduty as Pagerduty -from .pagerduty_create_response import PagerdutyCreateResponse as PagerdutyCreateResponse -from .pagerduty_delete_response import PagerdutyDeleteResponse as PagerdutyDeleteResponse -from .pagerduty_get_response import PagerdutyGetResponse as PagerdutyGetResponse -from .pagerduty_link_response import PagerdutyLinkResponse as PagerdutyLinkResponse from .webhooks import Webhooks as Webhooks -from .webhook_create_response import WebhookCreateResponse as WebhookCreateResponse -from .webhook_update_response import WebhookUpdateResponse as WebhookUpdateResponse -from .webhook_delete_response import WebhookDeleteResponse as WebhookDeleteResponse +from .pagerduty import Pagerduty as Pagerduty +from .eligible_get_response import EligibleGetResponse as EligibleGetResponse from .webhook_create_params import WebhookCreateParams as WebhookCreateParams from .webhook_update_params import WebhookUpdateParams as WebhookUpdateParams +from .pagerduty_get_response import PagerdutyGetResponse as PagerdutyGetResponse +from .pagerduty_link_response import PagerdutyLinkResponse as PagerdutyLinkResponse +from .webhook_create_response import WebhookCreateResponse as WebhookCreateResponse +from .webhook_delete_response import WebhookDeleteResponse as WebhookDeleteResponse +from .webhook_update_response import WebhookUpdateResponse as WebhookUpdateResponse +from .pagerduty_create_response import PagerdutyCreateResponse as PagerdutyCreateResponse +from .pagerduty_delete_response import PagerdutyDeleteResponse as PagerdutyDeleteResponse diff --git a/src/cloudflare/types/alerting/destinations/eligible_get_response.py b/src/cloudflare/types/alerting/destinations/eligible_get_response.py index e21f7a754..f727c8f4f 100644 --- a/src/cloudflare/types/alerting/destinations/eligible_get_response.py +++ b/src/cloudflare/types/alerting/destinations/eligible_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List - +from typing import Dict, List, Optional from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["EligibleGetResponse", "EligibleGetResponseItem"] diff --git a/src/cloudflare/types/alerting/destinations/pagerduty.py b/src/cloudflare/types/alerting/destinations/pagerduty.py index c67ac6699..4996c44d9 100644 --- a/src/cloudflare/types/alerting/destinations/pagerduty.py +++ b/src/cloudflare/types/alerting/destinations/pagerduty.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["Pagerduty"] diff --git a/src/cloudflare/types/alerting/destinations/pagerduty_create_response.py b/src/cloudflare/types/alerting/destinations/pagerduty_create_response.py index bc1e591c3..89d2e7785 100644 --- a/src/cloudflare/types/alerting/destinations/pagerduty_create_response.py +++ b/src/cloudflare/types/alerting/destinations/pagerduty_create_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["PagerdutyCreateResponse"] diff --git a/src/cloudflare/types/alerting/destinations/pagerduty_delete_response.py b/src/cloudflare/types/alerting/destinations/pagerduty_delete_response.py index a35f727d8..958d79504 100644 --- a/src/cloudflare/types/alerting/destinations/pagerduty_delete_response.py +++ b/src/cloudflare/types/alerting/destinations/pagerduty_delete_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ...._models import BaseModel - -from typing import Optional, List - from ...shared.response_info import ResponseInfo -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["PagerdutyDeleteResponse", "ResultInfo"] diff --git a/src/cloudflare/types/alerting/destinations/pagerduty_get_response.py b/src/cloudflare/types/alerting/destinations/pagerduty_get_response.py index 9a83be721..ab52bae41 100644 --- a/src/cloudflare/types/alerting/destinations/pagerduty_get_response.py +++ b/src/cloudflare/types/alerting/destinations/pagerduty_get_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .pagerduty import Pagerduty - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .pagerduty import Pagerduty __all__ = ["PagerdutyGetResponse"] diff --git a/src/cloudflare/types/alerting/destinations/pagerduty_link_response.py b/src/cloudflare/types/alerting/destinations/pagerduty_link_response.py index 1dd21e894..4ed62e3d6 100644 --- a/src/cloudflare/types/alerting/destinations/pagerduty_link_response.py +++ b/src/cloudflare/types/alerting/destinations/pagerduty_link_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["PagerdutyLinkResponse"] diff --git a/src/cloudflare/types/alerting/destinations/webhook_create_params.py b/src/cloudflare/types/alerting/destinations/webhook_create_params.py index ec559e676..9a14c7e35 100644 --- a/src/cloudflare/types/alerting/destinations/webhook_create_params.py +++ b/src/cloudflare/types/alerting/destinations/webhook_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["WebhookCreateParams"] diff --git a/src/cloudflare/types/alerting/destinations/webhook_create_response.py b/src/cloudflare/types/alerting/destinations/webhook_create_response.py index ae077897b..ab273a504 100644 --- a/src/cloudflare/types/alerting/destinations/webhook_create_response.py +++ b/src/cloudflare/types/alerting/destinations/webhook_create_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["WebhookCreateResponse"] diff --git a/src/cloudflare/types/alerting/destinations/webhook_delete_response.py b/src/cloudflare/types/alerting/destinations/webhook_delete_response.py index 865d55053..eef159b99 100644 --- a/src/cloudflare/types/alerting/destinations/webhook_delete_response.py +++ b/src/cloudflare/types/alerting/destinations/webhook_delete_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ...._models import BaseModel - -from typing import Optional, List - from ...shared.response_info import ResponseInfo -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["WebhookDeleteResponse", "ResultInfo"] diff --git a/src/cloudflare/types/alerting/destinations/webhook_update_params.py b/src/cloudflare/types/alerting/destinations/webhook_update_params.py index 211600a41..d28b2ea9e 100644 --- a/src/cloudflare/types/alerting/destinations/webhook_update_params.py +++ b/src/cloudflare/types/alerting/destinations/webhook_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["WebhookUpdateParams"] diff --git a/src/cloudflare/types/alerting/destinations/webhook_update_response.py b/src/cloudflare/types/alerting/destinations/webhook_update_response.py index 9bf8d08f0..ef85a5032 100644 --- a/src/cloudflare/types/alerting/destinations/webhook_update_response.py +++ b/src/cloudflare/types/alerting/destinations/webhook_update_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["WebhookUpdateResponse"] diff --git a/src/cloudflare/types/alerting/destinations/webhooks.py b/src/cloudflare/types/alerting/destinations/webhooks.py index ebe7aab33..36fb89342 100644 --- a/src/cloudflare/types/alerting/destinations/webhooks.py +++ b/src/cloudflare/types/alerting/destinations/webhooks.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["Webhooks"] diff --git a/src/cloudflare/types/alerting/history.py b/src/cloudflare/types/alerting/history.py index d9a2d5da9..15b1b63b5 100644 --- a/src/cloudflare/types/alerting/history.py +++ b/src/cloudflare/types/alerting/history.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - -from typing_extensions import Literal - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["History"] diff --git a/src/cloudflare/types/alerting/history_list_params.py b/src/cloudflare/types/alerting/history_list_params.py index dd3a91a52..913da1c6c 100644 --- a/src/cloudflare/types/alerting/history_list_params.py +++ b/src/cloudflare/types/alerting/history_list_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - from typing import Union - from datetime import datetime +from typing_extensions import Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["HistoryListParams"] diff --git a/src/cloudflare/types/alerting/mechanism.py b/src/cloudflare/types/alerting/mechanism.py index 19d4cafbc..e19d43a75 100644 --- a/src/cloudflare/types/alerting/mechanism.py +++ b/src/cloudflare/types/alerting/mechanism.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import Dict, List, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Mechanism", "MechanismItem"] diff --git a/src/cloudflare/types/alerting/mechanism_param.py b/src/cloudflare/types/alerting/mechanism_param.py index 731da9d8a..7d64d335f 100644 --- a/src/cloudflare/types/alerting/mechanism_param.py +++ b/src/cloudflare/types/alerting/mechanism_param.py @@ -2,9 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, TypeAlias - -from typing import Iterable, Dict +from typing import Dict, Iterable +from typing_extensions import TypeAlias, TypedDict __all__ = ["MechanismParam", "MechanismParamItem"] diff --git a/src/cloudflare/types/alerting/policy.py b/src/cloudflare/types/alerting/policy.py index bd88284ee..3b48a24ad 100644 --- a/src/cloudflare/types/alerting/policy.py +++ b/src/cloudflare/types/alerting/policy.py @@ -1,20 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - -from typing_extensions import Literal - from datetime import datetime - -from .policy_filter import PolicyFilter - -from .mechanism import Mechanism - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel +from .mechanism import Mechanism +from .policy_filter import PolicyFilter __all__ = ["Policy"] diff --git a/src/cloudflare/types/alerting/policy_create_params.py b/src/cloudflare/types/alerting/policy_create_params.py index 33a473e53..e7c4d74f3 100644 --- a/src/cloudflare/types/alerting/policy_create_params.py +++ b/src/cloudflare/types/alerting/policy_create_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal +from typing_extensions import Literal, Required, TypedDict from .mechanism_param import MechanismParam - from .policy_filter_param import PolicyFilterParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["PolicyCreateParams"] diff --git a/src/cloudflare/types/alerting/policy_create_response.py b/src/cloudflare/types/alerting/policy_create_response.py index 6406b0139..39bd66cdf 100644 --- a/src/cloudflare/types/alerting/policy_create_response.py +++ b/src/cloudflare/types/alerting/policy_create_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["PolicyCreateResponse"] diff --git a/src/cloudflare/types/alerting/policy_delete_response.py b/src/cloudflare/types/alerting/policy_delete_response.py index 14d3f910b..d0feccf6a 100644 --- a/src/cloudflare/types/alerting/policy_delete_response.py +++ b/src/cloudflare/types/alerting/policy_delete_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel - -from typing import Optional, List - from ..shared.response_info import ResponseInfo -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["PolicyDeleteResponse", "ResultInfo"] diff --git a/src/cloudflare/types/alerting/policy_filter.py b/src/cloudflare/types/alerting/policy_filter.py index 2a3b6cfb5..ded3aae48 100644 --- a/src/cloudflare/types/alerting/policy_filter.py +++ b/src/cloudflare/types/alerting/policy_filter.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel -from typing import Optional, List - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["PolicyFilter"] diff --git a/src/cloudflare/types/alerting/policy_filter_param.py b/src/cloudflare/types/alerting/policy_filter_param.py index edb3c43db..79f3878de 100644 --- a/src/cloudflare/types/alerting/policy_filter_param.py +++ b/src/cloudflare/types/alerting/policy_filter_param.py @@ -3,7 +3,6 @@ from __future__ import annotations from typing import List - from typing_extensions import Literal, TypedDict __all__ = ["PolicyFilterParam"] diff --git a/src/cloudflare/types/alerting/policy_update_params.py b/src/cloudflare/types/alerting/policy_update_params.py index c42d5435b..e36c40453 100644 --- a/src/cloudflare/types/alerting/policy_update_params.py +++ b/src/cloudflare/types/alerting/policy_update_params.py @@ -2,16 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from .policy_filter_param import PolicyFilterParam +from typing_extensions import Literal, Required, TypedDict from .mechanism_param import MechanismParam - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .policy_filter_param import PolicyFilterParam __all__ = ["PolicyUpdateParams"] diff --git a/src/cloudflare/types/alerting/policy_update_response.py b/src/cloudflare/types/alerting/policy_update_response.py index 047ca6248..10a3c4cdb 100644 --- a/src/cloudflare/types/alerting/policy_update_response.py +++ b/src/cloudflare/types/alerting/policy_update_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["PolicyUpdateResponse"] diff --git a/src/cloudflare/types/api_gateway/__init__.py b/src/cloudflare/types/api_gateway/__init__.py index c467afc91..15d29b9c6 100644 --- a/src/cloudflare/types/api_gateway/__init__.py +++ b/src/cloudflare/types/api_gateway/__init__.py @@ -2,28 +2,28 @@ from __future__ import annotations -from .configuration import Configuration as Configuration -from .configuration_update_response import ConfigurationUpdateResponse as ConfigurationUpdateResponse -from .configuration_update_params import ConfigurationUpdateParams as ConfigurationUpdateParams -from .configuration_get_params import ConfigurationGetParams as ConfigurationGetParams -from .discovery_operation import DiscoveryOperation as DiscoveryOperation -from .discovery_get_response import DiscoveryGetResponse as DiscoveryGetResponse -from .api_shield import APIShield as APIShield -from .operation_create_response import OperationCreateResponse as OperationCreateResponse -from .operation_list_response import OperationListResponse as OperationListResponse -from .operation_delete_response import OperationDeleteResponse as OperationDeleteResponse -from .operation_get_response import OperationGetResponse as OperationGetResponse -from .operation_create_params import OperationCreateParams as OperationCreateParams -from .operation_list_params import OperationListParams as OperationListParams -from .operation_get_params import OperationGetParams as OperationGetParams -from .schema_list_response import SchemaListResponse as SchemaListResponse -from .schema_list_params import SchemaListParams as SchemaListParams -from .settings import Settings as Settings from .message import Message as Message +from .settings import Settings as Settings +from .api_shield import APIShield as APIShield +from .configuration import Configuration as Configuration from .public_schema import PublicSchema as PublicSchema from .schema_upload import SchemaUpload as SchemaUpload -from .user_schema_delete_response import UserSchemaDeleteResponse as UserSchemaDeleteResponse -from .user_schema_create_params import UserSchemaCreateParams as UserSchemaCreateParams -from .user_schema_list_params import UserSchemaListParams as UserSchemaListParams -from .user_schema_edit_params import UserSchemaEditParams as UserSchemaEditParams +from .schema_list_params import SchemaListParams as SchemaListParams +from .discovery_operation import DiscoveryOperation as DiscoveryOperation +from .operation_get_params import OperationGetParams as OperationGetParams +from .schema_list_response import SchemaListResponse as SchemaListResponse +from .operation_list_params import OperationListParams as OperationListParams +from .discovery_get_response import DiscoveryGetResponse as DiscoveryGetResponse +from .operation_get_response import OperationGetResponse as OperationGetResponse from .user_schema_get_params import UserSchemaGetParams as UserSchemaGetParams +from .operation_create_params import OperationCreateParams as OperationCreateParams +from .operation_list_response import OperationListResponse as OperationListResponse +from .user_schema_edit_params import UserSchemaEditParams as UserSchemaEditParams +from .user_schema_list_params import UserSchemaListParams as UserSchemaListParams +from .configuration_get_params import ConfigurationGetParams as ConfigurationGetParams +from .operation_create_response import OperationCreateResponse as OperationCreateResponse +from .operation_delete_response import OperationDeleteResponse as OperationDeleteResponse +from .user_schema_create_params import UserSchemaCreateParams as UserSchemaCreateParams +from .configuration_update_params import ConfigurationUpdateParams as ConfigurationUpdateParams +from .user_schema_delete_response import UserSchemaDeleteResponse as UserSchemaDeleteResponse +from .configuration_update_response import ConfigurationUpdateResponse as ConfigurationUpdateResponse diff --git a/src/cloudflare/types/api_gateway/api_shield.py b/src/cloudflare/types/api_gateway/api_shield.py index dbd35640a..f884d96b9 100644 --- a/src/cloudflare/types/api_gateway/api_shield.py +++ b/src/cloudflare/types/api_gateway/api_shield.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Union, Optional from datetime import datetime - from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = [ "APIShield", diff --git a/src/cloudflare/types/api_gateway/configuration.py b/src/cloudflare/types/api_gateway/configuration.py index d1e90cde3..24032e3c1 100644 --- a/src/cloudflare/types/api_gateway/configuration.py +++ b/src/cloudflare/types/api_gateway/configuration.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import List, Union from typing_extensions import Literal, TypeAlias -from typing import List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = [ "Configuration", diff --git a/src/cloudflare/types/api_gateway/configuration_get_params.py b/src/cloudflare/types/api_gateway/configuration_get_params.py index 2c01db12a..c1be0a862 100644 --- a/src/cloudflare/types/api_gateway/configuration_get_params.py +++ b/src/cloudflare/types/api_gateway/configuration_get_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["ConfigurationGetParams"] diff --git a/src/cloudflare/types/api_gateway/configuration_update_params.py b/src/cloudflare/types/api_gateway/configuration_update_params.py index c045a1b9a..d959949ef 100644 --- a/src/cloudflare/types/api_gateway/configuration_update_params.py +++ b/src/cloudflare/types/api_gateway/configuration_update_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias - -from typing import Iterable, Union - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing import Union, Iterable +from typing_extensions import Literal, Required, TypeAlias, TypedDict __all__ = [ "ConfigurationUpdateParams", diff --git a/src/cloudflare/types/api_gateway/configuration_update_response.py b/src/cloudflare/types/api_gateway/configuration_update_response.py index 2431efc37..ae84bf09c 100644 --- a/src/cloudflare/types/api_gateway/configuration_update_response.py +++ b/src/cloudflare/types/api_gateway/configuration_update_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel +from typing_extensions import Literal from .message import Message - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ConfigurationUpdateResponse"] diff --git a/src/cloudflare/types/api_gateway/discovery/__init__.py b/src/cloudflare/types/api_gateway/discovery/__init__.py index df5e79df1..91d80c2ce 100644 --- a/src/cloudflare/types/api_gateway/discovery/__init__.py +++ b/src/cloudflare/types/api_gateway/discovery/__init__.py @@ -2,6 +2,6 @@ from __future__ import annotations -from .operation_edit_response import OperationEditResponse as OperationEditResponse -from .operation_list_params import OperationListParams as OperationListParams from .operation_edit_params import OperationEditParams as OperationEditParams +from .operation_list_params import OperationListParams as OperationListParams +from .operation_edit_response import OperationEditResponse as OperationEditResponse diff --git a/src/cloudflare/types/api_gateway/discovery/operation_edit_params.py b/src/cloudflare/types/api_gateway/discovery/operation_edit_params.py index b021a83af..903d84d39 100644 --- a/src/cloudflare/types/api_gateway/discovery/operation_edit_params.py +++ b/src/cloudflare/types/api_gateway/discovery/operation_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["OperationEditParams"] diff --git a/src/cloudflare/types/api_gateway/discovery/operation_edit_response.py b/src/cloudflare/types/api_gateway/discovery/operation_edit_response.py index 139e507fe..ff7f58a5e 100644 --- a/src/cloudflare/types/api_gateway/discovery/operation_edit_response.py +++ b/src/cloudflare/types/api_gateway/discovery/operation_edit_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["OperationEditResponse"] diff --git a/src/cloudflare/types/api_gateway/discovery/operation_list_params.py b/src/cloudflare/types/api_gateway/discovery/operation_list_params.py index e6af38cef..0b3364543 100644 --- a/src/cloudflare/types/api_gateway/discovery/operation_list_params.py +++ b/src/cloudflare/types/api_gateway/discovery/operation_list_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["OperationListParams"] diff --git a/src/cloudflare/types/api_gateway/discovery_get_response.py b/src/cloudflare/types/api_gateway/discovery_get_response.py index 47124125a..bcc99ffc3 100644 --- a/src/cloudflare/types/api_gateway/discovery_get_response.py +++ b/src/cloudflare/types/api_gateway/discovery_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["DiscoveryGetResponse"] diff --git a/src/cloudflare/types/api_gateway/discovery_operation.py b/src/cloudflare/types/api_gateway/discovery_operation.py index e5aae1800..8c3fe0a86 100644 --- a/src/cloudflare/types/api_gateway/discovery_operation.py +++ b/src/cloudflare/types/api_gateway/discovery_operation.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import List, Optional from datetime import datetime - -from typing import Optional, List - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["DiscoveryOperation", "Features", "FeaturesTrafficStats"] diff --git a/src/cloudflare/types/api_gateway/message.py b/src/cloudflare/types/api_gateway/message.py index f1bc6c3c1..3cc2e6710 100644 --- a/src/cloudflare/types/api_gateway/message.py +++ b/src/cloudflare/types/api_gateway/message.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..shared.response_info import ResponseInfo - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..shared.response_info import ResponseInfo __all__ = ["Message"] diff --git a/src/cloudflare/types/api_gateway/operation_create_params.py b/src/cloudflare/types/api_gateway/operation_create_params.py index 73baf7cc5..dbfa97bf6 100644 --- a/src/cloudflare/types/api_gateway/operation_create_params.py +++ b/src/cloudflare/types/api_gateway/operation_create_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Iterable - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["OperationCreateParams", "Body"] diff --git a/src/cloudflare/types/api_gateway/operation_create_response.py b/src/cloudflare/types/api_gateway/operation_create_response.py index 7c9d8e1bb..23d0751ec 100644 --- a/src/cloudflare/types/api_gateway/operation_create_response.py +++ b/src/cloudflare/types/api_gateway/operation_create_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .api_shield import APIShield - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .api_shield import APIShield __all__ = ["OperationCreateResponse"] diff --git a/src/cloudflare/types/api_gateway/operation_delete_response.py b/src/cloudflare/types/api_gateway/operation_delete_response.py index e85028a7c..3122a809a 100644 --- a/src/cloudflare/types/api_gateway/operation_delete_response.py +++ b/src/cloudflare/types/api_gateway/operation_delete_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel +from typing_extensions import Literal from .message import Message - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["OperationDeleteResponse"] diff --git a/src/cloudflare/types/api_gateway/operation_get_params.py b/src/cloudflare/types/api_gateway/operation_get_params.py index 00f16ed1d..e752e501a 100644 --- a/src/cloudflare/types/api_gateway/operation_get_params.py +++ b/src/cloudflare/types/api_gateway/operation_get_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["OperationGetParams"] diff --git a/src/cloudflare/types/api_gateway/operation_get_response.py b/src/cloudflare/types/api_gateway/operation_get_response.py index a25fdc798..36585cba2 100644 --- a/src/cloudflare/types/api_gateway/operation_get_response.py +++ b/src/cloudflare/types/api_gateway/operation_get_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Union, Optional from datetime import datetime - from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = [ "OperationGetResponse", diff --git a/src/cloudflare/types/api_gateway/operation_list_params.py b/src/cloudflare/types/api_gateway/operation_list_params.py index 7ced94fd7..1244f5a07 100644 --- a/src/cloudflare/types/api_gateway/operation_list_params.py +++ b/src/cloudflare/types/api_gateway/operation_list_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["OperationListParams"] diff --git a/src/cloudflare/types/api_gateway/operation_list_response.py b/src/cloudflare/types/api_gateway/operation_list_response.py index 773733f68..de42fa68e 100644 --- a/src/cloudflare/types/api_gateway/operation_list_response.py +++ b/src/cloudflare/types/api_gateway/operation_list_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Union, Optional from datetime import datetime - from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = [ "OperationListResponse", diff --git a/src/cloudflare/types/api_gateway/operations/__init__.py b/src/cloudflare/types/api_gateway/operations/__init__.py index bb363553d..12668aae6 100644 --- a/src/cloudflare/types/api_gateway/operations/__init__.py +++ b/src/cloudflare/types/api_gateway/operations/__init__.py @@ -3,8 +3,8 @@ from __future__ import annotations from .settings_multiple_request import SettingsMultipleRequest as SettingsMultipleRequest -from .settings_multiple_request_param import SettingsMultipleRequestParam as SettingsMultipleRequestParam -from .schema_validation_update_response import SchemaValidationUpdateResponse as SchemaValidationUpdateResponse +from .schema_validation_edit_params import SchemaValidationEditParams as SchemaValidationEditParams from .schema_validation_get_response import SchemaValidationGetResponse as SchemaValidationGetResponse from .schema_validation_update_params import SchemaValidationUpdateParams as SchemaValidationUpdateParams -from .schema_validation_edit_params import SchemaValidationEditParams as SchemaValidationEditParams +from .settings_multiple_request_param import SettingsMultipleRequestParam as SettingsMultipleRequestParam +from .schema_validation_update_response import SchemaValidationUpdateResponse as SchemaValidationUpdateResponse diff --git a/src/cloudflare/types/api_gateway/operations/schema_validation_edit_params.py b/src/cloudflare/types/api_gateway/operations/schema_validation_edit_params.py index 0639d62ba..45926402a 100644 --- a/src/cloudflare/types/api_gateway/operations/schema_validation_edit_params.py +++ b/src/cloudflare/types/api_gateway/operations/schema_validation_edit_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict from .settings_multiple_request_param import SettingsMultipleRequestParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["SchemaValidationEditParams"] diff --git a/src/cloudflare/types/api_gateway/operations/schema_validation_get_response.py b/src/cloudflare/types/api_gateway/operations/schema_validation_get_response.py index 58c84dfa3..32fdc4cb3 100644 --- a/src/cloudflare/types/api_gateway/operations/schema_validation_get_response.py +++ b/src/cloudflare/types/api_gateway/operations/schema_validation_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["SchemaValidationGetResponse"] diff --git a/src/cloudflare/types/api_gateway/operations/schema_validation_update_params.py b/src/cloudflare/types/api_gateway/operations/schema_validation_update_params.py index b251e6d79..e9975b01c 100644 --- a/src/cloudflare/types/api_gateway/operations/schema_validation_update_params.py +++ b/src/cloudflare/types/api_gateway/operations/schema_validation_update_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Optional - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["SchemaValidationUpdateParams"] diff --git a/src/cloudflare/types/api_gateway/operations/schema_validation_update_response.py b/src/cloudflare/types/api_gateway/operations/schema_validation_update_response.py index 24f1b915c..ab2d8ffd9 100644 --- a/src/cloudflare/types/api_gateway/operations/schema_validation_update_response.py +++ b/src/cloudflare/types/api_gateway/operations/schema_validation_update_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["SchemaValidationUpdateResponse"] diff --git a/src/cloudflare/types/api_gateway/operations/settings_multiple_request.py b/src/cloudflare/types/api_gateway/operations/settings_multiple_request.py index 8e749d7f1..6ccba8950 100644 --- a/src/cloudflare/types/api_gateway/operations/settings_multiple_request.py +++ b/src/cloudflare/types/api_gateway/operations/settings_multiple_request.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional - +from typing import Dict, Optional from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["SettingsMultipleRequest", "SettingsMultipleRequestItem"] diff --git a/src/cloudflare/types/api_gateway/operations/settings_multiple_request_param.py b/src/cloudflare/types/api_gateway/operations/settings_multiple_request_param.py index 041290fb9..a78f4c985 100644 --- a/src/cloudflare/types/api_gateway/operations/settings_multiple_request_param.py +++ b/src/cloudflare/types/api_gateway/operations/settings_multiple_request_param.py @@ -2,9 +2,8 @@ from __future__ import annotations -from typing import Optional, Dict - -from typing_extensions import Literal, TypedDict, TypeAlias +from typing import Dict, Optional +from typing_extensions import Literal, TypeAlias, TypedDict __all__ = ["SettingsMultipleRequestParam", "SettingsMultipleRequestParamItem"] diff --git a/src/cloudflare/types/api_gateway/public_schema.py b/src/cloudflare/types/api_gateway/public_schema.py index ccdc4deb9..bdff5f529 100644 --- a/src/cloudflare/types/api_gateway/public_schema.py +++ b/src/cloudflare/types/api_gateway/public_schema.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from datetime import datetime - -from typing_extensions import Literal - from typing import Optional - -from typing import Optional, Union, List, Dict, Any +from datetime import datetime from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["PublicSchema"] diff --git a/src/cloudflare/types/api_gateway/schema_list_params.py b/src/cloudflare/types/api_gateway/schema_list_params.py index 04b3da4c7..7bc4f9ac0 100644 --- a/src/cloudflare/types/api_gateway/schema_list_params.py +++ b/src/cloudflare/types/api_gateway/schema_list_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["SchemaListParams"] diff --git a/src/cloudflare/types/api_gateway/schema_list_response.py b/src/cloudflare/types/api_gateway/schema_list_response.py index b410181b3..9b7b5b00a 100644 --- a/src/cloudflare/types/api_gateway/schema_list_response.py +++ b/src/cloudflare/types/api_gateway/schema_list_response.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SchemaListResponse"] diff --git a/src/cloudflare/types/api_gateway/schema_upload.py b/src/cloudflare/types/api_gateway/schema_upload.py index c38ab60d0..3df20a038 100644 --- a/src/cloudflare/types/api_gateway/schema_upload.py +++ b/src/cloudflare/types/api_gateway/schema_upload.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel +from typing import List, Optional -from typing import Optional, List - -from .public_schema import PublicSchema - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .public_schema import PublicSchema + __all__ = ["SchemaUpload", "UploadDetails", "UploadDetailsWarning"] diff --git a/src/cloudflare/types/api_gateway/settings/__init__.py b/src/cloudflare/types/api_gateway/settings/__init__.py index bf64d5633..4a0d2fe18 100644 --- a/src/cloudflare/types/api_gateway/settings/__init__.py +++ b/src/cloudflare/types/api_gateway/settings/__init__.py @@ -3,5 +3,5 @@ from __future__ import annotations from .settings import Settings as Settings -from .schema_validation_update_params import SchemaValidationUpdateParams as SchemaValidationUpdateParams from .schema_validation_edit_params import SchemaValidationEditParams as SchemaValidationEditParams +from .schema_validation_update_params import SchemaValidationUpdateParams as SchemaValidationUpdateParams diff --git a/src/cloudflare/types/api_gateway/settings/schema_validation_edit_params.py b/src/cloudflare/types/api_gateway/settings/schema_validation_edit_params.py index 531521ff3..424471b12 100644 --- a/src/cloudflare/types/api_gateway/settings/schema_validation_edit_params.py +++ b/src/cloudflare/types/api_gateway/settings/schema_validation_edit_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Optional - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["SchemaValidationEditParams"] diff --git a/src/cloudflare/types/api_gateway/settings/schema_validation_update_params.py b/src/cloudflare/types/api_gateway/settings/schema_validation_update_params.py index c28477545..e7ffb4e6b 100644 --- a/src/cloudflare/types/api_gateway/settings/schema_validation_update_params.py +++ b/src/cloudflare/types/api_gateway/settings/schema_validation_update_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Optional - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["SchemaValidationUpdateParams"] diff --git a/src/cloudflare/types/api_gateway/settings/settings.py b/src/cloudflare/types/api_gateway/settings/settings.py index 83aad3563..b8d1b0026 100644 --- a/src/cloudflare/types/api_gateway/settings/settings.py +++ b/src/cloudflare/types/api_gateway/settings/settings.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["Settings"] diff --git a/src/cloudflare/types/api_gateway/user_schema_create_params.py b/src/cloudflare/types/api_gateway/user_schema_create_params.py index e6bb79543..10d959324 100644 --- a/src/cloudflare/types/api_gateway/user_schema_create_params.py +++ b/src/cloudflare/types/api_gateway/user_schema_create_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal +from typing_extensions import Literal, Required, TypedDict from ..._types import FileTypes -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["UserSchemaCreateParams"] diff --git a/src/cloudflare/types/api_gateway/user_schema_delete_response.py b/src/cloudflare/types/api_gateway/user_schema_delete_response.py index 0ee5f7f18..7daf946d1 100644 --- a/src/cloudflare/types/api_gateway/user_schema_delete_response.py +++ b/src/cloudflare/types/api_gateway/user_schema_delete_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel +from typing_extensions import Literal from .message import Message - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["UserSchemaDeleteResponse"] diff --git a/src/cloudflare/types/api_gateway/user_schema_edit_params.py b/src/cloudflare/types/api_gateway/user_schema_edit_params.py index 2417e53a3..99e15349c 100644 --- a/src/cloudflare/types/api_gateway/user_schema_edit_params.py +++ b/src/cloudflare/types/api_gateway/user_schema_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["UserSchemaEditParams"] diff --git a/src/cloudflare/types/api_gateway/user_schema_get_params.py b/src/cloudflare/types/api_gateway/user_schema_get_params.py index 4b1647bbb..dbaee3dee 100644 --- a/src/cloudflare/types/api_gateway/user_schema_get_params.py +++ b/src/cloudflare/types/api_gateway/user_schema_get_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["UserSchemaGetParams"] diff --git a/src/cloudflare/types/api_gateway/user_schema_list_params.py b/src/cloudflare/types/api_gateway/user_schema_list_params.py index 7a3faa02c..faca68fa9 100644 --- a/src/cloudflare/types/api_gateway/user_schema_list_params.py +++ b/src/cloudflare/types/api_gateway/user_schema_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["UserSchemaListParams"] diff --git a/src/cloudflare/types/api_gateway/user_schemas/__init__.py b/src/cloudflare/types/api_gateway/user_schemas/__init__.py index 5f5844a62..597343a57 100644 --- a/src/cloudflare/types/api_gateway/user_schemas/__init__.py +++ b/src/cloudflare/types/api_gateway/user_schemas/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .operation_list_response import OperationListResponse as OperationListResponse from .operation_list_params import OperationListParams as OperationListParams +from .operation_list_response import OperationListResponse as OperationListResponse diff --git a/src/cloudflare/types/api_gateway/user_schemas/operation_list_params.py b/src/cloudflare/types/api_gateway/user_schemas/operation_list_params.py index 1a21e9b64..64cb5bdcc 100644 --- a/src/cloudflare/types/api_gateway/user_schemas/operation_list_params.py +++ b/src/cloudflare/types/api_gateway/user_schemas/operation_list_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["OperationListParams"] diff --git a/src/cloudflare/types/api_gateway/user_schemas/operation_list_response.py b/src/cloudflare/types/api_gateway/user_schemas/operation_list_response.py index bdfe124c7..3149155c0 100644 --- a/src/cloudflare/types/api_gateway/user_schemas/operation_list_response.py +++ b/src/cloudflare/types/api_gateway/user_schemas/operation_list_response.py @@ -1,14 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..api_shield import APIShield - -from ...._models import BaseModel - +from typing import Union from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel +from ..api_shield import APIShield __all__ = ["OperationListResponse", "APIShieldBasicOperation"] diff --git a/src/cloudflare/types/argo/__init__.py b/src/cloudflare/types/argo/__init__.py index c4fa61f51..5ba852780 100644 --- a/src/cloudflare/types/argo/__init__.py +++ b/src/cloudflare/types/argo/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .smart_routing_edit_response import SmartRoutingEditResponse as SmartRoutingEditResponse -from .smart_routing_get_response import SmartRoutingGetResponse as SmartRoutingGetResponse from .smart_routing_edit_params import SmartRoutingEditParams as SmartRoutingEditParams -from .tiered_caching_edit_response import TieredCachingEditResponse as TieredCachingEditResponse -from .tiered_caching_get_response import TieredCachingGetResponse as TieredCachingGetResponse +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_params.py b/src/cloudflare/types/argo/smart_routing_edit_params.py index b8757d426..44d5123b8 100644 --- a/src/cloudflare/types/argo/smart_routing_edit_params.py +++ b/src/cloudflare/types/argo/smart_routing_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["SmartRoutingEditParams"] diff --git a/src/cloudflare/types/argo/smart_routing_edit_response.py b/src/cloudflare/types/argo/smart_routing_edit_response.py index 3c34b57b4..eb10a30c7 100644 --- a/src/cloudflare/types/argo/smart_routing_edit_response.py +++ b/src/cloudflare/types/argo/smart_routing_edit_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - +from typing import Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SmartRoutingEditResponse"] SmartRoutingEditResponse: TypeAlias = Union[Optional[str], object] diff --git a/src/cloudflare/types/argo/smart_routing_get_response.py b/src/cloudflare/types/argo/smart_routing_get_response.py index 20beb75b2..44743a8c6 100644 --- a/src/cloudflare/types/argo/smart_routing_get_response.py +++ b/src/cloudflare/types/argo/smart_routing_get_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - +from typing import Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SmartRoutingGetResponse"] SmartRoutingGetResponse: TypeAlias = Union[Optional[str], object] diff --git a/src/cloudflare/types/argo/tiered_caching_edit_params.py b/src/cloudflare/types/argo/tiered_caching_edit_params.py index 5e459cba2..bab4bf290 100644 --- a/src/cloudflare/types/argo/tiered_caching_edit_params.py +++ b/src/cloudflare/types/argo/tiered_caching_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["TieredCachingEditParams"] diff --git a/src/cloudflare/types/argo/tiered_caching_edit_response.py b/src/cloudflare/types/argo/tiered_caching_edit_response.py index 318acbca6..0e99559b8 100644 --- a/src/cloudflare/types/argo/tiered_caching_edit_response.py +++ b/src/cloudflare/types/argo/tiered_caching_edit_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["TieredCachingEditResponse"] diff --git a/src/cloudflare/types/argo/tiered_caching_get_response.py b/src/cloudflare/types/argo/tiered_caching_get_response.py index cc8416794..72f04aac8 100644 --- a/src/cloudflare/types/argo/tiered_caching_get_response.py +++ b/src/cloudflare/types/argo/tiered_caching_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["TieredCachingGetResponse"] diff --git a/src/cloudflare/types/audit_logs/audit_log_list_params.py b/src/cloudflare/types/audit_logs/audit_log_list_params.py index f684f1aeb..3ad70b082 100644 --- a/src/cloudflare/types/audit_logs/audit_log_list_params.py +++ b/src/cloudflare/types/audit_logs/audit_log_list_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal - from typing import Union - from datetime import datetime +from typing_extensions import Literal, Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["AuditLogListParams", "Action", "Actor", "Zone"] diff --git a/src/cloudflare/types/billing/profile_get_response.py b/src/cloudflare/types/billing/profile_get_response.py index 04cd26e24..a6cb23fb4 100644 --- a/src/cloudflare/types/billing/profile_get_response.py +++ b/src/cloudflare/types/billing/profile_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ProfileGetResponse"] diff --git a/src/cloudflare/types/bot_management/__init__.py b/src/cloudflare/types/bot_management/__init__.py index 50775baad..f7225855f 100644 --- a/src/cloudflare/types/bot_management/__init__.py +++ b/src/cloudflare/types/bot_management/__init__.py @@ -2,14 +2,14 @@ from __future__ import annotations -from .bot_fight_mode_configuration import BotFightModeConfiguration as BotFightModeConfiguration from .subscription_configuration import SubscriptionConfiguration as SubscriptionConfiguration -from .super_bot_fight_mode_definitely_configuration import ( - SuperBotFightModeDefinitelyConfiguration as SuperBotFightModeDefinitelyConfiguration, -) +from .bot_management_get_response import BotManagementGetResponse as BotManagementGetResponse +from .bot_fight_mode_configuration import BotFightModeConfiguration as BotFightModeConfiguration +from .bot_management_update_params import BotManagementUpdateParams as BotManagementUpdateParams +from .bot_management_update_response import BotManagementUpdateResponse as BotManagementUpdateResponse from .super_bot_fight_mode_likely_configuration import ( SuperBotFightModeLikelyConfiguration as SuperBotFightModeLikelyConfiguration, ) -from .bot_management_update_response import BotManagementUpdateResponse as BotManagementUpdateResponse -from .bot_management_get_response import BotManagementGetResponse as BotManagementGetResponse -from .bot_management_update_params import BotManagementUpdateParams as BotManagementUpdateParams +from .super_bot_fight_mode_definitely_configuration import ( + SuperBotFightModeDefinitelyConfiguration as SuperBotFightModeDefinitelyConfiguration, +) diff --git a/src/cloudflare/types/bot_management/bot_fight_mode_configuration.py b/src/cloudflare/types/bot_management/bot_fight_mode_configuration.py index c83e3e104..e4a699f73 100644 --- a/src/cloudflare/types/bot_management/bot_fight_mode_configuration.py +++ b/src/cloudflare/types/bot_management/bot_fight_mode_configuration.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["BotFightModeConfiguration"] diff --git a/src/cloudflare/types/bot_management/bot_management_get_response.py b/src/cloudflare/types/bot_management/bot_management_get_response.py index ab28929c9..9db219d90 100644 --- a/src/cloudflare/types/bot_management/bot_management_get_response.py +++ b/src/cloudflare/types/bot_management/bot_management_get_response.py @@ -1,18 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .bot_fight_mode_configuration import BotFightModeConfiguration - -from .super_bot_fight_mode_definitely_configuration import SuperBotFightModeDefinitelyConfiguration - -from .super_bot_fight_mode_likely_configuration import SuperBotFightModeLikelyConfiguration - -from .subscription_configuration import SubscriptionConfiguration - +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .subscription_configuration import SubscriptionConfiguration +from .bot_fight_mode_configuration import BotFightModeConfiguration +from .super_bot_fight_mode_likely_configuration import SuperBotFightModeLikelyConfiguration +from .super_bot_fight_mode_definitely_configuration import SuperBotFightModeDefinitelyConfiguration __all__ = ["BotManagementGetResponse"] diff --git a/src/cloudflare/types/bot_management/bot_management_update_params.py b/src/cloudflare/types/bot_management/bot_management_update_params.py index 5b138b3d4..818cfc083 100644 --- a/src/cloudflare/types/bot_management/bot_management_update_params.py +++ b/src/cloudflare/types/bot_management/bot_management_update_params.py @@ -2,12 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing import Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict __all__ = [ "BotManagementUpdateParams", diff --git a/src/cloudflare/types/bot_management/bot_management_update_response.py b/src/cloudflare/types/bot_management/bot_management_update_response.py index 3ae41203d..5d4dced7f 100644 --- a/src/cloudflare/types/bot_management/bot_management_update_response.py +++ b/src/cloudflare/types/bot_management/bot_management_update_response.py @@ -1,18 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .bot_fight_mode_configuration import BotFightModeConfiguration - -from .super_bot_fight_mode_definitely_configuration import SuperBotFightModeDefinitelyConfiguration - -from .super_bot_fight_mode_likely_configuration import SuperBotFightModeLikelyConfiguration - -from .subscription_configuration import SubscriptionConfiguration - +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .subscription_configuration import SubscriptionConfiguration +from .bot_fight_mode_configuration import BotFightModeConfiguration +from .super_bot_fight_mode_likely_configuration import SuperBotFightModeLikelyConfiguration +from .super_bot_fight_mode_definitely_configuration import SuperBotFightModeDefinitelyConfiguration __all__ = ["BotManagementUpdateResponse"] diff --git a/src/cloudflare/types/bot_management/subscription_configuration.py b/src/cloudflare/types/bot_management/subscription_configuration.py index 3d60203e9..9624ded55 100644 --- a/src/cloudflare/types/bot_management/subscription_configuration.py +++ b/src/cloudflare/types/bot_management/subscription_configuration.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["SubscriptionConfiguration"] diff --git a/src/cloudflare/types/bot_management/super_bot_fight_mode_definitely_configuration.py b/src/cloudflare/types/bot_management/super_bot_fight_mode_definitely_configuration.py index 2e798798f..a8d80273a 100644 --- a/src/cloudflare/types/bot_management/super_bot_fight_mode_definitely_configuration.py +++ b/src/cloudflare/types/bot_management/super_bot_fight_mode_definitely_configuration.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["SuperBotFightModeDefinitelyConfiguration"] diff --git a/src/cloudflare/types/bot_management/super_bot_fight_mode_likely_configuration.py b/src/cloudflare/types/bot_management/super_bot_fight_mode_likely_configuration.py index 4ebe62dd8..a88ea209c 100644 --- a/src/cloudflare/types/bot_management/super_bot_fight_mode_likely_configuration.py +++ b/src/cloudflare/types/bot_management/super_bot_fight_mode_likely_configuration.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["SuperBotFightModeLikelyConfiguration"] diff --git a/src/cloudflare/types/botnet_feed/__init__.py b/src/cloudflare/types/botnet_feed/__init__.py index e680843aa..67ecec6ea 100755 --- a/src/cloudflare/types/botnet_feed/__init__.py +++ b/src/cloudflare/types/botnet_feed/__init__.py @@ -2,6 +2,6 @@ from __future__ import annotations +from .asn_day_report_params import ASNDayReportParams as ASNDayReportParams from .asn_day_report_response import ASNDayReportResponse as ASNDayReportResponse from .asn_full_report_response import ASNFullReportResponse as ASNFullReportResponse -from .asn_day_report_params import ASNDayReportParams as ASNDayReportParams diff --git a/src/cloudflare/types/botnet_feed/asn_day_report_params.py b/src/cloudflare/types/botnet_feed/asn_day_report_params.py index 457557b9d..e747912df 100755 --- a/src/cloudflare/types/botnet_feed/asn_day_report_params.py +++ b/src/cloudflare/types/botnet_feed/asn_day_report_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - from typing import Union - from datetime import datetime +from typing_extensions import Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["ASNDayReportParams"] diff --git a/src/cloudflare/types/botnet_feed/asn_day_report_response.py b/src/cloudflare/types/botnet_feed/asn_day_report_response.py index 554870c85..0d6c8afd5 100755 --- a/src/cloudflare/types/botnet_feed/asn_day_report_response.py +++ b/src/cloudflare/types/botnet_feed/asn_day_report_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ASNDayReportResponse"] diff --git a/src/cloudflare/types/botnet_feed/asn_full_report_response.py b/src/cloudflare/types/botnet_feed/asn_full_report_response.py index 72a6e44b1..31055423e 100755 --- a/src/cloudflare/types/botnet_feed/asn_full_report_response.py +++ b/src/cloudflare/types/botnet_feed/asn_full_report_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ASNFullReportResponse"] diff --git a/src/cloudflare/types/botnet_feed/configs/__init__.py b/src/cloudflare/types/botnet_feed/configs/__init__.py index 7da9208d4..1e423fc37 100755 --- a/src/cloudflare/types/botnet_feed/configs/__init__.py +++ b/src/cloudflare/types/botnet_feed/configs/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .asn_delete_response import ASNDeleteResponse as ASNDeleteResponse from .asn_get_response import ASNGetResponse as ASNGetResponse +from .asn_delete_response import ASNDeleteResponse as ASNDeleteResponse diff --git a/src/cloudflare/types/botnet_feed/configs/asn_delete_response.py b/src/cloudflare/types/botnet_feed/configs/asn_delete_response.py index 0ba9f463e..2f064ce32 100755 --- a/src/cloudflare/types/botnet_feed/configs/asn_delete_response.py +++ b/src/cloudflare/types/botnet_feed/configs/asn_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ASNDeleteResponse"] diff --git a/src/cloudflare/types/botnet_feed/configs/asn_get_response.py b/src/cloudflare/types/botnet_feed/configs/asn_get_response.py index 7c840f5d0..adc84aed7 100755 --- a/src/cloudflare/types/botnet_feed/configs/asn_get_response.py +++ b/src/cloudflare/types/botnet_feed/configs/asn_get_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ASNGetResponse"] diff --git a/src/cloudflare/types/brand_protection/__init__.py b/src/cloudflare/types/brand_protection/__init__.py index 2f76c42d1..3fa7ed724 100644 --- a/src/cloudflare/types/brand_protection/__init__.py +++ b/src/cloudflare/types/brand_protection/__init__.py @@ -3,9 +3,9 @@ from __future__ import annotations from .info import Info as Info +from .submit import Submit as Submit from .rule_match import RuleMatch as RuleMatch from .scan_status import ScanStatus as ScanStatus -from .submit import Submit as Submit from .url_info_model_results import URLInfoModelResults as URLInfoModelResults from .brand_protection_submit_params import BrandProtectionSubmitParams as BrandProtectionSubmitParams from .brand_protection_url_info_params import BrandProtectionURLInfoParams as BrandProtectionURLInfoParams diff --git a/src/cloudflare/types/brand_protection/brand_protection_submit_params.py b/src/cloudflare/types/brand_protection/brand_protection_submit_params.py index e43e1cf25..713cb526c 100644 --- a/src/cloudflare/types/brand_protection/brand_protection_submit_params.py +++ b/src/cloudflare/types/brand_protection/brand_protection_submit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["BrandProtectionSubmitParams"] diff --git a/src/cloudflare/types/brand_protection/brand_protection_url_info_params.py b/src/cloudflare/types/brand_protection/brand_protection_url_info_params.py index 6685b9423..f0d88a52b 100644 --- a/src/cloudflare/types/brand_protection/brand_protection_url_info_params.py +++ b/src/cloudflare/types/brand_protection/brand_protection_url_info_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import List, Iterable - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["BrandProtectionURLInfoParams"] diff --git a/src/cloudflare/types/brand_protection/info.py b/src/cloudflare/types/brand_protection/info.py index 77ee89ca0..ecc27c62f 100644 --- a/src/cloudflare/types/brand_protection/info.py +++ b/src/cloudflare/types/brand_protection/info.py @@ -1,19 +1,14 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel +from typing import List, Optional -from typing import Optional, List - -from .url_info_model_results import URLInfoModelResults - -from .rule_match import RuleMatch - -from .scan_status import ScanStatus - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .rule_match import RuleMatch +from .scan_status import ScanStatus +from .url_info_model_results import URLInfoModelResults + __all__ = ["Info", "Categorization"] diff --git a/src/cloudflare/types/brand_protection/rule_match.py b/src/cloudflare/types/brand_protection/rule_match.py index 90d8b9e4b..00452de56 100644 --- a/src/cloudflare/types/brand_protection/rule_match.py +++ b/src/cloudflare/types/brand_protection/rule_match.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RuleMatch"] diff --git a/src/cloudflare/types/brand_protection/scan_status.py b/src/cloudflare/types/brand_protection/scan_status.py index 0ae30a218..711de0b5e 100644 --- a/src/cloudflare/types/brand_protection/scan_status.py +++ b/src/cloudflare/types/brand_protection/scan_status.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ScanStatus"] diff --git a/src/cloudflare/types/brand_protection/submit.py b/src/cloudflare/types/brand_protection/submit.py index df6e3de6d..766580137 100644 --- a/src/cloudflare/types/brand_protection/submit.py +++ b/src/cloudflare/types/brand_protection/submit.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Submit", "ExcludedURL", "SkippedURL", "SubmittedURL"] diff --git a/src/cloudflare/types/brand_protection/url_info_model_results.py b/src/cloudflare/types/brand_protection/url_info_model_results.py index 2b141b738..cd2086aba 100644 --- a/src/cloudflare/types/brand_protection/url_info_model_results.py +++ b/src/cloudflare/types/brand_protection/url_info_model_results.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["URLInfoModelResults"] diff --git a/src/cloudflare/types/cache/__init__.py b/src/cloudflare/types/cache/__init__.py index 95ad16f72..520b99050 100644 --- a/src/cloudflare/types/cache/__init__.py +++ b/src/cloudflare/types/cache/__init__.py @@ -2,27 +2,27 @@ from __future__ import annotations -from .cache_purge_response import CachePurgeResponse as CachePurgeResponse -from .cache_purge_params import CachePurgeParams as CachePurgeParams -from .cache_reserve import CacheReserve as CacheReserve -from .cache_reserve_clear import CacheReserveClear as CacheReserveClear from .state import State as State -from .cache_reserve_clear_response import CacheReserveClearResponse as CacheReserveClearResponse -from .cache_reserve_edit_response import CacheReserveEditResponse as CacheReserveEditResponse -from .cache_reserve_get_response import CacheReserveGetResponse as CacheReserveGetResponse -from .cache_reserve_status_response import CacheReserveStatusResponse as CacheReserveStatusResponse -from .cache_reserve_clear_params import CacheReserveClearParams as CacheReserveClearParams -from .cache_reserve_edit_params import CacheReserveEditParams as CacheReserveEditParams -from .smart_tiered_cache_delete_response import SmartTieredCacheDeleteResponse as SmartTieredCacheDeleteResponse -from .smart_tiered_cache_edit_response import SmartTieredCacheEditResponse as SmartTieredCacheEditResponse -from .smart_tiered_cache_get_response import SmartTieredCacheGetResponse as SmartTieredCacheGetResponse -from .smart_tiered_cache_edit_params import SmartTieredCacheEditParams as SmartTieredCacheEditParams +from .cache_reserve import CacheReserve as CacheReserve from .cache_variant import CacheVariant as CacheVariant -from .cache_variant_identifier import CacheVariantIdentifier as CacheVariantIdentifier -from .variant_edit_response import VariantEditResponse as VariantEditResponse -from .variant_get_response import VariantGetResponse as VariantGetResponse +from .cache_purge_params import CachePurgeParams as CachePurgeParams +from .cache_reserve_clear import CacheReserveClear as CacheReserveClear from .variant_edit_params import VariantEditParams as VariantEditParams +from .cache_purge_response import CachePurgeResponse as CachePurgeResponse +from .variant_get_response import VariantGetResponse as VariantGetResponse from .regional_tiered_cache import RegionalTieredCache as RegionalTieredCache -from .regional_tiered_cache_edit_response import RegionalTieredCacheEditResponse as RegionalTieredCacheEditResponse -from .regional_tiered_cache_get_response import RegionalTieredCacheGetResponse as RegionalTieredCacheGetResponse +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 +from .cache_reserve_edit_response import CacheReserveEditResponse as CacheReserveEditResponse +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_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 diff --git a/src/cloudflare/types/cache/cache_purge_params.py b/src/cloudflare/types/cache/cache_purge_params.py index b2c28cabb..9a4fb0e7c 100644 --- a/src/cloudflare/types/cache/cache_purge_params.py +++ b/src/cloudflare/types/cache/cache_purge_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, TypeAlias - -from typing import List, Iterable - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing import List, Union, Iterable +from typing_extensions import Required, TypeAlias, TypedDict __all__ = [ "CachePurgeParams", diff --git a/src/cloudflare/types/cache/cache_purge_response.py b/src/cloudflare/types/cache/cache_purge_response.py index 9bb7466fb..ea34ba556 100644 --- a/src/cloudflare/types/cache/cache_purge_response.py +++ b/src/cloudflare/types/cache/cache_purge_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["CachePurgeResponse"] diff --git a/src/cloudflare/types/cache/cache_reserve.py b/src/cloudflare/types/cache/cache_reserve.py index f705226e1..05aac60ee 100644 --- a/src/cloudflare/types/cache/cache_reserve.py +++ b/src/cloudflare/types/cache/cache_reserve.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["CacheReserve"] CacheReserve: TypeAlias = Literal["cache_reserve"] diff --git a/src/cloudflare/types/cache/cache_reserve_clear.py b/src/cloudflare/types/cache/cache_reserve_clear.py index 04f4e830e..2c89da304 100644 --- a/src/cloudflare/types/cache/cache_reserve_clear.py +++ b/src/cloudflare/types/cache/cache_reserve_clear.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["CacheReserveClear"] CacheReserveClear: TypeAlias = Literal["cache_reserve_clear"] diff --git a/src/cloudflare/types/cache/cache_reserve_clear_params.py b/src/cloudflare/types/cache/cache_reserve_clear_params.py index 06ab74c3d..72908b203 100644 --- a/src/cloudflare/types/cache/cache_reserve_clear_params.py +++ b/src/cloudflare/types/cache/cache_reserve_clear_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["CacheReserveClearParams"] diff --git a/src/cloudflare/types/cache/cache_reserve_clear_response.py b/src/cloudflare/types/cache/cache_reserve_clear_response.py index 1c25b6272..6ef83d880 100644 --- a/src/cloudflare/types/cache/cache_reserve_clear_response.py +++ b/src/cloudflare/types/cache/cache_reserve_clear_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from .cache_reserve_clear import CacheReserveClear - from typing import Optional - from datetime import datetime from .state import State - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .cache_reserve_clear import CacheReserveClear __all__ = ["CacheReserveClearResponse"] diff --git a/src/cloudflare/types/cache/cache_reserve_edit_params.py b/src/cloudflare/types/cache/cache_reserve_edit_params.py index f507c9f8b..99452f268 100644 --- a/src/cloudflare/types/cache/cache_reserve_edit_params.py +++ b/src/cloudflare/types/cache/cache_reserve_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["CacheReserveEditParams"] diff --git a/src/cloudflare/types/cache/cache_reserve_edit_response.py b/src/cloudflare/types/cache/cache_reserve_edit_response.py index 4b14895a9..cf94dab25 100644 --- a/src/cloudflare/types/cache/cache_reserve_edit_response.py +++ b/src/cloudflare/types/cache/cache_reserve_edit_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from .cache_reserve import CacheReserve - from typing import Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .cache_reserve import CacheReserve __all__ = ["CacheReserveEditResponse"] diff --git a/src/cloudflare/types/cache/cache_reserve_get_response.py b/src/cloudflare/types/cache/cache_reserve_get_response.py index f8b3431db..78ddefe38 100644 --- a/src/cloudflare/types/cache/cache_reserve_get_response.py +++ b/src/cloudflare/types/cache/cache_reserve_get_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from .cache_reserve import CacheReserve - from typing import Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .cache_reserve import CacheReserve __all__ = ["CacheReserveGetResponse"] diff --git a/src/cloudflare/types/cache/cache_reserve_status_response.py b/src/cloudflare/types/cache/cache_reserve_status_response.py index a6ba59dc2..abc1c4cba 100644 --- a/src/cloudflare/types/cache/cache_reserve_status_response.py +++ b/src/cloudflare/types/cache/cache_reserve_status_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from .cache_reserve_clear import CacheReserveClear - from typing import Optional - from datetime import datetime from .state import State - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .cache_reserve_clear import CacheReserveClear __all__ = ["CacheReserveStatusResponse"] diff --git a/src/cloudflare/types/cache/cache_variant.py b/src/cloudflare/types/cache/cache_variant.py index b2009760a..6f442feaf 100644 --- a/src/cloudflare/types/cache/cache_variant.py +++ b/src/cloudflare/types/cache/cache_variant.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from .cache_variant_identifier import CacheVariantIdentifier - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .cache_variant_identifier import CacheVariantIdentifier __all__ = ["CacheVariant"] diff --git a/src/cloudflare/types/cache/cache_variant_identifier.py b/src/cloudflare/types/cache/cache_variant_identifier.py index b79b108ff..a377251e6 100644 --- a/src/cloudflare/types/cache/cache_variant_identifier.py +++ b/src/cloudflare/types/cache/cache_variant_identifier.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["CacheVariantIdentifier"] CacheVariantIdentifier: TypeAlias = Literal["variants"] diff --git a/src/cloudflare/types/cache/regional_tiered_cache.py b/src/cloudflare/types/cache/regional_tiered_cache.py index 3a640ebf9..833030757 100644 --- a/src/cloudflare/types/cache/regional_tiered_cache.py +++ b/src/cloudflare/types/cache/regional_tiered_cache.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["RegionalTieredCache"] RegionalTieredCache: TypeAlias = Literal["tc_regional"] diff --git a/src/cloudflare/types/cache/regional_tiered_cache_edit_params.py b/src/cloudflare/types/cache/regional_tiered_cache_edit_params.py index 556a96c21..07193f6f8 100644 --- a/src/cloudflare/types/cache/regional_tiered_cache_edit_params.py +++ b/src/cloudflare/types/cache/regional_tiered_cache_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["RegionalTieredCacheEditParams"] diff --git a/src/cloudflare/types/cache/regional_tiered_cache_edit_response.py b/src/cloudflare/types/cache/regional_tiered_cache_edit_response.py index bae859126..8350d75dc 100644 --- a/src/cloudflare/types/cache/regional_tiered_cache_edit_response.py +++ b/src/cloudflare/types/cache/regional_tiered_cache_edit_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from .regional_tiered_cache import RegionalTieredCache - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .regional_tiered_cache import RegionalTieredCache __all__ = ["RegionalTieredCacheEditResponse", "Value"] diff --git a/src/cloudflare/types/cache/regional_tiered_cache_get_response.py b/src/cloudflare/types/cache/regional_tiered_cache_get_response.py index 902b959bd..ac3f6c4e6 100644 --- a/src/cloudflare/types/cache/regional_tiered_cache_get_response.py +++ b/src/cloudflare/types/cache/regional_tiered_cache_get_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from .regional_tiered_cache import RegionalTieredCache - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .regional_tiered_cache import RegionalTieredCache __all__ = ["RegionalTieredCacheGetResponse", "Value"] diff --git a/src/cloudflare/types/cache/smart_tiered_cache_delete_response.py b/src/cloudflare/types/cache/smart_tiered_cache_delete_response.py index 13343626c..3ccc2711f 100644 --- a/src/cloudflare/types/cache/smart_tiered_cache_delete_response.py +++ b/src/cloudflare/types/cache/smart_tiered_cache_delete_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["SmartTieredCacheDeleteResponse"] diff --git a/src/cloudflare/types/cache/smart_tiered_cache_edit_params.py b/src/cloudflare/types/cache/smart_tiered_cache_edit_params.py index 127bfab21..557f0df09 100644 --- a/src/cloudflare/types/cache/smart_tiered_cache_edit_params.py +++ b/src/cloudflare/types/cache/smart_tiered_cache_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["SmartTieredCacheEditParams"] diff --git a/src/cloudflare/types/cache/smart_tiered_cache_edit_response.py b/src/cloudflare/types/cache/smart_tiered_cache_edit_response.py index ea3928fc8..8e871b059 100644 --- a/src/cloudflare/types/cache/smart_tiered_cache_edit_response.py +++ b/src/cloudflare/types/cache/smart_tiered_cache_edit_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["SmartTieredCacheEditResponse"] diff --git a/src/cloudflare/types/cache/smart_tiered_cache_get_response.py b/src/cloudflare/types/cache/smart_tiered_cache_get_response.py index f4ed3c0a7..787aa0d5d 100644 --- a/src/cloudflare/types/cache/smart_tiered_cache_get_response.py +++ b/src/cloudflare/types/cache/smart_tiered_cache_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["SmartTieredCacheGetResponse"] diff --git a/src/cloudflare/types/cache/state.py b/src/cloudflare/types/cache/state.py index 999156535..1a5a1aa33 100644 --- a/src/cloudflare/types/cache/state.py +++ b/src/cloudflare/types/cache/state.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["State"] State: TypeAlias = Literal["In-progress", "Completed"] diff --git a/src/cloudflare/types/cache/variant_edit_params.py b/src/cloudflare/types/cache/variant_edit_params.py index 1c7a12847..2c7c09d19 100644 --- a/src/cloudflare/types/cache/variant_edit_params.py +++ b/src/cloudflare/types/cache/variant_edit_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["VariantEditParams", "Value"] diff --git a/src/cloudflare/types/cache/variant_edit_response.py b/src/cloudflare/types/cache/variant_edit_response.py index 1e3268d04..636afadd4 100644 --- a/src/cloudflare/types/cache/variant_edit_response.py +++ b/src/cloudflare/types/cache/variant_edit_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from .cache_variant_identifier import CacheVariantIdentifier - +from typing import List, Optional from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .cache_variant_identifier import CacheVariantIdentifier __all__ = ["VariantEditResponse", "Value"] diff --git a/src/cloudflare/types/cache/variant_get_response.py b/src/cloudflare/types/cache/variant_get_response.py index 71378c442..c646004ad 100644 --- a/src/cloudflare/types/cache/variant_get_response.py +++ b/src/cloudflare/types/cache/variant_get_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from .cache_variant_identifier import CacheVariantIdentifier - +from typing import List, Optional from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .cache_variant_identifier import CacheVariantIdentifier __all__ = ["VariantGetResponse", "Value"] diff --git a/src/cloudflare/types/calls/__init__.py b/src/cloudflare/types/calls/__init__.py index 50a3f19bf..df3d07db9 100644 --- a/src/cloudflare/types/calls/__init__.py +++ b/src/cloudflare/types/calls/__init__.py @@ -3,7 +3,7 @@ from __future__ import annotations from .calls_app import CallsApp as CallsApp -from .calls_app_with_secret import CallsAppWithSecret as CallsAppWithSecret -from .call_list_response import CallListResponse as CallListResponse from .call_create_params import CallCreateParams as CallCreateParams +from .call_list_response import CallListResponse as CallListResponse from .call_update_params import CallUpdateParams as CallUpdateParams +from .calls_app_with_secret import CallsAppWithSecret as CallsAppWithSecret diff --git a/src/cloudflare/types/calls/call_create_params.py b/src/cloudflare/types/calls/call_create_params.py index 22508ef7a..39661b259 100644 --- a/src/cloudflare/types/calls/call_create_params.py +++ b/src/cloudflare/types/calls/call_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["CallCreateParams"] diff --git a/src/cloudflare/types/calls/call_list_response.py b/src/cloudflare/types/calls/call_list_response.py index 65cd59f19..5f4e511f0 100644 --- a/src/cloudflare/types/calls/call_list_response.py +++ b/src/cloudflare/types/calls/call_list_response.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["CallListResponse"] CallListResponse: TypeAlias = str diff --git a/src/cloudflare/types/calls/call_update_params.py b/src/cloudflare/types/calls/call_update_params.py index 4c4adc373..c62617f3e 100644 --- a/src/cloudflare/types/calls/call_update_params.py +++ b/src/cloudflare/types/calls/call_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["CallUpdateParams"] diff --git a/src/cloudflare/types/calls/calls_app.py b/src/cloudflare/types/calls/calls_app.py index ee7574037..e29517063 100644 --- a/src/cloudflare/types/calls/calls_app.py +++ b/src/cloudflare/types/calls/calls_app.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["CallsApp"] diff --git a/src/cloudflare/types/calls/calls_app_with_secret.py b/src/cloudflare/types/calls/calls_app_with_secret.py index 3443ce5d3..41adc52c1 100644 --- a/src/cloudflare/types/calls/calls_app_with_secret.py +++ b/src/cloudflare/types/calls/calls_app_with_secret.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["CallsAppWithSecret"] diff --git a/src/cloudflare/types/calls/turn/__init__.py b/src/cloudflare/types/calls/turn/__init__.py index e734b43fa..4bb96b15b 100644 --- a/src/cloudflare/types/calls/turn/__init__.py +++ b/src/cloudflare/types/calls/turn/__init__.py @@ -2,10 +2,10 @@ from __future__ import annotations -from .key_create_response import KeyCreateResponse as KeyCreateResponse -from .key_update_response import KeyUpdateResponse as KeyUpdateResponse -from .key_list_response import KeyListResponse as KeyListResponse -from .key_delete_response import KeyDeleteResponse as KeyDeleteResponse from .key_get_response import KeyGetResponse as KeyGetResponse from .key_create_params import KeyCreateParams as KeyCreateParams +from .key_list_response import KeyListResponse as KeyListResponse from .key_update_params import KeyUpdateParams as KeyUpdateParams +from .key_create_response import KeyCreateResponse as KeyCreateResponse +from .key_delete_response import KeyDeleteResponse as KeyDeleteResponse +from .key_update_response import KeyUpdateResponse as KeyUpdateResponse diff --git a/src/cloudflare/types/calls/turn/key_create_params.py b/src/cloudflare/types/calls/turn/key_create_params.py index 5248a867a..7bf69400d 100644 --- a/src/cloudflare/types/calls/turn/key_create_params.py +++ b/src/cloudflare/types/calls/turn/key_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["KeyCreateParams"] diff --git a/src/cloudflare/types/calls/turn/key_create_response.py b/src/cloudflare/types/calls/turn/key_create_response.py index bde0d586e..fb228b86b 100644 --- a/src/cloudflare/types/calls/turn/key_create_response.py +++ b/src/cloudflare/types/calls/turn/key_create_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["KeyCreateResponse"] diff --git a/src/cloudflare/types/calls/turn/key_delete_response.py b/src/cloudflare/types/calls/turn/key_delete_response.py index 99afdd237..c22e3c78f 100644 --- a/src/cloudflare/types/calls/turn/key_delete_response.py +++ b/src/cloudflare/types/calls/turn/key_delete_response.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["KeyDeleteResponse"] KeyDeleteResponse: TypeAlias = str diff --git a/src/cloudflare/types/calls/turn/key_get_response.py b/src/cloudflare/types/calls/turn/key_get_response.py index ba03709ba..10e991b9e 100644 --- a/src/cloudflare/types/calls/turn/key_get_response.py +++ b/src/cloudflare/types/calls/turn/key_get_response.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["KeyGetResponse"] KeyGetResponse: TypeAlias = str diff --git a/src/cloudflare/types/calls/turn/key_list_response.py b/src/cloudflare/types/calls/turn/key_list_response.py index f57fce805..2c54f926c 100644 --- a/src/cloudflare/types/calls/turn/key_list_response.py +++ b/src/cloudflare/types/calls/turn/key_list_response.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["KeyListResponse"] KeyListResponse: TypeAlias = str diff --git a/src/cloudflare/types/calls/turn/key_update_params.py b/src/cloudflare/types/calls/turn/key_update_params.py index 94969368e..0895691ce 100644 --- a/src/cloudflare/types/calls/turn/key_update_params.py +++ b/src/cloudflare/types/calls/turn/key_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["KeyUpdateParams"] diff --git a/src/cloudflare/types/calls/turn/key_update_response.py b/src/cloudflare/types/calls/turn/key_update_response.py index e1725110b..699aa17c7 100644 --- a/src/cloudflare/types/calls/turn/key_update_response.py +++ b/src/cloudflare/types/calls/turn/key_update_response.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["KeyUpdateResponse"] KeyUpdateResponse: TypeAlias = str diff --git a/src/cloudflare/types/certificate_authorities/__init__.py b/src/cloudflare/types/certificate_authorities/__init__.py index 3c57f9cc7..d16d318f2 100644 --- a/src/cloudflare/types/certificate_authorities/__init__.py +++ b/src/cloudflare/types/certificate_authorities/__init__.py @@ -3,7 +3,7 @@ from __future__ import annotations from .hostname_association import HostnameAssociation as HostnameAssociation -from .hostname_association_update_response import HostnameAssociationUpdateResponse as HostnameAssociationUpdateResponse +from .hostname_association_get_params import HostnameAssociationGetParams as HostnameAssociationGetParams from .hostname_association_get_response import HostnameAssociationGetResponse as HostnameAssociationGetResponse from .hostname_association_update_params import HostnameAssociationUpdateParams as HostnameAssociationUpdateParams -from .hostname_association_get_params import HostnameAssociationGetParams as HostnameAssociationGetParams +from .hostname_association_update_response import HostnameAssociationUpdateResponse as HostnameAssociationUpdateResponse diff --git a/src/cloudflare/types/certificate_authorities/hostname_association.py b/src/cloudflare/types/certificate_authorities/hostname_association.py index 70dc990b3..c5bfa88f7 100644 --- a/src/cloudflare/types/certificate_authorities/hostname_association.py +++ b/src/cloudflare/types/certificate_authorities/hostname_association.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["HostnameAssociation"] HostnameAssociation: TypeAlias = str diff --git a/src/cloudflare/types/certificate_authorities/hostname_association_get_params.py b/src/cloudflare/types/certificate_authorities/hostname_association_get_params.py index 5103350c3..83be686e0 100644 --- a/src/cloudflare/types/certificate_authorities/hostname_association_get_params.py +++ b/src/cloudflare/types/certificate_authorities/hostname_association_get_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["HostnameAssociationGetParams"] diff --git a/src/cloudflare/types/certificate_authorities/hostname_association_get_response.py b/src/cloudflare/types/certificate_authorities/hostname_association_get_response.py index c62f168ef..1a034b6e5 100644 --- a/src/cloudflare/types/certificate_authorities/hostname_association_get_response.py +++ b/src/cloudflare/types/certificate_authorities/hostname_association_get_response.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel - -from typing import Optional, List - from .hostname_association import HostnameAssociation -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["HostnameAssociationGetResponse"] diff --git a/src/cloudflare/types/certificate_authorities/hostname_association_update_params.py b/src/cloudflare/types/certificate_authorities/hostname_association_update_params.py index 9b0577be4..cc9377d39 100644 --- a/src/cloudflare/types/certificate_authorities/hostname_association_update_params.py +++ b/src/cloudflare/types/certificate_authorities/hostname_association_update_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import List +from typing_extensions import Required, TypedDict from .hostname_association import HostnameAssociation -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["HostnameAssociationUpdateParams"] diff --git a/src/cloudflare/types/certificate_authorities/hostname_association_update_response.py b/src/cloudflare/types/certificate_authorities/hostname_association_update_response.py index fad7a0a0d..cb9dad7da 100644 --- a/src/cloudflare/types/certificate_authorities/hostname_association_update_response.py +++ b/src/cloudflare/types/certificate_authorities/hostname_association_update_response.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel - -from typing import Optional, List - from .hostname_association import HostnameAssociation -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["HostnameAssociationUpdateResponse"] diff --git a/src/cloudflare/types/challenges/__init__.py b/src/cloudflare/types/challenges/__init__.py index 43b78794c..1fcf6a758 100644 --- a/src/cloudflare/types/challenges/__init__.py +++ b/src/cloudflare/types/challenges/__init__.py @@ -4,8 +4,8 @@ from __future__ import annotations from .widget import Widget as Widget from .widget_domain import WidgetDomain as WidgetDomain -from .widget_list_response import WidgetListResponse as WidgetListResponse -from .widget_create_params import WidgetCreateParams as WidgetCreateParams -from .widget_update_params import WidgetUpdateParams as WidgetUpdateParams from .widget_list_params import WidgetListParams as WidgetListParams +from .widget_create_params import WidgetCreateParams as WidgetCreateParams +from .widget_list_response import WidgetListResponse as WidgetListResponse +from .widget_update_params import WidgetUpdateParams as WidgetUpdateParams from .widget_rotate_secret_params import WidgetRotateSecretParams as WidgetRotateSecretParams diff --git a/src/cloudflare/types/challenges/widget.py b/src/cloudflare/types/challenges/widget.py index 883c74dbd..2666b31af 100644 --- a/src/cloudflare/types/challenges/widget.py +++ b/src/cloudflare/types/challenges/widget.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - -from datetime import datetime - from typing import List - -from .widget_domain import WidgetDomain - -from typing import Optional, Union, List, Dict, Any +from datetime import datetime from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel +from .widget_domain import WidgetDomain __all__ = ["Widget"] diff --git a/src/cloudflare/types/challenges/widget_create_params.py b/src/cloudflare/types/challenges/widget_create_params.py index cabcf8e72..12d0b058c 100644 --- a/src/cloudflare/types/challenges/widget_create_params.py +++ b/src/cloudflare/types/challenges/widget_create_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import List +from typing_extensions import Literal, Required, TypedDict from .widget_domain import WidgetDomain -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["WidgetCreateParams"] diff --git a/src/cloudflare/types/challenges/widget_domain.py b/src/cloudflare/types/challenges/widget_domain.py index 5a8f667a7..1098fc82e 100644 --- a/src/cloudflare/types/challenges/widget_domain.py +++ b/src/cloudflare/types/challenges/widget_domain.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["WidgetDomain"] WidgetDomain: TypeAlias = str diff --git a/src/cloudflare/types/challenges/widget_list_params.py b/src/cloudflare/types/challenges/widget_list_params.py index b275cddcc..bdc0056b1 100644 --- a/src/cloudflare/types/challenges/widget_list_params.py +++ b/src/cloudflare/types/challenges/widget_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["WidgetListParams"] diff --git a/src/cloudflare/types/challenges/widget_list_response.py b/src/cloudflare/types/challenges/widget_list_response.py index 99cc9fecf..0dabcb0bc 100644 --- a/src/cloudflare/types/challenges/widget_list_response.py +++ b/src/cloudflare/types/challenges/widget_list_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - -from datetime import datetime - from typing import List - -from .widget_domain import WidgetDomain - -from typing import Optional, Union, List, Dict, Any +from datetime import datetime from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel +from .widget_domain import WidgetDomain __all__ = ["WidgetListResponse"] diff --git a/src/cloudflare/types/challenges/widget_rotate_secret_params.py b/src/cloudflare/types/challenges/widget_rotate_secret_params.py index ff2cc78c8..72e9f7b07 100644 --- a/src/cloudflare/types/challenges/widget_rotate_secret_params.py +++ b/src/cloudflare/types/challenges/widget_rotate_secret_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["WidgetRotateSecretParams"] diff --git a/src/cloudflare/types/challenges/widget_update_params.py b/src/cloudflare/types/challenges/widget_update_params.py index c88f2789d..748121528 100644 --- a/src/cloudflare/types/challenges/widget_update_params.py +++ b/src/cloudflare/types/challenges/widget_update_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import List +from typing_extensions import Literal, Required, TypedDict from .widget_domain import WidgetDomain -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["WidgetUpdateParams"] diff --git a/src/cloudflare/types/client_certificates/__init__.py b/src/cloudflare/types/client_certificates/__init__.py index 96416d64e..a7c9d42fe 100644 --- a/src/cloudflare/types/client_certificates/__init__.py +++ b/src/cloudflare/types/client_certificates/__init__.py @@ -3,5 +3,5 @@ from __future__ import annotations from .client_certificate import ClientCertificate as ClientCertificate -from .client_certificate_create_params import ClientCertificateCreateParams as ClientCertificateCreateParams from .client_certificate_list_params import ClientCertificateListParams as ClientCertificateListParams +from .client_certificate_create_params import ClientCertificateCreateParams as ClientCertificateCreateParams diff --git a/src/cloudflare/types/client_certificates/client_certificate.py b/src/cloudflare/types/client_certificates/client_certificate.py index 54a8d4b30..58026ca69 100644 --- a/src/cloudflare/types/client_certificates/client_certificate.py +++ b/src/cloudflare/types/client_certificates/client_certificate.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional +from ..._models import BaseModel from ..custom_certificates.status import Status -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ClientCertificate", "CertificateAuthority"] diff --git a/src/cloudflare/types/client_certificates/client_certificate_create_params.py b/src/cloudflare/types/client_certificates/client_certificate_create_params.py index 9430a66f4..a09505c4c 100644 --- a/src/cloudflare/types/client_certificates/client_certificate_create_params.py +++ b/src/cloudflare/types/client_certificates/client_certificate_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ClientCertificateCreateParams"] diff --git a/src/cloudflare/types/client_certificates/client_certificate_list_params.py b/src/cloudflare/types/client_certificates/client_certificate_list_params.py index 7b12947b5..4fccfbe2b 100644 --- a/src/cloudflare/types/client_certificates/client_certificate_list_params.py +++ b/src/cloudflare/types/client_certificates/client_certificate_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["ClientCertificateListParams"] diff --git a/src/cloudflare/types/cloud_connector/__init__.py b/src/cloudflare/types/cloud_connector/__init__.py index 565a2f303..2cf9f9bde 100644 --- a/src/cloudflare/types/cloud_connector/__init__.py +++ b/src/cloudflare/types/cloud_connector/__init__.py @@ -2,6 +2,6 @@ from __future__ import annotations -from .rule_update_response import RuleUpdateResponse as RuleUpdateResponse from .rule_list_response import RuleListResponse as RuleListResponse from .rule_update_params import RuleUpdateParams as RuleUpdateParams +from .rule_update_response import RuleUpdateResponse as RuleUpdateResponse diff --git a/src/cloudflare/types/cloud_connector/rule_list_response.py b/src/cloudflare/types/cloud_connector/rule_list_response.py index d00e4ba2b..059d139b7 100644 --- a/src/cloudflare/types/cloud_connector/rule_list_response.py +++ b/src/cloudflare/types/cloud_connector/rule_list_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RuleListResponse", "Parameters"] diff --git a/src/cloudflare/types/cloud_connector/rule_update_params.py b/src/cloudflare/types/cloud_connector/rule_update_params.py index 64bac70ab..f8c25c9b2 100644 --- a/src/cloudflare/types/cloud_connector/rule_update_params.py +++ b/src/cloudflare/types/cloud_connector/rule_update_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Iterable - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["RuleUpdateParams", "Body", "BodyParameters"] diff --git a/src/cloudflare/types/cloud_connector/rule_update_response.py b/src/cloudflare/types/cloud_connector/rule_update_response.py index 592007eb6..84392f2b6 100644 --- a/src/cloudflare/types/cloud_connector/rule_update_response.py +++ b/src/cloudflare/types/cloud_connector/rule_update_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional - +from typing import List, Optional from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RuleUpdateResponse", "RuleUpdateResponseItem", "RuleUpdateResponseItemParameters"] diff --git a/src/cloudflare/types/cloudforce_one/__init__.py b/src/cloudflare/types/cloudforce_one/__init__.py index 4ccbb6e72..f069202d4 100644 --- a/src/cloudflare/types/cloudforce_one/__init__.py +++ b/src/cloudflare/types/cloudforce_one/__init__.py @@ -3,11 +3,11 @@ from __future__ import annotations from .item import Item as Item -from .list_item import ListItem as ListItem from .quota import Quota as Quota -from .request_constants import RequestConstants as RequestConstants +from .list_item import ListItem as ListItem from .request_types import RequestTypes as RequestTypes -from .request_delete_response import RequestDeleteResponse as RequestDeleteResponse +from .request_constants import RequestConstants as RequestConstants +from .request_list_params import RequestListParams as RequestListParams from .request_create_params import RequestCreateParams as RequestCreateParams from .request_update_params import RequestUpdateParams as RequestUpdateParams -from .request_list_params import RequestListParams as RequestListParams +from .request_delete_response import RequestDeleteResponse as RequestDeleteResponse diff --git a/src/cloudflare/types/cloudforce_one/item.py b/src/cloudflare/types/cloudforce_one/item.py index 61ab67ea7..fc01fe5c1 100644 --- a/src/cloudflare/types/cloudforce_one/item.py +++ b/src/cloudflare/types/cloudforce_one/item.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from datetime import datetime - -from typing_extensions import Literal - from typing import Optional - -from typing import Optional, Union, List, Dict, Any +from datetime import datetime from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["Item"] diff --git a/src/cloudflare/types/cloudforce_one/list_item.py b/src/cloudflare/types/cloudforce_one/list_item.py index 584756bed..99703584a 100644 --- a/src/cloudflare/types/cloudforce_one/list_item.py +++ b/src/cloudflare/types/cloudforce_one/list_item.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from datetime import datetime - -from typing_extensions import Literal - from typing import Optional - -from typing import Optional, Union, List, Dict, Any +from datetime import datetime from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["ListItem"] diff --git a/src/cloudflare/types/cloudforce_one/quota.py b/src/cloudflare/types/cloudforce_one/quota.py index b5658a0e2..8eff78bfc 100644 --- a/src/cloudflare/types/cloudforce_one/quota.py +++ b/src/cloudflare/types/cloudforce_one/quota.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Quota"] diff --git a/src/cloudflare/types/cloudforce_one/request_constants.py b/src/cloudflare/types/cloudforce_one/request_constants.py index bec23493f..d3679f51c 100644 --- a/src/cloudflare/types/cloudforce_one/request_constants.py +++ b/src/cloudflare/types/cloudforce_one/request_constants.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel -from typing import Optional, List - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["RequestConstants"] diff --git a/src/cloudflare/types/cloudforce_one/request_create_params.py b/src/cloudflare/types/cloudforce_one/request_create_params.py index f9dd047d9..481f3d6e2 100644 --- a/src/cloudflare/types/cloudforce_one/request_create_params.py +++ b/src/cloudflare/types/cloudforce_one/request_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, TypedDict __all__ = ["RequestCreateParams"] diff --git a/src/cloudflare/types/cloudforce_one/request_delete_response.py b/src/cloudflare/types/cloudforce_one/request_delete_response.py index acf872a80..b7ed5ffbe 100644 --- a/src/cloudflare/types/cloudforce_one/request_delete_response.py +++ b/src/cloudflare/types/cloudforce_one/request_delete_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List +from typing_extensions import Literal +from ..._models import BaseModel from ..shared.response_info import ResponseInfo -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["RequestDeleteResponse"] diff --git a/src/cloudflare/types/cloudforce_one/request_list_params.py b/src/cloudflare/types/cloudforce_one/request_list_params.py index 1507d9cf5..cc21ecf80 100644 --- a/src/cloudflare/types/cloudforce_one/request_list_params.py +++ b/src/cloudflare/types/cloudforce_one/request_list_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal - from typing import Union - from datetime import datetime +from typing_extensions import Literal, Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["RequestListParams"] diff --git a/src/cloudflare/types/cloudforce_one/request_types.py b/src/cloudflare/types/cloudforce_one/request_types.py index 70318fe18..9f263ba6f 100644 --- a/src/cloudflare/types/cloudforce_one/request_types.py +++ b/src/cloudflare/types/cloudforce_one/request_types.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["RequestTypes"] RequestTypes: TypeAlias = List[str] diff --git a/src/cloudflare/types/cloudforce_one/request_update_params.py b/src/cloudflare/types/cloudforce_one/request_update_params.py index 2e3c60335..f4ce30ba1 100644 --- a/src/cloudflare/types/cloudforce_one/request_update_params.py +++ b/src/cloudflare/types/cloudforce_one/request_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["RequestUpdateParams"] diff --git a/src/cloudflare/types/cloudforce_one/requests/__init__.py b/src/cloudflare/types/cloudforce_one/requests/__init__.py index a64134e0d..29b61ceae 100644 --- a/src/cloudflare/types/cloudforce_one/requests/__init__.py +++ b/src/cloudflare/types/cloudforce_one/requests/__init__.py @@ -2,14 +2,14 @@ from __future__ import annotations +from .label import Label as Label from .message import Message as Message -from .message_delete_response import MessageDeleteResponse as MessageDeleteResponse +from .priority import Priority as Priority +from .message_get_params import MessageGetParams as MessageGetParams from .message_get_response import MessageGetResponse as MessageGetResponse from .message_create_params import MessageCreateParams as MessageCreateParams from .message_update_params import MessageUpdateParams as MessageUpdateParams -from .message_get_params import MessageGetParams as MessageGetParams -from .label import Label as Label -from .priority import Priority as Priority -from .priority_delete_response import PriorityDeleteResponse as PriorityDeleteResponse from .priority_create_params import PriorityCreateParams as PriorityCreateParams from .priority_update_params import PriorityUpdateParams as PriorityUpdateParams +from .message_delete_response import MessageDeleteResponse as MessageDeleteResponse +from .priority_delete_response import PriorityDeleteResponse as PriorityDeleteResponse diff --git a/src/cloudflare/types/cloudforce_one/requests/label.py b/src/cloudflare/types/cloudforce_one/requests/label.py index 81d782f12..156ce881e 100644 --- a/src/cloudflare/types/cloudforce_one/requests/label.py +++ b/src/cloudflare/types/cloudforce_one/requests/label.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Label"] Label: TypeAlias = str diff --git a/src/cloudflare/types/cloudforce_one/requests/message.py b/src/cloudflare/types/cloudforce_one/requests/message.py index 5276b2402..b36882e68 100644 --- a/src/cloudflare/types/cloudforce_one/requests/message.py +++ b/src/cloudflare/types/cloudforce_one/requests/message.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import Optional from datetime import datetime -from typing import Optional - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["Message"] diff --git a/src/cloudflare/types/cloudforce_one/requests/message_create_params.py b/src/cloudflare/types/cloudforce_one/requests/message_create_params.py index f1459d19f..825061868 100644 --- a/src/cloudflare/types/cloudforce_one/requests/message_create_params.py +++ b/src/cloudflare/types/cloudforce_one/requests/message_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["MessageCreateParams"] diff --git a/src/cloudflare/types/cloudforce_one/requests/message_delete_response.py b/src/cloudflare/types/cloudforce_one/requests/message_delete_response.py index 1ed03162c..a0d45a640 100644 --- a/src/cloudflare/types/cloudforce_one/requests/message_delete_response.py +++ b/src/cloudflare/types/cloudforce_one/requests/message_delete_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List +from typing_extensions import Literal +from ...._models import BaseModel from ...shared.response_info import ResponseInfo -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["MessageDeleteResponse"] diff --git a/src/cloudflare/types/cloudforce_one/requests/message_get_params.py b/src/cloudflare/types/cloudforce_one/requests/message_get_params.py index 974d31f76..ec315a3a5 100644 --- a/src/cloudflare/types/cloudforce_one/requests/message_get_params.py +++ b/src/cloudflare/types/cloudforce_one/requests/message_get_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal - from typing import Union - from datetime import datetime +from typing_extensions import Literal, Required, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["MessageGetParams"] diff --git a/src/cloudflare/types/cloudforce_one/requests/message_get_response.py b/src/cloudflare/types/cloudforce_one/requests/message_get_response.py index fc0386e7d..459cc8692 100644 --- a/src/cloudflare/types/cloudforce_one/requests/message_get_response.py +++ b/src/cloudflare/types/cloudforce_one/requests/message_get_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .message import Message - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .message import Message __all__ = ["MessageGetResponse"] diff --git a/src/cloudflare/types/cloudforce_one/requests/message_update_params.py b/src/cloudflare/types/cloudforce_one/requests/message_update_params.py index c926233c5..76a9b248d 100644 --- a/src/cloudflare/types/cloudforce_one/requests/message_update_params.py +++ b/src/cloudflare/types/cloudforce_one/requests/message_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["MessageUpdateParams"] diff --git a/src/cloudflare/types/cloudforce_one/requests/priority.py b/src/cloudflare/types/cloudforce_one/requests/priority.py index 50f4d7d56..a374ce96a 100644 --- a/src/cloudflare/types/cloudforce_one/requests/priority.py +++ b/src/cloudflare/types/cloudforce_one/requests/priority.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from datetime import datetime - from typing import List +from datetime import datetime +from typing_extensions import Literal from .label import Label - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["Priority"] diff --git a/src/cloudflare/types/cloudforce_one/requests/priority_create_params.py b/src/cloudflare/types/cloudforce_one/requests/priority_create_params.py index d9dabaf2e..155ad36b0 100644 --- a/src/cloudflare/types/cloudforce_one/requests/priority_create_params.py +++ b/src/cloudflare/types/cloudforce_one/requests/priority_create_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import List +from typing_extensions import Literal, Required, TypedDict from .label import Label -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["PriorityCreateParams"] diff --git a/src/cloudflare/types/cloudforce_one/requests/priority_delete_response.py b/src/cloudflare/types/cloudforce_one/requests/priority_delete_response.py index aa99db85c..ee172239b 100644 --- a/src/cloudflare/types/cloudforce_one/requests/priority_delete_response.py +++ b/src/cloudflare/types/cloudforce_one/requests/priority_delete_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List +from typing_extensions import Literal +from ...._models import BaseModel from ...shared.response_info import ResponseInfo -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["PriorityDeleteResponse"] diff --git a/src/cloudflare/types/cloudforce_one/requests/priority_update_params.py b/src/cloudflare/types/cloudforce_one/requests/priority_update_params.py index ad3db68ca..248b24319 100644 --- a/src/cloudflare/types/cloudforce_one/requests/priority_update_params.py +++ b/src/cloudflare/types/cloudforce_one/requests/priority_update_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import List +from typing_extensions import Literal, Required, TypedDict from .label import Label -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["PriorityUpdateParams"] diff --git a/src/cloudflare/types/custom_certificates/__init__.py b/src/cloudflare/types/custom_certificates/__init__.py index 866d17533..f42fb8b37 100644 --- a/src/cloudflare/types/custom_certificates/__init__.py +++ b/src/cloudflare/types/custom_certificates/__init__.py @@ -2,13 +2,13 @@ from __future__ import annotations -from .custom_certificate import CustomCertificate as CustomCertificate -from .geo_restrictions import GeoRestrictions as GeoRestrictions -from .geo_restrictions_param import GeoRestrictionsParam as GeoRestrictionsParam from .status import Status as Status -from .custom_certificate_delete_response import CustomCertificateDeleteResponse as CustomCertificateDeleteResponse -from .custom_certificate_create_params import CustomCertificateCreateParams as CustomCertificateCreateParams -from .custom_certificate_list_params import CustomCertificateListParams as CustomCertificateListParams -from .custom_certificate_edit_params import CustomCertificateEditParams as CustomCertificateEditParams -from .prioritize_update_response import PrioritizeUpdateResponse as PrioritizeUpdateResponse +from .geo_restrictions import GeoRestrictions as GeoRestrictions +from .custom_certificate import CustomCertificate as CustomCertificate +from .geo_restrictions_param import GeoRestrictionsParam as GeoRestrictionsParam from .prioritize_update_params import PrioritizeUpdateParams as PrioritizeUpdateParams +from .prioritize_update_response import PrioritizeUpdateResponse as PrioritizeUpdateResponse +from .custom_certificate_edit_params import CustomCertificateEditParams as CustomCertificateEditParams +from .custom_certificate_list_params import CustomCertificateListParams as CustomCertificateListParams +from .custom_certificate_create_params import CustomCertificateCreateParams as CustomCertificateCreateParams +from .custom_certificate_delete_response import CustomCertificateDeleteResponse as CustomCertificateDeleteResponse diff --git a/src/cloudflare/types/custom_certificates/custom_certificate.py b/src/cloudflare/types/custom_certificates/custom_certificate.py index c7b72c5cf..b5579f8a9 100644 --- a/src/cloudflare/types/custom_certificates/custom_certificate.py +++ b/src/cloudflare/types/custom_certificates/custom_certificate.py @@ -1,23 +1,14 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from ..custom_hostnames.bundle_method import BundleMethod - -from datetime import datetime - from typing import List, Optional - +from datetime import datetime from typing_extensions import Literal +from ..._models import BaseModel from .geo_restrictions import GeoRestrictions - +from ..custom_hostnames.bundle_method import BundleMethod from ..keyless_certificates.keyless_certificate import KeylessCertificate -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["CustomCertificate"] diff --git a/src/cloudflare/types/custom_certificates/custom_certificate_create_params.py b/src/cloudflare/types/custom_certificates/custom_certificate_create_params.py index 6e753f1a3..015cc848e 100644 --- a/src/cloudflare/types/custom_certificates/custom_certificate_create_params.py +++ b/src/cloudflare/types/custom_certificates/custom_certificate_create_params.py @@ -2,16 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from ..custom_hostnames.bundle_method import BundleMethod +from typing_extensions import Literal, Required, TypedDict from .geo_restrictions_param import GeoRestrictionsParam - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from ..custom_hostnames.bundle_method import BundleMethod __all__ = ["CustomCertificateCreateParams"] diff --git a/src/cloudflare/types/custom_certificates/custom_certificate_delete_response.py b/src/cloudflare/types/custom_certificates/custom_certificate_delete_response.py index 122981e97..0f730c57c 100644 --- a/src/cloudflare/types/custom_certificates/custom_certificate_delete_response.py +++ b/src/cloudflare/types/custom_certificates/custom_certificate_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["CustomCertificateDeleteResponse"] diff --git a/src/cloudflare/types/custom_certificates/custom_certificate_edit_params.py b/src/cloudflare/types/custom_certificates/custom_certificate_edit_params.py index 61559833f..3fc3b9281 100644 --- a/src/cloudflare/types/custom_certificates/custom_certificate_edit_params.py +++ b/src/cloudflare/types/custom_certificates/custom_certificate_edit_params.py @@ -2,16 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from ..custom_hostnames.bundle_method import BundleMethod +from typing_extensions import Required, TypedDict from .geo_restrictions_param import GeoRestrictionsParam - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from ..custom_hostnames.bundle_method import BundleMethod __all__ = ["CustomCertificateEditParams"] diff --git a/src/cloudflare/types/custom_certificates/custom_certificate_list_params.py b/src/cloudflare/types/custom_certificates/custom_certificate_list_params.py index 89d0463c1..07d747ed4 100644 --- a/src/cloudflare/types/custom_certificates/custom_certificate_list_params.py +++ b/src/cloudflare/types/custom_certificates/custom_certificate_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["CustomCertificateListParams"] diff --git a/src/cloudflare/types/custom_certificates/geo_restrictions.py b/src/cloudflare/types/custom_certificates/geo_restrictions.py index 156077985..05462d8d2 100644 --- a/src/cloudflare/types/custom_certificates/geo_restrictions.py +++ b/src/cloudflare/types/custom_certificates/geo_restrictions.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["GeoRestrictions"] diff --git a/src/cloudflare/types/custom_certificates/prioritize_update_params.py b/src/cloudflare/types/custom_certificates/prioritize_update_params.py index 10dce4ddd..8e290afb6 100644 --- a/src/cloudflare/types/custom_certificates/prioritize_update_params.py +++ b/src/cloudflare/types/custom_certificates/prioritize_update_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Iterable - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["PrioritizeUpdateParams", "Certificate"] diff --git a/src/cloudflare/types/custom_certificates/prioritize_update_response.py b/src/cloudflare/types/custom_certificates/prioritize_update_response.py index 006cde92f..eb3bff03f 100644 --- a/src/cloudflare/types/custom_certificates/prioritize_update_response.py +++ b/src/cloudflare/types/custom_certificates/prioritize_update_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .custom_certificate import CustomCertificate - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .custom_certificate import CustomCertificate __all__ = ["PrioritizeUpdateResponse"] diff --git a/src/cloudflare/types/custom_certificates/status.py b/src/cloudflare/types/custom_certificates/status.py index bb2fa7be1..2c587f35f 100644 --- a/src/cloudflare/types/custom_certificates/status.py +++ b/src/cloudflare/types/custom_certificates/status.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Status"] Status: TypeAlias = Literal["active", "pending_reactivation", "pending_revocation", "revoked"] diff --git a/src/cloudflare/types/custom_hostnames/__init__.py b/src/cloudflare/types/custom_hostnames/__init__.py index 4a1c74a63..c6bdf8da1 100644 --- a/src/cloudflare/types/custom_hostnames/__init__.py +++ b/src/cloudflare/types/custom_hostnames/__init__.py @@ -2,18 +2,18 @@ from __future__ import annotations -from .bundle_method import BundleMethod as BundleMethod from .dcv_method import DCVMethod as DCVMethod +from .bundle_method import BundleMethod as BundleMethod from .domain_validation_type import DomainValidationType as DomainValidationType -from .custom_hostname_create_response import CustomHostnameCreateResponse as CustomHostnameCreateResponse -from .custom_hostname_list_response import CustomHostnameListResponse as CustomHostnameListResponse -from .custom_hostname_delete_response import CustomHostnameDeleteResponse as CustomHostnameDeleteResponse -from .custom_hostname_edit_response import CustomHostnameEditResponse as CustomHostnameEditResponse -from .custom_hostname_get_response import CustomHostnameGetResponse as CustomHostnameGetResponse -from .custom_hostname_create_params import CustomHostnameCreateParams as CustomHostnameCreateParams -from .custom_hostname_list_params import CustomHostnameListParams as CustomHostnameListParams from .custom_hostname_edit_params import CustomHostnameEditParams as CustomHostnameEditParams -from .fallback_origin_update_response import FallbackOriginUpdateResponse as FallbackOriginUpdateResponse -from .fallback_origin_delete_response import FallbackOriginDeleteResponse as FallbackOriginDeleteResponse +from .custom_hostname_list_params import CustomHostnameListParams as CustomHostnameListParams +from .custom_hostname_get_response import CustomHostnameGetResponse as CustomHostnameGetResponse from .fallback_origin_get_response import FallbackOriginGetResponse as FallbackOriginGetResponse +from .custom_hostname_create_params import CustomHostnameCreateParams as CustomHostnameCreateParams +from .custom_hostname_edit_response import CustomHostnameEditResponse as CustomHostnameEditResponse +from .custom_hostname_list_response import CustomHostnameListResponse as CustomHostnameListResponse from .fallback_origin_update_params import FallbackOriginUpdateParams as FallbackOriginUpdateParams +from .custom_hostname_create_response import CustomHostnameCreateResponse as CustomHostnameCreateResponse +from .custom_hostname_delete_response import CustomHostnameDeleteResponse as CustomHostnameDeleteResponse +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/bundle_method.py b/src/cloudflare/types/custom_hostnames/bundle_method.py index 1ef625059..56a82b727 100644 --- a/src/cloudflare/types/custom_hostnames/bundle_method.py +++ b/src/cloudflare/types/custom_hostnames/bundle_method.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["BundleMethod"] BundleMethod: TypeAlias = Literal["ubiquitous", "optimal", "force"] diff --git a/src/cloudflare/types/custom_hostnames/custom_hostname_create_params.py b/src/cloudflare/types/custom_hostnames/custom_hostname_create_params.py index 9470ce216..d47976e8d 100644 --- a/src/cloudflare/types/custom_hostnames/custom_hostname_create_params.py +++ b/src/cloudflare/types/custom_hostnames/custom_hostname_create_params.py @@ -2,23 +2,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from .bundle_method import BundleMethod - -from ..shared.certificate_ca import CertificateCA +from typing import List +from typing_extensions import Literal, Required, TypedDict from .dcv_method import DCVMethod - +from .bundle_method import BundleMethod +from ..shared.certificate_ca import CertificateCA from .domain_validation_type import DomainValidationType -from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["CustomHostnameCreateParams", "SSL", "SSLSettings", "CustomMetadata"] diff --git a/src/cloudflare/types/custom_hostnames/custom_hostname_create_response.py b/src/cloudflare/types/custom_hostnames/custom_hostname_create_response.py index 8b1b3a1d0..153ae3e2e 100644 --- a/src/cloudflare/types/custom_hostnames/custom_hostname_create_response.py +++ b/src/cloudflare/types/custom_hostnames/custom_hostname_create_response.py @@ -1,24 +1,14 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from typing_extensions import Literal - -from .bundle_method import BundleMethod - -from ..shared.certificate_ca import CertificateCA - +from typing import List, Optional from datetime import datetime - -from .dcv_method import DCVMethod - -from .domain_validation_type import DomainValidationType - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel +from .dcv_method import DCVMethod +from .bundle_method import BundleMethod +from ..shared.certificate_ca import CertificateCA +from .domain_validation_type import DomainValidationType __all__ = [ "CustomHostnameCreateResponse", diff --git a/src/cloudflare/types/custom_hostnames/custom_hostname_delete_response.py b/src/cloudflare/types/custom_hostnames/custom_hostname_delete_response.py index 70a724149..138a18a96 100644 --- a/src/cloudflare/types/custom_hostnames/custom_hostname_delete_response.py +++ b/src/cloudflare/types/custom_hostnames/custom_hostname_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["CustomHostnameDeleteResponse"] diff --git a/src/cloudflare/types/custom_hostnames/custom_hostname_edit_params.py b/src/cloudflare/types/custom_hostnames/custom_hostname_edit_params.py index 21ee26ae9..52e45f8ec 100644 --- a/src/cloudflare/types/custom_hostnames/custom_hostname_edit_params.py +++ b/src/cloudflare/types/custom_hostnames/custom_hostname_edit_params.py @@ -2,23 +2,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from .bundle_method import BundleMethod - -from ..shared.certificate_ca import CertificateCA +from typing import List +from typing_extensions import Literal, Required, TypedDict from .dcv_method import DCVMethod - +from .bundle_method import BundleMethod +from ..shared.certificate_ca import CertificateCA from .domain_validation_type import DomainValidationType -from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["CustomHostnameEditParams", "CustomMetadata", "SSL", "SSLSettings"] diff --git a/src/cloudflare/types/custom_hostnames/custom_hostname_edit_response.py b/src/cloudflare/types/custom_hostnames/custom_hostname_edit_response.py index b166f368b..47d17607a 100644 --- a/src/cloudflare/types/custom_hostnames/custom_hostname_edit_response.py +++ b/src/cloudflare/types/custom_hostnames/custom_hostname_edit_response.py @@ -1,24 +1,14 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from typing_extensions import Literal - -from .bundle_method import BundleMethod - -from ..shared.certificate_ca import CertificateCA - +from typing import List, Optional from datetime import datetime - -from .dcv_method import DCVMethod - -from .domain_validation_type import DomainValidationType - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel +from .dcv_method import DCVMethod +from .bundle_method import BundleMethod +from ..shared.certificate_ca import CertificateCA +from .domain_validation_type import DomainValidationType __all__ = [ "CustomHostnameEditResponse", diff --git a/src/cloudflare/types/custom_hostnames/custom_hostname_get_response.py b/src/cloudflare/types/custom_hostnames/custom_hostname_get_response.py index 2a1b3e4c4..e53f5697c 100644 --- a/src/cloudflare/types/custom_hostnames/custom_hostname_get_response.py +++ b/src/cloudflare/types/custom_hostnames/custom_hostname_get_response.py @@ -1,24 +1,14 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from typing_extensions import Literal - -from .bundle_method import BundleMethod - -from ..shared.certificate_ca import CertificateCA - +from typing import List, Optional from datetime import datetime - -from .dcv_method import DCVMethod - -from .domain_validation_type import DomainValidationType - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel +from .dcv_method import DCVMethod +from .bundle_method import BundleMethod +from ..shared.certificate_ca import CertificateCA +from .domain_validation_type import DomainValidationType __all__ = [ "CustomHostnameGetResponse", diff --git a/src/cloudflare/types/custom_hostnames/custom_hostname_list_params.py b/src/cloudflare/types/custom_hostnames/custom_hostname_list_params.py index d8e9f7019..65b0464db 100644 --- a/src/cloudflare/types/custom_hostnames/custom_hostname_list_params.py +++ b/src/cloudflare/types/custom_hostnames/custom_hostname_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["CustomHostnameListParams"] diff --git a/src/cloudflare/types/custom_hostnames/custom_hostname_list_response.py b/src/cloudflare/types/custom_hostnames/custom_hostname_list_response.py index 331f5fb48..ef36ca77a 100644 --- a/src/cloudflare/types/custom_hostnames/custom_hostname_list_response.py +++ b/src/cloudflare/types/custom_hostnames/custom_hostname_list_response.py @@ -1,24 +1,14 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from typing_extensions import Literal - -from .bundle_method import BundleMethod - -from ..shared.certificate_ca import CertificateCA - +from typing import List, Optional from datetime import datetime - -from .dcv_method import DCVMethod - -from .domain_validation_type import DomainValidationType - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel +from .dcv_method import DCVMethod +from .bundle_method import BundleMethod +from ..shared.certificate_ca import CertificateCA +from .domain_validation_type import DomainValidationType __all__ = [ "CustomHostnameListResponse", diff --git a/src/cloudflare/types/custom_hostnames/dcv_method.py b/src/cloudflare/types/custom_hostnames/dcv_method.py index e2a53245f..ebfada34a 100644 --- a/src/cloudflare/types/custom_hostnames/dcv_method.py +++ b/src/cloudflare/types/custom_hostnames/dcv_method.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["DCVMethod"] DCVMethod: TypeAlias = Literal["http", "txt", "email"] diff --git a/src/cloudflare/types/custom_hostnames/domain_validation_type.py b/src/cloudflare/types/custom_hostnames/domain_validation_type.py index b2e2e809d..11e882fa1 100644 --- a/src/cloudflare/types/custom_hostnames/domain_validation_type.py +++ b/src/cloudflare/types/custom_hostnames/domain_validation_type.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["DomainValidationType"] DomainValidationType: TypeAlias = Literal["dv"] diff --git a/src/cloudflare/types/custom_hostnames/fallback_origin_delete_response.py b/src/cloudflare/types/custom_hostnames/fallback_origin_delete_response.py index f1d3d1d36..86fde134b 100644 --- a/src/cloudflare/types/custom_hostnames/fallback_origin_delete_response.py +++ b/src/cloudflare/types/custom_hostnames/fallback_origin_delete_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["FallbackOriginDeleteResponse"] diff --git a/src/cloudflare/types/custom_hostnames/fallback_origin_get_response.py b/src/cloudflare/types/custom_hostnames/fallback_origin_get_response.py index fd4eb1c30..b87d2c59b 100644 --- a/src/cloudflare/types/custom_hostnames/fallback_origin_get_response.py +++ b/src/cloudflare/types/custom_hostnames/fallback_origin_get_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["FallbackOriginGetResponse"] diff --git a/src/cloudflare/types/custom_hostnames/fallback_origin_update_params.py b/src/cloudflare/types/custom_hostnames/fallback_origin_update_params.py index eb43c689e..3818b4043 100644 --- a/src/cloudflare/types/custom_hostnames/fallback_origin_update_params.py +++ b/src/cloudflare/types/custom_hostnames/fallback_origin_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["FallbackOriginUpdateParams"] diff --git a/src/cloudflare/types/custom_hostnames/fallback_origin_update_response.py b/src/cloudflare/types/custom_hostnames/fallback_origin_update_response.py index da9597f7a..022f3db10 100644 --- a/src/cloudflare/types/custom_hostnames/fallback_origin_update_response.py +++ b/src/cloudflare/types/custom_hostnames/fallback_origin_update_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["FallbackOriginUpdateResponse"] diff --git a/src/cloudflare/types/custom_nameservers/__init__.py b/src/cloudflare/types/custom_nameservers/__init__.py index 1ccbbd81d..a67351a5b 100644 --- a/src/cloudflare/types/custom_nameservers/__init__.py +++ b/src/cloudflare/types/custom_nameservers/__init__.py @@ -3,9 +3,9 @@ from __future__ import annotations from .custom_nameserver import CustomNameserver as CustomNameserver +from .custom_nameserver_get_response import CustomNameserverGetResponse as CustomNameserverGetResponse +from .custom_nameserver_create_params import CustomNameserverCreateParams as CustomNameserverCreateParams from .custom_nameserver_delete_response import CustomNameserverDeleteResponse as CustomNameserverDeleteResponse from .custom_nameserver_availabilty_response import ( CustomNameserverAvailabiltyResponse as CustomNameserverAvailabiltyResponse, ) -from .custom_nameserver_get_response import CustomNameserverGetResponse as CustomNameserverGetResponse -from .custom_nameserver_create_params import CustomNameserverCreateParams as CustomNameserverCreateParams diff --git a/src/cloudflare/types/custom_nameservers/custom_nameserver.py b/src/cloudflare/types/custom_nameservers/custom_nameserver.py index 8bd99bcd1..9b56d6d54 100644 --- a/src/cloudflare/types/custom_nameservers/custom_nameserver.py +++ b/src/cloudflare/types/custom_nameservers/custom_nameserver.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel -from typing import Optional, List - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["CustomNameserver", "DNSRecord"] diff --git a/src/cloudflare/types/custom_nameservers/custom_nameserver_availabilty_response.py b/src/cloudflare/types/custom_nameservers/custom_nameserver_availabilty_response.py index 1c627e60a..0a6492bcf 100644 --- a/src/cloudflare/types/custom_nameservers/custom_nameserver_availabilty_response.py +++ b/src/cloudflare/types/custom_nameservers/custom_nameserver_availabilty_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["CustomNameserverAvailabiltyResponse"] CustomNameserverAvailabiltyResponse: TypeAlias = List[str] diff --git a/src/cloudflare/types/custom_nameservers/custom_nameserver_create_params.py b/src/cloudflare/types/custom_nameservers/custom_nameserver_create_params.py index 4668bb020..52dbcf638 100644 --- a/src/cloudflare/types/custom_nameservers/custom_nameserver_create_params.py +++ b/src/cloudflare/types/custom_nameservers/custom_nameserver_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["CustomNameserverCreateParams"] diff --git a/src/cloudflare/types/custom_nameservers/custom_nameserver_delete_response.py b/src/cloudflare/types/custom_nameservers/custom_nameserver_delete_response.py index 0529fe10b..21442aa30 100644 --- a/src/cloudflare/types/custom_nameservers/custom_nameserver_delete_response.py +++ b/src/cloudflare/types/custom_nameservers/custom_nameserver_delete_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["CustomNameserverDeleteResponse"] CustomNameserverDeleteResponse: TypeAlias = List[str] diff --git a/src/cloudflare/types/custom_nameservers/custom_nameserver_get_response.py b/src/cloudflare/types/custom_nameservers/custom_nameserver_get_response.py index 28ab62b56..55b31de5e 100644 --- a/src/cloudflare/types/custom_nameservers/custom_nameserver_get_response.py +++ b/src/cloudflare/types/custom_nameservers/custom_nameserver_get_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .custom_nameserver import CustomNameserver - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .custom_nameserver import CustomNameserver __all__ = ["CustomNameserverGetResponse"] diff --git a/src/cloudflare/types/d1/__init__.py b/src/cloudflare/types/d1/__init__.py index e77247de9..6a9610c1a 100644 --- a/src/cloudflare/types/d1/__init__.py +++ b/src/cloudflare/types/d1/__init__.py @@ -2,17 +2,16 @@ from __future__ import annotations -from .d1 import D1 as D1 from .d1 import D1 as D1 from .query_result import QueryResult as QueryResult -from .database_list_response import DatabaseListResponse as DatabaseListResponse -from .database_export_response import DatabaseExportResponse as DatabaseExportResponse -from .database_import_response import DatabaseImportResponse as DatabaseImportResponse -from .database_query_response import DatabaseQueryResponse as DatabaseQueryResponse +from .database_raw_params import DatabaseRawParams as DatabaseRawParams +from .database_list_params import DatabaseListParams as DatabaseListParams +from .database_query_params import DatabaseQueryParams as DatabaseQueryParams from .database_raw_response import DatabaseRawResponse as DatabaseRawResponse from .database_create_params import DatabaseCreateParams as DatabaseCreateParams -from .database_list_params import DatabaseListParams as DatabaseListParams from .database_export_params import DatabaseExportParams as DatabaseExportParams from .database_import_params import DatabaseImportParams as DatabaseImportParams -from .database_query_params import DatabaseQueryParams as DatabaseQueryParams -from .database_raw_params import DatabaseRawParams as DatabaseRawParams +from .database_list_response import DatabaseListResponse as DatabaseListResponse +from .database_query_response import DatabaseQueryResponse as DatabaseQueryResponse +from .database_export_response import DatabaseExportResponse as DatabaseExportResponse +from .database_import_response import DatabaseImportResponse as DatabaseImportResponse diff --git a/src/cloudflare/types/d1/d1.py b/src/cloudflare/types/d1/d1.py index 081eea346..047e12ac9 100644 --- a/src/cloudflare/types/d1/d1.py +++ b/src/cloudflare/types/d1/d1.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["D1"] diff --git a/src/cloudflare/types/d1/database_create_params.py b/src/cloudflare/types/d1/database_create_params.py index 745162faf..3db8ef150 100644 --- a/src/cloudflare/types/d1/database_create_params.py +++ b/src/cloudflare/types/d1/database_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["DatabaseCreateParams"] diff --git a/src/cloudflare/types/d1/database_export_params.py b/src/cloudflare/types/d1/database_export_params.py index eedba7a42..129f80625 100644 --- a/src/cloudflare/types/d1/database_export_params.py +++ b/src/cloudflare/types/d1/database_export_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["DatabaseExportParams", "DumpOptions"] diff --git a/src/cloudflare/types/d1/database_export_response.py b/src/cloudflare/types/d1/database_export_response.py index 1d3473cc3..44c2d3c91 100644 --- a/src/cloudflare/types/d1/database_export_response.py +++ b/src/cloudflare/types/d1/database_export_response.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel -from typing import Optional, List - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["DatabaseExportResponse", "Result"] diff --git a/src/cloudflare/types/d1/database_import_params.py b/src/cloudflare/types/d1/database_import_params.py index d819515bc..222295abd 100644 --- a/src/cloudflare/types/d1/database_import_params.py +++ b/src/cloudflare/types/d1/database_import_params.py @@ -2,12 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing import Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict __all__ = ["DatabaseImportParams", "Variant0", "Variant1", "Variant2"] diff --git a/src/cloudflare/types/d1/database_import_response.py b/src/cloudflare/types/d1/database_import_response.py index 8bdf93d82..7ab964b5f 100644 --- a/src/cloudflare/types/d1/database_import_response.py +++ b/src/cloudflare/types/d1/database_import_response.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel -from typing import Optional, List - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["DatabaseImportResponse", "Result", "ResultMeta"] diff --git a/src/cloudflare/types/d1/database_list_params.py b/src/cloudflare/types/d1/database_list_params.py index ab2dd47e1..a3fc5dc12 100644 --- a/src/cloudflare/types/d1/database_list_params.py +++ b/src/cloudflare/types/d1/database_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["DatabaseListParams"] diff --git a/src/cloudflare/types/d1/database_list_response.py b/src/cloudflare/types/d1/database_list_response.py index d2499dffe..e767682a8 100644 --- a/src/cloudflare/types/d1/database_list_response.py +++ b/src/cloudflare/types/d1/database_list_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["DatabaseListResponse"] diff --git a/src/cloudflare/types/d1/database_query_params.py b/src/cloudflare/types/d1/database_query_params.py index 639e9e248..f7c064376 100644 --- a/src/cloudflare/types/d1/database_query_params.py +++ b/src/cloudflare/types/d1/database_query_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["DatabaseQueryParams"] diff --git a/src/cloudflare/types/d1/database_query_response.py b/src/cloudflare/types/d1/database_query_response.py index d4c657b43..12764eb1d 100644 --- a/src/cloudflare/types/d1/database_query_response.py +++ b/src/cloudflare/types/d1/database_query_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .query_result import QueryResult - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .query_result import QueryResult __all__ = ["DatabaseQueryResponse"] diff --git a/src/cloudflare/types/d1/database_raw_params.py b/src/cloudflare/types/d1/database_raw_params.py index fb60edd0f..5a7fd0ae2 100644 --- a/src/cloudflare/types/d1/database_raw_params.py +++ b/src/cloudflare/types/d1/database_raw_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["DatabaseRawParams"] diff --git a/src/cloudflare/types/d1/database_raw_response.py b/src/cloudflare/types/d1/database_raw_response.py index 9dd43d475..e24eb35bd 100644 --- a/src/cloudflare/types/d1/database_raw_response.py +++ b/src/cloudflare/types/d1/database_raw_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List, Union - +from typing import List, Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = [ "DatabaseRawResponse", diff --git a/src/cloudflare/types/d1/query_result.py b/src/cloudflare/types/d1/query_result.py index dc2c066a1..7b6447cd0 100644 --- a/src/cloudflare/types/d1/query_result.py +++ b/src/cloudflare/types/d1/query_result.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["QueryResult", "Meta"] diff --git a/src/cloudflare/types/dcv_delegation/dcv_delegation_uuid.py b/src/cloudflare/types/dcv_delegation/dcv_delegation_uuid.py index e4a9bec53..43469f24d 100644 --- a/src/cloudflare/types/dcv_delegation/dcv_delegation_uuid.py +++ b/src/cloudflare/types/dcv_delegation/dcv_delegation_uuid.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["DCVDelegationUUID"] diff --git a/src/cloudflare/types/diagnostics/__init__.py b/src/cloudflare/types/diagnostics/__init__.py index 7bd2b824f..94d7a66c1 100644 --- a/src/cloudflare/types/diagnostics/__init__.py +++ b/src/cloudflare/types/diagnostics/__init__.py @@ -3,5 +3,5 @@ from __future__ import annotations from .traceroute import Traceroute as Traceroute -from .traceroute_create_response import TracerouteCreateResponse as TracerouteCreateResponse from .traceroute_create_params import TracerouteCreateParams as TracerouteCreateParams +from .traceroute_create_response import TracerouteCreateResponse as TracerouteCreateResponse diff --git a/src/cloudflare/types/diagnostics/traceroute.py b/src/cloudflare/types/diagnostics/traceroute.py index e03471c1b..d8af2e15c 100644 --- a/src/cloudflare/types/diagnostics/traceroute.py +++ b/src/cloudflare/types/diagnostics/traceroute.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel -from typing import Optional, List - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Traceroute", "Colo", "ColoColo", "ColoHop", "ColoHopNode"] diff --git a/src/cloudflare/types/diagnostics/traceroute_create_params.py b/src/cloudflare/types/diagnostics/traceroute_create_params.py index da7517555..4604e3c4f 100644 --- a/src/cloudflare/types/diagnostics/traceroute_create_params.py +++ b/src/cloudflare/types/diagnostics/traceroute_create_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["TracerouteCreateParams", "Options"] diff --git a/src/cloudflare/types/diagnostics/traceroute_create_response.py b/src/cloudflare/types/diagnostics/traceroute_create_response.py index eec8419c7..efb17af60 100644 --- a/src/cloudflare/types/diagnostics/traceroute_create_response.py +++ b/src/cloudflare/types/diagnostics/traceroute_create_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .traceroute import Traceroute - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .traceroute import Traceroute __all__ = ["TracerouteCreateResponse"] diff --git a/src/cloudflare/types/dns/__init__.py b/src/cloudflare/types/dns/__init__.py index aa1c5d158..473ece067 100644 --- a/src/cloudflare/types/dns/__init__.py +++ b/src/cloudflare/types/dns/__init__.py @@ -2,42 +2,42 @@ from __future__ import annotations -from .dns_analytics_nominal_metric import DNSAnalyticsNominalMetric as DNSAnalyticsNominalMetric -from .dns_analytics_query import DNSAnalyticsQuery as DNSAnalyticsQuery -from .record_process_timing import RecordProcessTiming as RecordProcessTiming -from .record_tags import RecordTags as RecordTags from .ttl import TTL as TTL -from .record_create_response import RecordCreateResponse as RecordCreateResponse -from .record_update_response import RecordUpdateResponse as RecordUpdateResponse -from .record_list_response import RecordListResponse as RecordListResponse -from .record_delete_response import RecordDeleteResponse as RecordDeleteResponse -from .record_edit_response import RecordEditResponse as RecordEditResponse -from .record_export_response import RecordExportResponse as RecordExportResponse -from .record_get_response import RecordGetResponse as RecordGetResponse -from .record_import_response import RecordImportResponse as RecordImportResponse -from .record_scan_response import RecordScanResponse as RecordScanResponse -from .record_create_params import RecordCreateParams as RecordCreateParams -from .record_update_params import RecordUpdateParams as RecordUpdateParams -from .record_list_params import RecordListParams as RecordListParams -from .record_edit_params import RecordEditParams as RecordEditParams -from .record_import_params import RecordImportParams as RecordImportParams -from .record_scan_params import RecordScanParams as RecordScanParams -from .dns_setting import DNSSetting as DNSSetting -from .dns_setting_param import DNSSettingParam as DNSSettingParam from .nameserver import Nameserver as Nameserver -from .nameserver_param import NameserverParam as NameserverParam -from .setting_edit_response import SettingEditResponse as SettingEditResponse -from .setting_get_response import SettingGetResponse as SettingGetResponse -from .setting_edit_params import SettingEditParams as SettingEditParams -from .attack_mitigation import AttackMitigation as AttackMitigation -from .attack_mitigation_param import AttackMitigationParam as AttackMitigationParam +from .dns_setting import DNSSetting as DNSSetting +from .record_tags import RecordTags as RecordTags from .firewall_ips import FirewallIPs as FirewallIPs from .upstream_ips import UpstreamIPs as UpstreamIPs -from .firewall_create_response import FirewallCreateResponse as FirewallCreateResponse -from .firewall_list_response import FirewallListResponse as FirewallListResponse -from .firewall_delete_response import FirewallDeleteResponse as FirewallDeleteResponse -from .firewall_edit_response import FirewallEditResponse as FirewallEditResponse -from .firewall_get_response import FirewallGetResponse as FirewallGetResponse -from .firewall_create_params import FirewallCreateParams as FirewallCreateParams -from .firewall_list_params import FirewallListParams as FirewallListParams +from .nameserver_param import NameserverParam as NameserverParam +from .attack_mitigation import AttackMitigation as AttackMitigation +from .dns_setting_param import DNSSettingParam as DNSSettingParam +from .record_edit_params import RecordEditParams as RecordEditParams +from .record_list_params import RecordListParams as RecordListParams +from .record_scan_params import RecordScanParams as RecordScanParams +from .dns_analytics_query import DNSAnalyticsQuery as DNSAnalyticsQuery +from .record_get_response import RecordGetResponse as RecordGetResponse +from .setting_edit_params import SettingEditParams as SettingEditParams from .firewall_edit_params import FirewallEditParams as FirewallEditParams +from .firewall_list_params import FirewallListParams as FirewallListParams +from .record_create_params import RecordCreateParams as RecordCreateParams +from .record_edit_response import RecordEditResponse as RecordEditResponse +from .record_import_params import RecordImportParams as RecordImportParams +from .record_list_response import RecordListResponse as RecordListResponse +from .record_scan_response import RecordScanResponse as RecordScanResponse +from .record_update_params import RecordUpdateParams as RecordUpdateParams +from .setting_get_response import SettingGetResponse as SettingGetResponse +from .firewall_get_response import FirewallGetResponse as FirewallGetResponse +from .record_process_timing import RecordProcessTiming as RecordProcessTiming +from .setting_edit_response import SettingEditResponse as SettingEditResponse +from .firewall_create_params import FirewallCreateParams as FirewallCreateParams +from .firewall_edit_response import FirewallEditResponse as FirewallEditResponse +from .firewall_list_response import FirewallListResponse as FirewallListResponse +from .record_create_response import RecordCreateResponse as RecordCreateResponse +from .record_delete_response import RecordDeleteResponse as RecordDeleteResponse +from .record_export_response import RecordExportResponse as RecordExportResponse +from .record_import_response import RecordImportResponse as RecordImportResponse +from .record_update_response import RecordUpdateResponse as RecordUpdateResponse +from .attack_mitigation_param import AttackMitigationParam as AttackMitigationParam +from .firewall_create_response import FirewallCreateResponse as FirewallCreateResponse +from .firewall_delete_response import FirewallDeleteResponse as FirewallDeleteResponse +from .dns_analytics_nominal_metric import DNSAnalyticsNominalMetric as DNSAnalyticsNominalMetric diff --git a/src/cloudflare/types/dns/analytics/report.py b/src/cloudflare/types/dns/analytics/report.py index c7c86af8f..00314a88e 100644 --- a/src/cloudflare/types/dns/analytics/report.py +++ b/src/cloudflare/types/dns/analytics/report.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List, Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["Report", "Data", "Query"] diff --git a/src/cloudflare/types/dns/analytics/report_get_params.py b/src/cloudflare/types/dns/analytics/report_get_params.py index e7e8af698..12caad200 100644 --- a/src/cloudflare/types/dns/analytics/report_get_params.py +++ b/src/cloudflare/types/dns/analytics/report_get_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - from typing import Union - from datetime import datetime +from typing_extensions import Required, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["ReportGetParams"] diff --git a/src/cloudflare/types/dns/analytics/reports/by_time.py b/src/cloudflare/types/dns/analytics/reports/by_time.py index f13b70344..54d6c796c 100644 --- a/src/cloudflare/types/dns/analytics/reports/by_time.py +++ b/src/cloudflare/types/dns/analytics/reports/by_time.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import List - -from ...dns_analytics_nominal_metric import DNSAnalyticsNominalMetric - -from ...dns_analytics_query import DNSAnalyticsQuery - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel +from ...dns_analytics_query import DNSAnalyticsQuery +from ...dns_analytics_nominal_metric import DNSAnalyticsNominalMetric __all__ = ["ByTime", "Data"] diff --git a/src/cloudflare/types/dns/analytics/reports/bytime_get_params.py b/src/cloudflare/types/dns/analytics/reports/bytime_get_params.py index f42aa9d7c..ece9fe71b 100644 --- a/src/cloudflare/types/dns/analytics/reports/bytime_get_params.py +++ b/src/cloudflare/types/dns/analytics/reports/bytime_get_params.py @@ -2,21 +2,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - from typing import Union - from datetime import datetime +from typing_extensions import Required, Annotated, TypedDict from ....._utils import PropertyInfo - from ...firewall.delta import Delta -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["BytimeGetParams"] diff --git a/src/cloudflare/types/dns/attack_mitigation.py b/src/cloudflare/types/dns/attack_mitigation.py index aa964841b..cfbe6224f 100644 --- a/src/cloudflare/types/dns/attack_mitigation.py +++ b/src/cloudflare/types/dns/attack_mitigation.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["AttackMitigation"] diff --git a/src/cloudflare/types/dns/dns_analytics_nominal_metric.py b/src/cloudflare/types/dns/dns_analytics_nominal_metric.py index 0fbc215b5..32708b71c 100644 --- a/src/cloudflare/types/dns/dns_analytics_nominal_metric.py +++ b/src/cloudflare/types/dns/dns_analytics_nominal_metric.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["DNSAnalyticsNominalMetric"] DNSAnalyticsNominalMetric: TypeAlias = List[object] diff --git a/src/cloudflare/types/dns/dns_analytics_query.py b/src/cloudflare/types/dns/dns_analytics_query.py index c5deb8140..a34fcd322 100644 --- a/src/cloudflare/types/dns/dns_analytics_query.py +++ b/src/cloudflare/types/dns/dns_analytics_query.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List, Optional - from datetime import datetime +from ..._models import BaseModel from .firewall.delta import Delta -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["DNSAnalyticsQuery"] diff --git a/src/cloudflare/types/dns/dns_setting.py b/src/cloudflare/types/dns/dns_setting.py index 51f34610e..c96b14afb 100644 --- a/src/cloudflare/types/dns/dns_setting.py +++ b/src/cloudflare/types/dns/dns_setting.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional +from typing_extensions import Literal +from ..._models import BaseModel from .nameserver import Nameserver -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["DNSSetting", "SOA"] diff --git a/src/cloudflare/types/dns/dns_setting_param.py b/src/cloudflare/types/dns/dns_setting_param.py index a4e374911..127be3c6a 100644 --- a/src/cloudflare/types/dns/dns_setting_param.py +++ b/src/cloudflare/types/dns/dns_setting_param.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .nameserver_param import NameserverParam +from typing_extensions import Literal, Required, TypedDict -from typing_extensions import Literal, TypedDict, Required +from .nameserver_param import NameserverParam __all__ = ["DNSSettingParam", "SOA"] diff --git a/src/cloudflare/types/dns/firewall/analytics/report_get_params.py b/src/cloudflare/types/dns/firewall/analytics/report_get_params.py index f29810590..5697245f3 100644 --- a/src/cloudflare/types/dns/firewall/analytics/report_get_params.py +++ b/src/cloudflare/types/dns/firewall/analytics/report_get_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - from typing import Union - from datetime import datetime +from typing_extensions import Required, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["ReportGetParams"] diff --git a/src/cloudflare/types/dns/firewall/analytics/reports/bytime_get_params.py b/src/cloudflare/types/dns/firewall/analytics/reports/bytime_get_params.py index 115ce839b..34773f897 100644 --- a/src/cloudflare/types/dns/firewall/analytics/reports/bytime_get_params.py +++ b/src/cloudflare/types/dns/firewall/analytics/reports/bytime_get_params.py @@ -2,19 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - from typing import Union - from datetime import datetime - -from ......_utils import PropertyInfo +from typing_extensions import Required, Annotated, TypedDict from ...delta import Delta - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ......_types import FileTypes from ......_utils import PropertyInfo __all__ = ["BytimeGetParams"] diff --git a/src/cloudflare/types/dns/firewall/delta.py b/src/cloudflare/types/dns/firewall/delta.py index f4eeaa02b..9b205d2ad 100644 --- a/src/cloudflare/types/dns/firewall/delta.py +++ b/src/cloudflare/types/dns/firewall/delta.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Delta"] Delta: TypeAlias = Literal["all", "auto", "year", "quarter", "month", "week", "day", "hour", "dekaminute", "minute"] diff --git a/src/cloudflare/types/dns/firewall_create_params.py b/src/cloudflare/types/dns/firewall_create_params.py index 691e8ba2f..1e4df9059 100644 --- a/src/cloudflare/types/dns/firewall_create_params.py +++ b/src/cloudflare/types/dns/firewall_create_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import List, Optional +from typing_extensions import Required, TypedDict from .upstream_ips import UpstreamIPs - from .attack_mitigation_param import AttackMitigationParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["FirewallCreateParams"] diff --git a/src/cloudflare/types/dns/firewall_create_response.py b/src/cloudflare/types/dns/firewall_create_response.py index 18832b24b..e53cdbe15 100644 --- a/src/cloudflare/types/dns/firewall_create_response.py +++ b/src/cloudflare/types/dns/firewall_create_response.py @@ -1,21 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List, Optional - -from .firewall_ips import FirewallIPs - from datetime import datetime +from ..._models import BaseModel +from .firewall_ips import FirewallIPs from .upstream_ips import UpstreamIPs - from .attack_mitigation import AttackMitigation -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["FirewallCreateResponse"] diff --git a/src/cloudflare/types/dns/firewall_delete_response.py b/src/cloudflare/types/dns/firewall_delete_response.py index c3c2601ad..e885b3342 100644 --- a/src/cloudflare/types/dns/firewall_delete_response.py +++ b/src/cloudflare/types/dns/firewall_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["FirewallDeleteResponse"] diff --git a/src/cloudflare/types/dns/firewall_edit_params.py b/src/cloudflare/types/dns/firewall_edit_params.py index ff176523a..92dda2a89 100644 --- a/src/cloudflare/types/dns/firewall_edit_params.py +++ b/src/cloudflare/types/dns/firewall_edit_params.py @@ -2,18 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import Optional, List - -from .attack_mitigation_param import AttackMitigationParam +from typing import List, Optional +from typing_extensions import Required, TypedDict from .upstream_ips import UpstreamIPs - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .attack_mitigation_param import AttackMitigationParam __all__ = ["FirewallEditParams"] diff --git a/src/cloudflare/types/dns/firewall_edit_response.py b/src/cloudflare/types/dns/firewall_edit_response.py index f16083dae..5254a4813 100644 --- a/src/cloudflare/types/dns/firewall_edit_response.py +++ b/src/cloudflare/types/dns/firewall_edit_response.py @@ -1,21 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List, Optional - -from .firewall_ips import FirewallIPs - from datetime import datetime +from ..._models import BaseModel +from .firewall_ips import FirewallIPs from .upstream_ips import UpstreamIPs - from .attack_mitigation import AttackMitigation -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["FirewallEditResponse"] diff --git a/src/cloudflare/types/dns/firewall_get_response.py b/src/cloudflare/types/dns/firewall_get_response.py index dac9ff62f..186102816 100644 --- a/src/cloudflare/types/dns/firewall_get_response.py +++ b/src/cloudflare/types/dns/firewall_get_response.py @@ -1,21 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List, Optional - -from .firewall_ips import FirewallIPs - from datetime import datetime +from ..._models import BaseModel +from .firewall_ips import FirewallIPs from .upstream_ips import UpstreamIPs - from .attack_mitigation import AttackMitigation -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["FirewallGetResponse"] diff --git a/src/cloudflare/types/dns/firewall_ips.py b/src/cloudflare/types/dns/firewall_ips.py index 2998ebd52..9858c8030 100644 --- a/src/cloudflare/types/dns/firewall_ips.py +++ b/src/cloudflare/types/dns/firewall_ips.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["FirewallIPs"] FirewallIPs: TypeAlias = str diff --git a/src/cloudflare/types/dns/firewall_list_params.py b/src/cloudflare/types/dns/firewall_list_params.py index 6164481eb..2e754962e 100644 --- a/src/cloudflare/types/dns/firewall_list_params.py +++ b/src/cloudflare/types/dns/firewall_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["FirewallListParams"] diff --git a/src/cloudflare/types/dns/firewall_list_response.py b/src/cloudflare/types/dns/firewall_list_response.py index e19ef4efd..fd8c61f1e 100644 --- a/src/cloudflare/types/dns/firewall_list_response.py +++ b/src/cloudflare/types/dns/firewall_list_response.py @@ -1,21 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List, Optional - -from .firewall_ips import FirewallIPs - from datetime import datetime +from ..._models import BaseModel +from .firewall_ips import FirewallIPs from .upstream_ips import UpstreamIPs - from .attack_mitigation import AttackMitigation -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["FirewallListResponse"] diff --git a/src/cloudflare/types/dns/nameserver.py b/src/cloudflare/types/dns/nameserver.py index 72e3b1ce7..3076da16f 100644 --- a/src/cloudflare/types/dns/nameserver.py +++ b/src/cloudflare/types/dns/nameserver.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing_extensions import Literal + from ..._models import BaseModel -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Nameserver"] diff --git a/src/cloudflare/types/dns/nameserver_param.py b/src/cloudflare/types/dns/nameserver_param.py index 29af3c025..6d73075a2 100644 --- a/src/cloudflare/types/dns/nameserver_param.py +++ b/src/cloudflare/types/dns/nameserver_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["NameserverParam"] diff --git a/src/cloudflare/types/dns/record_create_params.py b/src/cloudflare/types/dns/record_create_params.py index 5ea70e154..95663d7b0 100644 --- a/src/cloudflare/types/dns/record_create_params.py +++ b/src/cloudflare/types/dns/record_create_params.py @@ -2,12 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing import Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict __all__ = [ "RecordCreateParams", diff --git a/src/cloudflare/types/dns/record_create_response.py b/src/cloudflare/types/dns/record_create_response.py index 0383a1d03..8c78a1307 100644 --- a/src/cloudflare/types/dns/record_create_response.py +++ b/src/cloudflare/types/dns/record_create_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime -from .record_tags import RecordTags - from .ttl import TTL - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .record_tags import RecordTags __all__ = ["RecordCreateResponse", "Meta"] diff --git a/src/cloudflare/types/dns/record_delete_response.py b/src/cloudflare/types/dns/record_delete_response.py index 6361d9ef8..b01d800ed 100644 --- a/src/cloudflare/types/dns/record_delete_response.py +++ b/src/cloudflare/types/dns/record_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RecordDeleteResponse"] diff --git a/src/cloudflare/types/dns/record_edit_params.py b/src/cloudflare/types/dns/record_edit_params.py index d465ff83e..86d273a55 100644 --- a/src/cloudflare/types/dns/record_edit_params.py +++ b/src/cloudflare/types/dns/record_edit_params.py @@ -2,12 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing import Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict __all__ = [ "RecordEditParams", diff --git a/src/cloudflare/types/dns/record_edit_response.py b/src/cloudflare/types/dns/record_edit_response.py index baf8b412f..9ef58b6a1 100644 --- a/src/cloudflare/types/dns/record_edit_response.py +++ b/src/cloudflare/types/dns/record_edit_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime -from .record_tags import RecordTags - from .ttl import TTL - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .record_tags import RecordTags __all__ = ["RecordEditResponse", "Meta"] diff --git a/src/cloudflare/types/dns/record_export_response.py b/src/cloudflare/types/dns/record_export_response.py index e5035fdfb..0f3ad8a59 100644 --- a/src/cloudflare/types/dns/record_export_response.py +++ b/src/cloudflare/types/dns/record_export_response.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["RecordExportResponse"] RecordExportResponse: TypeAlias = str diff --git a/src/cloudflare/types/dns/record_get_response.py b/src/cloudflare/types/dns/record_get_response.py index d8c8dc2ad..bfea4db39 100644 --- a/src/cloudflare/types/dns/record_get_response.py +++ b/src/cloudflare/types/dns/record_get_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime -from .record_tags import RecordTags - from .ttl import TTL - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .record_tags import RecordTags __all__ = ["RecordGetResponse", "Meta"] diff --git a/src/cloudflare/types/dns/record_import_params.py b/src/cloudflare/types/dns/record_import_params.py index 7b25a14fe..0280a0e64 100644 --- a/src/cloudflare/types/dns/record_import_params.py +++ b/src/cloudflare/types/dns/record_import_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["RecordImportParams"] diff --git a/src/cloudflare/types/dns/record_import_response.py b/src/cloudflare/types/dns/record_import_response.py index e90abe7d8..ec5ef5b08 100644 --- a/src/cloudflare/types/dns/record_import_response.py +++ b/src/cloudflare/types/dns/record_import_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RecordImportResponse"] diff --git a/src/cloudflare/types/dns/record_list_params.py b/src/cloudflare/types/dns/record_list_params.py index 057742edd..33611030b 100644 --- a/src/cloudflare/types/dns/record_list_params.py +++ b/src/cloudflare/types/dns/record_list_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal +from typing_extensions import Literal, Required, TypedDict from ..shared.sort_direction import SortDirection -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["RecordListParams", "Comment", "Tag"] diff --git a/src/cloudflare/types/dns/record_list_response.py b/src/cloudflare/types/dns/record_list_response.py index b8951c54e..86905357c 100644 --- a/src/cloudflare/types/dns/record_list_response.py +++ b/src/cloudflare/types/dns/record_list_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime -from .record_tags import RecordTags - from .ttl import TTL - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .record_tags import RecordTags __all__ = ["RecordListResponse", "Meta"] diff --git a/src/cloudflare/types/dns/record_process_timing.py b/src/cloudflare/types/dns/record_process_timing.py index 0d021299e..1fc4d7db1 100644 --- a/src/cloudflare/types/dns/record_process_timing.py +++ b/src/cloudflare/types/dns/record_process_timing.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RecordProcessTiming"] diff --git a/src/cloudflare/types/dns/record_scan_params.py b/src/cloudflare/types/dns/record_scan_params.py index 1b2c0cb62..070a02130 100644 --- a/src/cloudflare/types/dns/record_scan_params.py +++ b/src/cloudflare/types/dns/record_scan_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["RecordScanParams"] diff --git a/src/cloudflare/types/dns/record_scan_response.py b/src/cloudflare/types/dns/record_scan_response.py index 27321f76a..8f24b4b53 100644 --- a/src/cloudflare/types/dns/record_scan_response.py +++ b/src/cloudflare/types/dns/record_scan_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RecordScanResponse"] diff --git a/src/cloudflare/types/dns/record_tags.py b/src/cloudflare/types/dns/record_tags.py index 6fb948f88..0e3cb22ff 100644 --- a/src/cloudflare/types/dns/record_tags.py +++ b/src/cloudflare/types/dns/record_tags.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["RecordTags"] RecordTags: TypeAlias = str diff --git a/src/cloudflare/types/dns/record_update_params.py b/src/cloudflare/types/dns/record_update_params.py index 3526c5fed..1c8104d5f 100644 --- a/src/cloudflare/types/dns/record_update_params.py +++ b/src/cloudflare/types/dns/record_update_params.py @@ -2,12 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing import Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict __all__ = [ "RecordUpdateParams", diff --git a/src/cloudflare/types/dns/record_update_response.py b/src/cloudflare/types/dns/record_update_response.py index 5f4192446..d23395969 100644 --- a/src/cloudflare/types/dns/record_update_response.py +++ b/src/cloudflare/types/dns/record_update_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime -from .record_tags import RecordTags - from .ttl import TTL - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .record_tags import RecordTags __all__ = ["RecordUpdateResponse", "Meta"] diff --git a/src/cloudflare/types/dns/setting_edit_params.py b/src/cloudflare/types/dns/setting_edit_params.py index a89db6a02..1ac1ba3ee 100644 --- a/src/cloudflare/types/dns/setting_edit_params.py +++ b/src/cloudflare/types/dns/setting_edit_params.py @@ -6,11 +6,6 @@ from typing_extensions import TypedDict from .dns_setting_param import DNSSettingParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["SettingEditParams"] diff --git a/src/cloudflare/types/dns/setting_edit_response.py b/src/cloudflare/types/dns/setting_edit_response.py index f57f4eec6..87a73a535 100644 --- a/src/cloudflare/types/dns/setting_edit_response.py +++ b/src/cloudflare/types/dns/setting_edit_response.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional +from ..._models import BaseModel from .dns_setting import DNSSetting -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SettingEditResponse"] diff --git a/src/cloudflare/types/dns/setting_get_response.py b/src/cloudflare/types/dns/setting_get_response.py index 34bbe4864..42c336008 100644 --- a/src/cloudflare/types/dns/setting_get_response.py +++ b/src/cloudflare/types/dns/setting_get_response.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional +from ..._models import BaseModel from .dns_setting import DNSSetting -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SettingGetResponse"] diff --git a/src/cloudflare/types/dns/ttl.py b/src/cloudflare/types/dns/ttl.py index 11c391350..693c9980b 100644 --- a/src/cloudflare/types/dns/ttl.py +++ b/src/cloudflare/types/dns/ttl.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Union from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["TTL"] TTL: TypeAlias = Union[float, Literal[1]] diff --git a/src/cloudflare/types/dns/upstream_ips.py b/src/cloudflare/types/dns/upstream_ips.py index 857bcab06..202a81ff0 100644 --- a/src/cloudflare/types/dns/upstream_ips.py +++ b/src/cloudflare/types/dns/upstream_ips.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["UpstreamIPs"] UpstreamIPs: TypeAlias = str diff --git a/src/cloudflare/types/dnssec/__init__.py b/src/cloudflare/types/dnssec/__init__.py index 37d01d35b..a8c3b38cc 100644 --- a/src/cloudflare/types/dnssec/__init__.py +++ b/src/cloudflare/types/dnssec/__init__.py @@ -3,6 +3,5 @@ from __future__ import annotations from .dnssec import DNSSEC as DNSSEC -from .dnssec import DNSSEC as DNSSEC -from .dnssec_delete_response import DNSSECDeleteResponse as DNSSECDeleteResponse from .dnssec_edit_params import DNSSECEditParams as DNSSECEditParams +from .dnssec_delete_response import DNSSECDeleteResponse as DNSSECDeleteResponse diff --git a/src/cloudflare/types/dnssec/dnssec.py b/src/cloudflare/types/dnssec/dnssec.py index 64b30971a..0b18c1f6d 100644 --- a/src/cloudflare/types/dnssec/dnssec.py +++ b/src/cloudflare/types/dnssec/dnssec.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["DNSSEC"] diff --git a/src/cloudflare/types/dnssec/dnssec_delete_response.py b/src/cloudflare/types/dnssec/dnssec_delete_response.py index 3b66131f3..98446b72c 100644 --- a/src/cloudflare/types/dnssec/dnssec_delete_response.py +++ b/src/cloudflare/types/dnssec/dnssec_delete_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["DNSSECDeleteResponse"] DNSSECDeleteResponse: TypeAlias = Union[str, object] diff --git a/src/cloudflare/types/dnssec/dnssec_edit_params.py b/src/cloudflare/types/dnssec/dnssec_edit_params.py index 1c8356943..e2d99ec8a 100644 --- a/src/cloudflare/types/dnssec/dnssec_edit_params.py +++ b/src/cloudflare/types/dnssec/dnssec_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["DNSSECEditParams"] diff --git a/src/cloudflare/types/durable_objects/namespace.py b/src/cloudflare/types/durable_objects/namespace.py index 19cfb53b6..113572c80 100644 --- a/src/cloudflare/types/durable_objects/namespace.py +++ b/src/cloudflare/types/durable_objects/namespace.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["Namespace"] diff --git a/src/cloudflare/types/durable_objects/namespaces/durable_object.py b/src/cloudflare/types/durable_objects/namespaces/durable_object.py index e74249990..53c1bead7 100644 --- a/src/cloudflare/types/durable_objects/namespaces/durable_object.py +++ b/src/cloudflare/types/durable_objects/namespaces/durable_object.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["DurableObject"] diff --git a/src/cloudflare/types/durable_objects/namespaces/object_list_params.py b/src/cloudflare/types/durable_objects/namespaces/object_list_params.py index 2c189173b..f8f513d2d 100644 --- a/src/cloudflare/types/durable_objects/namespaces/object_list_params.py +++ b/src/cloudflare/types/durable_objects/namespaces/object_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ObjectListParams"] diff --git a/src/cloudflare/types/email_routing/__init__.py b/src/cloudflare/types/email_routing/__init__.py index b8fdc8040..8d2246d0c 100644 --- a/src/cloudflare/types/email_routing/__init__.py +++ b/src/cloudflare/types/email_routing/__init__.py @@ -2,19 +2,19 @@ from __future__ import annotations -from .settings import Settings as Settings -from .email_routing_disable_params import EmailRoutingDisableParams as EmailRoutingDisableParams -from .email_routing_enable_params import EmailRoutingEnableParams as EmailRoutingEnableParams -from .dns_record import DNSRecord as DNSRecord -from .dns_get_response import DNSGetResponse as DNSGetResponse from .action import Action as Action -from .action_param import ActionParam as ActionParam -from .email_routing_rule import EmailRoutingRule as EmailRoutingRule +from .address import Address as Address from .matcher import Matcher as Matcher +from .settings import Settings as Settings +from .dns_record import DNSRecord as DNSRecord +from .action_param import ActionParam as ActionParam from .matcher_param import MatcherParam as MatcherParam +from .dns_get_response import DNSGetResponse as DNSGetResponse +from .rule_list_params import RuleListParams as RuleListParams +from .email_routing_rule import EmailRoutingRule as EmailRoutingRule from .rule_create_params import RuleCreateParams as RuleCreateParams from .rule_update_params import RuleUpdateParams as RuleUpdateParams -from .rule_list_params import RuleListParams as RuleListParams -from .address import Address as Address -from .address_create_params import AddressCreateParams as AddressCreateParams from .address_list_params import AddressListParams as AddressListParams +from .address_create_params import AddressCreateParams as AddressCreateParams +from .email_routing_enable_params import EmailRoutingEnableParams as EmailRoutingEnableParams +from .email_routing_disable_params import EmailRoutingDisableParams as EmailRoutingDisableParams diff --git a/src/cloudflare/types/email_routing/action.py b/src/cloudflare/types/email_routing/action.py index c5644a634..b27c3f1a4 100644 --- a/src/cloudflare/types/email_routing/action.py +++ b/src/cloudflare/types/email_routing/action.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import List - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["Action"] diff --git a/src/cloudflare/types/email_routing/action_param.py b/src/cloudflare/types/email_routing/action_param.py index 1258ba37a..20411ce32 100644 --- a/src/cloudflare/types/email_routing/action_param.py +++ b/src/cloudflare/types/email_routing/action_param.py @@ -2,9 +2,8 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required - from typing import List +from typing_extensions import Literal, Required, TypedDict __all__ = ["ActionParam"] diff --git a/src/cloudflare/types/email_routing/address.py b/src/cloudflare/types/email_routing/address.py index c9cf27069..7e7a82d98 100644 --- a/src/cloudflare/types/email_routing/address.py +++ b/src/cloudflare/types/email_routing/address.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Address"] diff --git a/src/cloudflare/types/email_routing/address_create_params.py b/src/cloudflare/types/email_routing/address_create_params.py index 917710c7c..10bc64b1d 100644 --- a/src/cloudflare/types/email_routing/address_create_params.py +++ b/src/cloudflare/types/email_routing/address_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["AddressCreateParams"] diff --git a/src/cloudflare/types/email_routing/address_list_params.py b/src/cloudflare/types/email_routing/address_list_params.py index 37f1d5a86..0a97ef593 100644 --- a/src/cloudflare/types/email_routing/address_list_params.py +++ b/src/cloudflare/types/email_routing/address_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["AddressListParams"] diff --git a/src/cloudflare/types/email_routing/dns_get_response.py b/src/cloudflare/types/email_routing/dns_get_response.py index 96873407a..c9e235985 100644 --- a/src/cloudflare/types/email_routing/dns_get_response.py +++ b/src/cloudflare/types/email_routing/dns_get_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .dns_record import DNSRecord - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .dns_record import DNSRecord __all__ = ["DNSGetResponse"] diff --git a/src/cloudflare/types/email_routing/dns_record.py b/src/cloudflare/types/email_routing/dns_record.py index a11afd890..92b600ce4 100644 --- a/src/cloudflare/types/email_routing/dns_record.py +++ b/src/cloudflare/types/email_routing/dns_record.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Union, Optional +from typing_extensions import Literal + from ..._models import BaseModel -from typing import Optional, Union - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["DNSRecord"] diff --git a/src/cloudflare/types/email_routing/email_routing_disable_params.py b/src/cloudflare/types/email_routing/email_routing_disable_params.py index 3ce1039dc..d9a730542 100644 --- a/src/cloudflare/types/email_routing/email_routing_disable_params.py +++ b/src/cloudflare/types/email_routing/email_routing_disable_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["EmailRoutingDisableParams"] diff --git a/src/cloudflare/types/email_routing/email_routing_enable_params.py b/src/cloudflare/types/email_routing/email_routing_enable_params.py index 88af18604..815bdfeeb 100644 --- a/src/cloudflare/types/email_routing/email_routing_enable_params.py +++ b/src/cloudflare/types/email_routing/email_routing_enable_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["EmailRoutingEnableParams"] diff --git a/src/cloudflare/types/email_routing/email_routing_rule.py b/src/cloudflare/types/email_routing/email_routing_rule.py index 9143a73f3..1e90e6121 100644 --- a/src/cloudflare/types/email_routing/email_routing_rule.py +++ b/src/cloudflare/types/email_routing/email_routing_rule.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List +from typing import List, Optional +from typing_extensions import Literal from .action import Action - -from typing_extensions import Literal - from .matcher import Matcher - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["EmailRoutingRule"] diff --git a/src/cloudflare/types/email_routing/matcher.py b/src/cloudflare/types/email_routing/matcher.py index e8a673e64..d63819b6a 100644 --- a/src/cloudflare/types/email_routing/matcher.py +++ b/src/cloudflare/types/email_routing/matcher.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing_extensions import Literal + from ..._models import BaseModel -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Matcher"] diff --git a/src/cloudflare/types/email_routing/matcher_param.py b/src/cloudflare/types/email_routing/matcher_param.py index 1ec220b90..cae8d7e45 100644 --- a/src/cloudflare/types/email_routing/matcher_param.py +++ b/src/cloudflare/types/email_routing/matcher_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["MatcherParam"] diff --git a/src/cloudflare/types/email_routing/rule_create_params.py b/src/cloudflare/types/email_routing/rule_create_params.py index b56844e9f..f54e74a61 100644 --- a/src/cloudflare/types/email_routing/rule_create_params.py +++ b/src/cloudflare/types/email_routing/rule_create_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Iterable +from typing_extensions import Literal, Required, TypedDict from .action_param import ActionParam - from .matcher_param import MatcherParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["RuleCreateParams"] diff --git a/src/cloudflare/types/email_routing/rule_list_params.py b/src/cloudflare/types/email_routing/rule_list_params.py index 05aeefada..a0e8ccee0 100644 --- a/src/cloudflare/types/email_routing/rule_list_params.py +++ b/src/cloudflare/types/email_routing/rule_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["RuleListParams"] diff --git a/src/cloudflare/types/email_routing/rule_update_params.py b/src/cloudflare/types/email_routing/rule_update_params.py index afbc80e40..2a163eef1 100644 --- a/src/cloudflare/types/email_routing/rule_update_params.py +++ b/src/cloudflare/types/email_routing/rule_update_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Iterable +from typing_extensions import Literal, Required, TypedDict from .action_param import ActionParam - from .matcher_param import MatcherParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["RuleUpdateParams"] diff --git a/src/cloudflare/types/email_routing/rules/__init__.py b/src/cloudflare/types/email_routing/rules/__init__.py index c9c4ac016..82fb04b4f 100644 --- a/src/cloudflare/types/email_routing/rules/__init__.py +++ b/src/cloudflare/types/email_routing/rules/__init__.py @@ -3,9 +3,9 @@ from __future__ import annotations from .catch_all_action import CatchAllAction as CatchAllAction -from .catch_all_action_param import CatchAllActionParam as CatchAllActionParam from .catch_all_matcher import CatchAllMatcher as CatchAllMatcher -from .catch_all_matcher_param import CatchAllMatcherParam as CatchAllMatcherParam -from .catch_all_update_response import CatchAllUpdateResponse as CatchAllUpdateResponse +from .catch_all_action_param import CatchAllActionParam as CatchAllActionParam from .catch_all_get_response import CatchAllGetResponse as CatchAllGetResponse +from .catch_all_matcher_param import CatchAllMatcherParam as CatchAllMatcherParam from .catch_all_update_params import CatchAllUpdateParams as CatchAllUpdateParams +from .catch_all_update_response import CatchAllUpdateResponse as CatchAllUpdateResponse diff --git a/src/cloudflare/types/email_routing/rules/catch_all_action.py b/src/cloudflare/types/email_routing/rules/catch_all_action.py index 6f9959efe..bfd4485f6 100644 --- a/src/cloudflare/types/email_routing/rules/catch_all_action.py +++ b/src/cloudflare/types/email_routing/rules/catch_all_action.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ...._models import BaseModel -from typing_extensions import Literal - -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["CatchAllAction"] diff --git a/src/cloudflare/types/email_routing/rules/catch_all_action_param.py b/src/cloudflare/types/email_routing/rules/catch_all_action_param.py index 4964a4334..832c3457b 100644 --- a/src/cloudflare/types/email_routing/rules/catch_all_action_param.py +++ b/src/cloudflare/types/email_routing/rules/catch_all_action_param.py @@ -2,9 +2,8 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required - from typing import List +from typing_extensions import Literal, Required, TypedDict __all__ = ["CatchAllActionParam"] diff --git a/src/cloudflare/types/email_routing/rules/catch_all_get_response.py b/src/cloudflare/types/email_routing/rules/catch_all_get_response.py index a34ccd90c..4f25a25db 100644 --- a/src/cloudflare/types/email_routing/rules/catch_all_get_response.py +++ b/src/cloudflare/types/email_routing/rules/catch_all_get_response.py @@ -1,19 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ...._models import BaseModel - -from typing import Optional, List - from .catch_all_action import CatchAllAction - -from typing_extensions import Literal - from .catch_all_matcher import CatchAllMatcher -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["CatchAllGetResponse"] diff --git a/src/cloudflare/types/email_routing/rules/catch_all_matcher.py b/src/cloudflare/types/email_routing/rules/catch_all_matcher.py index 0cbcdd816..982ed202d 100644 --- a/src/cloudflare/types/email_routing/rules/catch_all_matcher.py +++ b/src/cloudflare/types/email_routing/rules/catch_all_matcher.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing_extensions import Literal + from ...._models import BaseModel -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["CatchAllMatcher"] diff --git a/src/cloudflare/types/email_routing/rules/catch_all_matcher_param.py b/src/cloudflare/types/email_routing/rules/catch_all_matcher_param.py index cb9abb4d6..d22950c2d 100644 --- a/src/cloudflare/types/email_routing/rules/catch_all_matcher_param.py +++ b/src/cloudflare/types/email_routing/rules/catch_all_matcher_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["CatchAllMatcherParam"] diff --git a/src/cloudflare/types/email_routing/rules/catch_all_update_params.py b/src/cloudflare/types/email_routing/rules/catch_all_update_params.py index 264fe0eaf..c61255beb 100644 --- a/src/cloudflare/types/email_routing/rules/catch_all_update_params.py +++ b/src/cloudflare/types/email_routing/rules/catch_all_update_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Iterable +from typing_extensions import Literal, Required, TypedDict from .catch_all_action_param import CatchAllActionParam - from .catch_all_matcher_param import CatchAllMatcherParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["CatchAllUpdateParams"] diff --git a/src/cloudflare/types/email_routing/rules/catch_all_update_response.py b/src/cloudflare/types/email_routing/rules/catch_all_update_response.py index 9383bc717..8380ed3b1 100644 --- a/src/cloudflare/types/email_routing/rules/catch_all_update_response.py +++ b/src/cloudflare/types/email_routing/rules/catch_all_update_response.py @@ -1,19 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ...._models import BaseModel - -from typing import Optional, List - from .catch_all_action import CatchAllAction - -from typing_extensions import Literal - from .catch_all_matcher import CatchAllMatcher -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["CatchAllUpdateResponse"] diff --git a/src/cloudflare/types/email_routing/settings.py b/src/cloudflare/types/email_routing/settings.py index 5a6bbab53..7db6e4a5f 100644 --- a/src/cloudflare/types/email_routing/settings.py +++ b/src/cloudflare/types/email_routing/settings.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Settings"] diff --git a/src/cloudflare/types/email_security/__init__.py b/src/cloudflare/types/email_security/__init__.py index c5785c384..0c4d8f906 100644 --- a/src/cloudflare/types/email_security/__init__.py +++ b/src/cloudflare/types/email_security/__init__.py @@ -2,12 +2,12 @@ from __future__ import annotations -from .investigate_list_response import InvestigateListResponse as InvestigateListResponse -from .investigate_detections_response import InvestigateDetectionsResponse as InvestigateDetectionsResponse -from .investigate_get_response import InvestigateGetResponse as InvestigateGetResponse -from .investigate_preview_response import InvestigatePreviewResponse as InvestigatePreviewResponse -from .investigate_raw_response import InvestigateRawResponse as InvestigateRawResponse -from .investigate_trace_response import InvestigateTraceResponse as InvestigateTraceResponse -from .investigate_list_params import InvestigateListParams as InvestigateListParams -from .phishguard_list_response import PhishguardListResponse as PhishguardListResponse from .phishguard_list_params import PhishguardListParams as PhishguardListParams +from .investigate_list_params import InvestigateListParams as InvestigateListParams +from .investigate_get_response import InvestigateGetResponse as InvestigateGetResponse +from .investigate_raw_response import InvestigateRawResponse as InvestigateRawResponse +from .phishguard_list_response import PhishguardListResponse as PhishguardListResponse +from .investigate_list_response import InvestigateListResponse as InvestigateListResponse +from .investigate_trace_response import InvestigateTraceResponse as InvestigateTraceResponse +from .investigate_preview_response import InvestigatePreviewResponse as InvestigatePreviewResponse +from .investigate_detections_response import InvestigateDetectionsResponse as InvestigateDetectionsResponse diff --git a/src/cloudflare/types/email_security/investigate_detections_response.py b/src/cloudflare/types/email_security/investigate_detections_response.py index 8974088a1..2adca67e4 100644 --- a/src/cloudflare/types/email_security/investigate_detections_response.py +++ b/src/cloudflare/types/email_security/investigate_detections_response.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel -from typing import Optional, List - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = [ "InvestigateDetectionsResponse", "Attachment", diff --git a/src/cloudflare/types/email_security/investigate_get_response.py b/src/cloudflare/types/email_security/investigate_get_response.py index b6cb4d069..6622c620e 100644 --- a/src/cloudflare/types/email_security/investigate_get_response.py +++ b/src/cloudflare/types/email_security/investigate_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["InvestigateGetResponse", "Validation"] diff --git a/src/cloudflare/types/email_security/investigate_list_params.py b/src/cloudflare/types/email_security/investigate_list_params.py index de72bf5a9..4b075e87d 100644 --- a/src/cloudflare/types/email_security/investigate_list_params.py +++ b/src/cloudflare/types/email_security/investigate_list_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal - from typing import Union - from datetime import datetime +from typing_extensions import Literal, Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["InvestigateListParams"] diff --git a/src/cloudflare/types/email_security/investigate_list_response.py b/src/cloudflare/types/email_security/investigate_list_response.py index 5ceeb5fab..41d1c9850 100644 --- a/src/cloudflare/types/email_security/investigate_list_response.py +++ b/src/cloudflare/types/email_security/investigate_list_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["InvestigateListResponse", "Validation"] diff --git a/src/cloudflare/types/email_security/investigate_preview_response.py b/src/cloudflare/types/email_security/investigate_preview_response.py index 4f0870955..c72516e03 100644 --- a/src/cloudflare/types/email_security/investigate_preview_response.py +++ b/src/cloudflare/types/email_security/investigate_preview_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["InvestigatePreviewResponse"] diff --git a/src/cloudflare/types/email_security/investigate_raw_response.py b/src/cloudflare/types/email_security/investigate_raw_response.py index ac970a329..6c9c29752 100644 --- a/src/cloudflare/types/email_security/investigate_raw_response.py +++ b/src/cloudflare/types/email_security/investigate_raw_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["InvestigateRawResponse"] diff --git a/src/cloudflare/types/email_security/investigate_trace_response.py b/src/cloudflare/types/email_security/investigate_trace_response.py index ddc43828a..e32f39494 100644 --- a/src/cloudflare/types/email_security/investigate_trace_response.py +++ b/src/cloudflare/types/email_security/investigate_trace_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["InvestigateTraceResponse", "Inbound", "InboundLine", "Outbound", "OutboundLine"] diff --git a/src/cloudflare/types/email_security/phishguard_list_params.py b/src/cloudflare/types/email_security/phishguard_list_params.py index 3fa7a489f..62e22dab4 100644 --- a/src/cloudflare/types/email_security/phishguard_list_params.py +++ b/src/cloudflare/types/email_security/phishguard_list_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - from typing import Union - from datetime import date +from typing_extensions import Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["PhishguardListParams"] diff --git a/src/cloudflare/types/email_security/phishguard_list_response.py b/src/cloudflare/types/email_security/phishguard_list_response.py index d93a84a2c..7aa653f96 100644 --- a/src/cloudflare/types/email_security/phishguard_list_response.py +++ b/src/cloudflare/types/email_security/phishguard_list_response.py @@ -1,17 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List, Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["PhishguardListResponse", "Fields", "Tag"] diff --git a/src/cloudflare/types/email_security/settings/__init__.py b/src/cloudflare/types/email_security/settings/__init__.py index 4c6364afd..c4967ee7e 100644 --- a/src/cloudflare/types/email_security/settings/__init__.py +++ b/src/cloudflare/types/email_security/settings/__init__.py @@ -2,44 +2,44 @@ from __future__ import annotations -from .allow_pattern_create_response import AllowPatternCreateResponse as AllowPatternCreateResponse -from .allow_pattern_list_response import AllowPatternListResponse as AllowPatternListResponse -from .allow_pattern_delete_response import AllowPatternDeleteResponse as AllowPatternDeleteResponse -from .allow_pattern_edit_response import AllowPatternEditResponse as AllowPatternEditResponse -from .allow_pattern_get_response import AllowPatternGetResponse as AllowPatternGetResponse -from .allow_pattern_create_params import AllowPatternCreateParams as AllowPatternCreateParams -from .allow_pattern_list_params import AllowPatternListParams as AllowPatternListParams -from .allow_pattern_edit_params import AllowPatternEditParams as AllowPatternEditParams -from .block_sender_create_response import BlockSenderCreateResponse as BlockSenderCreateResponse -from .block_sender_list_response import BlockSenderListResponse as BlockSenderListResponse -from .block_sender_delete_response import BlockSenderDeleteResponse as BlockSenderDeleteResponse -from .block_sender_edit_response import BlockSenderEditResponse as BlockSenderEditResponse -from .block_sender_get_response import BlockSenderGetResponse as BlockSenderGetResponse -from .block_sender_create_params import BlockSenderCreateParams as BlockSenderCreateParams -from .block_sender_list_params import BlockSenderListParams as BlockSenderListParams -from .block_sender_edit_params import BlockSenderEditParams as BlockSenderEditParams +from .domain_edit_params import DomainEditParams as DomainEditParams +from .domain_list_params import DomainListParams as DomainListParams +from .domain_edit_response import DomainEditResponse as DomainEditResponse from .domain_list_response import DomainListResponse as DomainListResponse from .domain_delete_response import DomainDeleteResponse as DomainDeleteResponse -from .domain_edit_response import DomainEditResponse as DomainEditResponse -from .domain_list_params import DomainListParams as DomainListParams -from .domain_edit_params import DomainEditParams as DomainEditParams +from .block_sender_edit_params import BlockSenderEditParams as BlockSenderEditParams +from .block_sender_list_params import BlockSenderListParams as BlockSenderListParams +from .allow_pattern_edit_params import AllowPatternEditParams as AllowPatternEditParams +from .allow_pattern_list_params import AllowPatternListParams as AllowPatternListParams +from .block_sender_get_response import BlockSenderGetResponse as BlockSenderGetResponse +from .allow_pattern_get_response import AllowPatternGetResponse as AllowPatternGetResponse +from .block_sender_create_params import BlockSenderCreateParams as BlockSenderCreateParams +from .block_sender_edit_response import BlockSenderEditResponse as BlockSenderEditResponse +from .block_sender_list_response import BlockSenderListResponse as BlockSenderListResponse +from .trusted_domain_edit_params import TrustedDomainEditParams as TrustedDomainEditParams +from .trusted_domain_list_params import TrustedDomainListParams as TrustedDomainListParams +from .allow_pattern_create_params import AllowPatternCreateParams as AllowPatternCreateParams +from .allow_pattern_edit_response import AllowPatternEditResponse as AllowPatternEditResponse +from .allow_pattern_list_response import AllowPatternListResponse as AllowPatternListResponse +from .trusted_domain_get_response import TrustedDomainGetResponse as TrustedDomainGetResponse +from .block_sender_create_response import BlockSenderCreateResponse as BlockSenderCreateResponse +from .block_sender_delete_response import BlockSenderDeleteResponse as BlockSenderDeleteResponse +from .trusted_domain_create_params import TrustedDomainCreateParams as TrustedDomainCreateParams +from .trusted_domain_edit_response import TrustedDomainEditResponse as TrustedDomainEditResponse +from .trusted_domain_list_response import TrustedDomainListResponse as TrustedDomainListResponse +from .allow_pattern_create_response import AllowPatternCreateResponse as AllowPatternCreateResponse +from .allow_pattern_delete_response import AllowPatternDeleteResponse as AllowPatternDeleteResponse +from .trusted_domain_create_response import TrustedDomainCreateResponse as TrustedDomainCreateResponse +from .trusted_domain_delete_response import TrustedDomainDeleteResponse as TrustedDomainDeleteResponse +from .impersonation_registry_edit_params import ImpersonationRegistryEditParams as ImpersonationRegistryEditParams +from .impersonation_registry_list_params import ImpersonationRegistryListParams as ImpersonationRegistryListParams +from .impersonation_registry_get_response import ImpersonationRegistryGetResponse as ImpersonationRegistryGetResponse +from .impersonation_registry_create_params import ImpersonationRegistryCreateParams as ImpersonationRegistryCreateParams +from .impersonation_registry_edit_response import ImpersonationRegistryEditResponse as ImpersonationRegistryEditResponse +from .impersonation_registry_list_response import ImpersonationRegistryListResponse as ImpersonationRegistryListResponse from .impersonation_registry_create_response import ( ImpersonationRegistryCreateResponse as ImpersonationRegistryCreateResponse, ) -from .impersonation_registry_list_response import ImpersonationRegistryListResponse as ImpersonationRegistryListResponse from .impersonation_registry_delete_response import ( ImpersonationRegistryDeleteResponse as ImpersonationRegistryDeleteResponse, ) -from .impersonation_registry_edit_response import ImpersonationRegistryEditResponse as ImpersonationRegistryEditResponse -from .impersonation_registry_get_response import ImpersonationRegistryGetResponse as ImpersonationRegistryGetResponse -from .impersonation_registry_create_params import ImpersonationRegistryCreateParams as ImpersonationRegistryCreateParams -from .impersonation_registry_list_params import ImpersonationRegistryListParams as ImpersonationRegistryListParams -from .impersonation_registry_edit_params import ImpersonationRegistryEditParams as ImpersonationRegistryEditParams -from .trusted_domain_create_response import TrustedDomainCreateResponse as TrustedDomainCreateResponse -from .trusted_domain_list_response import TrustedDomainListResponse as TrustedDomainListResponse -from .trusted_domain_delete_response import TrustedDomainDeleteResponse as TrustedDomainDeleteResponse -from .trusted_domain_edit_response import TrustedDomainEditResponse as TrustedDomainEditResponse -from .trusted_domain_get_response import TrustedDomainGetResponse as TrustedDomainGetResponse -from .trusted_domain_create_params import TrustedDomainCreateParams as TrustedDomainCreateParams -from .trusted_domain_list_params import TrustedDomainListParams as TrustedDomainListParams -from .trusted_domain_edit_params import TrustedDomainEditParams as TrustedDomainEditParams diff --git a/src/cloudflare/types/email_security/settings/allow_pattern_create_params.py b/src/cloudflare/types/email_security/settings/allow_pattern_create_params.py index 3b0f156d4..1bbe4b4a7 100644 --- a/src/cloudflare/types/email_security/settings/allow_pattern_create_params.py +++ b/src/cloudflare/types/email_security/settings/allow_pattern_create_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias - -from typing import Optional, Iterable - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing import Union, Iterable, Optional +from typing_extensions import Literal, Required, TypeAlias, TypedDict __all__ = ["AllowPatternCreateParams", "EmailSecurityCreateAllowPattern", "Variant1", "Variant1Body"] diff --git a/src/cloudflare/types/email_security/settings/allow_pattern_create_response.py b/src/cloudflare/types/email_security/settings/allow_pattern_create_response.py index 5c7e000a8..620953243 100644 --- a/src/cloudflare/types/email_security/settings/allow_pattern_create_response.py +++ b/src/cloudflare/types/email_security/settings/allow_pattern_create_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional - -from ...._models import BaseModel - +from typing import List, Union, Optional from datetime import datetime - from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["AllowPatternCreateResponse", "EmailSecurityAllowPattern", "UnionMember1"] diff --git a/src/cloudflare/types/email_security/settings/allow_pattern_delete_response.py b/src/cloudflare/types/email_security/settings/allow_pattern_delete_response.py index 0f21d5e06..409b512a8 100644 --- a/src/cloudflare/types/email_security/settings/allow_pattern_delete_response.py +++ b/src/cloudflare/types/email_security/settings/allow_pattern_delete_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["AllowPatternDeleteResponse"] diff --git a/src/cloudflare/types/email_security/settings/allow_pattern_edit_params.py b/src/cloudflare/types/email_security/settings/allow_pattern_edit_params.py index 6d7b06c93..c5072ec16 100644 --- a/src/cloudflare/types/email_security/settings/allow_pattern_edit_params.py +++ b/src/cloudflare/types/email_security/settings/allow_pattern_edit_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Optional - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["AllowPatternEditParams"] diff --git a/src/cloudflare/types/email_security/settings/allow_pattern_edit_response.py b/src/cloudflare/types/email_security/settings/allow_pattern_edit_response.py index fbd69203c..a276e21d8 100644 --- a/src/cloudflare/types/email_security/settings/allow_pattern_edit_response.py +++ b/src/cloudflare/types/email_security/settings/allow_pattern_edit_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from datetime import datetime - -from typing_extensions import Literal - from typing import Optional - -from typing import Optional, Union, List, Dict, Any +from datetime import datetime from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["AllowPatternEditResponse"] diff --git a/src/cloudflare/types/email_security/settings/allow_pattern_get_response.py b/src/cloudflare/types/email_security/settings/allow_pattern_get_response.py index 6c8d96151..e76af1be4 100644 --- a/src/cloudflare/types/email_security/settings/allow_pattern_get_response.py +++ b/src/cloudflare/types/email_security/settings/allow_pattern_get_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from datetime import datetime - -from typing_extensions import Literal - from typing import Optional - -from typing import Optional, Union, List, Dict, Any +from datetime import datetime from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["AllowPatternGetResponse"] diff --git a/src/cloudflare/types/email_security/settings/allow_pattern_list_params.py b/src/cloudflare/types/email_security/settings/allow_pattern_list_params.py index e663790a1..13cea6cb8 100644 --- a/src/cloudflare/types/email_security/settings/allow_pattern_list_params.py +++ b/src/cloudflare/types/email_security/settings/allow_pattern_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["AllowPatternListParams"] diff --git a/src/cloudflare/types/email_security/settings/allow_pattern_list_response.py b/src/cloudflare/types/email_security/settings/allow_pattern_list_response.py index ea27946d3..209780f92 100644 --- a/src/cloudflare/types/email_security/settings/allow_pattern_list_response.py +++ b/src/cloudflare/types/email_security/settings/allow_pattern_list_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from datetime import datetime - -from typing_extensions import Literal - from typing import Optional - -from typing import Optional, Union, List, Dict, Any +from datetime import datetime from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["AllowPatternListResponse"] diff --git a/src/cloudflare/types/email_security/settings/block_sender_create_params.py b/src/cloudflare/types/email_security/settings/block_sender_create_params.py index d5671b144..1408cb067 100644 --- a/src/cloudflare/types/email_security/settings/block_sender_create_params.py +++ b/src/cloudflare/types/email_security/settings/block_sender_create_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias - -from typing import Optional, Iterable - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing import Union, Iterable, Optional +from typing_extensions import Literal, Required, TypeAlias, TypedDict __all__ = ["BlockSenderCreateParams", "EmailSecurityCreateBlockedSender", "Variant1", "Variant1Body"] diff --git a/src/cloudflare/types/email_security/settings/block_sender_create_response.py b/src/cloudflare/types/email_security/settings/block_sender_create_response.py index 579d3e285..b3e80c919 100644 --- a/src/cloudflare/types/email_security/settings/block_sender_create_response.py +++ b/src/cloudflare/types/email_security/settings/block_sender_create_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional - -from ...._models import BaseModel - +from typing import List, Union, Optional from datetime import datetime - from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["BlockSenderCreateResponse", "EmailSecurityBlockedSender", "UnionMember1"] diff --git a/src/cloudflare/types/email_security/settings/block_sender_delete_response.py b/src/cloudflare/types/email_security/settings/block_sender_delete_response.py index 716c15d99..bfdb2571a 100644 --- a/src/cloudflare/types/email_security/settings/block_sender_delete_response.py +++ b/src/cloudflare/types/email_security/settings/block_sender_delete_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["BlockSenderDeleteResponse"] diff --git a/src/cloudflare/types/email_security/settings/block_sender_edit_params.py b/src/cloudflare/types/email_security/settings/block_sender_edit_params.py index 4ef21e468..19f2d2345 100644 --- a/src/cloudflare/types/email_security/settings/block_sender_edit_params.py +++ b/src/cloudflare/types/email_security/settings/block_sender_edit_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Optional - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["BlockSenderEditParams"] diff --git a/src/cloudflare/types/email_security/settings/block_sender_edit_response.py b/src/cloudflare/types/email_security/settings/block_sender_edit_response.py index f50e57768..552529608 100644 --- a/src/cloudflare/types/email_security/settings/block_sender_edit_response.py +++ b/src/cloudflare/types/email_security/settings/block_sender_edit_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from datetime import datetime - -from typing_extensions import Literal - from typing import Optional - -from typing import Optional, Union, List, Dict, Any +from datetime import datetime from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["BlockSenderEditResponse"] diff --git a/src/cloudflare/types/email_security/settings/block_sender_get_response.py b/src/cloudflare/types/email_security/settings/block_sender_get_response.py index 78b628305..5ec8429d4 100644 --- a/src/cloudflare/types/email_security/settings/block_sender_get_response.py +++ b/src/cloudflare/types/email_security/settings/block_sender_get_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from datetime import datetime - -from typing_extensions import Literal - from typing import Optional - -from typing import Optional, Union, List, Dict, Any +from datetime import datetime from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["BlockSenderGetResponse"] diff --git a/src/cloudflare/types/email_security/settings/block_sender_list_params.py b/src/cloudflare/types/email_security/settings/block_sender_list_params.py index b2e6978c6..01139d96d 100644 --- a/src/cloudflare/types/email_security/settings/block_sender_list_params.py +++ b/src/cloudflare/types/email_security/settings/block_sender_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["BlockSenderListParams"] diff --git a/src/cloudflare/types/email_security/settings/block_sender_list_response.py b/src/cloudflare/types/email_security/settings/block_sender_list_response.py index 927296240..3b30e0187 100644 --- a/src/cloudflare/types/email_security/settings/block_sender_list_response.py +++ b/src/cloudflare/types/email_security/settings/block_sender_list_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from datetime import datetime - -from typing_extensions import Literal - from typing import Optional - -from typing import Optional, Union, List, Dict, Any +from datetime import datetime from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["BlockSenderListResponse"] diff --git a/src/cloudflare/types/email_security/settings/domain_delete_response.py b/src/cloudflare/types/email_security/settings/domain_delete_response.py index 27e197026..44a6ab266 100644 --- a/src/cloudflare/types/email_security/settings/domain_delete_response.py +++ b/src/cloudflare/types/email_security/settings/domain_delete_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["DomainDeleteResponse"] diff --git a/src/cloudflare/types/email_security/settings/domain_edit_params.py b/src/cloudflare/types/email_security/settings/domain_edit_params.py index eb3059ec8..fef608261 100644 --- a/src/cloudflare/types/email_security/settings/domain_edit_params.py +++ b/src/cloudflare/types/email_security/settings/domain_edit_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Optional - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["DomainEditParams"] diff --git a/src/cloudflare/types/email_security/settings/domain_edit_response.py b/src/cloudflare/types/email_security/settings/domain_edit_response.py index 5353dedac..1ea68c219 100644 --- a/src/cloudflare/types/email_security/settings/domain_edit_response.py +++ b/src/cloudflare/types/email_security/settings/domain_edit_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List, Optional - -from typing_extensions import Literal - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["DomainEditResponse"] diff --git a/src/cloudflare/types/email_security/settings/domain_list_params.py b/src/cloudflare/types/email_security/settings/domain_list_params.py index f853bddae..f6f46184f 100644 --- a/src/cloudflare/types/email_security/settings/domain_list_params.py +++ b/src/cloudflare/types/email_security/settings/domain_list_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["DomainListParams"] diff --git a/src/cloudflare/types/email_security/settings/domain_list_response.py b/src/cloudflare/types/email_security/settings/domain_list_response.py index b2f51d1a1..a4722c26d 100644 --- a/src/cloudflare/types/email_security/settings/domain_list_response.py +++ b/src/cloudflare/types/email_security/settings/domain_list_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List, Optional - -from typing_extensions import Literal - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["DomainListResponse"] diff --git a/src/cloudflare/types/email_security/settings/impersonation_registry_create_params.py b/src/cloudflare/types/email_security/settings/impersonation_registry_create_params.py index 677ac56ea..6afe1e4ec 100644 --- a/src/cloudflare/types/email_security/settings/impersonation_registry_create_params.py +++ b/src/cloudflare/types/email_security/settings/impersonation_registry_create_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, TypeAlias - -from typing import Iterable - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing import Union, Iterable +from typing_extensions import Required, TypeAlias, TypedDict __all__ = ["ImpersonationRegistryCreateParams", "EmailSecurityCreateDisplayName", "Variant1", "Variant1Body"] diff --git a/src/cloudflare/types/email_security/settings/impersonation_registry_create_response.py b/src/cloudflare/types/email_security/settings/impersonation_registry_create_response.py index 127cb6239..b8e1fa5d8 100644 --- a/src/cloudflare/types/email_security/settings/impersonation_registry_create_response.py +++ b/src/cloudflare/types/email_security/settings/impersonation_registry_create_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional - -from ...._models import BaseModel - +from typing import List, Union, Optional from datetime import datetime - from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ImpersonationRegistryCreateResponse", "EmailSecurityDisplayName", "UnionMember1"] diff --git a/src/cloudflare/types/email_security/settings/impersonation_registry_delete_response.py b/src/cloudflare/types/email_security/settings/impersonation_registry_delete_response.py index b7728e74b..b35f64019 100644 --- a/src/cloudflare/types/email_security/settings/impersonation_registry_delete_response.py +++ b/src/cloudflare/types/email_security/settings/impersonation_registry_delete_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["ImpersonationRegistryDeleteResponse"] diff --git a/src/cloudflare/types/email_security/settings/impersonation_registry_edit_params.py b/src/cloudflare/types/email_security/settings/impersonation_registry_edit_params.py index 73c8dab1c..8dceb0e75 100644 --- a/src/cloudflare/types/email_security/settings/impersonation_registry_edit_params.py +++ b/src/cloudflare/types/email_security/settings/impersonation_registry_edit_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Optional - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ImpersonationRegistryEditParams"] diff --git a/src/cloudflare/types/email_security/settings/impersonation_registry_edit_response.py b/src/cloudflare/types/email_security/settings/impersonation_registry_edit_response.py index d1b50f548..9ba649204 100644 --- a/src/cloudflare/types/email_security/settings/impersonation_registry_edit_response.py +++ b/src/cloudflare/types/email_security/settings/impersonation_registry_edit_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import Optional from datetime import datetime -from typing import Optional - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ImpersonationRegistryEditResponse"] diff --git a/src/cloudflare/types/email_security/settings/impersonation_registry_get_response.py b/src/cloudflare/types/email_security/settings/impersonation_registry_get_response.py index ef8bd7c58..92a6743b4 100644 --- a/src/cloudflare/types/email_security/settings/impersonation_registry_get_response.py +++ b/src/cloudflare/types/email_security/settings/impersonation_registry_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import Optional from datetime import datetime -from typing import Optional - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ImpersonationRegistryGetResponse"] diff --git a/src/cloudflare/types/email_security/settings/impersonation_registry_list_params.py b/src/cloudflare/types/email_security/settings/impersonation_registry_list_params.py index addad1385..ed52d4c20 100644 --- a/src/cloudflare/types/email_security/settings/impersonation_registry_list_params.py +++ b/src/cloudflare/types/email_security/settings/impersonation_registry_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["ImpersonationRegistryListParams"] diff --git a/src/cloudflare/types/email_security/settings/impersonation_registry_list_response.py b/src/cloudflare/types/email_security/settings/impersonation_registry_list_response.py index bcac0a0ff..e28a9c0e1 100644 --- a/src/cloudflare/types/email_security/settings/impersonation_registry_list_response.py +++ b/src/cloudflare/types/email_security/settings/impersonation_registry_list_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import Optional from datetime import datetime -from typing import Optional - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ImpersonationRegistryListResponse"] diff --git a/src/cloudflare/types/email_security/settings/trusted_domain_create_params.py b/src/cloudflare/types/email_security/settings/trusted_domain_create_params.py index 909e46430..2b05202df 100644 --- a/src/cloudflare/types/email_security/settings/trusted_domain_create_params.py +++ b/src/cloudflare/types/email_security/settings/trusted_domain_create_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, TypeAlias - -from typing import Optional, Iterable - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing import Union, Iterable, Optional +from typing_extensions import Required, TypeAlias, TypedDict __all__ = ["TrustedDomainCreateParams", "EmailSecurityCreateTrustedDomain", "Variant1", "Variant1Body"] diff --git a/src/cloudflare/types/email_security/settings/trusted_domain_create_response.py b/src/cloudflare/types/email_security/settings/trusted_domain_create_response.py index ca289954b..e5163ad6f 100644 --- a/src/cloudflare/types/email_security/settings/trusted_domain_create_response.py +++ b/src/cloudflare/types/email_security/settings/trusted_domain_create_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional - -from ...._models import BaseModel - +from typing import List, Union, Optional from datetime import datetime - from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["TrustedDomainCreateResponse", "EmailSecurityTrustedDomain", "UnionMember1"] diff --git a/src/cloudflare/types/email_security/settings/trusted_domain_delete_response.py b/src/cloudflare/types/email_security/settings/trusted_domain_delete_response.py index 7a2b853cc..35c9463fa 100644 --- a/src/cloudflare/types/email_security/settings/trusted_domain_delete_response.py +++ b/src/cloudflare/types/email_security/settings/trusted_domain_delete_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["TrustedDomainDeleteResponse"] diff --git a/src/cloudflare/types/email_security/settings/trusted_domain_edit_params.py b/src/cloudflare/types/email_security/settings/trusted_domain_edit_params.py index bd598e82a..ea811eb60 100644 --- a/src/cloudflare/types/email_security/settings/trusted_domain_edit_params.py +++ b/src/cloudflare/types/email_security/settings/trusted_domain_edit_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Optional - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["TrustedDomainEditParams"] diff --git a/src/cloudflare/types/email_security/settings/trusted_domain_edit_response.py b/src/cloudflare/types/email_security/settings/trusted_domain_edit_response.py index ccf7834b7..bffaf42d7 100644 --- a/src/cloudflare/types/email_security/settings/trusted_domain_edit_response.py +++ b/src/cloudflare/types/email_security/settings/trusted_domain_edit_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import Optional from datetime import datetime -from typing import Optional - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["TrustedDomainEditResponse"] diff --git a/src/cloudflare/types/email_security/settings/trusted_domain_get_response.py b/src/cloudflare/types/email_security/settings/trusted_domain_get_response.py index f2581966b..a10c3bd2e 100644 --- a/src/cloudflare/types/email_security/settings/trusted_domain_get_response.py +++ b/src/cloudflare/types/email_security/settings/trusted_domain_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import Optional from datetime import datetime -from typing import Optional - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["TrustedDomainGetResponse"] diff --git a/src/cloudflare/types/email_security/settings/trusted_domain_list_params.py b/src/cloudflare/types/email_security/settings/trusted_domain_list_params.py index d5bfc9b76..d27d769cc 100644 --- a/src/cloudflare/types/email_security/settings/trusted_domain_list_params.py +++ b/src/cloudflare/types/email_security/settings/trusted_domain_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["TrustedDomainListParams"] diff --git a/src/cloudflare/types/email_security/settings/trusted_domain_list_response.py b/src/cloudflare/types/email_security/settings/trusted_domain_list_response.py index 2940d64d5..480bf33f1 100644 --- a/src/cloudflare/types/email_security/settings/trusted_domain_list_response.py +++ b/src/cloudflare/types/email_security/settings/trusted_domain_list_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import Optional from datetime import datetime -from typing import Optional - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["TrustedDomainListResponse"] diff --git a/src/cloudflare/types/event_notifications/r2/configuration/__init__.py b/src/cloudflare/types/event_notifications/r2/configuration/__init__.py index b25a94d0b..9b08b16f6 100644 --- a/src/cloudflare/types/event_notifications/r2/configuration/__init__.py +++ b/src/cloudflare/types/event_notifications/r2/configuration/__init__.py @@ -2,6 +2,6 @@ from __future__ import annotations -from .queue_update_response import QueueUpdateResponse as QueueUpdateResponse -from .queue_delete_response import QueueDeleteResponse as QueueDeleteResponse from .queue_update_params import QueueUpdateParams as QueueUpdateParams +from .queue_delete_response import QueueDeleteResponse as QueueDeleteResponse +from .queue_update_response import QueueUpdateResponse as QueueUpdateResponse diff --git a/src/cloudflare/types/event_notifications/r2/configuration/queue_delete_response.py b/src/cloudflare/types/event_notifications/r2/configuration/queue_delete_response.py index f9f0b5cae..a7f370713 100644 --- a/src/cloudflare/types/event_notifications/r2/configuration/queue_delete_response.py +++ b/src/cloudflare/types/event_notifications/r2/configuration/queue_delete_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List - +from typing import List, Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["QueueDeleteResponse"] QueueDeleteResponse: TypeAlias = Union[List[object], str, object] diff --git a/src/cloudflare/types/event_notifications/r2/configuration/queue_update_params.py b/src/cloudflare/types/event_notifications/r2/configuration/queue_update_params.py index 42813f1f0..08718f376 100644 --- a/src/cloudflare/types/event_notifications/r2/configuration/queue_update_params.py +++ b/src/cloudflare/types/event_notifications/r2/configuration/queue_update_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import Iterable, List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from typing import List, Iterable +from typing_extensions import Literal, Required, TypedDict __all__ = ["QueueUpdateParams", "Rule"] diff --git a/src/cloudflare/types/event_notifications/r2/configuration/queue_update_response.py b/src/cloudflare/types/event_notifications/r2/configuration/queue_update_response.py index 81ac7df55..2d2f608f9 100644 --- a/src/cloudflare/types/event_notifications/r2/configuration/queue_update_response.py +++ b/src/cloudflare/types/event_notifications/r2/configuration/queue_update_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["QueueUpdateResponse"] diff --git a/src/cloudflare/types/event_notifications/r2/configuration_get_response.py b/src/cloudflare/types/event_notifications/r2/configuration_get_response.py index 8cb9d34a6..37ee7d5b7 100644 --- a/src/cloudflare/types/event_notifications/r2/configuration_get_response.py +++ b/src/cloudflare/types/event_notifications/r2/configuration_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import List, Optional, Dict - +from typing import Dict, List, Optional from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = [ "ConfigurationGetResponse", diff --git a/src/cloudflare/types/filters/__init__.py b/src/cloudflare/types/filters/__init__.py index ac62197b6..84b9f9111 100644 --- a/src/cloudflare/types/filters/__init__.py +++ b/src/cloudflare/types/filters/__init__.py @@ -3,8 +3,8 @@ from __future__ import annotations from .firewall_filter import FirewallFilter as FirewallFilter -from .firewall_filter_param import FirewallFilterParam as FirewallFilterParam -from .filter_create_response import FilterCreateResponse as FilterCreateResponse +from .filter_list_params import FilterListParams as FilterListParams from .filter_create_params import FilterCreateParams as FilterCreateParams from .filter_update_params import FilterUpdateParams as FilterUpdateParams -from .filter_list_params import FilterListParams as FilterListParams +from .firewall_filter_param import FirewallFilterParam as FirewallFilterParam +from .filter_create_response import FilterCreateResponse as FilterCreateResponse diff --git a/src/cloudflare/types/filters/filter_create_params.py b/src/cloudflare/types/filters/filter_create_params.py index 6a6237524..c2ff8a399 100644 --- a/src/cloudflare/types/filters/filter_create_params.py +++ b/src/cloudflare/types/filters/filter_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["FilterCreateParams"] diff --git a/src/cloudflare/types/filters/filter_create_response.py b/src/cloudflare/types/filters/filter_create_response.py index aaf3d55c3..1c979aae8 100644 --- a/src/cloudflare/types/filters/filter_create_response.py +++ b/src/cloudflare/types/filters/filter_create_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .firewall_filter import FirewallFilter - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .firewall_filter import FirewallFilter __all__ = ["FilterCreateResponse"] diff --git a/src/cloudflare/types/filters/filter_list_params.py b/src/cloudflare/types/filters/filter_list_params.py index 38249b593..0b4f189cd 100644 --- a/src/cloudflare/types/filters/filter_list_params.py +++ b/src/cloudflare/types/filters/filter_list_params.py @@ -4,11 +4,6 @@ from __future__ import annotations from typing_extensions import TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["FilterListParams"] diff --git a/src/cloudflare/types/filters/filter_update_params.py b/src/cloudflare/types/filters/filter_update_params.py index 936a30edb..2e72680cc 100644 --- a/src/cloudflare/types/filters/filter_update_params.py +++ b/src/cloudflare/types/filters/filter_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["FilterUpdateParams"] diff --git a/src/cloudflare/types/filters/firewall_filter.py b/src/cloudflare/types/filters/firewall_filter.py index 3183759e7..03fdc13a2 100644 --- a/src/cloudflare/types/filters/firewall_filter.py +++ b/src/cloudflare/types/filters/firewall_filter.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["FirewallFilter"] diff --git a/src/cloudflare/types/firewall/__init__.py b/src/cloudflare/types/firewall/__init__.py index 7fdb368c4..0a4074081 100644 --- a/src/cloudflare/types/firewall/__init__.py +++ b/src/cloudflare/types/firewall/__init__.py @@ -2,44 +2,44 @@ from __future__ import annotations -from .configuration import Configuration as Configuration -from .configuration_param import ConfigurationParam as ConfigurationParam -from .lockdown import Lockdown as Lockdown -from .lockdown_cidr_configuration import LockdownCIDRConfiguration as LockdownCIDRConfiguration -from .lockdown_cidr_configuration_param import LockdownCIDRConfigurationParam as LockdownCIDRConfigurationParam -from .lockdown_ip_configuration import LockdownIPConfiguration as LockdownIPConfiguration -from .lockdown_ip_configuration_param import LockdownIPConfigurationParam as LockdownIPConfigurationParam -from .lockdown_url import LockdownURL as LockdownURL -from .lockdown_delete_response import LockdownDeleteResponse as LockdownDeleteResponse -from .lockdown_create_params import LockdownCreateParams as LockdownCreateParams -from .lockdown_update_params import LockdownUpdateParams as LockdownUpdateParams -from .lockdown_list_params import LockdownListParams as LockdownListParams -from .firewall_rule import FirewallRule as FirewallRule from .product import Product as Product +from .lockdown import Lockdown as Lockdown +from .lockdown_url import LockdownURL as LockdownURL +from .configuration import Configuration as Configuration +from .firewall_rule import FirewallRule as FirewallRule from .deleted_filter import DeletedFilter as DeletedFilter -from .rule_create_response import RuleCreateResponse as RuleCreateResponse -from .rule_edit_response import RuleEditResponse as RuleEditResponse -from .rule_create_params import RuleCreateParams as RuleCreateParams -from .rule_update_params import RuleUpdateParams as RuleUpdateParams -from .rule_list_params import RuleListParams as RuleListParams from .rule_get_params import RuleGetParams as RuleGetParams -from .access_rule_cidr_configuration_param import AccessRuleCIDRConfigurationParam as AccessRuleCIDRConfigurationParam -from .access_rule_ip_configuration_param import AccessRuleIPConfigurationParam as AccessRuleIPConfigurationParam -from .asn_configuration_param import ASNConfigurationParam as ASNConfigurationParam -from .country_configuration_param import CountryConfigurationParam as CountryConfigurationParam -from .ipv6_configuration_param import IPV6ConfigurationParam as IPV6ConfigurationParam -from .access_rule_create_response import AccessRuleCreateResponse as AccessRuleCreateResponse -from .access_rule_delete_response import AccessRuleDeleteResponse as AccessRuleDeleteResponse -from .access_rule_edit_response import AccessRuleEditResponse as AccessRuleEditResponse -from .access_rule_get_response import AccessRuleGetResponse as AccessRuleGetResponse -from .access_rule_create_params import AccessRuleCreateParams as AccessRuleCreateParams -from .access_rule_list_params import AccessRuleListParams as AccessRuleListParams -from .access_rule_edit_params import AccessRuleEditParams as AccessRuleEditParams -from .ua_rule_create_response import UARuleCreateResponse as UARuleCreateResponse -from .ua_rule_update_response import UARuleUpdateResponse as UARuleUpdateResponse -from .ua_rule_list_response import UARuleListResponse as UARuleListResponse -from .ua_rule_delete_response import UARuleDeleteResponse as UARuleDeleteResponse +from .rule_list_params import RuleListParams as RuleListParams +from .rule_create_params import RuleCreateParams as RuleCreateParams +from .rule_edit_response import RuleEditResponse as RuleEditResponse +from .rule_update_params import RuleUpdateParams as RuleUpdateParams +from .configuration_param import ConfigurationParam as ConfigurationParam +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_list_response import UARuleListResponse as UARuleListResponse from .ua_rule_update_params import UARuleUpdateParams as UARuleUpdateParams -from .ua_rule_list_params import UARuleListParams as UARuleListParams +from .lockdown_create_params import LockdownCreateParams as LockdownCreateParams +from .lockdown_update_params import LockdownUpdateParams as LockdownUpdateParams +from .access_rule_edit_params import AccessRuleEditParams as AccessRuleEditParams +from .access_rule_list_params import AccessRuleListParams as AccessRuleListParams +from .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_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 +from .lockdown_ip_configuration_param import LockdownIPConfigurationParam as LockdownIPConfigurationParam +from .lockdown_cidr_configuration_param import LockdownCIDRConfigurationParam as LockdownCIDRConfigurationParam +from .access_rule_ip_configuration_param import AccessRuleIPConfigurationParam as AccessRuleIPConfigurationParam +from .access_rule_cidr_configuration_param import AccessRuleCIDRConfigurationParam as AccessRuleCIDRConfigurationParam diff --git a/src/cloudflare/types/firewall/access_rule_create_params.py b/src/cloudflare/types/firewall/access_rule_create_params.py index 78cbfb87a..be9c66809 100644 --- a/src/cloudflare/types/firewall/access_rule_create_params.py +++ b/src/cloudflare/types/firewall/access_rule_create_params.py @@ -2,24 +2,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias - -from .access_rule_ip_configuration_param import AccessRuleIPConfigurationParam - -from .ipv6_configuration_param import IPV6ConfigurationParam - -from .access_rule_cidr_configuration_param import AccessRuleCIDRConfigurationParam +from typing import Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict from .asn_configuration_param import ASNConfigurationParam - +from .ipv6_configuration_param import IPV6ConfigurationParam from .country_configuration_param import CountryConfigurationParam - -from typing import Union - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .access_rule_ip_configuration_param import AccessRuleIPConfigurationParam +from .access_rule_cidr_configuration_param import AccessRuleCIDRConfigurationParam __all__ = ["AccessRuleCreateParams", "Configuration"] diff --git a/src/cloudflare/types/firewall/access_rule_create_response.py b/src/cloudflare/types/firewall/access_rule_create_response.py index 6149a4622..a22df9118 100644 --- a/src/cloudflare/types/firewall/access_rule_create_response.py +++ b/src/cloudflare/types/firewall/access_rule_create_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - +from typing import Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AccessRuleCreateResponse"] AccessRuleCreateResponse: TypeAlias = Union[Optional[str], object] diff --git a/src/cloudflare/types/firewall/access_rule_delete_response.py b/src/cloudflare/types/firewall/access_rule_delete_response.py index f81475b16..2dc451a14 100644 --- a/src/cloudflare/types/firewall/access_rule_delete_response.py +++ b/src/cloudflare/types/firewall/access_rule_delete_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["AccessRuleDeleteResponse"] diff --git a/src/cloudflare/types/firewall/access_rule_edit_params.py b/src/cloudflare/types/firewall/access_rule_edit_params.py index 5b598335c..0b00f8534 100644 --- a/src/cloudflare/types/firewall/access_rule_edit_params.py +++ b/src/cloudflare/types/firewall/access_rule_edit_params.py @@ -2,24 +2,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias - -from .access_rule_ip_configuration_param import AccessRuleIPConfigurationParam - -from .ipv6_configuration_param import IPV6ConfigurationParam - -from .access_rule_cidr_configuration_param import AccessRuleCIDRConfigurationParam +from typing import Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict from .asn_configuration_param import ASNConfigurationParam - +from .ipv6_configuration_param import IPV6ConfigurationParam from .country_configuration_param import CountryConfigurationParam - -from typing import Union - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .access_rule_ip_configuration_param import AccessRuleIPConfigurationParam +from .access_rule_cidr_configuration_param import AccessRuleCIDRConfigurationParam __all__ = ["AccessRuleEditParams", "Configuration"] diff --git a/src/cloudflare/types/firewall/access_rule_edit_response.py b/src/cloudflare/types/firewall/access_rule_edit_response.py index 35f2123ed..94d60856d 100644 --- a/src/cloudflare/types/firewall/access_rule_edit_response.py +++ b/src/cloudflare/types/firewall/access_rule_edit_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - +from typing import Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AccessRuleEditResponse"] AccessRuleEditResponse: TypeAlias = Union[Optional[str], object] diff --git a/src/cloudflare/types/firewall/access_rule_get_response.py b/src/cloudflare/types/firewall/access_rule_get_response.py index 84e1dffa4..60bb66386 100644 --- a/src/cloudflare/types/firewall/access_rule_get_response.py +++ b/src/cloudflare/types/firewall/access_rule_get_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - +from typing import Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AccessRuleGetResponse"] AccessRuleGetResponse: TypeAlias = Union[Optional[str], object] diff --git a/src/cloudflare/types/firewall/access_rule_list_params.py b/src/cloudflare/types/firewall/access_rule_list_params.py index 216416ad8..d0dc6d9fe 100644 --- a/src/cloudflare/types/firewall/access_rule_list_params.py +++ b/src/cloudflare/types/firewall/access_rule_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, TypedDict __all__ = ["AccessRuleListParams", "Configuration"] diff --git a/src/cloudflare/types/firewall/configuration.py b/src/cloudflare/types/firewall/configuration.py index 1d6cc496e..0587a384e 100644 --- a/src/cloudflare/types/firewall/configuration.py +++ b/src/cloudflare/types/firewall/configuration.py @@ -1,14 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .lockdown_ip_configuration import LockdownIPConfiguration - -from .lockdown_cidr_configuration import LockdownCIDRConfiguration - +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .lockdown_ip_configuration import LockdownIPConfiguration +from .lockdown_cidr_configuration import LockdownCIDRConfiguration __all__ = ["Configuration"] diff --git a/src/cloudflare/types/firewall/configuration_param.py b/src/cloudflare/types/firewall/configuration_param.py index 4759d2782..d8fa974f2 100644 --- a/src/cloudflare/types/firewall/configuration_param.py +++ b/src/cloudflare/types/firewall/configuration_param.py @@ -2,13 +2,11 @@ from __future__ import annotations -from .lockdown_ip_configuration_param import LockdownIPConfigurationParam - -from .lockdown_cidr_configuration_param import LockdownCIDRConfigurationParam - +from typing import Union from typing_extensions import TypeAlias -from typing import Union +from .lockdown_ip_configuration_param import LockdownIPConfigurationParam +from .lockdown_cidr_configuration_param import LockdownCIDRConfigurationParam __all__ = ["ConfigurationParam"] diff --git a/src/cloudflare/types/firewall/deleted_filter.py b/src/cloudflare/types/firewall/deleted_filter.py index e4f0b8369..8eb4d27b9 100644 --- a/src/cloudflare/types/firewall/deleted_filter.py +++ b/src/cloudflare/types/firewall/deleted_filter.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["DeletedFilter"] diff --git a/src/cloudflare/types/firewall/firewall_rule.py b/src/cloudflare/types/firewall/firewall_rule.py index 0f6f1e8c8..1cf88c79a 100644 --- a/src/cloudflare/types/firewall/firewall_rule.py +++ b/src/cloudflare/types/firewall/firewall_rule.py @@ -1,22 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..filters.firewall_filter import FirewallFilter - -from .deleted_filter import DeletedFilter - +from typing import List, Union, Optional from typing_extensions import TypeAlias -from ..._models import BaseModel - -from typing import Optional, List - -from ..rate_limits.action import Action - from .product import Product - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .deleted_filter import DeletedFilter +from ..rate_limits.action import Action +from ..filters.firewall_filter import FirewallFilter __all__ = ["FirewallRule", "Filter"] diff --git a/src/cloudflare/types/firewall/lockdown.py b/src/cloudflare/types/firewall/lockdown.py index 0bbe3c196..7a1ea7038 100644 --- a/src/cloudflare/types/firewall/lockdown.py +++ b/src/cloudflare/types/firewall/lockdown.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from .configuration import Configuration - +from typing import List from datetime import datetime -from typing import List - +from ..._models import BaseModel from .lockdown_url import LockdownURL - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .configuration import Configuration __all__ = ["Lockdown"] diff --git a/src/cloudflare/types/firewall/lockdown_cidr_configuration.py b/src/cloudflare/types/firewall/lockdown_cidr_configuration.py index 3ff6914c7..038031961 100644 --- a/src/cloudflare/types/firewall/lockdown_cidr_configuration.py +++ b/src/cloudflare/types/firewall/lockdown_cidr_configuration.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["LockdownCIDRConfiguration"] diff --git a/src/cloudflare/types/firewall/lockdown_create_params.py b/src/cloudflare/types/firewall/lockdown_create_params.py index 3f8515084..9a44e5c43 100644 --- a/src/cloudflare/types/firewall/lockdown_create_params.py +++ b/src/cloudflare/types/firewall/lockdown_create_params.py @@ -2,18 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from .configuration_param import ConfigurationParam - from typing import List +from typing_extensions import Required, TypedDict from .waf.override_url import OverrideURL - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .configuration_param import ConfigurationParam __all__ = ["LockdownCreateParams"] diff --git a/src/cloudflare/types/firewall/lockdown_delete_response.py b/src/cloudflare/types/firewall/lockdown_delete_response.py index 3499a24e5..6938edb16 100644 --- a/src/cloudflare/types/firewall/lockdown_delete_response.py +++ b/src/cloudflare/types/firewall/lockdown_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["LockdownDeleteResponse"] diff --git a/src/cloudflare/types/firewall/lockdown_ip_configuration.py b/src/cloudflare/types/firewall/lockdown_ip_configuration.py index b124fc845..5961692c8 100644 --- a/src/cloudflare/types/firewall/lockdown_ip_configuration.py +++ b/src/cloudflare/types/firewall/lockdown_ip_configuration.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["LockdownIPConfiguration"] diff --git a/src/cloudflare/types/firewall/lockdown_list_params.py b/src/cloudflare/types/firewall/lockdown_list_params.py index faf9fa0dd..bf2c8abb5 100644 --- a/src/cloudflare/types/firewall/lockdown_list_params.py +++ b/src/cloudflare/types/firewall/lockdown_list_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated - from typing import Union - from datetime import datetime +from typing_extensions import Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["LockdownListParams"] diff --git a/src/cloudflare/types/firewall/lockdown_update_params.py b/src/cloudflare/types/firewall/lockdown_update_params.py index 83a986959..9c384232d 100644 --- a/src/cloudflare/types/firewall/lockdown_update_params.py +++ b/src/cloudflare/types/firewall/lockdown_update_params.py @@ -2,18 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from .configuration_param import ConfigurationParam - from typing import List +from typing_extensions import Required, TypedDict from .waf.override_url import OverrideURL - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .configuration_param import ConfigurationParam __all__ = ["LockdownUpdateParams"] diff --git a/src/cloudflare/types/firewall/lockdown_url.py b/src/cloudflare/types/firewall/lockdown_url.py index 81ce419fd..a5e4133f9 100644 --- a/src/cloudflare/types/firewall/lockdown_url.py +++ b/src/cloudflare/types/firewall/lockdown_url.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["LockdownURL"] LockdownURL: TypeAlias = str diff --git a/src/cloudflare/types/firewall/product.py b/src/cloudflare/types/firewall/product.py index df3f2caf1..27cb6c6be 100644 --- a/src/cloudflare/types/firewall/product.py +++ b/src/cloudflare/types/firewall/product.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Product"] Product: TypeAlias = Literal["zoneLockdown", "uaBlock", "bic", "hot", "securityLevel", "rateLimit", "waf"] diff --git a/src/cloudflare/types/firewall/rule_create_params.py b/src/cloudflare/types/firewall/rule_create_params.py index 2b71f1807..f7cd8fb7f 100644 --- a/src/cloudflare/types/firewall/rule_create_params.py +++ b/src/cloudflare/types/firewall/rule_create_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal +from typing_extensions import Literal, Required, TypedDict from ..filters.firewall_filter_param import FirewallFilterParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["RuleCreateParams", "Action", "ActionResponse"] diff --git a/src/cloudflare/types/firewall/rule_create_response.py b/src/cloudflare/types/firewall/rule_create_response.py index 08e3ec80e..78ca0455e 100644 --- a/src/cloudflare/types/firewall/rule_create_response.py +++ b/src/cloudflare/types/firewall/rule_create_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .firewall_rule import FirewallRule - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .firewall_rule import FirewallRule __all__ = ["RuleCreateResponse"] diff --git a/src/cloudflare/types/firewall/rule_edit_response.py b/src/cloudflare/types/firewall/rule_edit_response.py index 77cd3ce3f..078cb92e0 100644 --- a/src/cloudflare/types/firewall/rule_edit_response.py +++ b/src/cloudflare/types/firewall/rule_edit_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .firewall_rule import FirewallRule - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .firewall_rule import FirewallRule __all__ = ["RuleEditResponse"] diff --git a/src/cloudflare/types/firewall/rule_get_params.py b/src/cloudflare/types/firewall/rule_get_params.py index 57bf6a4ca..79bd6c287 100644 --- a/src/cloudflare/types/firewall/rule_get_params.py +++ b/src/cloudflare/types/firewall/rule_get_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Required +from typing_extensions import Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["RuleGetParams"] diff --git a/src/cloudflare/types/firewall/rule_list_params.py b/src/cloudflare/types/firewall/rule_list_params.py index cae88f9c5..d46c0f938 100644 --- a/src/cloudflare/types/firewall/rule_list_params.py +++ b/src/cloudflare/types/firewall/rule_list_params.py @@ -4,11 +4,6 @@ from __future__ import annotations from typing_extensions import TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["RuleListParams"] diff --git a/src/cloudflare/types/firewall/rule_update_params.py b/src/cloudflare/types/firewall/rule_update_params.py index 6604e6303..5b22d0c0c 100644 --- a/src/cloudflare/types/firewall/rule_update_params.py +++ b/src/cloudflare/types/firewall/rule_update_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal +from typing_extensions import Literal, Required, TypedDict from ..filters.firewall_filter_param import FirewallFilterParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["RuleUpdateParams", "Action", "ActionResponse"] diff --git a/src/cloudflare/types/firewall/ua_rule_create_params.py b/src/cloudflare/types/firewall/ua_rule_create_params.py index 0f452d4c8..543b4eefd 100644 --- a/src/cloudflare/types/firewall/ua_rule_create_params.py +++ b/src/cloudflare/types/firewall/ua_rule_create_params.py @@ -2,24 +2,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias - -from .access_rule_ip_configuration_param import AccessRuleIPConfigurationParam - -from .ipv6_configuration_param import IPV6ConfigurationParam - -from .access_rule_cidr_configuration_param import AccessRuleCIDRConfigurationParam +from typing import Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict from .asn_configuration_param import ASNConfigurationParam - +from .ipv6_configuration_param import IPV6ConfigurationParam from .country_configuration_param import CountryConfigurationParam - -from typing import Union - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .access_rule_ip_configuration_param import AccessRuleIPConfigurationParam +from .access_rule_cidr_configuration_param import AccessRuleCIDRConfigurationParam __all__ = ["UARuleCreateParams", "Configuration"] diff --git a/src/cloudflare/types/firewall/ua_rule_create_response.py b/src/cloudflare/types/firewall/ua_rule_create_response.py index 0fb76d5d8..fdeab8ca5 100644 --- a/src/cloudflare/types/firewall/ua_rule_create_response.py +++ b/src/cloudflare/types/firewall/ua_rule_create_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - +from typing import Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["UARuleCreateResponse"] UARuleCreateResponse: TypeAlias = Union[Optional[str], object] diff --git a/src/cloudflare/types/firewall/ua_rule_delete_response.py b/src/cloudflare/types/firewall/ua_rule_delete_response.py index a739db19d..0d7cbd7d6 100644 --- a/src/cloudflare/types/firewall/ua_rule_delete_response.py +++ b/src/cloudflare/types/firewall/ua_rule_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["UARuleDeleteResponse"] diff --git a/src/cloudflare/types/firewall/ua_rule_get_response.py b/src/cloudflare/types/firewall/ua_rule_get_response.py index c6661121e..ce8cbcbc2 100644 --- a/src/cloudflare/types/firewall/ua_rule_get_response.py +++ b/src/cloudflare/types/firewall/ua_rule_get_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - +from typing import Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["UARuleGetResponse"] UARuleGetResponse: TypeAlias = Union[Optional[str], object] diff --git a/src/cloudflare/types/firewall/ua_rule_list_params.py b/src/cloudflare/types/firewall/ua_rule_list_params.py index 81554ee71..c26cde362 100644 --- a/src/cloudflare/types/firewall/ua_rule_list_params.py +++ b/src/cloudflare/types/firewall/ua_rule_list_params.py @@ -4,11 +4,6 @@ from __future__ import annotations from typing_extensions import TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["UARuleListParams"] diff --git a/src/cloudflare/types/firewall/ua_rule_list_response.py b/src/cloudflare/types/firewall/ua_rule_list_response.py index 7e2bee50d..d3426a93f 100644 --- a/src/cloudflare/types/firewall/ua_rule_list_response.py +++ b/src/cloudflare/types/firewall/ua_rule_list_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["UARuleListResponse", "Configuration"] diff --git a/src/cloudflare/types/firewall/ua_rule_update_params.py b/src/cloudflare/types/firewall/ua_rule_update_params.py index de392d1de..8bf70efce 100644 --- a/src/cloudflare/types/firewall/ua_rule_update_params.py +++ b/src/cloudflare/types/firewall/ua_rule_update_params.py @@ -2,24 +2,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias - -from .access_rule_ip_configuration_param import AccessRuleIPConfigurationParam - -from .ipv6_configuration_param import IPV6ConfigurationParam - -from .access_rule_cidr_configuration_param import AccessRuleCIDRConfigurationParam +from typing import Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict from .asn_configuration_param import ASNConfigurationParam - +from .ipv6_configuration_param import IPV6ConfigurationParam from .country_configuration_param import CountryConfigurationParam - -from typing import Union - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .access_rule_ip_configuration_param import AccessRuleIPConfigurationParam +from .access_rule_cidr_configuration_param import AccessRuleCIDRConfigurationParam __all__ = ["UARuleUpdateParams", "Configuration"] diff --git a/src/cloudflare/types/firewall/ua_rule_update_response.py b/src/cloudflare/types/firewall/ua_rule_update_response.py index 95e7e7222..812b6ecb1 100644 --- a/src/cloudflare/types/firewall/ua_rule_update_response.py +++ b/src/cloudflare/types/firewall/ua_rule_update_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - +from typing import Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["UARuleUpdateResponse"] UARuleUpdateResponse: TypeAlias = Union[Optional[str], object] diff --git a/src/cloudflare/types/firewall/waf/__init__.py b/src/cloudflare/types/firewall/waf/__init__.py index 47de93123..c9316e3f3 100644 --- a/src/cloudflare/types/firewall/waf/__init__.py +++ b/src/cloudflare/types/firewall/waf/__init__.py @@ -3,15 +3,15 @@ from __future__ import annotations from .override import Override as Override +from .waf_rule import WAFRule as WAFRule from .override_url import OverrideURL as OverrideURL from .rewrite_action import RewriteAction as RewriteAction -from .rewrite_action_param import RewriteActionParam as RewriteActionParam -from .waf_rule import WAFRule as WAFRule from .waf_rule_param import WAFRuleParam as WAFRuleParam -from .override_delete_response import OverrideDeleteResponse as OverrideDeleteResponse +from .package_list_params import PackageListParams as PackageListParams +from .override_list_params import OverrideListParams as OverrideListParams +from .package_get_response import PackageGetResponse as PackageGetResponse +from .rewrite_action_param import RewriteActionParam as RewriteActionParam +from .package_list_response import PackageListResponse as PackageListResponse from .override_create_params import OverrideCreateParams as OverrideCreateParams from .override_update_params import OverrideUpdateParams as OverrideUpdateParams -from .override_list_params import OverrideListParams as OverrideListParams -from .package_list_response import PackageListResponse as PackageListResponse -from .package_get_response import PackageGetResponse as PackageGetResponse -from .package_list_params import PackageListParams as PackageListParams +from .override_delete_response import OverrideDeleteResponse as OverrideDeleteResponse diff --git a/src/cloudflare/types/firewall/waf/override.py b/src/cloudflare/types/firewall/waf/override.py index 965fc76be..a758b89d1 100644 --- a/src/cloudflare/types/firewall/waf/override.py +++ b/src/cloudflare/types/firewall/waf/override.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, Dict, List - -from .rewrite_action import RewriteAction +from typing import Dict, List, Optional from .waf_rule import WAFRule - +from ...._models import BaseModel from .override_url import OverrideURL - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .rewrite_action import RewriteAction __all__ = ["Override"] diff --git a/src/cloudflare/types/firewall/waf/override_create_params.py b/src/cloudflare/types/firewall/waf/override_create_params.py index 1e188dee8..855910cbb 100644 --- a/src/cloudflare/types/firewall/waf/override_create_params.py +++ b/src/cloudflare/types/firewall/waf/override_create_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import List +from typing_extensions import Required, TypedDict from .override_url import OverrideURL -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["OverrideCreateParams"] diff --git a/src/cloudflare/types/firewall/waf/override_delete_response.py b/src/cloudflare/types/firewall/waf/override_delete_response.py index 8fc166ce6..2c2830fff 100644 --- a/src/cloudflare/types/firewall/waf/override_delete_response.py +++ b/src/cloudflare/types/firewall/waf/override_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["OverrideDeleteResponse"] diff --git a/src/cloudflare/types/firewall/waf/override_list_params.py b/src/cloudflare/types/firewall/waf/override_list_params.py index 586dedd45..bcee44301 100644 --- a/src/cloudflare/types/firewall/waf/override_list_params.py +++ b/src/cloudflare/types/firewall/waf/override_list_params.py @@ -4,11 +4,6 @@ from __future__ import annotations from typing_extensions import TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["OverrideListParams"] diff --git a/src/cloudflare/types/firewall/waf/override_update_params.py b/src/cloudflare/types/firewall/waf/override_update_params.py index d372988a4..2d7edaadd 100644 --- a/src/cloudflare/types/firewall/waf/override_update_params.py +++ b/src/cloudflare/types/firewall/waf/override_update_params.py @@ -2,22 +2,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Required - -from ...._utils import PropertyInfo - -from .rewrite_action_param import RewriteActionParam - -from .waf_rule_param import WAFRuleParam - from typing import List +from typing_extensions import Required, Annotated, TypedDict -from .override_url import OverrideURL - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo +from .override_url import OverrideURL +from .waf_rule_param import WAFRuleParam +from .rewrite_action_param import RewriteActionParam __all__ = ["OverrideUpdateParams"] diff --git a/src/cloudflare/types/firewall/waf/override_url.py b/src/cloudflare/types/firewall/waf/override_url.py index 828b680f1..b4d8606a3 100644 --- a/src/cloudflare/types/firewall/waf/override_url.py +++ b/src/cloudflare/types/firewall/waf/override_url.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["OverrideURL"] OverrideURL: TypeAlias = str diff --git a/src/cloudflare/types/firewall/waf/package_get_response.py b/src/cloudflare/types/firewall/waf/package_get_response.py index 1265bef7e..218464c9d 100644 --- a/src/cloudflare/types/firewall/waf/package_get_response.py +++ b/src/cloudflare/types/firewall/waf/package_get_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List, Union, Optional - -from ...shared.response_info import ResponseInfo - from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel +from ...shared.response_info import ResponseInfo __all__ = ["PackageGetResponse", "FirewallAPIResponseSingle", "Result"] diff --git a/src/cloudflare/types/firewall/waf/package_list_params.py b/src/cloudflare/types/firewall/waf/package_list_params.py index 3e4f3e95e..63d46fc6f 100644 --- a/src/cloudflare/types/firewall/waf/package_list_params.py +++ b/src/cloudflare/types/firewall/waf/package_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, TypedDict __all__ = ["PackageListParams"] diff --git a/src/cloudflare/types/firewall/waf/package_list_response.py b/src/cloudflare/types/firewall/waf/package_list_response.py index 4edf5ecef..6992a1a8c 100644 --- a/src/cloudflare/types/firewall/waf/package_list_response.py +++ b/src/cloudflare/types/firewall/waf/package_list_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List, Union - -from ...shared.response_info import ResponseInfo - +from typing import List, Union, Optional from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel +from ...shared.response_info import ResponseInfo __all__ = [ "PackageListResponse", diff --git a/src/cloudflare/types/firewall/waf/packages/__init__.py b/src/cloudflare/types/firewall/waf/packages/__init__.py index 5b8e37dd1..27d9c5780 100644 --- a/src/cloudflare/types/firewall/waf/packages/__init__.py +++ b/src/cloudflare/types/firewall/waf/packages/__init__.py @@ -3,14 +3,14 @@ from __future__ import annotations from .group import Group as Group -from .group_edit_response import GroupEditResponse as GroupEditResponse -from .group_get_response import GroupGetResponse as GroupGetResponse -from .group_list_params import GroupListParams as GroupListParams -from .group_edit_params import GroupEditParams as GroupEditParams -from .allowed_modes_anomaly import AllowedModesAnomaly as AllowedModesAnomaly from .waf_rule_group import WAFRuleGroup as WAFRuleGroup -from .rule_list_response import RuleListResponse as RuleListResponse -from .rule_edit_response import RuleEditResponse as RuleEditResponse -from .rule_get_response import RuleGetResponse as RuleGetResponse -from .rule_list_params import RuleListParams as RuleListParams from .rule_edit_params import RuleEditParams as RuleEditParams +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 diff --git a/src/cloudflare/types/firewall/waf/packages/allowed_modes_anomaly.py b/src/cloudflare/types/firewall/waf/packages/allowed_modes_anomaly.py index 3ea28788c..2aff3bf74 100644 --- a/src/cloudflare/types/firewall/waf/packages/allowed_modes_anomaly.py +++ b/src/cloudflare/types/firewall/waf/packages/allowed_modes_anomaly.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AllowedModesAnomaly"] AllowedModesAnomaly: TypeAlias = Literal["on", "off"] diff --git a/src/cloudflare/types/firewall/waf/packages/group.py b/src/cloudflare/types/firewall/waf/packages/group.py index 6ca9dd55a..56484bdd5 100644 --- a/src/cloudflare/types/firewall/waf/packages/group.py +++ b/src/cloudflare/types/firewall/waf/packages/group.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ....._models import BaseModel -from typing import Optional, List - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Group"] diff --git a/src/cloudflare/types/firewall/waf/packages/group_edit_params.py b/src/cloudflare/types/firewall/waf/packages/group_edit_params.py index 17b01343f..3fa775bcb 100644 --- a/src/cloudflare/types/firewall/waf/packages/group_edit_params.py +++ b/src/cloudflare/types/firewall/waf/packages/group_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["GroupEditParams"] diff --git a/src/cloudflare/types/firewall/waf/packages/group_edit_response.py b/src/cloudflare/types/firewall/waf/packages/group_edit_response.py index 225e2a672..4848a5e17 100644 --- a/src/cloudflare/types/firewall/waf/packages/group_edit_response.py +++ b/src/cloudflare/types/firewall/waf/packages/group_edit_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - +from typing import Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["GroupEditResponse"] GroupEditResponse: TypeAlias = Union[Optional[str], 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 index 5d2987700..ee2add008 100644 --- a/src/cloudflare/types/firewall/waf/packages/group_get_response.py +++ b/src/cloudflare/types/firewall/waf/packages/group_get_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - +from typing import Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["GroupGetResponse"] GroupGetResponse: TypeAlias = Union[Optional[str], object] diff --git a/src/cloudflare/types/firewall/waf/packages/group_list_params.py b/src/cloudflare/types/firewall/waf/packages/group_list_params.py index 2919a1bf0..5a2e79068 100644 --- a/src/cloudflare/types/firewall/waf/packages/group_list_params.py +++ b/src/cloudflare/types/firewall/waf/packages/group_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["GroupListParams"] diff --git a/src/cloudflare/types/firewall/waf/packages/rule_edit_params.py b/src/cloudflare/types/firewall/waf/packages/rule_edit_params.py index 2798b2ff7..79481b14e 100644 --- a/src/cloudflare/types/firewall/waf/packages/rule_edit_params.py +++ b/src/cloudflare/types/firewall/waf/packages/rule_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["RuleEditParams"] diff --git a/src/cloudflare/types/firewall/waf/packages/rule_edit_response.py b/src/cloudflare/types/firewall/waf/packages/rule_edit_response.py index 40d07fcf1..5c2649442 100644 --- a/src/cloudflare/types/firewall/waf/packages/rule_edit_response.py +++ b/src/cloudflare/types/firewall/waf/packages/rule_edit_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - -from typing import List - -from .allowed_modes_anomaly import AllowedModesAnomaly - -from .waf_rule_group import WAFRuleGroup - +from typing import List, Union from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel +from .waf_rule_group import WAFRuleGroup +from .allowed_modes_anomaly import AllowedModesAnomaly __all__ = [ "RuleEditResponse", diff --git a/src/cloudflare/types/firewall/waf/packages/rule_get_response.py b/src/cloudflare/types/firewall/waf/packages/rule_get_response.py index 110f1825d..68d667fdb 100644 --- a/src/cloudflare/types/firewall/waf/packages/rule_get_response.py +++ b/src/cloudflare/types/firewall/waf/packages/rule_get_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - +from typing import Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["RuleGetResponse"] RuleGetResponse: TypeAlias = Union[Optional[str], object] diff --git a/src/cloudflare/types/firewall/waf/packages/rule_list_params.py b/src/cloudflare/types/firewall/waf/packages/rule_list_params.py index 044607b46..9de33e821 100644 --- a/src/cloudflare/types/firewall/waf/packages/rule_list_params.py +++ b/src/cloudflare/types/firewall/waf/packages/rule_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["RuleListParams"] diff --git a/src/cloudflare/types/firewall/waf/packages/rule_list_response.py b/src/cloudflare/types/firewall/waf/packages/rule_list_response.py index 92b19319a..fee353552 100644 --- a/src/cloudflare/types/firewall/waf/packages/rule_list_response.py +++ b/src/cloudflare/types/firewall/waf/packages/rule_list_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - -from typing import List - -from .allowed_modes_anomaly import AllowedModesAnomaly - -from .waf_rule_group import WAFRuleGroup - +from typing import List, Union from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel +from .waf_rule_group import WAFRuleGroup +from .allowed_modes_anomaly import AllowedModesAnomaly __all__ = [ "RuleListResponse", diff --git a/src/cloudflare/types/firewall/waf/packages/waf_rule_group.py b/src/cloudflare/types/firewall/waf/packages/waf_rule_group.py index d7b59080e..2ce0dcabc 100644 --- a/src/cloudflare/types/firewall/waf/packages/waf_rule_group.py +++ b/src/cloudflare/types/firewall/waf/packages/waf_rule_group.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["WAFRuleGroup"] diff --git a/src/cloudflare/types/firewall/waf/rewrite_action.py b/src/cloudflare/types/firewall/waf/rewrite_action.py index d0cb62bc1..cfdd8b826 100644 --- a/src/cloudflare/types/firewall/waf/rewrite_action.py +++ b/src/cloudflare/types/firewall/waf/rewrite_action.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["RewriteAction"] diff --git a/src/cloudflare/types/firewall/waf/waf_rule.py b/src/cloudflare/types/firewall/waf/waf_rule.py index 5afe8c8a6..3e6abc12d 100644 --- a/src/cloudflare/types/firewall/waf/waf_rule.py +++ b/src/cloudflare/types/firewall/waf/waf_rule.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Dict from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["WAFRule"] WAFRule: TypeAlias = Dict[str, Literal["challenge", "block", "simulate", "disable", "default"]] diff --git a/src/cloudflare/types/firewall/waf/waf_rule_param.py b/src/cloudflare/types/firewall/waf/waf_rule_param.py index 61c7055b4..801238395 100644 --- a/src/cloudflare/types/firewall/waf/waf_rule_param.py +++ b/src/cloudflare/types/firewall/waf/waf_rule_param.py @@ -2,9 +2,8 @@ from __future__ import annotations -from typing_extensions import Literal, TypeAlias - from typing import Dict +from typing_extensions import Literal, TypeAlias __all__ = ["WAFRuleParam"] diff --git a/src/cloudflare/types/healthchecks/__init__.py b/src/cloudflare/types/healthchecks/__init__.py index d7d1d78d7..ff058b950 100644 --- a/src/cloudflare/types/healthchecks/__init__.py +++ b/src/cloudflare/types/healthchecks/__init__.py @@ -2,16 +2,16 @@ from __future__ import annotations -from .check_region import CheckRegion as CheckRegion from .healthcheck import Healthcheck as Healthcheck -from .http_configuration import HTTPConfiguration as HTTPConfiguration -from .http_configuration_param import HTTPConfigurationParam as HTTPConfigurationParam +from .check_region import CheckRegion as CheckRegion from .tcp_configuration import TCPConfiguration as TCPConfiguration +from .http_configuration import HTTPConfiguration as HTTPConfiguration +from .preview_create_params import PreviewCreateParams as PreviewCreateParams +from .healthcheck_edit_params import HealthcheckEditParams as HealthcheckEditParams +from .healthcheck_list_params import HealthcheckListParams as HealthcheckListParams +from .preview_delete_response import PreviewDeleteResponse as PreviewDeleteResponse from .tcp_configuration_param import TCPConfigurationParam as TCPConfigurationParam -from .healthcheck_delete_response import HealthcheckDeleteResponse as HealthcheckDeleteResponse +from .http_configuration_param import HTTPConfigurationParam as HTTPConfigurationParam from .healthcheck_create_params import HealthcheckCreateParams as HealthcheckCreateParams from .healthcheck_update_params import HealthcheckUpdateParams as HealthcheckUpdateParams -from .healthcheck_list_params import HealthcheckListParams as HealthcheckListParams -from .healthcheck_edit_params import HealthcheckEditParams as HealthcheckEditParams -from .preview_delete_response import PreviewDeleteResponse as PreviewDeleteResponse -from .preview_create_params import PreviewCreateParams as PreviewCreateParams +from .healthcheck_delete_response import HealthcheckDeleteResponse as HealthcheckDeleteResponse diff --git a/src/cloudflare/types/healthchecks/check_region.py b/src/cloudflare/types/healthchecks/check_region.py index f6ef5d8df..8a28fc2b6 100644 --- a/src/cloudflare/types/healthchecks/check_region.py +++ b/src/cloudflare/types/healthchecks/check_region.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["CheckRegion"] CheckRegion: TypeAlias = Literal[ diff --git a/src/cloudflare/types/healthchecks/healthcheck.py b/src/cloudflare/types/healthchecks/healthcheck.py index 820ef10d8..07d6bb0c5 100644 --- a/src/cloudflare/types/healthchecks/healthcheck.py +++ b/src/cloudflare/types/healthchecks/healthcheck.py @@ -1,22 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from .check_region import CheckRegion - +from typing import List, Optional from datetime import datetime - -from .http_configuration import HTTPConfiguration - from typing_extensions import Literal +from ..._models import BaseModel +from .check_region import CheckRegion from .tcp_configuration import TCPConfiguration - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .http_configuration import HTTPConfiguration __all__ = ["Healthcheck"] diff --git a/src/cloudflare/types/healthchecks/healthcheck_create_params.py b/src/cloudflare/types/healthchecks/healthcheck_create_params.py index 83c761819..90a2b01f7 100644 --- a/src/cloudflare/types/healthchecks/healthcheck_create_params.py +++ b/src/cloudflare/types/healthchecks/healthcheck_create_params.py @@ -2,22 +2,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - -from typing import Optional, List +from typing import List, Optional +from typing_extensions import Required, Annotated, TypedDict +from ..._utils import PropertyInfo from .check_region import CheckRegion - -from .http_configuration_param import HTTPConfigurationParam - from .tcp_configuration_param import TCPConfigurationParam - -from ..._utils import PropertyInfo - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .http_configuration_param import HTTPConfigurationParam __all__ = ["HealthcheckCreateParams"] diff --git a/src/cloudflare/types/healthchecks/healthcheck_delete_response.py b/src/cloudflare/types/healthchecks/healthcheck_delete_response.py index e4b0f3621..adcd26dd9 100644 --- a/src/cloudflare/types/healthchecks/healthcheck_delete_response.py +++ b/src/cloudflare/types/healthchecks/healthcheck_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["HealthcheckDeleteResponse"] diff --git a/src/cloudflare/types/healthchecks/healthcheck_edit_params.py b/src/cloudflare/types/healthchecks/healthcheck_edit_params.py index 57b730517..605ca984c 100644 --- a/src/cloudflare/types/healthchecks/healthcheck_edit_params.py +++ b/src/cloudflare/types/healthchecks/healthcheck_edit_params.py @@ -2,22 +2,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - -from typing import Optional, List +from typing import List, Optional +from typing_extensions import Required, Annotated, TypedDict +from ..._utils import PropertyInfo from .check_region import CheckRegion - -from .http_configuration_param import HTTPConfigurationParam - from .tcp_configuration_param import TCPConfigurationParam - -from ..._utils import PropertyInfo - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .http_configuration_param import HTTPConfigurationParam __all__ = ["HealthcheckEditParams"] diff --git a/src/cloudflare/types/healthchecks/healthcheck_list_params.py b/src/cloudflare/types/healthchecks/healthcheck_list_params.py index de4ff0b0f..919be7432 100644 --- a/src/cloudflare/types/healthchecks/healthcheck_list_params.py +++ b/src/cloudflare/types/healthchecks/healthcheck_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["HealthcheckListParams"] diff --git a/src/cloudflare/types/healthchecks/healthcheck_update_params.py b/src/cloudflare/types/healthchecks/healthcheck_update_params.py index 48a46b5c3..834571fde 100644 --- a/src/cloudflare/types/healthchecks/healthcheck_update_params.py +++ b/src/cloudflare/types/healthchecks/healthcheck_update_params.py @@ -2,22 +2,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - -from typing import Optional, List +from typing import List, Optional +from typing_extensions import Required, Annotated, TypedDict +from ..._utils import PropertyInfo from .check_region import CheckRegion - -from .http_configuration_param import HTTPConfigurationParam - from .tcp_configuration_param import TCPConfigurationParam - -from ..._utils import PropertyInfo - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .http_configuration_param import HTTPConfigurationParam __all__ = ["HealthcheckUpdateParams"] diff --git a/src/cloudflare/types/healthchecks/http_configuration.py b/src/cloudflare/types/healthchecks/http_configuration.py index bd0c3d8c9..b000623d5 100644 --- a/src/cloudflare/types/healthchecks/http_configuration.py +++ b/src/cloudflare/types/healthchecks/http_configuration.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Dict, List, Optional +from typing_extensions import Literal + from ..._models import BaseModel -from typing import Optional, List, Dict - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["HTTPConfiguration"] diff --git a/src/cloudflare/types/healthchecks/http_configuration_param.py b/src/cloudflare/types/healthchecks/http_configuration_param.py index d191cf99e..f8f0bc4ac 100644 --- a/src/cloudflare/types/healthchecks/http_configuration_param.py +++ b/src/cloudflare/types/healthchecks/http_configuration_param.py @@ -2,8 +2,7 @@ from __future__ import annotations -from typing import Optional, List, Dict - +from typing import Dict, List, Optional from typing_extensions import Literal, TypedDict __all__ = ["HTTPConfigurationParam"] diff --git a/src/cloudflare/types/healthchecks/preview_create_params.py b/src/cloudflare/types/healthchecks/preview_create_params.py index 43a83d358..8020a44e0 100644 --- a/src/cloudflare/types/healthchecks/preview_create_params.py +++ b/src/cloudflare/types/healthchecks/preview_create_params.py @@ -2,22 +2,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - -from typing import Optional, List +from typing import List, Optional +from typing_extensions import Required, Annotated, TypedDict +from ..._utils import PropertyInfo from .check_region import CheckRegion - -from .http_configuration_param import HTTPConfigurationParam - from .tcp_configuration_param import TCPConfigurationParam - -from ..._utils import PropertyInfo - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .http_configuration_param import HTTPConfigurationParam __all__ = ["PreviewCreateParams"] diff --git a/src/cloudflare/types/healthchecks/preview_delete_response.py b/src/cloudflare/types/healthchecks/preview_delete_response.py index 7b7c6ac60..6aad74a6a 100644 --- a/src/cloudflare/types/healthchecks/preview_delete_response.py +++ b/src/cloudflare/types/healthchecks/preview_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["PreviewDeleteResponse"] diff --git a/src/cloudflare/types/healthchecks/tcp_configuration.py b/src/cloudflare/types/healthchecks/tcp_configuration.py index f1b658c2c..f654cccf8 100644 --- a/src/cloudflare/types/healthchecks/tcp_configuration.py +++ b/src/cloudflare/types/healthchecks/tcp_configuration.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["TCPConfiguration"] diff --git a/src/cloudflare/types/hostnames/settings/__init__.py b/src/cloudflare/types/hostnames/settings/__init__.py index 7133bb74a..4c89b63f5 100644 --- a/src/cloudflare/types/hostnames/settings/__init__.py +++ b/src/cloudflare/types/hostnames/settings/__init__.py @@ -4,7 +4,7 @@ from __future__ import annotations from .setting import Setting as Setting from .setting_value import SettingValue as SettingValue -from .setting_value_param import SettingValueParam as SettingValueParam -from .tls_delete_response import TLSDeleteResponse as TLSDeleteResponse from .tls_get_response import TLSGetResponse as TLSGetResponse from .tls_update_params import TLSUpdateParams as TLSUpdateParams +from .setting_value_param import SettingValueParam as SettingValueParam +from .tls_delete_response import TLSDeleteResponse as TLSDeleteResponse diff --git a/src/cloudflare/types/hostnames/settings/setting.py b/src/cloudflare/types/hostnames/settings/setting.py index 1dbb5fa09..78d63b0d6 100644 --- a/src/cloudflare/types/hostnames/settings/setting.py +++ b/src/cloudflare/types/hostnames/settings/setting.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime +from ...._models import BaseModel from .setting_value import SettingValue -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Setting"] diff --git a/src/cloudflare/types/hostnames/settings/setting_value.py b/src/cloudflare/types/hostnames/settings/setting_value.py index 0746de9f5..51b9395ef 100644 --- a/src/cloudflare/types/hostnames/settings/setting_value.py +++ b/src/cloudflare/types/hostnames/settings/setting_value.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List - +from typing import List, Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SettingValue"] SettingValue: TypeAlias = Union[float, str, List[str]] diff --git a/src/cloudflare/types/hostnames/settings/setting_value_param.py b/src/cloudflare/types/hostnames/settings/setting_value_param.py index fa5063f6b..9f72bafaa 100644 --- a/src/cloudflare/types/hostnames/settings/setting_value_param.py +++ b/src/cloudflare/types/hostnames/settings/setting_value_param.py @@ -3,7 +3,6 @@ from __future__ import annotations from typing import List, Union - from typing_extensions import TypeAlias __all__ = ["SettingValueParam"] diff --git a/src/cloudflare/types/hostnames/settings/tls_delete_response.py b/src/cloudflare/types/hostnames/settings/tls_delete_response.py index 9e881d55d..4d3fdff0d 100644 --- a/src/cloudflare/types/hostnames/settings/tls_delete_response.py +++ b/src/cloudflare/types/hostnames/settings/tls_delete_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime +from ...._models import BaseModel from .setting_value import SettingValue -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["TLSDeleteResponse"] diff --git a/src/cloudflare/types/hostnames/settings/tls_get_response.py b/src/cloudflare/types/hostnames/settings/tls_get_response.py index c7855196d..e194ca028 100644 --- a/src/cloudflare/types/hostnames/settings/tls_get_response.py +++ b/src/cloudflare/types/hostnames/settings/tls_get_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional - +from typing import List, Optional from datetime import datetime - -from .setting_value import SettingValue - from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel +from .setting_value import SettingValue __all__ = ["TLSGetResponse", "TLSGetResponseItem"] diff --git a/src/cloudflare/types/hostnames/settings/tls_update_params.py b/src/cloudflare/types/hostnames/settings/tls_update_params.py index d64176d92..d24e3bea2 100644 --- a/src/cloudflare/types/hostnames/settings/tls_update_params.py +++ b/src/cloudflare/types/hostnames/settings/tls_update_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal +from typing_extensions import Literal, Required, TypedDict from .setting_value_param import SettingValueParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["TLSUpdateParams"] diff --git a/src/cloudflare/types/hyperdrive/__init__.py b/src/cloudflare/types/hyperdrive/__init__.py index fed60625b..db97c2c85 100644 --- a/src/cloudflare/types/hyperdrive/__init__.py +++ b/src/cloudflare/types/hyperdrive/__init__.py @@ -4,9 +4,8 @@ from __future__ import annotations from .hyperdrive import Hyperdrive as Hyperdrive from .configuration import Configuration as Configuration +from .config_edit_params import ConfigEditParams as ConfigEditParams from .configuration_param import ConfigurationParam as ConfigurationParam -from .hyperdrive import Hyperdrive as Hyperdrive -from .config_delete_response import ConfigDeleteResponse as ConfigDeleteResponse from .config_create_params import ConfigCreateParams as ConfigCreateParams from .config_update_params import ConfigUpdateParams as ConfigUpdateParams -from .config_edit_params import ConfigEditParams as ConfigEditParams +from .config_delete_response import ConfigDeleteResponse as ConfigDeleteResponse diff --git a/src/cloudflare/types/hyperdrive/config_create_params.py b/src/cloudflare/types/hyperdrive/config_create_params.py index c2121402b..f75ec02aa 100644 --- a/src/cloudflare/types/hyperdrive/config_create_params.py +++ b/src/cloudflare/types/hyperdrive/config_create_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict from .configuration_param import ConfigurationParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["ConfigCreateParams", "Caching"] diff --git a/src/cloudflare/types/hyperdrive/config_delete_response.py b/src/cloudflare/types/hyperdrive/config_delete_response.py index a3baf37b4..48d3bade3 100644 --- a/src/cloudflare/types/hyperdrive/config_delete_response.py +++ b/src/cloudflare/types/hyperdrive/config_delete_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ConfigDeleteResponse"] ConfigDeleteResponse: TypeAlias = Union[str, object, None] diff --git a/src/cloudflare/types/hyperdrive/config_edit_params.py b/src/cloudflare/types/hyperdrive/config_edit_params.py index 05556a08e..6e6382861 100644 --- a/src/cloudflare/types/hyperdrive/config_edit_params.py +++ b/src/cloudflare/types/hyperdrive/config_edit_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict from .configuration_param import ConfigurationParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["ConfigEditParams", "Caching"] diff --git a/src/cloudflare/types/hyperdrive/config_update_params.py b/src/cloudflare/types/hyperdrive/config_update_params.py index ea9dfca32..451436b38 100644 --- a/src/cloudflare/types/hyperdrive/config_update_params.py +++ b/src/cloudflare/types/hyperdrive/config_update_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict from .configuration_param import ConfigurationParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["ConfigUpdateParams", "Caching"] diff --git a/src/cloudflare/types/hyperdrive/configuration.py b/src/cloudflare/types/hyperdrive/configuration.py index d295628c3..5a6158e9e 100644 --- a/src/cloudflare/types/hyperdrive/configuration.py +++ b/src/cloudflare/types/hyperdrive/configuration.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["Configuration"] diff --git a/src/cloudflare/types/hyperdrive/configuration_param.py b/src/cloudflare/types/hyperdrive/configuration_param.py index ed944a619..bd751b98e 100644 --- a/src/cloudflare/types/hyperdrive/configuration_param.py +++ b/src/cloudflare/types/hyperdrive/configuration_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["ConfigurationParam"] diff --git a/src/cloudflare/types/hyperdrive/hyperdrive.py b/src/cloudflare/types/hyperdrive/hyperdrive.py index c169c0c75..70822832c 100644 --- a/src/cloudflare/types/hyperdrive/hyperdrive.py +++ b/src/cloudflare/types/hyperdrive/hyperdrive.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional +from ..._models import BaseModel from .configuration import Configuration -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Hyperdrive", "Caching"] diff --git a/src/cloudflare/types/iam/__init__.py b/src/cloudflare/types/iam/__init__.py index 3eebf257f..5982e2443 100644 --- a/src/cloudflare/types/iam/__init__.py +++ b/src/cloudflare/types/iam/__init__.py @@ -2,12 +2,12 @@ from __future__ import annotations -from .permission_group_get_response import PermissionGroupGetResponse as PermissionGroupGetResponse -from .permission_group_list_params import PermissionGroupListParams as PermissionGroupListParams -from .resource_group_create_response import ResourceGroupCreateResponse as ResourceGroupCreateResponse -from .resource_group_update_response import ResourceGroupUpdateResponse as ResourceGroupUpdateResponse -from .resource_group_delete_response import ResourceGroupDeleteResponse as ResourceGroupDeleteResponse +from .resource_group_list_params import ResourceGroupListParams as ResourceGroupListParams from .resource_group_get_response import ResourceGroupGetResponse as ResourceGroupGetResponse +from .permission_group_list_params import PermissionGroupListParams as PermissionGroupListParams from .resource_group_create_params import ResourceGroupCreateParams as ResourceGroupCreateParams from .resource_group_update_params import ResourceGroupUpdateParams as ResourceGroupUpdateParams -from .resource_group_list_params import ResourceGroupListParams as ResourceGroupListParams +from .permission_group_get_response import PermissionGroupGetResponse as PermissionGroupGetResponse +from .resource_group_create_response import ResourceGroupCreateResponse as ResourceGroupCreateResponse +from .resource_group_delete_response import ResourceGroupDeleteResponse as ResourceGroupDeleteResponse +from .resource_group_update_response import ResourceGroupUpdateResponse as ResourceGroupUpdateResponse diff --git a/src/cloudflare/types/iam/permission_group_get_response.py b/src/cloudflare/types/iam/permission_group_get_response.py index 1f10c9456..5aef2643a 100644 --- a/src/cloudflare/types/iam/permission_group_get_response.py +++ b/src/cloudflare/types/iam/permission_group_get_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["PermissionGroupGetResponse", "Meta"] diff --git a/src/cloudflare/types/iam/permission_group_list_params.py b/src/cloudflare/types/iam/permission_group_list_params.py index dc72a3fe3..04f58ce75 100644 --- a/src/cloudflare/types/iam/permission_group_list_params.py +++ b/src/cloudflare/types/iam/permission_group_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["PermissionGroupListParams"] diff --git a/src/cloudflare/types/iam/resource_group_create_params.py b/src/cloudflare/types/iam/resource_group_create_params.py index 248a9a522..7f583c5f8 100644 --- a/src/cloudflare/types/iam/resource_group_create_params.py +++ b/src/cloudflare/types/iam/resource_group_create_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Iterable - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ResourceGroupCreateParams", "Scope", "ScopeObject"] diff --git a/src/cloudflare/types/iam/resource_group_create_response.py b/src/cloudflare/types/iam/resource_group_create_response.py index fd2c9471a..a6c3b5dc1 100644 --- a/src/cloudflare/types/iam/resource_group_create_response.py +++ b/src/cloudflare/types/iam/resource_group_create_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List, Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ResourceGroupCreateResponse", "Scope", "ScopeObject"] diff --git a/src/cloudflare/types/iam/resource_group_delete_response.py b/src/cloudflare/types/iam/resource_group_delete_response.py index 1437e30a4..604eafbe8 100644 --- a/src/cloudflare/types/iam/resource_group_delete_response.py +++ b/src/cloudflare/types/iam/resource_group_delete_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["ResourceGroupDeleteResponse"] diff --git a/src/cloudflare/types/iam/resource_group_get_response.py b/src/cloudflare/types/iam/resource_group_get_response.py index e80fb4971..1f41351fa 100644 --- a/src/cloudflare/types/iam/resource_group_get_response.py +++ b/src/cloudflare/types/iam/resource_group_get_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List, Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ResourceGroupGetResponse", "Scope", "ScopeObject", "Meta"] diff --git a/src/cloudflare/types/iam/resource_group_list_params.py b/src/cloudflare/types/iam/resource_group_list_params.py index 3353465dc..f6153181a 100644 --- a/src/cloudflare/types/iam/resource_group_list_params.py +++ b/src/cloudflare/types/iam/resource_group_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ResourceGroupListParams"] diff --git a/src/cloudflare/types/iam/resource_group_update_params.py b/src/cloudflare/types/iam/resource_group_update_params.py index 69ec60cb6..eb50831f7 100644 --- a/src/cloudflare/types/iam/resource_group_update_params.py +++ b/src/cloudflare/types/iam/resource_group_update_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Iterable - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ResourceGroupUpdateParams", "Scope", "ScopeObject"] diff --git a/src/cloudflare/types/iam/resource_group_update_response.py b/src/cloudflare/types/iam/resource_group_update_response.py index 0cb786085..fb5c67ed4 100644 --- a/src/cloudflare/types/iam/resource_group_update_response.py +++ b/src/cloudflare/types/iam/resource_group_update_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List, Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ResourceGroupUpdateResponse", "Scope", "ScopeObject", "Meta"] diff --git a/src/cloudflare/types/images/__init__.py b/src/cloudflare/types/images/__init__.py index 6a7313500..82bb5061a 100644 --- a/src/cloudflare/types/images/__init__.py +++ b/src/cloudflare/types/images/__init__.py @@ -3,10 +3,10 @@ from __future__ import annotations from .image import Image as Image -from .v1_list_response import V1ListResponse as V1ListResponse -from .v1_delete_response import V1DeleteResponse as V1DeleteResponse -from .v1_create_params import V1CreateParams as V1CreateParams -from .v1_list_params import V1ListParams as V1ListParams from .v1_edit_params import V1EditParams as V1EditParams -from .v2_list_response import V2ListResponse as V2ListResponse +from .v1_list_params import V1ListParams as V1ListParams from .v2_list_params import V2ListParams as V2ListParams +from .v1_create_params import V1CreateParams as V1CreateParams +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/image.py b/src/cloudflare/types/images/image.py index c4b3b6241..1dcd113d9 100644 --- a/src/cloudflare/types/images/image.py +++ b/src/cloudflare/types/images/image.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["Image"] diff --git a/src/cloudflare/types/images/v1/__init__.py b/src/cloudflare/types/images/v1/__init__.py index abd58d243..b027cfebc 100644 --- a/src/cloudflare/types/images/v1/__init__.py +++ b/src/cloudflare/types/images/v1/__init__.py @@ -3,14 +3,14 @@ from __future__ import annotations from .key import Key as Key -from .key_update_response import KeyUpdateResponse as KeyUpdateResponse -from .key_list_response import KeyListResponse as KeyListResponse -from .key_delete_response import KeyDeleteResponse as KeyDeleteResponse from .stat import Stat as Stat from .variant import Variant as Variant -from .variant_create_response import VariantCreateResponse as VariantCreateResponse -from .variant_delete_response import VariantDeleteResponse as VariantDeleteResponse -from .variant_edit_response import VariantEditResponse as VariantEditResponse +from .key_list_response import KeyListResponse as KeyListResponse +from .key_delete_response import KeyDeleteResponse as KeyDeleteResponse +from .key_update_response import KeyUpdateResponse as KeyUpdateResponse +from .variant_edit_params import VariantEditParams as VariantEditParams from .variant_get_response import VariantGetResponse as VariantGetResponse from .variant_create_params import VariantCreateParams as VariantCreateParams -from .variant_edit_params import VariantEditParams as VariantEditParams +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/key.py b/src/cloudflare/types/images/v1/key.py index 2705b0270..a0f292f8f 100644 --- a/src/cloudflare/types/images/v1/key.py +++ b/src/cloudflare/types/images/v1/key.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["Key"] diff --git a/src/cloudflare/types/images/v1/key_delete_response.py b/src/cloudflare/types/images/v1/key_delete_response.py index cefc86a61..c66b99b21 100644 --- a/src/cloudflare/types/images/v1/key_delete_response.py +++ b/src/cloudflare/types/images/v1/key_delete_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List +from typing import List, Optional from .key import Key - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["KeyDeleteResponse"] diff --git a/src/cloudflare/types/images/v1/key_list_response.py b/src/cloudflare/types/images/v1/key_list_response.py index 316ef205b..c8a01832b 100644 --- a/src/cloudflare/types/images/v1/key_list_response.py +++ b/src/cloudflare/types/images/v1/key_list_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List +from typing import List, Optional from .key import Key - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["KeyListResponse"] diff --git a/src/cloudflare/types/images/v1/key_update_response.py b/src/cloudflare/types/images/v1/key_update_response.py index cd5d7978f..afca97ac7 100644 --- a/src/cloudflare/types/images/v1/key_update_response.py +++ b/src/cloudflare/types/images/v1/key_update_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List +from typing import List, Optional from .key import Key - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["KeyUpdateResponse"] diff --git a/src/cloudflare/types/images/v1/stat.py b/src/cloudflare/types/images/v1/stat.py index df0becb08..71ae800bb 100644 --- a/src/cloudflare/types/images/v1/stat.py +++ b/src/cloudflare/types/images/v1/stat.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["Stat", "Count"] diff --git a/src/cloudflare/types/images/v1/variant.py b/src/cloudflare/types/images/v1/variant.py index 271316add..c27966558 100644 --- a/src/cloudflare/types/images/v1/variant.py +++ b/src/cloudflare/types/images/v1/variant.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal + from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["Variant", "Variants", "VariantsHero", "VariantsHeroOptions"] diff --git a/src/cloudflare/types/images/v1/variant_create_params.py b/src/cloudflare/types/images/v1/variant_create_params.py index 2f0f2ceb3..6bb7fa9bf 100644 --- a/src/cloudflare/types/images/v1/variant_create_params.py +++ b/src/cloudflare/types/images/v1/variant_create_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal +from typing_extensions import Literal, Required, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["VariantCreateParams", "Options"] diff --git a/src/cloudflare/types/images/v1/variant_create_response.py b/src/cloudflare/types/images/v1/variant_create_response.py index 24fea9b1a..723ef2b90 100644 --- a/src/cloudflare/types/images/v1/variant_create_response.py +++ b/src/cloudflare/types/images/v1/variant_create_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal + from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["VariantCreateResponse", "Variant", "VariantOptions"] diff --git a/src/cloudflare/types/images/v1/variant_delete_response.py b/src/cloudflare/types/images/v1/variant_delete_response.py index 04488a11f..3b3a97038 100644 --- a/src/cloudflare/types/images/v1/variant_delete_response.py +++ b/src/cloudflare/types/images/v1/variant_delete_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["VariantDeleteResponse"] VariantDeleteResponse: TypeAlias = Union[str, object] diff --git a/src/cloudflare/types/images/v1/variant_edit_params.py b/src/cloudflare/types/images/v1/variant_edit_params.py index 6f4438a3f..db2b4e3ad 100644 --- a/src/cloudflare/types/images/v1/variant_edit_params.py +++ b/src/cloudflare/types/images/v1/variant_edit_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal +from typing_extensions import Literal, Required, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["VariantEditParams", "Options"] diff --git a/src/cloudflare/types/images/v1/variant_edit_response.py b/src/cloudflare/types/images/v1/variant_edit_response.py index bc654499c..64d25e4b9 100644 --- a/src/cloudflare/types/images/v1/variant_edit_response.py +++ b/src/cloudflare/types/images/v1/variant_edit_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal + from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["VariantEditResponse", "Variant", "VariantOptions"] diff --git a/src/cloudflare/types/images/v1/variant_get_response.py b/src/cloudflare/types/images/v1/variant_get_response.py index 36b483f16..add794835 100644 --- a/src/cloudflare/types/images/v1/variant_get_response.py +++ b/src/cloudflare/types/images/v1/variant_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal + from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["VariantGetResponse", "Variant", "VariantOptions"] diff --git a/src/cloudflare/types/images/v1_create_params.py b/src/cloudflare/types/images/v1_create_params.py index 7e99ad159..ede7cddf3 100644 --- a/src/cloudflare/types/images/v1_create_params.py +++ b/src/cloudflare/types/images/v1_create_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated +from typing_extensions import Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["V1CreateParams"] diff --git a/src/cloudflare/types/images/v1_delete_response.py b/src/cloudflare/types/images/v1_delete_response.py index 95c0b5498..0122c846f 100644 --- a/src/cloudflare/types/images/v1_delete_response.py +++ b/src/cloudflare/types/images/v1_delete_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["V1DeleteResponse"] V1DeleteResponse: TypeAlias = Union[str, object] diff --git a/src/cloudflare/types/images/v1_edit_params.py b/src/cloudflare/types/images/v1_edit_params.py index bca304597..5b77a97bd 100644 --- a/src/cloudflare/types/images/v1_edit_params.py +++ b/src/cloudflare/types/images/v1_edit_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated +from typing_extensions import Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["V1EditParams"] diff --git a/src/cloudflare/types/images/v1_list_params.py b/src/cloudflare/types/images/v1_list_params.py index f1928e305..b77d95f1d 100644 --- a/src/cloudflare/types/images/v1_list_params.py +++ b/src/cloudflare/types/images/v1_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["V1ListParams"] diff --git a/src/cloudflare/types/images/v1_list_response.py b/src/cloudflare/types/images/v1_list_response.py index 34222873a..44974f29c 100644 --- a/src/cloudflare/types/images/v1_list_response.py +++ b/src/cloudflare/types/images/v1_list_response.py @@ -1,19 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List +from typing import List, Optional +from typing_extensions import Literal from .image import Image - +from ..._models import BaseModel from ..shared.response_info import ResponseInfo -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["V1ListResponse", "Result"] diff --git a/src/cloudflare/types/images/v2/__init__.py b/src/cloudflare/types/images/v2/__init__.py index ca2487633..3a6603f59 100644 --- a/src/cloudflare/types/images/v2/__init__.py +++ b/src/cloudflare/types/images/v2/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .direct_upload_create_response import DirectUploadCreateResponse as DirectUploadCreateResponse from .direct_upload_create_params import DirectUploadCreateParams as DirectUploadCreateParams +from .direct_upload_create_response import DirectUploadCreateResponse as DirectUploadCreateResponse diff --git a/src/cloudflare/types/images/v2/direct_upload_create_params.py b/src/cloudflare/types/images/v2/direct_upload_create_params.py index 8d5babe42..477b46c0e 100644 --- a/src/cloudflare/types/images/v2/direct_upload_create_params.py +++ b/src/cloudflare/types/images/v2/direct_upload_create_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - from typing import Union - from datetime import datetime +from typing_extensions import Required, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["DirectUploadCreateParams"] diff --git a/src/cloudflare/types/images/v2/direct_upload_create_response.py b/src/cloudflare/types/images/v2/direct_upload_create_response.py index 64d687795..0e6e9b1cb 100644 --- a/src/cloudflare/types/images/v2/direct_upload_create_response.py +++ b/src/cloudflare/types/images/v2/direct_upload_create_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["DirectUploadCreateResponse"] diff --git a/src/cloudflare/types/images/v2_list_params.py b/src/cloudflare/types/images/v2_list_params.py index 3be39514d..234d7442c 100644 --- a/src/cloudflare/types/images/v2_list_params.py +++ b/src/cloudflare/types/images/v2_list_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Optional - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["V2ListParams"] diff --git a/src/cloudflare/types/images/v2_list_response.py b/src/cloudflare/types/images/v2_list_response.py index 10f9da492..9a6cc5e22 100644 --- a/src/cloudflare/types/images/v2_list_response.py +++ b/src/cloudflare/types/images/v2_list_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List +from typing import List, Optional from .image import Image - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["V2ListResponse"] diff --git a/src/cloudflare/types/intel/__init__.py b/src/cloudflare/types/intel/__init__.py index 5e1787483..42260a14d 100644 --- a/src/cloudflare/types/intel/__init__.py +++ b/src/cloudflare/types/intel/__init__.py @@ -2,28 +2,28 @@ from __future__ import annotations -from .dns import DNS as DNS -from .dns_list_response import DNSListResponse as DNSListResponse -from .dns_list_params import DNSListParams as DNSListParams -from .domain import Domain as Domain -from .domain_get_params import DomainGetParams as DomainGetParams -from .domain_history import DomainHistory as DomainHistory -from .domain_history_get_response import DomainHistoryGetResponse as DomainHistoryGetResponse -from .domain_history_get_params import DomainHistoryGetParams as DomainHistoryGetParams from .ip import IP as IP -from .ip_get_response import IPGetResponse as IPGetResponse -from .ip_get_params import IPGetParams as IPGetParams +from .dns import DNS as DNS +from .domain import Domain as Domain from .ip_list import IPList as IPList -from .ip_list_get_response import IPListGetResponse as IPListGetResponse -from .miscategorization_create_response import MiscategorizationCreateResponse as MiscategorizationCreateResponse -from .miscategorization_create_params import MiscategorizationCreateParams as MiscategorizationCreateParams -from .whois_get_response import WhoisGetResponse as WhoisGetResponse +from .sinkhole import Sinkhole as Sinkhole +from .ip_get_params import IPGetParams as IPGetParams +from .domain_history import DomainHistory as DomainHistory +from .dns_list_params import DNSListParams as DNSListParams +from .ip_get_response import IPGetResponse as IPGetResponse from .whois_get_params import WhoisGetParams as WhoisGetParams -from .indicator_feed_create_response import IndicatorFeedCreateResponse as IndicatorFeedCreateResponse -from .indicator_feed_update_response import IndicatorFeedUpdateResponse as IndicatorFeedUpdateResponse -from .indicator_feed_list_response import IndicatorFeedListResponse as IndicatorFeedListResponse -from .indicator_feed_data_response import IndicatorFeedDataResponse as IndicatorFeedDataResponse +from .dns_list_response import DNSListResponse as DNSListResponse +from .domain_get_params import DomainGetParams as DomainGetParams +from .whois_get_response import WhoisGetResponse as WhoisGetResponse +from .ip_list_get_response import IPListGetResponse as IPListGetResponse +from .domain_history_get_params import DomainHistoryGetParams as DomainHistoryGetParams +from .domain_history_get_response import DomainHistoryGetResponse as DomainHistoryGetResponse from .indicator_feed_get_response import IndicatorFeedGetResponse as IndicatorFeedGetResponse from .indicator_feed_create_params import IndicatorFeedCreateParams as IndicatorFeedCreateParams +from .indicator_feed_data_response import IndicatorFeedDataResponse as IndicatorFeedDataResponse +from .indicator_feed_list_response import IndicatorFeedListResponse as IndicatorFeedListResponse from .indicator_feed_update_params import IndicatorFeedUpdateParams as IndicatorFeedUpdateParams -from .sinkhole import Sinkhole as Sinkhole +from .indicator_feed_create_response import IndicatorFeedCreateResponse as IndicatorFeedCreateResponse +from .indicator_feed_update_response import IndicatorFeedUpdateResponse as IndicatorFeedUpdateResponse +from .miscategorization_create_params import MiscategorizationCreateParams as MiscategorizationCreateParams +from .miscategorization_create_response import MiscategorizationCreateResponse as MiscategorizationCreateResponse diff --git a/src/cloudflare/types/intel/asn/subnet_get_response.py b/src/cloudflare/types/intel/asn/subnet_get_response.py index b1831fdff..fc4c5d0cc 100644 --- a/src/cloudflare/types/intel/asn/subnet_get_response.py +++ b/src/cloudflare/types/intel/asn/subnet_get_response.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ...._models import BaseModel - -from typing import Optional, List - from ...shared.asn import ASN -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SubnetGetResponse"] diff --git a/src/cloudflare/types/intel/attack_surface_report/__init__.py b/src/cloudflare/types/intel/attack_surface_report/__init__.py index bad3e5787..a283d5acd 100644 --- a/src/cloudflare/types/intel/attack_surface_report/__init__.py +++ b/src/cloudflare/types/intel/attack_surface_report/__init__.py @@ -2,16 +2,16 @@ from __future__ import annotations -from .issue_type_get_response import IssueTypeGetResponse as IssueTypeGetResponse from .issue_type import IssueType as IssueType -from .severity_query_param import SeverityQueryParam as SeverityQueryParam +from .issue_list_params import IssueListParams as IssueListParams +from .issue_type_params import IssueTypeParams as IssueTypeParams +from .issue_class_params import IssueClassParams as IssueClassParams from .issue_list_response import IssueListResponse as IssueListResponse +from .issue_type_response import IssueTypeResponse as IssueTypeResponse from .issue_class_response import IssueClassResponse as IssueClassResponse +from .issue_dismiss_params import IssueDismissParams as IssueDismissParams +from .severity_query_param import SeverityQueryParam as SeverityQueryParam +from .issue_severity_params import IssueSeverityParams as IssueSeverityParams from .issue_dismiss_response import IssueDismissResponse as IssueDismissResponse from .issue_severity_response import IssueSeverityResponse as IssueSeverityResponse -from .issue_type_response import IssueTypeResponse as IssueTypeResponse -from .issue_list_params import IssueListParams as IssueListParams -from .issue_class_params import IssueClassParams as IssueClassParams -from .issue_dismiss_params import IssueDismissParams as IssueDismissParams -from .issue_severity_params import IssueSeverityParams as IssueSeverityParams -from .issue_type_params import IssueTypeParams as IssueTypeParams +from .issue_type_get_response import IssueTypeGetResponse as IssueTypeGetResponse diff --git a/src/cloudflare/types/intel/attack_surface_report/issue_class_params.py b/src/cloudflare/types/intel/attack_surface_report/issue_class_params.py index ed74d4d71..c1491016c 100644 --- a/src/cloudflare/types/intel/attack_surface_report/issue_class_params.py +++ b/src/cloudflare/types/intel/attack_surface_report/issue_class_params.py @@ -2,21 +2,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - from typing import List +from typing_extensions import Required, Annotated, TypedDict from ...._utils import PropertyInfo - from .issue_type import IssueType - from .severity_query_param import SeverityQueryParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["IssueClassParams"] diff --git a/src/cloudflare/types/intel/attack_surface_report/issue_class_response.py b/src/cloudflare/types/intel/attack_surface_report/issue_class_response.py index 81ad2fb36..b21bd119e 100644 --- a/src/cloudflare/types/intel/attack_surface_report/issue_class_response.py +++ b/src/cloudflare/types/intel/attack_surface_report/issue_class_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional - +from typing import List, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["IssueClassResponse", "IssueClassResponseItem"] diff --git a/src/cloudflare/types/intel/attack_surface_report/issue_dismiss_params.py b/src/cloudflare/types/intel/attack_surface_report/issue_dismiss_params.py index eb7fd247e..b7083cfbb 100644 --- a/src/cloudflare/types/intel/attack_surface_report/issue_dismiss_params.py +++ b/src/cloudflare/types/intel/attack_surface_report/issue_dismiss_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["IssueDismissParams"] diff --git a/src/cloudflare/types/intel/attack_surface_report/issue_dismiss_response.py b/src/cloudflare/types/intel/attack_surface_report/issue_dismiss_response.py index fc600617f..3110c1f90 100644 --- a/src/cloudflare/types/intel/attack_surface_report/issue_dismiss_response.py +++ b/src/cloudflare/types/intel/attack_surface_report/issue_dismiss_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["IssueDismissResponse"] IssueDismissResponse: TypeAlias = Union[str, object] diff --git a/src/cloudflare/types/intel/attack_surface_report/issue_list_params.py b/src/cloudflare/types/intel/attack_surface_report/issue_list_params.py index 105d0c985..99a5eba82 100644 --- a/src/cloudflare/types/intel/attack_surface_report/issue_list_params.py +++ b/src/cloudflare/types/intel/attack_surface_report/issue_list_params.py @@ -2,21 +2,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - from typing import List +from typing_extensions import Required, Annotated, TypedDict from ...._utils import PropertyInfo - from .issue_type import IssueType - from .severity_query_param import SeverityQueryParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["IssueListParams"] diff --git a/src/cloudflare/types/intel/attack_surface_report/issue_list_response.py b/src/cloudflare/types/intel/attack_surface_report/issue_list_response.py index c66a804b2..dfdd7cf43 100644 --- a/src/cloudflare/types/intel/attack_surface_report/issue_list_response.py +++ b/src/cloudflare/types/intel/attack_surface_report/issue_list_response.py @@ -1,20 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List - -from .issue_type import IssueType - -from typing_extensions import Literal - +from typing import List, Optional from datetime import datetime - -from ...shared.response_info import ResponseInfo - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel +from .issue_type import IssueType +from ...shared.response_info import ResponseInfo __all__ = ["IssueListResponse", "Result", "ResultIssue"] diff --git a/src/cloudflare/types/intel/attack_surface_report/issue_severity_params.py b/src/cloudflare/types/intel/attack_surface_report/issue_severity_params.py index aa6b1db59..bb92b4f27 100644 --- a/src/cloudflare/types/intel/attack_surface_report/issue_severity_params.py +++ b/src/cloudflare/types/intel/attack_surface_report/issue_severity_params.py @@ -2,21 +2,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - from typing import List +from typing_extensions import Required, Annotated, TypedDict from ...._utils import PropertyInfo - from .issue_type import IssueType - from .severity_query_param import SeverityQueryParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["IssueSeverityParams"] diff --git a/src/cloudflare/types/intel/attack_surface_report/issue_severity_response.py b/src/cloudflare/types/intel/attack_surface_report/issue_severity_response.py index 372d56e11..13c5ba4d1 100644 --- a/src/cloudflare/types/intel/attack_surface_report/issue_severity_response.py +++ b/src/cloudflare/types/intel/attack_surface_report/issue_severity_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional - +from typing import List, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["IssueSeverityResponse", "IssueSeverityResponseItem"] diff --git a/src/cloudflare/types/intel/attack_surface_report/issue_type.py b/src/cloudflare/types/intel/attack_surface_report/issue_type.py index 0cdab07c7..b111a437c 100644 --- a/src/cloudflare/types/intel/attack_surface_report/issue_type.py +++ b/src/cloudflare/types/intel/attack_surface_report/issue_type.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["IssueType"] IssueType: TypeAlias = Literal[ diff --git a/src/cloudflare/types/intel/attack_surface_report/issue_type_get_response.py b/src/cloudflare/types/intel/attack_surface_report/issue_type_get_response.py index dcf3d9d53..488c3c114 100644 --- a/src/cloudflare/types/intel/attack_surface_report/issue_type_get_response.py +++ b/src/cloudflare/types/intel/attack_surface_report/issue_type_get_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["IssueTypeGetResponse"] IssueTypeGetResponse: TypeAlias = List[str] diff --git a/src/cloudflare/types/intel/attack_surface_report/issue_type_params.py b/src/cloudflare/types/intel/attack_surface_report/issue_type_params.py index 645a657bc..9f3b934be 100644 --- a/src/cloudflare/types/intel/attack_surface_report/issue_type_params.py +++ b/src/cloudflare/types/intel/attack_surface_report/issue_type_params.py @@ -2,21 +2,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - from typing import List +from typing_extensions import Required, Annotated, TypedDict from ...._utils import PropertyInfo - from .issue_type import IssueType - from .severity_query_param import SeverityQueryParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["IssueTypeParams"] diff --git a/src/cloudflare/types/intel/attack_surface_report/issue_type_response.py b/src/cloudflare/types/intel/attack_surface_report/issue_type_response.py index 85edb844b..d0b4abfc6 100644 --- a/src/cloudflare/types/intel/attack_surface_report/issue_type_response.py +++ b/src/cloudflare/types/intel/attack_surface_report/issue_type_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional - +from typing import List, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["IssueTypeResponse", "IssueTypeResponseItem"] diff --git a/src/cloudflare/types/intel/attack_surface_report/severity_query_param.py b/src/cloudflare/types/intel/attack_surface_report/severity_query_param.py index b36702d9e..61493c872 100644 --- a/src/cloudflare/types/intel/attack_surface_report/severity_query_param.py +++ b/src/cloudflare/types/intel/attack_surface_report/severity_query_param.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SeverityQueryParam"] SeverityQueryParam: TypeAlias = Literal["low", "moderate", "critical"] diff --git a/src/cloudflare/types/intel/dns.py b/src/cloudflare/types/intel/dns.py index 02536d6c5..66f00d109 100644 --- a/src/cloudflare/types/intel/dns.py +++ b/src/cloudflare/types/intel/dns.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import date -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["DNS", "ReverseRecord"] diff --git a/src/cloudflare/types/intel/dns_list_params.py b/src/cloudflare/types/intel/dns_list_params.py index 07980f404..1937591d6 100644 --- a/src/cloudflare/types/intel/dns_list_params.py +++ b/src/cloudflare/types/intel/dns_list_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - from typing import Union - from datetime import date +from typing_extensions import Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["DNSListParams", "StartEndParams"] diff --git a/src/cloudflare/types/intel/dns_list_response.py b/src/cloudflare/types/intel/dns_list_response.py index 8fa839b28..b17d1940c 100644 --- a/src/cloudflare/types/intel/dns_list_response.py +++ b/src/cloudflare/types/intel/dns_list_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List, Optional - -from ..shared.response_info import ResponseInfo - from typing_extensions import Literal from .dns import DNS - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ..shared.response_info import ResponseInfo __all__ = ["DNSListResponse"] diff --git a/src/cloudflare/types/intel/domain.py b/src/cloudflare/types/intel/domain.py index 274bbf961..843c1adf8 100644 --- a/src/cloudflare/types/intel/domain.py +++ b/src/cloudflare/types/intel/domain.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = [ "Domain", "AdditionalInformation", diff --git a/src/cloudflare/types/intel/domain_get_params.py b/src/cloudflare/types/intel/domain_get_params.py index d8f9950a0..8fb2353ac 100644 --- a/src/cloudflare/types/intel/domain_get_params.py +++ b/src/cloudflare/types/intel/domain_get_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["DomainGetParams"] diff --git a/src/cloudflare/types/intel/domain_history.py b/src/cloudflare/types/intel/domain_history.py index 6c9e03aab..a490b4770 100644 --- a/src/cloudflare/types/intel/domain_history.py +++ b/src/cloudflare/types/intel/domain_history.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import date -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["DomainHistory", "Categorization"] diff --git a/src/cloudflare/types/intel/domain_history_get_params.py b/src/cloudflare/types/intel/domain_history_get_params.py index 24fb01252..004e88064 100644 --- a/src/cloudflare/types/intel/domain_history_get_params.py +++ b/src/cloudflare/types/intel/domain_history_get_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["DomainHistoryGetParams"] diff --git a/src/cloudflare/types/intel/domain_history_get_response.py b/src/cloudflare/types/intel/domain_history_get_response.py index 12ced87b0..573fd80a6 100644 --- a/src/cloudflare/types/intel/domain_history_get_response.py +++ b/src/cloudflare/types/intel/domain_history_get_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .domain_history import DomainHistory - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .domain_history import DomainHistory __all__ = ["DomainHistoryGetResponse"] diff --git a/src/cloudflare/types/intel/domains/__init__.py b/src/cloudflare/types/intel/domains/__init__.py index ce3d038a7..e113d32ab 100644 --- a/src/cloudflare/types/intel/domains/__init__.py +++ b/src/cloudflare/types/intel/domains/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .bulk_get_response import BulkGetResponse as BulkGetResponse from .bulk_get_params import BulkGetParams as BulkGetParams +from .bulk_get_response import BulkGetResponse as BulkGetResponse diff --git a/src/cloudflare/types/intel/domains/bulk_get_params.py b/src/cloudflare/types/intel/domains/bulk_get_params.py index b2f774978..8aad8c0a6 100644 --- a/src/cloudflare/types/intel/domains/bulk_get_params.py +++ b/src/cloudflare/types/intel/domains/bulk_get_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["BulkGetParams"] diff --git a/src/cloudflare/types/intel/domains/bulk_get_response.py b/src/cloudflare/types/intel/domains/bulk_get_response.py index 92dce0543..8824305e0 100644 --- a/src/cloudflare/types/intel/domains/bulk_get_response.py +++ b/src/cloudflare/types/intel/domains/bulk_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = [ "BulkGetResponse", diff --git a/src/cloudflare/types/intel/indicator_feed_create_params.py b/src/cloudflare/types/intel/indicator_feed_create_params.py index 007d21197..f5e9d38e6 100644 --- a/src/cloudflare/types/intel/indicator_feed_create_params.py +++ b/src/cloudflare/types/intel/indicator_feed_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["IndicatorFeedCreateParams"] diff --git a/src/cloudflare/types/intel/indicator_feed_create_response.py b/src/cloudflare/types/intel/indicator_feed_create_response.py index ca66ad24c..26e2ab0ff 100644 --- a/src/cloudflare/types/intel/indicator_feed_create_response.py +++ b/src/cloudflare/types/intel/indicator_feed_create_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["IndicatorFeedCreateResponse"] diff --git a/src/cloudflare/types/intel/indicator_feed_data_response.py b/src/cloudflare/types/intel/indicator_feed_data_response.py index 238f9a959..c7b0cda05 100644 --- a/src/cloudflare/types/intel/indicator_feed_data_response.py +++ b/src/cloudflare/types/intel/indicator_feed_data_response.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["IndicatorFeedDataResponse"] IndicatorFeedDataResponse: TypeAlias = str diff --git a/src/cloudflare/types/intel/indicator_feed_get_response.py b/src/cloudflare/types/intel/indicator_feed_get_response.py index 1cf68a954..6373b835d 100644 --- a/src/cloudflare/types/intel/indicator_feed_get_response.py +++ b/src/cloudflare/types/intel/indicator_feed_get_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["IndicatorFeedGetResponse"] diff --git a/src/cloudflare/types/intel/indicator_feed_list_response.py b/src/cloudflare/types/intel/indicator_feed_list_response.py index de0bcb960..017258ed6 100644 --- a/src/cloudflare/types/intel/indicator_feed_list_response.py +++ b/src/cloudflare/types/intel/indicator_feed_list_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["IndicatorFeedListResponse"] diff --git a/src/cloudflare/types/intel/indicator_feed_update_params.py b/src/cloudflare/types/intel/indicator_feed_update_params.py index a99bd209c..8709cabc6 100644 --- a/src/cloudflare/types/intel/indicator_feed_update_params.py +++ b/src/cloudflare/types/intel/indicator_feed_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["IndicatorFeedUpdateParams"] diff --git a/src/cloudflare/types/intel/indicator_feed_update_response.py b/src/cloudflare/types/intel/indicator_feed_update_response.py index 71e8867ef..e85e41733 100644 --- a/src/cloudflare/types/intel/indicator_feed_update_response.py +++ b/src/cloudflare/types/intel/indicator_feed_update_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["IndicatorFeedUpdateResponse"] diff --git a/src/cloudflare/types/intel/indicator_feeds/__init__.py b/src/cloudflare/types/intel/indicator_feeds/__init__.py index a1683d8d8..2eb317071 100644 --- a/src/cloudflare/types/intel/indicator_feeds/__init__.py +++ b/src/cloudflare/types/intel/indicator_feeds/__init__.py @@ -2,11 +2,11 @@ from __future__ import annotations -from .snapshot_update_response import SnapshotUpdateResponse as SnapshotUpdateResponse +from .download_get_response import DownloadGetResponse as DownloadGetResponse from .snapshot_update_params import SnapshotUpdateParams as SnapshotUpdateParams -from .permission_create_response import PermissionCreateResponse as PermissionCreateResponse -from .permission_list_response import PermissionListResponse as PermissionListResponse -from .permission_delete_response import PermissionDeleteResponse as PermissionDeleteResponse from .permission_create_params import PermissionCreateParams as PermissionCreateParams from .permission_delete_params import PermissionDeleteParams as PermissionDeleteParams -from .download_get_response import DownloadGetResponse as DownloadGetResponse +from .permission_list_response import PermissionListResponse as PermissionListResponse +from .snapshot_update_response import SnapshotUpdateResponse as SnapshotUpdateResponse +from .permission_create_response import PermissionCreateResponse as PermissionCreateResponse +from .permission_delete_response import PermissionDeleteResponse as PermissionDeleteResponse diff --git a/src/cloudflare/types/intel/indicator_feeds/download_get_response.py b/src/cloudflare/types/intel/indicator_feeds/download_get_response.py index a9d12eaea..42596a114 100644 --- a/src/cloudflare/types/intel/indicator_feeds/download_get_response.py +++ b/src/cloudflare/types/intel/indicator_feeds/download_get_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["DownloadGetResponse"] diff --git a/src/cloudflare/types/intel/indicator_feeds/permission_create_params.py b/src/cloudflare/types/intel/indicator_feeds/permission_create_params.py index d27ce9abd..2b6cedb41 100644 --- a/src/cloudflare/types/intel/indicator_feeds/permission_create_params.py +++ b/src/cloudflare/types/intel/indicator_feeds/permission_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["PermissionCreateParams"] diff --git a/src/cloudflare/types/intel/indicator_feeds/permission_create_response.py b/src/cloudflare/types/intel/indicator_feeds/permission_create_response.py index af11d0116..28d08cb17 100644 --- a/src/cloudflare/types/intel/indicator_feeds/permission_create_response.py +++ b/src/cloudflare/types/intel/indicator_feeds/permission_create_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["PermissionCreateResponse"] diff --git a/src/cloudflare/types/intel/indicator_feeds/permission_delete_params.py b/src/cloudflare/types/intel/indicator_feeds/permission_delete_params.py index 5498be415..7720a9680 100644 --- a/src/cloudflare/types/intel/indicator_feeds/permission_delete_params.py +++ b/src/cloudflare/types/intel/indicator_feeds/permission_delete_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["PermissionDeleteParams"] diff --git a/src/cloudflare/types/intel/indicator_feeds/permission_delete_response.py b/src/cloudflare/types/intel/indicator_feeds/permission_delete_response.py index 962f3b442..ef65a403a 100644 --- a/src/cloudflare/types/intel/indicator_feeds/permission_delete_response.py +++ b/src/cloudflare/types/intel/indicator_feeds/permission_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["PermissionDeleteResponse"] diff --git a/src/cloudflare/types/intel/indicator_feeds/permission_list_response.py b/src/cloudflare/types/intel/indicator_feeds/permission_list_response.py index 7ea986c40..eb42f4479 100644 --- a/src/cloudflare/types/intel/indicator_feeds/permission_list_response.py +++ b/src/cloudflare/types/intel/indicator_feeds/permission_list_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional - +from typing import List, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["PermissionListResponse", "PermissionListResponseItem"] diff --git a/src/cloudflare/types/intel/indicator_feeds/snapshot_update_params.py b/src/cloudflare/types/intel/indicator_feeds/snapshot_update_params.py index 707539842..ec0d386ca 100644 --- a/src/cloudflare/types/intel/indicator_feeds/snapshot_update_params.py +++ b/src/cloudflare/types/intel/indicator_feeds/snapshot_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["SnapshotUpdateParams"] diff --git a/src/cloudflare/types/intel/indicator_feeds/snapshot_update_response.py b/src/cloudflare/types/intel/indicator_feeds/snapshot_update_response.py index f6e791d13..60b483452 100644 --- a/src/cloudflare/types/intel/indicator_feeds/snapshot_update_response.py +++ b/src/cloudflare/types/intel/indicator_feeds/snapshot_update_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["SnapshotUpdateResponse"] diff --git a/src/cloudflare/types/intel/ip.py b/src/cloudflare/types/intel/ip.py index 3821c0cc0..b64278b57 100644 --- a/src/cloudflare/types/intel/ip.py +++ b/src/cloudflare/types/intel/ip.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel -from typing import Optional, List - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["IP", "BelongsToRef"] diff --git a/src/cloudflare/types/intel/ip_get_params.py b/src/cloudflare/types/intel/ip_get_params.py index be59e1beb..de6ad728a 100644 --- a/src/cloudflare/types/intel/ip_get_params.py +++ b/src/cloudflare/types/intel/ip_get_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["IPGetParams"] diff --git a/src/cloudflare/types/intel/ip_get_response.py b/src/cloudflare/types/intel/ip_get_response.py index d44abcbf2..13e505272 100644 --- a/src/cloudflare/types/intel/ip_get_response.py +++ b/src/cloudflare/types/intel/ip_get_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .ip import IP - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .ip import IP __all__ = ["IPGetResponse"] diff --git a/src/cloudflare/types/intel/ip_list.py b/src/cloudflare/types/intel/ip_list.py index 38ab7cd60..2eccd1107 100644 --- a/src/cloudflare/types/intel/ip_list.py +++ b/src/cloudflare/types/intel/ip_list.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["IPList"] diff --git a/src/cloudflare/types/intel/ip_list_get_response.py b/src/cloudflare/types/intel/ip_list_get_response.py index 2890ee327..7a71d07c0 100644 --- a/src/cloudflare/types/intel/ip_list_get_response.py +++ b/src/cloudflare/types/intel/ip_list_get_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .ip_list import IPList - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .ip_list import IPList __all__ = ["IPListGetResponse"] diff --git a/src/cloudflare/types/intel/miscategorization_create_params.py b/src/cloudflare/types/intel/miscategorization_create_params.py index 1aee6be65..2ab3cef02 100644 --- a/src/cloudflare/types/intel/miscategorization_create_params.py +++ b/src/cloudflare/types/intel/miscategorization_create_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Iterable - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["MiscategorizationCreateParams"] diff --git a/src/cloudflare/types/intel/miscategorization_create_response.py b/src/cloudflare/types/intel/miscategorization_create_response.py index 8279488b9..273ee7440 100644 --- a/src/cloudflare/types/intel/miscategorization_create_response.py +++ b/src/cloudflare/types/intel/miscategorization_create_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List +from typing_extensions import Literal +from ..._models import BaseModel from ..shared.response_info import ResponseInfo -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["MiscategorizationCreateResponse"] diff --git a/src/cloudflare/types/intel/sinkhole.py b/src/cloudflare/types/intel/sinkhole.py index ebb084b35..fe3d459e7 100644 --- a/src/cloudflare/types/intel/sinkhole.py +++ b/src/cloudflare/types/intel/sinkhole.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Sinkhole"] diff --git a/src/cloudflare/types/intel/whois.py b/src/cloudflare/types/intel/whois.py index daceaeada..f852e72a7 100644 --- a/src/cloudflare/types/intel/whois.py +++ b/src/cloudflare/types/intel/whois.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import date -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Whois"] diff --git a/src/cloudflare/types/intel/whois_get_params.py b/src/cloudflare/types/intel/whois_get_params.py index 89025f295..d4069d2a7 100644 --- a/src/cloudflare/types/intel/whois_get_params.py +++ b/src/cloudflare/types/intel/whois_get_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["WhoisGetParams"] diff --git a/src/cloudflare/types/intel/whois_get_response.py b/src/cloudflare/types/intel/whois_get_response.py index 60a6bda3a..4856a756a 100644 --- a/src/cloudflare/types/intel/whois_get_response.py +++ b/src/cloudflare/types/intel/whois_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List, Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["WhoisGetResponse"] diff --git a/src/cloudflare/types/ips/__init__.py b/src/cloudflare/types/ips/__init__.py index b4b02b321..4b563930d 100644 --- a/src/cloudflare/types/ips/__init__.py +++ b/src/cloudflare/types/ips/__init__.py @@ -2,8 +2,7 @@ from __future__ import annotations -from .ips import IPs as IPs from .ips import IPs as IPs from .jdcloud_ips import JDCloudIPs as JDCloudIPs -from .ip_list_response import IPListResponse as IPListResponse from .ip_list_params import IPListParams as IPListParams +from .ip_list_response import IPListResponse as IPListResponse diff --git a/src/cloudflare/types/ips/ip_list_params.py b/src/cloudflare/types/ips/ip_list_params.py index 20c638b2f..229d1f3e3 100644 --- a/src/cloudflare/types/ips/ip_list_params.py +++ b/src/cloudflare/types/ips/ip_list_params.py @@ -4,11 +4,6 @@ from __future__ import annotations from typing_extensions import TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["IPListParams"] diff --git a/src/cloudflare/types/ips/ip_list_response.py b/src/cloudflare/types/ips/ip_list_response.py index edddfcf29..8c2d9ad59 100644 --- a/src/cloudflare/types/ips/ip_list_response.py +++ b/src/cloudflare/types/ips/ip_list_response.py @@ -1,14 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .ips import IPs - -from .jdcloud_ips import JDCloudIPs - +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .ips import IPs +from .jdcloud_ips import JDCloudIPs __all__ = ["IPListResponse"] diff --git a/src/cloudflare/types/ips/ips.py b/src/cloudflare/types/ips/ips.py index 1a36e488f..176e4c0db 100644 --- a/src/cloudflare/types/ips/ips.py +++ b/src/cloudflare/types/ips/ips.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["IPs"] diff --git a/src/cloudflare/types/ips/jdcloud_ips.py b/src/cloudflare/types/ips/jdcloud_ips.py index 39d6755c6..d09b6d10a 100644 --- a/src/cloudflare/types/ips/jdcloud_ips.py +++ b/src/cloudflare/types/ips/jdcloud_ips.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["JDCloudIPs"] diff --git a/src/cloudflare/types/keyless_certificates/__init__.py b/src/cloudflare/types/keyless_certificates/__init__.py index 7b2503d87..5588d3655 100644 --- a/src/cloudflare/types/keyless_certificates/__init__.py +++ b/src/cloudflare/types/keyless_certificates/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .keyless_certificate import KeylessCertificate as KeylessCertificate from .tunnel import Tunnel as Tunnel from .tunnel_param import TunnelParam as TunnelParam -from .keyless_certificate_delete_response import KeylessCertificateDeleteResponse as KeylessCertificateDeleteResponse -from .keyless_certificate_create_params import KeylessCertificateCreateParams as KeylessCertificateCreateParams +from .keyless_certificate import KeylessCertificate as KeylessCertificate from .keyless_certificate_edit_params import KeylessCertificateEditParams as KeylessCertificateEditParams +from .keyless_certificate_create_params import KeylessCertificateCreateParams as KeylessCertificateCreateParams +from .keyless_certificate_delete_response import KeylessCertificateDeleteResponse as KeylessCertificateDeleteResponse diff --git a/src/cloudflare/types/keyless_certificates/keyless_certificate.py b/src/cloudflare/types/keyless_certificates/keyless_certificate.py index c208a3c72..3f9b40440 100644 --- a/src/cloudflare/types/keyless_certificates/keyless_certificate.py +++ b/src/cloudflare/types/keyless_certificates/keyless_certificate.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from datetime import datetime - from typing import List, Optional - +from datetime import datetime from typing_extensions import Literal from .tunnel import Tunnel - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["KeylessCertificate"] diff --git a/src/cloudflare/types/keyless_certificates/keyless_certificate_create_params.py b/src/cloudflare/types/keyless_certificates/keyless_certificate_create_params.py index 1effc9ed9..eb5ac3a62 100644 --- a/src/cloudflare/types/keyless_certificates/keyless_certificate_create_params.py +++ b/src/cloudflare/types/keyless_certificates/keyless_certificate_create_params.py @@ -2,16 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from ..custom_hostnames.bundle_method import BundleMethod +from typing_extensions import Required, TypedDict from .tunnel_param import TunnelParam - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from ..custom_hostnames.bundle_method import BundleMethod __all__ = ["KeylessCertificateCreateParams"] diff --git a/src/cloudflare/types/keyless_certificates/keyless_certificate_delete_response.py b/src/cloudflare/types/keyless_certificates/keyless_certificate_delete_response.py index fcf096254..9544ffc0d 100644 --- a/src/cloudflare/types/keyless_certificates/keyless_certificate_delete_response.py +++ b/src/cloudflare/types/keyless_certificates/keyless_certificate_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["KeylessCertificateDeleteResponse"] diff --git a/src/cloudflare/types/keyless_certificates/keyless_certificate_edit_params.py b/src/cloudflare/types/keyless_certificates/keyless_certificate_edit_params.py index 3a6ea6bcf..1aba961af 100644 --- a/src/cloudflare/types/keyless_certificates/keyless_certificate_edit_params.py +++ b/src/cloudflare/types/keyless_certificates/keyless_certificate_edit_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict from .tunnel_param import TunnelParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["KeylessCertificateEditParams"] diff --git a/src/cloudflare/types/keyless_certificates/tunnel.py b/src/cloudflare/types/keyless_certificates/tunnel.py index 22a35f34f..9a8b2936d 100644 --- a/src/cloudflare/types/keyless_certificates/tunnel.py +++ b/src/cloudflare/types/keyless_certificates/tunnel.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["Tunnel"] diff --git a/src/cloudflare/types/keyless_certificates/tunnel_param.py b/src/cloudflare/types/keyless_certificates/tunnel_param.py index 8fa0cf9e3..c6ebab906 100644 --- a/src/cloudflare/types/keyless_certificates/tunnel_param.py +++ b/src/cloudflare/types/keyless_certificates/tunnel_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["TunnelParam"] diff --git a/src/cloudflare/types/kv/__init__.py b/src/cloudflare/types/kv/__init__.py index 01b7a57e1..09b3bc52b 100644 --- a/src/cloudflare/types/kv/__init__.py +++ b/src/cloudflare/types/kv/__init__.py @@ -3,6 +3,6 @@ from __future__ import annotations from .namespace import Namespace as Namespace +from .namespace_list_params import NamespaceListParams as NamespaceListParams from .namespace_create_params import NamespaceCreateParams as NamespaceCreateParams from .namespace_update_params import NamespaceUpdateParams as NamespaceUpdateParams -from .namespace_list_params import NamespaceListParams as NamespaceListParams diff --git a/src/cloudflare/types/kv/namespace.py b/src/cloudflare/types/kv/namespace.py index 26c048277..cac0817cd 100644 --- a/src/cloudflare/types/kv/namespace.py +++ b/src/cloudflare/types/kv/namespace.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Namespace"] diff --git a/src/cloudflare/types/kv/namespace_create_params.py b/src/cloudflare/types/kv/namespace_create_params.py index 2f272c923..876990c76 100644 --- a/src/cloudflare/types/kv/namespace_create_params.py +++ b/src/cloudflare/types/kv/namespace_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["NamespaceCreateParams"] diff --git a/src/cloudflare/types/kv/namespace_list_params.py b/src/cloudflare/types/kv/namespace_list_params.py index 8e8f374fb..2c832c885 100644 --- a/src/cloudflare/types/kv/namespace_list_params.py +++ b/src/cloudflare/types/kv/namespace_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["NamespaceListParams"] diff --git a/src/cloudflare/types/kv/namespace_update_params.py b/src/cloudflare/types/kv/namespace_update_params.py index 596761a55..531377b61 100644 --- a/src/cloudflare/types/kv/namespace_update_params.py +++ b/src/cloudflare/types/kv/namespace_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["NamespaceUpdateParams"] diff --git a/src/cloudflare/types/kv/namespaces/__init__.py b/src/cloudflare/types/kv/namespaces/__init__.py index 30018431b..c76af0cc0 100644 --- a/src/cloudflare/types/kv/namespaces/__init__.py +++ b/src/cloudflare/types/kv/namespaces/__init__.py @@ -2,8 +2,8 @@ from __future__ import annotations -from .bulk_update_params import BulkUpdateParams as BulkUpdateParams from .key import Key as Key from .key_list_params import KeyListParams as KeyListParams -from .metadata_get_response import MetadataGetResponse as MetadataGetResponse +from .bulk_update_params import BulkUpdateParams as BulkUpdateParams from .value_update_params import ValueUpdateParams as ValueUpdateParams +from .metadata_get_response import MetadataGetResponse as MetadataGetResponse diff --git a/src/cloudflare/types/kv/namespaces/bulk_update_params.py b/src/cloudflare/types/kv/namespaces/bulk_update_params.py index 2c8dc0e26..6cb8d8702 100644 --- a/src/cloudflare/types/kv/namespaces/bulk_update_params.py +++ b/src/cloudflare/types/kv/namespaces/bulk_update_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import Iterable, Dict - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing import Dict, Iterable +from typing_extensions import Required, TypedDict __all__ = ["BulkUpdateParams", "Body"] diff --git a/src/cloudflare/types/kv/namespaces/key.py b/src/cloudflare/types/kv/namespaces/key.py index e82a52997..5b48057e9 100644 --- a/src/cloudflare/types/kv/namespaces/key.py +++ b/src/cloudflare/types/kv/namespaces/key.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Dict, Optional + from ...._models import BaseModel -from typing import Optional, Dict - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Key"] diff --git a/src/cloudflare/types/kv/namespaces/key_list_params.py b/src/cloudflare/types/kv/namespaces/key_list_params.py index f2e6007c2..230b7b198 100644 --- a/src/cloudflare/types/kv/namespaces/key_list_params.py +++ b/src/cloudflare/types/kv/namespaces/key_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["KeyListParams"] diff --git a/src/cloudflare/types/kv/namespaces/metadata_get_response.py b/src/cloudflare/types/kv/namespaces/metadata_get_response.py index 831f9e98a..74bf2b5c9 100644 --- a/src/cloudflare/types/kv/namespaces/metadata_get_response.py +++ b/src/cloudflare/types/kv/namespaces/metadata_get_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Dict from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["MetadataGetResponse"] MetadataGetResponse: TypeAlias = Dict[str, object] diff --git a/src/cloudflare/types/kv/namespaces/value_update_params.py b/src/cloudflare/types/kv/namespaces/value_update_params.py index 038977968..99baa2388 100644 --- a/src/cloudflare/types/kv/namespaces/value_update_params.py +++ b/src/cloudflare/types/kv/namespaces/value_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ValueUpdateParams"] diff --git a/src/cloudflare/types/load_balancers/__init__.py b/src/cloudflare/types/load_balancers/__init__.py index 6a482d82b..46d78e92e 100644 --- a/src/cloudflare/types/load_balancers/__init__.py +++ b/src/cloudflare/types/load_balancers/__init__.py @@ -2,52 +2,52 @@ from __future__ import annotations -from .adaptive_routing import AdaptiveRouting as AdaptiveRouting -from .adaptive_routing_param import AdaptiveRoutingParam as AdaptiveRoutingParam -from .check_region import CheckRegion as CheckRegion -from .default_pools import DefaultPools as DefaultPools -from .filter_options import FilterOptions as FilterOptions -from .filter_options_param import FilterOptionsParam as FilterOptionsParam -from .header import Header as Header -from .header_param import HeaderParam as HeaderParam from .host import Host as Host +from .pool import Pool as Pool +from .rules import Rules as Rules +from .header import Header as Header +from .origin import Origin as Origin +from .monitor import Monitor as Monitor +from .rules_param import RulesParam as RulesParam +from .check_region import CheckRegion as CheckRegion +from .header_param import HeaderParam as HeaderParam +from .origin_param import OriginParam as OriginParam +from .default_pools import DefaultPools as DefaultPools from .load_balancer import LoadBalancer as LoadBalancer from .load_shedding import LoadShedding as LoadShedding -from .load_shedding_param import LoadSheddingParam as LoadSheddingParam -from .location_strategy import LocationStrategy as LocationStrategy -from .location_strategy_param import LocationStrategyParam as LocationStrategyParam -from .notification_filter import NotificationFilter as NotificationFilter -from .notification_filter_param import NotificationFilterParam as NotificationFilterParam -from .origin import Origin as Origin -from .origin_param import OriginParam as OriginParam +from .filter_options import FilterOptions as FilterOptions from .origin_steering import OriginSteering as OriginSteering -from .origin_steering_param import OriginSteeringParam as OriginSteeringParam from .random_steering import RandomSteering as RandomSteering -from .random_steering_param import RandomSteeringParam as RandomSteeringParam -from .rules import Rules as Rules -from .rules_param import RulesParam as RulesParam -from .session_affinity import SessionAffinity as SessionAffinity -from .session_affinity_attributes import SessionAffinityAttributes as SessionAffinityAttributes -from .session_affinity_attributes_param import SessionAffinityAttributesParam as SessionAffinityAttributesParam from .steering_policy import SteeringPolicy as SteeringPolicy -from .load_balancer_delete_response import LoadBalancerDeleteResponse as LoadBalancerDeleteResponse -from .load_balancer_create_params import LoadBalancerCreateParams as LoadBalancerCreateParams -from .load_balancer_update_params import LoadBalancerUpdateParams as LoadBalancerUpdateParams -from .load_balancer_edit_params import LoadBalancerEditParams as LoadBalancerEditParams -from .monitor import Monitor as Monitor -from .monitor_delete_response import MonitorDeleteResponse as MonitorDeleteResponse -from .monitor_create_params import MonitorCreateParams as MonitorCreateParams -from .monitor_update_params import MonitorUpdateParams as MonitorUpdateParams -from .monitor_edit_params import MonitorEditParams as MonitorEditParams -from .pool import Pool as Pool -from .pool_delete_response import PoolDeleteResponse as PoolDeleteResponse +from .adaptive_routing import AdaptiveRouting as AdaptiveRouting +from .pool_edit_params import PoolEditParams as PoolEditParams +from .pool_list_params import PoolListParams as PoolListParams +from .session_affinity import SessionAffinity as SessionAffinity +from .location_strategy import LocationStrategy as LocationStrategy +from .search_get_params import SearchGetParams as SearchGetParams from .pool_create_params import PoolCreateParams as PoolCreateParams from .pool_update_params import PoolUpdateParams as PoolUpdateParams -from .pool_list_params import PoolListParams as PoolListParams -from .pool_edit_params import PoolEditParams as PoolEditParams +from .region_list_params import RegionListParams as RegionListParams +from .load_shedding_param import LoadSheddingParam as LoadSheddingParam +from .monitor_edit_params import MonitorEditParams as MonitorEditParams +from .notification_filter import NotificationFilter as NotificationFilter +from .region_get_response import RegionGetResponse as RegionGetResponse +from .search_get_response import SearchGetResponse as SearchGetResponse +from .filter_options_param import FilterOptionsParam as FilterOptionsParam +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 .region_get_response import RegionGetResponse as RegionGetResponse -from .region_list_params import RegionListParams as RegionListParams -from .search_get_response import SearchGetResponse as SearchGetResponse -from .search_get_params import SearchGetParams as SearchGetParams +from .monitor_create_params import MonitorCreateParams as MonitorCreateParams +from .monitor_update_params import MonitorUpdateParams as MonitorUpdateParams +from .origin_steering_param import OriginSteeringParam as OriginSteeringParam +from .random_steering_param import RandomSteeringParam as RandomSteeringParam +from .adaptive_routing_param import AdaptiveRoutingParam as AdaptiveRoutingParam +from .location_strategy_param import LocationStrategyParam as LocationStrategyParam +from .monitor_delete_response import MonitorDeleteResponse as MonitorDeleteResponse +from .load_balancer_edit_params import LoadBalancerEditParams as LoadBalancerEditParams +from .notification_filter_param import NotificationFilterParam as NotificationFilterParam +from .load_balancer_create_params import LoadBalancerCreateParams as LoadBalancerCreateParams +from .load_balancer_update_params import LoadBalancerUpdateParams as LoadBalancerUpdateParams +from .session_affinity_attributes import SessionAffinityAttributes as SessionAffinityAttributes +from .load_balancer_delete_response import LoadBalancerDeleteResponse as LoadBalancerDeleteResponse +from .session_affinity_attributes_param import SessionAffinityAttributesParam as SessionAffinityAttributesParam diff --git a/src/cloudflare/types/load_balancers/adaptive_routing.py b/src/cloudflare/types/load_balancers/adaptive_routing.py index b257d651f..b4d03c486 100644 --- a/src/cloudflare/types/load_balancers/adaptive_routing.py +++ b/src/cloudflare/types/load_balancers/adaptive_routing.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["AdaptiveRouting"] diff --git a/src/cloudflare/types/load_balancers/check_region.py b/src/cloudflare/types/load_balancers/check_region.py index fb554af2b..f40e920ee 100644 --- a/src/cloudflare/types/load_balancers/check_region.py +++ b/src/cloudflare/types/load_balancers/check_region.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["CheckRegion"] CheckRegion: TypeAlias = Literal[ diff --git a/src/cloudflare/types/load_balancers/default_pools.py b/src/cloudflare/types/load_balancers/default_pools.py index 4f117947a..c9a8024c0 100644 --- a/src/cloudflare/types/load_balancers/default_pools.py +++ b/src/cloudflare/types/load_balancers/default_pools.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["DefaultPools"] DefaultPools: TypeAlias = str diff --git a/src/cloudflare/types/load_balancers/filter_options.py b/src/cloudflare/types/load_balancers/filter_options.py index ad829606c..a1b4b46c1 100644 --- a/src/cloudflare/types/load_balancers/filter_options.py +++ b/src/cloudflare/types/load_balancers/filter_options.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["FilterOptions"] diff --git a/src/cloudflare/types/load_balancers/filter_options_param.py b/src/cloudflare/types/load_balancers/filter_options_param.py index e235c1cc9..5fa6ff703 100644 --- a/src/cloudflare/types/load_balancers/filter_options_param.py +++ b/src/cloudflare/types/load_balancers/filter_options_param.py @@ -3,7 +3,6 @@ from __future__ import annotations from typing import Optional - from typing_extensions import TypedDict __all__ = ["FilterOptionsParam"] diff --git a/src/cloudflare/types/load_balancers/header.py b/src/cloudflare/types/load_balancers/header.py index 7a231c393..b6bd2830a 100644 --- a/src/cloudflare/types/load_balancers/header.py +++ b/src/cloudflare/types/load_balancers/header.py @@ -1,14 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel +from typing import List, Optional -from typing import Optional, List +from pydantic import Field as FieldInfo from .host import Host - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Header"] diff --git a/src/cloudflare/types/load_balancers/header_param.py b/src/cloudflare/types/load_balancers/header_param.py index 632cf33ab..b3e837d92 100644 --- a/src/cloudflare/types/load_balancers/header_param.py +++ b/src/cloudflare/types/load_balancers/header_param.py @@ -3,11 +3,9 @@ from __future__ import annotations from typing import List +from typing_extensions import Annotated, TypedDict from .host import Host - -from typing_extensions import TypedDict, Annotated - from ..._utils import PropertyInfo __all__ = ["HeaderParam"] diff --git a/src/cloudflare/types/load_balancers/host.py b/src/cloudflare/types/load_balancers/host.py index 1f61ddf97..c294bcb2e 100644 --- a/src/cloudflare/types/load_balancers/host.py +++ b/src/cloudflare/types/load_balancers/host.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Host"] Host: TypeAlias = str diff --git a/src/cloudflare/types/load_balancers/load_balancer.py b/src/cloudflare/types/load_balancers/load_balancer.py index 7c3db28a2..e7369800a 100644 --- a/src/cloudflare/types/load_balancers/load_balancer.py +++ b/src/cloudflare/types/load_balancers/load_balancer.py @@ -1,30 +1,17 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, Dict, List - -from .adaptive_routing import AdaptiveRouting - +from typing import Dict, List, Optional from datetime import datetime -from .default_pools import DefaultPools - -from .location_strategy import LocationStrategy - -from .random_steering import RandomSteering - from .rules import Rules - -from .session_affinity import SessionAffinity - -from .session_affinity_attributes import SessionAffinityAttributes - +from ..._models import BaseModel +from .default_pools import DefaultPools +from .random_steering import RandomSteering from .steering_policy import SteeringPolicy - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .adaptive_routing import AdaptiveRouting +from .session_affinity import SessionAffinity +from .location_strategy import LocationStrategy +from .session_affinity_attributes import SessionAffinityAttributes __all__ = ["LoadBalancer"] diff --git a/src/cloudflare/types/load_balancers/load_balancer_create_params.py b/src/cloudflare/types/load_balancers/load_balancer_create_params.py index 8c95b3325..0bc60240b 100644 --- a/src/cloudflare/types/load_balancers/load_balancer_create_params.py +++ b/src/cloudflare/types/load_balancers/load_balancer_create_params.py @@ -2,30 +2,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Dict, Iterable - -from .default_pools import DefaultPools - -from .adaptive_routing_param import AdaptiveRoutingParam - -from .location_strategy_param import LocationStrategyParam - -from .random_steering_param import RandomSteeringParam +from typing import Dict, List, Iterable +from typing_extensions import Required, TypedDict from .rules_param import RulesParam - -from .session_affinity import SessionAffinity - -from .session_affinity_attributes_param import SessionAffinityAttributesParam - +from .default_pools import DefaultPools from .steering_policy import SteeringPolicy - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .session_affinity import SessionAffinity +from .random_steering_param import RandomSteeringParam +from .adaptive_routing_param import AdaptiveRoutingParam +from .location_strategy_param import LocationStrategyParam +from .session_affinity_attributes_param import SessionAffinityAttributesParam __all__ = ["LoadBalancerCreateParams"] diff --git a/src/cloudflare/types/load_balancers/load_balancer_delete_response.py b/src/cloudflare/types/load_balancers/load_balancer_delete_response.py index 796f4e4dd..d7c7046d7 100644 --- a/src/cloudflare/types/load_balancers/load_balancer_delete_response.py +++ b/src/cloudflare/types/load_balancers/load_balancer_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["LoadBalancerDeleteResponse"] diff --git a/src/cloudflare/types/load_balancers/load_balancer_edit_params.py b/src/cloudflare/types/load_balancers/load_balancer_edit_params.py index 9c90df047..0769b9b1e 100644 --- a/src/cloudflare/types/load_balancers/load_balancer_edit_params.py +++ b/src/cloudflare/types/load_balancers/load_balancer_edit_params.py @@ -2,30 +2,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from .adaptive_routing_param import AdaptiveRoutingParam - from typing import Dict, List, Iterable - -from .default_pools import DefaultPools - -from .location_strategy_param import LocationStrategyParam - -from .random_steering_param import RandomSteeringParam +from typing_extensions import Required, TypedDict from .rules_param import RulesParam - -from .session_affinity import SessionAffinity - -from .session_affinity_attributes_param import SessionAffinityAttributesParam - +from .default_pools import DefaultPools from .steering_policy import SteeringPolicy - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .session_affinity import SessionAffinity +from .random_steering_param import RandomSteeringParam +from .adaptive_routing_param import AdaptiveRoutingParam +from .location_strategy_param import LocationStrategyParam +from .session_affinity_attributes_param import SessionAffinityAttributesParam __all__ = ["LoadBalancerEditParams"] diff --git a/src/cloudflare/types/load_balancers/load_balancer_update_params.py b/src/cloudflare/types/load_balancers/load_balancer_update_params.py index d1bad1ed7..78bdf8ced 100644 --- a/src/cloudflare/types/load_balancers/load_balancer_update_params.py +++ b/src/cloudflare/types/load_balancers/load_balancer_update_params.py @@ -2,30 +2,17 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Dict, Iterable - -from .default_pools import DefaultPools - -from .adaptive_routing_param import AdaptiveRoutingParam - -from .location_strategy_param import LocationStrategyParam - -from .random_steering_param import RandomSteeringParam +from typing import Dict, List, Iterable +from typing_extensions import Required, TypedDict from .rules_param import RulesParam - -from .session_affinity import SessionAffinity - -from .session_affinity_attributes_param import SessionAffinityAttributesParam - +from .default_pools import DefaultPools from .steering_policy import SteeringPolicy - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .session_affinity import SessionAffinity +from .random_steering_param import RandomSteeringParam +from .adaptive_routing_param import AdaptiveRoutingParam +from .location_strategy_param import LocationStrategyParam +from .session_affinity_attributes_param import SessionAffinityAttributesParam __all__ = ["LoadBalancerUpdateParams"] diff --git a/src/cloudflare/types/load_balancers/load_shedding.py b/src/cloudflare/types/load_balancers/load_shedding.py index 6a3bb2ca8..882b6787d 100644 --- a/src/cloudflare/types/load_balancers/load_shedding.py +++ b/src/cloudflare/types/load_balancers/load_shedding.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["LoadShedding"] diff --git a/src/cloudflare/types/load_balancers/location_strategy.py b/src/cloudflare/types/load_balancers/location_strategy.py index 31da3e562..87853e3b5 100644 --- a/src/cloudflare/types/load_balancers/location_strategy.py +++ b/src/cloudflare/types/load_balancers/location_strategy.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["LocationStrategy"] diff --git a/src/cloudflare/types/load_balancers/monitor.py b/src/cloudflare/types/load_balancers/monitor.py index deb974257..409c51514 100644 --- a/src/cloudflare/types/load_balancers/monitor.py +++ b/src/cloudflare/types/load_balancers/monitor.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, Dict, List - +from typing import Dict, List, Optional from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Monitor"] diff --git a/src/cloudflare/types/load_balancers/monitor_create_params.py b/src/cloudflare/types/load_balancers/monitor_create_params.py index f8dc977e1..99eb83a7f 100644 --- a/src/cloudflare/types/load_balancers/monitor_create_params.py +++ b/src/cloudflare/types/load_balancers/monitor_create_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal - from typing import Dict, List +from typing_extensions import Literal, Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["MonitorCreateParams"] diff --git a/src/cloudflare/types/load_balancers/monitor_delete_response.py b/src/cloudflare/types/load_balancers/monitor_delete_response.py index 6ee7ad844..a89a7bd6d 100644 --- a/src/cloudflare/types/load_balancers/monitor_delete_response.py +++ b/src/cloudflare/types/load_balancers/monitor_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["MonitorDeleteResponse"] diff --git a/src/cloudflare/types/load_balancers/monitor_edit_params.py b/src/cloudflare/types/load_balancers/monitor_edit_params.py index 6aed76781..decb06b21 100644 --- a/src/cloudflare/types/load_balancers/monitor_edit_params.py +++ b/src/cloudflare/types/load_balancers/monitor_edit_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal - from typing import Dict, List +from typing_extensions import Literal, Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["MonitorEditParams"] diff --git a/src/cloudflare/types/load_balancers/monitor_update_params.py b/src/cloudflare/types/load_balancers/monitor_update_params.py index c845975ba..00eb877ab 100644 --- a/src/cloudflare/types/load_balancers/monitor_update_params.py +++ b/src/cloudflare/types/load_balancers/monitor_update_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal - from typing import Dict, List +from typing_extensions import Literal, Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["MonitorUpdateParams"] diff --git a/src/cloudflare/types/load_balancers/monitors/__init__.py b/src/cloudflare/types/load_balancers/monitors/__init__.py index 5b544c543..a56a5164c 100644 --- a/src/cloudflare/types/load_balancers/monitors/__init__.py +++ b/src/cloudflare/types/load_balancers/monitors/__init__.py @@ -2,6 +2,6 @@ from __future__ import annotations -from .preview_create_response import PreviewCreateResponse as PreviewCreateResponse from .preview_create_params import PreviewCreateParams as PreviewCreateParams from .reference_get_response import ReferenceGetResponse as ReferenceGetResponse +from .preview_create_response import PreviewCreateResponse as PreviewCreateResponse diff --git a/src/cloudflare/types/load_balancers/monitors/preview_create_params.py b/src/cloudflare/types/load_balancers/monitors/preview_create_params.py index 8ded2ee64..4dbc8f1f9 100644 --- a/src/cloudflare/types/load_balancers/monitors/preview_create_params.py +++ b/src/cloudflare/types/load_balancers/monitors/preview_create_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal - from typing import Dict, List +from typing_extensions import Literal, Required, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["PreviewCreateParams"] diff --git a/src/cloudflare/types/load_balancers/monitors/preview_create_response.py b/src/cloudflare/types/load_balancers/monitors/preview_create_response.py index 0f1c11caa..ade1d734c 100644 --- a/src/cloudflare/types/load_balancers/monitors/preview_create_response.py +++ b/src/cloudflare/types/load_balancers/monitors/preview_create_response.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Dict, Optional + from ...._models import BaseModel -from typing import Optional, Dict - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["PreviewCreateResponse"] diff --git a/src/cloudflare/types/load_balancers/monitors/reference_get_response.py b/src/cloudflare/types/load_balancers/monitors/reference_get_response.py index 19b9c5156..56dab55e1 100644 --- a/src/cloudflare/types/load_balancers/monitors/reference_get_response.py +++ b/src/cloudflare/types/load_balancers/monitors/reference_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional - +from typing import List, Optional from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ReferenceGetResponse", "ReferenceGetResponseItem"] diff --git a/src/cloudflare/types/load_balancers/notification_filter.py b/src/cloudflare/types/load_balancers/notification_filter.py index d32606d2c..de6857dea 100644 --- a/src/cloudflare/types/load_balancers/notification_filter.py +++ b/src/cloudflare/types/load_balancers/notification_filter.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional +from ..._models import BaseModel from .filter_options import FilterOptions -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["NotificationFilter"] diff --git a/src/cloudflare/types/load_balancers/notification_filter_param.py b/src/cloudflare/types/load_balancers/notification_filter_param.py index c98ecc47a..ac4daaaba 100644 --- a/src/cloudflare/types/load_balancers/notification_filter_param.py +++ b/src/cloudflare/types/load_balancers/notification_filter_param.py @@ -3,11 +3,10 @@ from __future__ import annotations from typing import Optional +from typing_extensions import TypedDict from .filter_options_param import FilterOptionsParam -from typing_extensions import TypedDict - __all__ = ["NotificationFilterParam"] diff --git a/src/cloudflare/types/load_balancers/origin.py b/src/cloudflare/types/load_balancers/origin.py index bc5541e1e..dda868601 100644 --- a/src/cloudflare/types/load_balancers/origin.py +++ b/src/cloudflare/types/load_balancers/origin.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime from .header import Header - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Origin"] diff --git a/src/cloudflare/types/load_balancers/origin_param.py b/src/cloudflare/types/load_balancers/origin_param.py index 0bd85a595..0b35856a9 100644 --- a/src/cloudflare/types/load_balancers/origin_param.py +++ b/src/cloudflare/types/load_balancers/origin_param.py @@ -2,10 +2,10 @@ from __future__ import annotations -from .header_param import HeaderParam - from typing_extensions import TypedDict +from .header_param import HeaderParam + __all__ = ["OriginParam"] diff --git a/src/cloudflare/types/load_balancers/origin_steering.py b/src/cloudflare/types/load_balancers/origin_steering.py index 208ff0aa1..e7983ceea 100644 --- a/src/cloudflare/types/load_balancers/origin_steering.py +++ b/src/cloudflare/types/load_balancers/origin_steering.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["OriginSteering"] diff --git a/src/cloudflare/types/load_balancers/pool.py b/src/cloudflare/types/load_balancers/pool.py index d07250f9f..438879aa5 100644 --- a/src/cloudflare/types/load_balancers/pool.py +++ b/src/cloudflare/types/load_balancers/pool.py @@ -1,24 +1,14 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from .check_region import CheckRegion - +from typing import List, Optional from datetime import datetime -from .load_shedding import LoadShedding - -from .notification_filter import NotificationFilter - -from .origin_steering import OriginSteering - from .origin import Origin - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .check_region import CheckRegion +from .load_shedding import LoadShedding +from .origin_steering import OriginSteering +from .notification_filter import NotificationFilter __all__ = ["Pool"] diff --git a/src/cloudflare/types/load_balancers/pool_create_params.py b/src/cloudflare/types/load_balancers/pool_create_params.py index 6321e693e..c52552ce1 100644 --- a/src/cloudflare/types/load_balancers/pool_create_params.py +++ b/src/cloudflare/types/load_balancers/pool_create_params.py @@ -2,22 +2,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Iterable, Optional +from typing_extensions import Required, TypedDict from .origin_param import OriginParam - from .load_shedding_param import LoadSheddingParam - -from .notification_filter_param import NotificationFilterParam - from .origin_steering_param import OriginSteeringParam - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .notification_filter_param import NotificationFilterParam __all__ = ["PoolCreateParams"] diff --git a/src/cloudflare/types/load_balancers/pool_delete_response.py b/src/cloudflare/types/load_balancers/pool_delete_response.py index bc86c0195..25279b592 100644 --- a/src/cloudflare/types/load_balancers/pool_delete_response.py +++ b/src/cloudflare/types/load_balancers/pool_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["PoolDeleteResponse"] diff --git a/src/cloudflare/types/load_balancers/pool_edit_params.py b/src/cloudflare/types/load_balancers/pool_edit_params.py index ac582c45b..dfa8d82dd 100644 --- a/src/cloudflare/types/load_balancers/pool_edit_params.py +++ b/src/cloudflare/types/load_balancers/pool_edit_params.py @@ -2,24 +2,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import Optional, List, Iterable +from typing import List, Iterable, Optional +from typing_extensions import Required, TypedDict from .check_region import CheckRegion - -from .load_shedding_param import LoadSheddingParam - -from .notification_filter_param import NotificationFilterParam - -from .origin_steering_param import OriginSteeringParam - from .origin_param import OriginParam - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .load_shedding_param import LoadSheddingParam +from .origin_steering_param import OriginSteeringParam +from .notification_filter_param import NotificationFilterParam __all__ = ["PoolEditParams"] diff --git a/src/cloudflare/types/load_balancers/pool_list_params.py b/src/cloudflare/types/load_balancers/pool_list_params.py index fe73242be..e11b491a9 100644 --- a/src/cloudflare/types/load_balancers/pool_list_params.py +++ b/src/cloudflare/types/load_balancers/pool_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["PoolListParams"] diff --git a/src/cloudflare/types/load_balancers/pool_update_params.py b/src/cloudflare/types/load_balancers/pool_update_params.py index b7e999462..4e9e9dbf7 100644 --- a/src/cloudflare/types/load_balancers/pool_update_params.py +++ b/src/cloudflare/types/load_balancers/pool_update_params.py @@ -2,24 +2,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import Iterable, Optional, List - -from .origin_param import OriginParam +from typing import List, Iterable, Optional +from typing_extensions import Required, TypedDict from .check_region import CheckRegion - +from .origin_param import OriginParam from .load_shedding_param import LoadSheddingParam - -from .notification_filter_param import NotificationFilterParam - from .origin_steering_param import OriginSteeringParam - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .notification_filter_param import NotificationFilterParam __all__ = ["PoolUpdateParams"] diff --git a/src/cloudflare/types/load_balancers/pools/__init__.py b/src/cloudflare/types/load_balancers/pools/__init__.py index d9103242c..d3ad97b46 100644 --- a/src/cloudflare/types/load_balancers/pools/__init__.py +++ b/src/cloudflare/types/load_balancers/pools/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations -from .health_create_response import HealthCreateResponse as HealthCreateResponse from .health_get_response import HealthGetResponse as HealthGetResponse from .health_create_params import HealthCreateParams as HealthCreateParams +from .health_create_response import HealthCreateResponse as HealthCreateResponse from .reference_get_response import ReferenceGetResponse as ReferenceGetResponse diff --git a/src/cloudflare/types/load_balancers/pools/health_create_params.py b/src/cloudflare/types/load_balancers/pools/health_create_params.py index 34ffb30bc..05e044d80 100644 --- a/src/cloudflare/types/load_balancers/pools/health_create_params.py +++ b/src/cloudflare/types/load_balancers/pools/health_create_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal - from typing import Dict, List +from typing_extensions import Literal, Required, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["HealthCreateParams"] diff --git a/src/cloudflare/types/load_balancers/pools/health_create_response.py b/src/cloudflare/types/load_balancers/pools/health_create_response.py index 4a19461fb..f401109c0 100644 --- a/src/cloudflare/types/load_balancers/pools/health_create_response.py +++ b/src/cloudflare/types/load_balancers/pools/health_create_response.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Dict, Optional + from ...._models import BaseModel -from typing import Optional, Dict - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["HealthCreateResponse"] diff --git a/src/cloudflare/types/load_balancers/pools/health_get_response.py b/src/cloudflare/types/load_balancers/pools/health_get_response.py index e1b54b757..915498a71 100644 --- a/src/cloudflare/types/load_balancers/pools/health_get_response.py +++ b/src/cloudflare/types/load_balancers/pools/health_get_response.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ...._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["HealthGetResponse", "PopHealth", "PopHealthOrigin", "PopHealthOriginIP"] diff --git a/src/cloudflare/types/load_balancers/pools/reference_get_response.py b/src/cloudflare/types/load_balancers/pools/reference_get_response.py index 19b9c5156..56dab55e1 100644 --- a/src/cloudflare/types/load_balancers/pools/reference_get_response.py +++ b/src/cloudflare/types/load_balancers/pools/reference_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional - +from typing import List, Optional from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ReferenceGetResponse", "ReferenceGetResponseItem"] diff --git a/src/cloudflare/types/load_balancers/preview_get_response.py b/src/cloudflare/types/load_balancers/preview_get_response.py index 04d2bd412..5e279e09b 100644 --- a/src/cloudflare/types/load_balancers/preview_get_response.py +++ b/src/cloudflare/types/load_balancers/preview_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List, Dict - +from typing import Dict, List, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = [ "PreviewGetResponse", diff --git a/src/cloudflare/types/load_balancers/random_steering.py b/src/cloudflare/types/load_balancers/random_steering.py index 90241bee6..2b999c885 100644 --- a/src/cloudflare/types/load_balancers/random_steering.py +++ b/src/cloudflare/types/load_balancers/random_steering.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RandomSteering", "PoolWeights"] diff --git a/src/cloudflare/types/load_balancers/region_get_response.py b/src/cloudflare/types/load_balancers/region_get_response.py index 0eb63e605..fd3582537 100644 --- a/src/cloudflare/types/load_balancers/region_get_response.py +++ b/src/cloudflare/types/load_balancers/region_get_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - +from typing import Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["RegionGetResponse"] RegionGetResponse: TypeAlias = Union[Optional[str], object] diff --git a/src/cloudflare/types/load_balancers/region_list_params.py b/src/cloudflare/types/load_balancers/region_list_params.py index 1fe0ce2d9..5f42c0470 100644 --- a/src/cloudflare/types/load_balancers/region_list_params.py +++ b/src/cloudflare/types/load_balancers/region_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["RegionListParams"] diff --git a/src/cloudflare/types/load_balancers/region_list_response.py b/src/cloudflare/types/load_balancers/region_list_response.py index d7e4a7e27..25d3aa695 100644 --- a/src/cloudflare/types/load_balancers/region_list_response.py +++ b/src/cloudflare/types/load_balancers/region_list_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - +from typing import Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["RegionListResponse"] RegionListResponse: TypeAlias = Union[Optional[str], object] diff --git a/src/cloudflare/types/load_balancers/rules.py b/src/cloudflare/types/load_balancers/rules.py index e2da81a05..ef900b92a 100644 --- a/src/cloudflare/types/load_balancers/rules.py +++ b/src/cloudflare/types/load_balancers/rules.py @@ -1,26 +1,15 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Dict, List, Optional + from ..._models import BaseModel - -from typing import Optional, Dict, List - -from .adaptive_routing import AdaptiveRouting - from .default_pools import DefaultPools - -from .location_strategy import LocationStrategy - from .random_steering import RandomSteering - -from .session_affinity import SessionAffinity - -from .session_affinity_attributes import SessionAffinityAttributes - from .steering_policy import SteeringPolicy - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .adaptive_routing import AdaptiveRouting +from .session_affinity import SessionAffinity +from .location_strategy import LocationStrategy +from .session_affinity_attributes import SessionAffinityAttributes __all__ = ["Rules", "FixedResponse", "Overrides"] diff --git a/src/cloudflare/types/load_balancers/rules_param.py b/src/cloudflare/types/load_balancers/rules_param.py index 8a4cabfdc..7a486e689 100644 --- a/src/cloudflare/types/load_balancers/rules_param.py +++ b/src/cloudflare/types/load_balancers/rules_param.py @@ -2,23 +2,16 @@ from __future__ import annotations +from typing import Dict, List from typing_extensions import TypedDict -from .adaptive_routing_param import AdaptiveRoutingParam - -from typing import Dict, List - from .default_pools import DefaultPools - -from .location_strategy_param import LocationStrategyParam - -from .random_steering_param import RandomSteeringParam - -from .session_affinity import SessionAffinity - -from .session_affinity_attributes_param import SessionAffinityAttributesParam - from .steering_policy import SteeringPolicy +from .session_affinity import SessionAffinity +from .random_steering_param import RandomSteeringParam +from .adaptive_routing_param import AdaptiveRoutingParam +from .location_strategy_param import LocationStrategyParam +from .session_affinity_attributes_param import SessionAffinityAttributesParam __all__ = ["RulesParam", "FixedResponse", "Overrides"] diff --git a/src/cloudflare/types/load_balancers/search_get_params.py b/src/cloudflare/types/load_balancers/search_get_params.py index 84c106e6b..0bfe60004 100644 --- a/src/cloudflare/types/load_balancers/search_get_params.py +++ b/src/cloudflare/types/load_balancers/search_get_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["SearchGetParams", "SearchParams"] diff --git a/src/cloudflare/types/load_balancers/search_get_response.py b/src/cloudflare/types/load_balancers/search_get_response.py index 4d82d74d3..87d1af2b8 100644 --- a/src/cloudflare/types/load_balancers/search_get_response.py +++ b/src/cloudflare/types/load_balancers/search_get_response.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel -from typing import Optional, List - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SearchGetResponse", "Resource"] diff --git a/src/cloudflare/types/load_balancers/session_affinity.py b/src/cloudflare/types/load_balancers/session_affinity.py index ca7dad145..bde62aa81 100644 --- a/src/cloudflare/types/load_balancers/session_affinity.py +++ b/src/cloudflare/types/load_balancers/session_affinity.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SessionAffinity"] SessionAffinity: TypeAlias = Literal["none", "cookie", "ip_cookie", "header", ""] diff --git a/src/cloudflare/types/load_balancers/session_affinity_attributes.py b/src/cloudflare/types/load_balancers/session_affinity_attributes.py index 7164d5848..10b0de122 100644 --- a/src/cloudflare/types/load_balancers/session_affinity_attributes.py +++ b/src/cloudflare/types/load_balancers/session_affinity_attributes.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel -from typing import Optional, List - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SessionAffinityAttributes"] diff --git a/src/cloudflare/types/load_balancers/session_affinity_attributes_param.py b/src/cloudflare/types/load_balancers/session_affinity_attributes_param.py index fa82de6e2..559881fa9 100644 --- a/src/cloudflare/types/load_balancers/session_affinity_attributes_param.py +++ b/src/cloudflare/types/load_balancers/session_affinity_attributes_param.py @@ -3,7 +3,6 @@ from __future__ import annotations from typing import List - from typing_extensions import Literal, TypedDict __all__ = ["SessionAffinityAttributesParam"] diff --git a/src/cloudflare/types/load_balancers/steering_policy.py b/src/cloudflare/types/load_balancers/steering_policy.py index c8c44e134..1c8528e1b 100644 --- a/src/cloudflare/types/load_balancers/steering_policy.py +++ b/src/cloudflare/types/load_balancers/steering_policy.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SteeringPolicy"] SteeringPolicy: TypeAlias = Literal[ diff --git a/src/cloudflare/types/logpush/__init__.py b/src/cloudflare/types/logpush/__init__.py index 0fb51ffce..2416eed9d 100644 --- a/src/cloudflare/types/logpush/__init__.py +++ b/src/cloudflare/types/logpush/__init__.py @@ -2,20 +2,20 @@ from __future__ import annotations -from .instant_logpush_job import InstantLogpushJob as InstantLogpushJob -from .edge_get_response import EdgeGetResponse as EdgeGetResponse -from .edge_create_params import EdgeCreateParams as EdgeCreateParams from .logpush_job import LogpushJob as LogpushJob from .output_options import OutputOptions as OutputOptions -from .output_options_param import OutputOptionsParam as OutputOptionsParam -from .job_delete_response import JobDeleteResponse as JobDeleteResponse +from .edge_get_response import EdgeGetResponse as EdgeGetResponse from .job_create_params import JobCreateParams as JobCreateParams from .job_update_params import JobUpdateParams as JobUpdateParams +from .edge_create_params import EdgeCreateParams as EdgeCreateParams +from .instant_logpush_job import InstantLogpushJob as InstantLogpushJob +from .job_delete_response import JobDeleteResponse as JobDeleteResponse +from .output_options_param import OutputOptionsParam as OutputOptionsParam from .ownership_validation import OwnershipValidation as OwnershipValidation -from .ownership_create_response import OwnershipCreateResponse as OwnershipCreateResponse -from .ownership_create_params import OwnershipCreateParams as OwnershipCreateParams -from .ownership_validate_params import OwnershipValidateParams as OwnershipValidateParams -from .validate_destination_response import ValidateDestinationResponse as ValidateDestinationResponse -from .validate_origin_response import ValidateOriginResponse as ValidateOriginResponse -from .validate_destination_params import ValidateDestinationParams as ValidateDestinationParams from .validate_origin_params import ValidateOriginParams as ValidateOriginParams +from .ownership_create_params import OwnershipCreateParams as OwnershipCreateParams +from .validate_origin_response import ValidateOriginResponse as ValidateOriginResponse +from .ownership_create_response import OwnershipCreateResponse as OwnershipCreateResponse +from .ownership_validate_params import OwnershipValidateParams as OwnershipValidateParams +from .validate_destination_params import ValidateDestinationParams as ValidateDestinationParams +from .validate_destination_response import ValidateDestinationResponse as ValidateDestinationResponse diff --git a/src/cloudflare/types/logpush/datasets/job_get_response.py b/src/cloudflare/types/logpush/datasets/job_get_response.py index 712cc01ff..d1aaccc59 100644 --- a/src/cloudflare/types/logpush/datasets/job_get_response.py +++ b/src/cloudflare/types/logpush/datasets/job_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - -from ..logpush_job import LogpushJob - +from typing import List, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..logpush_job import LogpushJob __all__ = ["JobGetResponse"] diff --git a/src/cloudflare/types/logpush/edge_create_params.py b/src/cloudflare/types/logpush/edge_create_params.py index 0c55d9dc7..0a3908f50 100644 --- a/src/cloudflare/types/logpush/edge_create_params.py +++ b/src/cloudflare/types/logpush/edge_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["EdgeCreateParams"] diff --git a/src/cloudflare/types/logpush/edge_get_response.py b/src/cloudflare/types/logpush/edge_get_response.py index 09aae75ad..fc0b45aa5 100644 --- a/src/cloudflare/types/logpush/edge_get_response.py +++ b/src/cloudflare/types/logpush/edge_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - -from .instant_logpush_job import InstantLogpushJob - +from typing import List, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .instant_logpush_job import InstantLogpushJob __all__ = ["EdgeGetResponse"] diff --git a/src/cloudflare/types/logpush/instant_logpush_job.py b/src/cloudflare/types/logpush/instant_logpush_job.py index 1d82c935c..42396966a 100644 --- a/src/cloudflare/types/logpush/instant_logpush_job.py +++ b/src/cloudflare/types/logpush/instant_logpush_job.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["InstantLogpushJob"] diff --git a/src/cloudflare/types/logpush/job_create_params.py b/src/cloudflare/types/logpush/job_create_params.py index 439a5ff45..a18873981 100644 --- a/src/cloudflare/types/logpush/job_create_params.py +++ b/src/cloudflare/types/logpush/job_create_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Optional +from typing_extensions import Literal, Required, TypedDict from .output_options_param import OutputOptionsParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["JobCreateParams"] diff --git a/src/cloudflare/types/logpush/job_delete_response.py b/src/cloudflare/types/logpush/job_delete_response.py index d6f085baa..bcd1bd1a2 100644 --- a/src/cloudflare/types/logpush/job_delete_response.py +++ b/src/cloudflare/types/logpush/job_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["JobDeleteResponse"] diff --git a/src/cloudflare/types/logpush/job_update_params.py b/src/cloudflare/types/logpush/job_update_params.py index 78f985666..857882c86 100644 --- a/src/cloudflare/types/logpush/job_update_params.py +++ b/src/cloudflare/types/logpush/job_update_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal - from typing import Optional +from typing_extensions import Literal, TypedDict from .output_options_param import OutputOptionsParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["JobUpdateParams"] diff --git a/src/cloudflare/types/logpush/logpush_job.py b/src/cloudflare/types/logpush/logpush_job.py index c8a7e8e12..adfb6bb15 100644 --- a/src/cloudflare/types/logpush/logpush_job.py +++ b/src/cloudflare/types/logpush/logpush_job.py @@ -1,19 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime - from typing_extensions import Literal +from ..._models import BaseModel from .output_options import OutputOptions -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["LogpushJob"] diff --git a/src/cloudflare/types/logpush/output_options.py b/src/cloudflare/types/logpush/output_options.py index 002291db5..6cd72a01e 100644 --- a/src/cloudflare/types/logpush/output_options.py +++ b/src/cloudflare/types/logpush/output_options.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["OutputOptions"] diff --git a/src/cloudflare/types/logpush/output_options_param.py b/src/cloudflare/types/logpush/output_options_param.py index 5175c3d20..78e97b57a 100644 --- a/src/cloudflare/types/logpush/output_options_param.py +++ b/src/cloudflare/types/logpush/output_options_param.py @@ -2,9 +2,8 @@ from __future__ import annotations -from typing import Optional, List - -from typing_extensions import Literal, TypedDict, Annotated +from typing import List, Optional +from typing_extensions import Literal, Annotated, TypedDict from ..._utils import PropertyInfo diff --git a/src/cloudflare/types/logpush/ownership_create_params.py b/src/cloudflare/types/logpush/ownership_create_params.py index e477ac0e8..9088769b5 100644 --- a/src/cloudflare/types/logpush/ownership_create_params.py +++ b/src/cloudflare/types/logpush/ownership_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["OwnershipCreateParams"] diff --git a/src/cloudflare/types/logpush/ownership_create_response.py b/src/cloudflare/types/logpush/ownership_create_response.py index 4835fc2f0..beb4561c5 100644 --- a/src/cloudflare/types/logpush/ownership_create_response.py +++ b/src/cloudflare/types/logpush/ownership_create_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["OwnershipCreateResponse"] diff --git a/src/cloudflare/types/logpush/ownership_validate_params.py b/src/cloudflare/types/logpush/ownership_validate_params.py index ea4d0a4fa..825ea2efb 100644 --- a/src/cloudflare/types/logpush/ownership_validate_params.py +++ b/src/cloudflare/types/logpush/ownership_validate_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["OwnershipValidateParams"] diff --git a/src/cloudflare/types/logpush/ownership_validation.py b/src/cloudflare/types/logpush/ownership_validation.py index d7c5bd754..7cd567a2f 100644 --- a/src/cloudflare/types/logpush/ownership_validation.py +++ b/src/cloudflare/types/logpush/ownership_validation.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["OwnershipValidation"] diff --git a/src/cloudflare/types/logpush/validate_destination_params.py b/src/cloudflare/types/logpush/validate_destination_params.py index 8c4da6aef..1af8228f6 100644 --- a/src/cloudflare/types/logpush/validate_destination_params.py +++ b/src/cloudflare/types/logpush/validate_destination_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ValidateDestinationParams"] diff --git a/src/cloudflare/types/logpush/validate_destination_response.py b/src/cloudflare/types/logpush/validate_destination_response.py index 9784828db..e7fe2fd5e 100644 --- a/src/cloudflare/types/logpush/validate_destination_response.py +++ b/src/cloudflare/types/logpush/validate_destination_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ValidateDestinationResponse"] diff --git a/src/cloudflare/types/logpush/validate_origin_params.py b/src/cloudflare/types/logpush/validate_origin_params.py index 36b632ee3..d410e6924 100644 --- a/src/cloudflare/types/logpush/validate_origin_params.py +++ b/src/cloudflare/types/logpush/validate_origin_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Optional - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ValidateOriginParams"] diff --git a/src/cloudflare/types/logpush/validate_origin_response.py b/src/cloudflare/types/logpush/validate_origin_response.py index a35c1bc97..3ce180b74 100644 --- a/src/cloudflare/types/logpush/validate_origin_response.py +++ b/src/cloudflare/types/logpush/validate_origin_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ValidateOriginResponse"] diff --git a/src/cloudflare/types/logs/__init__.py b/src/cloudflare/types/logs/__init__.py index ac1e05071..de089dd39 100644 --- a/src/cloudflare/types/logs/__init__.py +++ b/src/cloudflare/types/logs/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations -from .rayid_get_response import RayIDGetResponse as RayIDGetResponse from .rayid_get_params import RayIDGetParams as RayIDGetParams -from .received_get_response import ReceivedGetResponse as ReceivedGetResponse +from .rayid_get_response import RayIDGetResponse as RayIDGetResponse from .received_get_params import ReceivedGetParams as ReceivedGetParams +from .received_get_response import ReceivedGetResponse as ReceivedGetResponse diff --git a/src/cloudflare/types/logs/control/__init__.py b/src/cloudflare/types/logs/control/__init__.py index 80bd54692..bab336a2b 100644 --- a/src/cloudflare/types/logs/control/__init__.py +++ b/src/cloudflare/types/logs/control/__init__.py @@ -2,6 +2,6 @@ from __future__ import annotations -from .retention_create_response import RetentionCreateResponse as RetentionCreateResponse from .retention_get_response import RetentionGetResponse as RetentionGetResponse from .retention_create_params import RetentionCreateParams as RetentionCreateParams +from .retention_create_response import RetentionCreateResponse as RetentionCreateResponse diff --git a/src/cloudflare/types/logs/control/cmb/cmb_config.py b/src/cloudflare/types/logs/control/cmb/cmb_config.py index 135fe375b..cf1f90f74 100644 --- a/src/cloudflare/types/logs/control/cmb/cmb_config.py +++ b/src/cloudflare/types/logs/control/cmb/cmb_config.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["CmbConfig"] diff --git a/src/cloudflare/types/logs/control/cmb/config_create_params.py b/src/cloudflare/types/logs/control/cmb/config_create_params.py index 7bf48c2ee..3819f9e03 100644 --- a/src/cloudflare/types/logs/control/cmb/config_create_params.py +++ b/src/cloudflare/types/logs/control/cmb/config_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ConfigCreateParams"] diff --git a/src/cloudflare/types/logs/control/retention_create_params.py b/src/cloudflare/types/logs/control/retention_create_params.py index bb62fd125..4972b36a2 100644 --- a/src/cloudflare/types/logs/control/retention_create_params.py +++ b/src/cloudflare/types/logs/control/retention_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["RetentionCreateParams"] diff --git a/src/cloudflare/types/logs/control/retention_create_response.py b/src/cloudflare/types/logs/control/retention_create_response.py index bf9cd62c6..f33ed6a19 100644 --- a/src/cloudflare/types/logs/control/retention_create_response.py +++ b/src/cloudflare/types/logs/control/retention_create_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["RetentionCreateResponse"] diff --git a/src/cloudflare/types/logs/control/retention_get_response.py b/src/cloudflare/types/logs/control/retention_get_response.py index 36046aa0d..991307d30 100644 --- a/src/cloudflare/types/logs/control/retention_get_response.py +++ b/src/cloudflare/types/logs/control/retention_get_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["RetentionGetResponse"] diff --git a/src/cloudflare/types/logs/rayid_get_params.py b/src/cloudflare/types/logs/rayid_get_params.py index d04908da1..802aaf499 100644 --- a/src/cloudflare/types/logs/rayid_get_params.py +++ b/src/cloudflare/types/logs/rayid_get_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["RayIDGetParams"] diff --git a/src/cloudflare/types/logs/rayid_get_response.py b/src/cloudflare/types/logs/rayid_get_response.py index c1c18e1c4..ff1397840 100644 --- a/src/cloudflare/types/logs/rayid_get_response.py +++ b/src/cloudflare/types/logs/rayid_get_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["RayIDGetResponse"] RayIDGetResponse: TypeAlias = Union[str, object] diff --git a/src/cloudflare/types/logs/received/field_get_response.py b/src/cloudflare/types/logs/received/field_get_response.py index 6753003d7..54865f07c 100644 --- a/src/cloudflare/types/logs/received/field_get_response.py +++ b/src/cloudflare/types/logs/received/field_get_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["FieldGetResponse"] diff --git a/src/cloudflare/types/logs/received_get_params.py b/src/cloudflare/types/logs/received_get_params.py index 9413e8109..8c5b0cecf 100644 --- a/src/cloudflare/types/logs/received_get_params.py +++ b/src/cloudflare/types/logs/received_get_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Union - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["ReceivedGetParams"] diff --git a/src/cloudflare/types/logs/received_get_response.py b/src/cloudflare/types/logs/received_get_response.py index 5a099d2eb..8483642b3 100644 --- a/src/cloudflare/types/logs/received_get_response.py +++ b/src/cloudflare/types/logs/received_get_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ReceivedGetResponse"] ReceivedGetResponse: TypeAlias = Union[str, object] diff --git a/src/cloudflare/types/magic_network_monitoring/__init__.py b/src/cloudflare/types/magic_network_monitoring/__init__.py index 98d070032..68ec6897c 100644 --- a/src/cloudflare/types/magic_network_monitoring/__init__.py +++ b/src/cloudflare/types/magic_network_monitoring/__init__.py @@ -3,10 +3,10 @@ from __future__ import annotations from .configuration import Configuration as Configuration -from .config_create_params import ConfigCreateParams as ConfigCreateParams -from .config_update_params import ConfigUpdateParams as ConfigUpdateParams +from .rule_edit_params import RuleEditParams as RuleEditParams from .config_edit_params import ConfigEditParams as ConfigEditParams -from .magic_network_monitoring_rule import MagicNetworkMonitoringRule as MagicNetworkMonitoringRule from .rule_create_params import RuleCreateParams as RuleCreateParams from .rule_update_params import RuleUpdateParams as RuleUpdateParams -from .rule_edit_params import RuleEditParams as RuleEditParams +from .config_create_params import ConfigCreateParams as ConfigCreateParams +from .config_update_params import ConfigUpdateParams as ConfigUpdateParams +from .magic_network_monitoring_rule import MagicNetworkMonitoringRule as MagicNetworkMonitoringRule diff --git a/src/cloudflare/types/magic_network_monitoring/config_create_params.py b/src/cloudflare/types/magic_network_monitoring/config_create_params.py index c79892846..3bb01f0cb 100644 --- a/src/cloudflare/types/magic_network_monitoring/config_create_params.py +++ b/src/cloudflare/types/magic_network_monitoring/config_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ConfigCreateParams"] diff --git a/src/cloudflare/types/magic_network_monitoring/config_edit_params.py b/src/cloudflare/types/magic_network_monitoring/config_edit_params.py index 7f78fca22..f02fba5f3 100644 --- a/src/cloudflare/types/magic_network_monitoring/config_edit_params.py +++ b/src/cloudflare/types/magic_network_monitoring/config_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ConfigEditParams"] diff --git a/src/cloudflare/types/magic_network_monitoring/config_update_params.py b/src/cloudflare/types/magic_network_monitoring/config_update_params.py index 9558bf057..acfef585f 100644 --- a/src/cloudflare/types/magic_network_monitoring/config_update_params.py +++ b/src/cloudflare/types/magic_network_monitoring/config_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ConfigUpdateParams"] diff --git a/src/cloudflare/types/magic_network_monitoring/configuration.py b/src/cloudflare/types/magic_network_monitoring/configuration.py index 4b9e7b654..46f5e0a2d 100644 --- a/src/cloudflare/types/magic_network_monitoring/configuration.py +++ b/src/cloudflare/types/magic_network_monitoring/configuration.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Configuration"] diff --git a/src/cloudflare/types/magic_network_monitoring/magic_network_monitoring_rule.py b/src/cloudflare/types/magic_network_monitoring/magic_network_monitoring_rule.py index 41a37b95c..3dbb9d85a 100644 --- a/src/cloudflare/types/magic_network_monitoring/magic_network_monitoring_rule.py +++ b/src/cloudflare/types/magic_network_monitoring/magic_network_monitoring_rule.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["MagicNetworkMonitoringRule"] diff --git a/src/cloudflare/types/magic_network_monitoring/rule_create_params.py b/src/cloudflare/types/magic_network_monitoring/rule_create_params.py index 05347cac2..dd4c5f409 100644 --- a/src/cloudflare/types/magic_network_monitoring/rule_create_params.py +++ b/src/cloudflare/types/magic_network_monitoring/rule_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["RuleCreateParams"] diff --git a/src/cloudflare/types/magic_network_monitoring/rule_edit_params.py b/src/cloudflare/types/magic_network_monitoring/rule_edit_params.py index 84aaa0934..005bdbb0a 100644 --- a/src/cloudflare/types/magic_network_monitoring/rule_edit_params.py +++ b/src/cloudflare/types/magic_network_monitoring/rule_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["RuleEditParams"] diff --git a/src/cloudflare/types/magic_network_monitoring/rule_update_params.py b/src/cloudflare/types/magic_network_monitoring/rule_update_params.py index 046fa970c..d9ae09df6 100644 --- a/src/cloudflare/types/magic_network_monitoring/rule_update_params.py +++ b/src/cloudflare/types/magic_network_monitoring/rule_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["RuleUpdateParams"] diff --git a/src/cloudflare/types/magic_network_monitoring/rules/advertisement.py b/src/cloudflare/types/magic_network_monitoring/rules/advertisement.py index 777fb1bf9..145c988ae 100644 --- a/src/cloudflare/types/magic_network_monitoring/rules/advertisement.py +++ b/src/cloudflare/types/magic_network_monitoring/rules/advertisement.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["Advertisement"] diff --git a/src/cloudflare/types/magic_network_monitoring/rules/advertisement_edit_params.py b/src/cloudflare/types/magic_network_monitoring/rules/advertisement_edit_params.py index 76eb8ccac..ece6f0013 100644 --- a/src/cloudflare/types/magic_network_monitoring/rules/advertisement_edit_params.py +++ b/src/cloudflare/types/magic_network_monitoring/rules/advertisement_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["AdvertisementEditParams"] diff --git a/src/cloudflare/types/magic_transit/__init__.py b/src/cloudflare/types/magic_transit/__init__.py index 94a016d88..ad2327c57 100644 --- a/src/cloudflare/types/magic_transit/__init__.py +++ b/src/cloudflare/types/magic_transit/__init__.py @@ -2,57 +2,57 @@ from __future__ import annotations -from .health_check import HealthCheck as HealthCheck -from .health_check_param import HealthCheckParam as HealthCheckParam -from .health_check_rate import HealthCheckRate as HealthCheckRate -from .health_check_type import HealthCheckType as HealthCheckType -from .app_create_response import AppCreateResponse as AppCreateResponse -from .app_update_response import AppUpdateResponse as AppUpdateResponse -from .app_list_response import AppListResponse as AppListResponse -from .app_delete_response import AppDeleteResponse as AppDeleteResponse -from .app_create_params import AppCreateParams as AppCreateParams -from .app_update_params import AppUpdateParams as AppUpdateParams -from .cf_interconnect_update_response import CfInterconnectUpdateResponse as CfInterconnectUpdateResponse -from .cf_interconnect_list_response import CfInterconnectListResponse as CfInterconnectListResponse -from .cf_interconnect_get_response import CfInterconnectGetResponse as CfInterconnectGetResponse -from .cf_interconnect_update_params import CfInterconnectUpdateParams as CfInterconnectUpdateParams -from .gre_tunnel_create_response import GRETunnelCreateResponse as GRETunnelCreateResponse -from .gre_tunnel_update_response import GRETunnelUpdateResponse as GRETunnelUpdateResponse -from .gre_tunnel_list_response import GRETunnelListResponse as GRETunnelListResponse -from .gre_tunnel_delete_response import GRETunnelDeleteResponse as GRETunnelDeleteResponse -from .gre_tunnel_get_response import GRETunnelGetResponse as GRETunnelGetResponse -from .gre_tunnel_create_params import GRETunnelCreateParams as GRETunnelCreateParams -from .gre_tunnel_update_params import GRETunnelUpdateParams as GRETunnelUpdateParams -from .psk_metadata import PSKMetadata as PSKMetadata -from .ipsec_tunnel_create_response import IPSECTunnelCreateResponse as IPSECTunnelCreateResponse -from .ipsec_tunnel_update_response import IPSECTunnelUpdateResponse as IPSECTunnelUpdateResponse -from .ipsec_tunnel_list_response import IPSECTunnelListResponse as IPSECTunnelListResponse -from .ipsec_tunnel_delete_response import IPSECTunnelDeleteResponse as IPSECTunnelDeleteResponse -from .ipsec_tunnel_get_response import IPSECTunnelGetResponse as IPSECTunnelGetResponse -from .ipsec_tunnel_psk_generate_response import IPSECTunnelPSKGenerateResponse as IPSECTunnelPSKGenerateResponse -from .ipsec_tunnel_create_params import IPSECTunnelCreateParams as IPSECTunnelCreateParams -from .ipsec_tunnel_update_params import IPSECTunnelUpdateParams as IPSECTunnelUpdateParams -from .ipsec_tunnel_psk_generate_params import IPSECTunnelPSKGenerateParams as IPSECTunnelPSKGenerateParams +from .site import Site as Site from .scope import Scope as Scope from .scope_param import ScopeParam as ScopeParam -from .route_create_response import RouteCreateResponse as RouteCreateResponse -from .route_update_response import RouteUpdateResponse as RouteUpdateResponse -from .route_list_response import RouteListResponse as RouteListResponse -from .route_delete_response import RouteDeleteResponse as RouteDeleteResponse -from .route_empty_response import RouteEmptyResponse as RouteEmptyResponse -from .route_get_response import RouteGetResponse as RouteGetResponse -from .route_create_params import RouteCreateParams as RouteCreateParams -from .route_update_params import RouteUpdateParams as RouteUpdateParams -from .site import Site as Site +from .health_check import HealthCheck as HealthCheck +from .psk_metadata import PSKMetadata as PSKMetadata from .site_location import SiteLocation as SiteLocation -from .site_location_param import SiteLocationParam as SiteLocationParam +from .site_edit_params import SiteEditParams as SiteEditParams +from .site_list_params import SiteListParams as SiteListParams +from .app_create_params import AppCreateParams as AppCreateParams +from .app_list_response import AppListResponse as AppListResponse +from .app_update_params import AppUpdateParams as AppUpdateParams +from .health_check_rate import HealthCheckRate as HealthCheckRate +from .health_check_type import HealthCheckType as HealthCheckType +from .health_check_param import HealthCheckParam as HealthCheckParam +from .route_get_response import RouteGetResponse as RouteGetResponse from .site_create_params import SiteCreateParams as SiteCreateParams from .site_update_params import SiteUpdateParams as SiteUpdateParams -from .site_list_params import SiteListParams as SiteListParams -from .site_edit_params import SiteEditParams as SiteEditParams -from .connector_update_response import ConnectorUpdateResponse as ConnectorUpdateResponse -from .connector_list_response import ConnectorListResponse as ConnectorListResponse -from .connector_edit_response import ConnectorEditResponse as ConnectorEditResponse -from .connector_get_response import ConnectorGetResponse as ConnectorGetResponse -from .connector_update_params import ConnectorUpdateParams as ConnectorUpdateParams +from .app_create_response import AppCreateResponse as AppCreateResponse +from .app_delete_response import AppDeleteResponse as AppDeleteResponse +from .app_update_response import AppUpdateResponse as AppUpdateResponse +from .route_create_params import RouteCreateParams as RouteCreateParams +from .route_list_response import RouteListResponse as RouteListResponse +from .route_update_params import RouteUpdateParams as RouteUpdateParams +from .site_location_param import SiteLocationParam as SiteLocationParam +from .route_empty_response import RouteEmptyResponse as RouteEmptyResponse from .connector_edit_params import ConnectorEditParams as ConnectorEditParams +from .route_create_response import RouteCreateResponse as RouteCreateResponse +from .route_delete_response import RouteDeleteResponse as RouteDeleteResponse +from .route_update_response import RouteUpdateResponse as RouteUpdateResponse +from .connector_get_response import ConnectorGetResponse as ConnectorGetResponse +from .connector_edit_response import ConnectorEditResponse as ConnectorEditResponse +from .connector_list_response import ConnectorListResponse as ConnectorListResponse +from .connector_update_params import ConnectorUpdateParams as ConnectorUpdateParams +from .gre_tunnel_get_response import GRETunnelGetResponse as GRETunnelGetResponse +from .gre_tunnel_create_params import GRETunnelCreateParams as GRETunnelCreateParams +from .gre_tunnel_list_response import GRETunnelListResponse as GRETunnelListResponse +from .gre_tunnel_update_params import GRETunnelUpdateParams as GRETunnelUpdateParams +from .connector_update_response import ConnectorUpdateResponse as ConnectorUpdateResponse +from .ipsec_tunnel_get_response import IPSECTunnelGetResponse as IPSECTunnelGetResponse +from .gre_tunnel_create_response import GRETunnelCreateResponse as GRETunnelCreateResponse +from .gre_tunnel_delete_response import GRETunnelDeleteResponse as GRETunnelDeleteResponse +from .gre_tunnel_update_response import GRETunnelUpdateResponse as GRETunnelUpdateResponse +from .ipsec_tunnel_create_params import IPSECTunnelCreateParams as IPSECTunnelCreateParams +from .ipsec_tunnel_list_response import IPSECTunnelListResponse as IPSECTunnelListResponse +from .ipsec_tunnel_update_params import IPSECTunnelUpdateParams as IPSECTunnelUpdateParams +from .cf_interconnect_get_response import CfInterconnectGetResponse as CfInterconnectGetResponse +from .ipsec_tunnel_create_response import IPSECTunnelCreateResponse as IPSECTunnelCreateResponse +from .ipsec_tunnel_delete_response import IPSECTunnelDeleteResponse as IPSECTunnelDeleteResponse +from .ipsec_tunnel_update_response import IPSECTunnelUpdateResponse as IPSECTunnelUpdateResponse +from .cf_interconnect_list_response import CfInterconnectListResponse as CfInterconnectListResponse +from .cf_interconnect_update_params import CfInterconnectUpdateParams as CfInterconnectUpdateParams +from .cf_interconnect_update_response import CfInterconnectUpdateResponse as CfInterconnectUpdateResponse +from .ipsec_tunnel_psk_generate_params import IPSECTunnelPSKGenerateParams as IPSECTunnelPSKGenerateParams +from .ipsec_tunnel_psk_generate_response import IPSECTunnelPSKGenerateResponse as IPSECTunnelPSKGenerateResponse diff --git a/src/cloudflare/types/magic_transit/app_create_params.py b/src/cloudflare/types/magic_transit/app_create_params.py index 99d297a89..1fca0c023 100644 --- a/src/cloudflare/types/magic_transit/app_create_params.py +++ b/src/cloudflare/types/magic_transit/app_create_params.py @@ -2,12 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, TypeAlias - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing import Union +from typing_extensions import Required, TypeAlias, TypedDict __all__ = ["AppCreateParams", "Hostnames", "Subnets"] diff --git a/src/cloudflare/types/magic_transit/app_create_response.py b/src/cloudflare/types/magic_transit/app_create_response.py index ca0d1d857..109887e47 100644 --- a/src/cloudflare/types/magic_transit/app_create_response.py +++ b/src/cloudflare/types/magic_transit/app_create_response.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AppCreateResponse"] diff --git a/src/cloudflare/types/magic_transit/app_delete_response.py b/src/cloudflare/types/magic_transit/app_delete_response.py index fc2839acb..0eafc1556 100644 --- a/src/cloudflare/types/magic_transit/app_delete_response.py +++ b/src/cloudflare/types/magic_transit/app_delete_response.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AppDeleteResponse"] diff --git a/src/cloudflare/types/magic_transit/app_list_response.py b/src/cloudflare/types/magic_transit/app_list_response.py index 8656b51e7..e29141025 100644 --- a/src/cloudflare/types/magic_transit/app_list_response.py +++ b/src/cloudflare/types/magic_transit/app_list_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["AppListResponse", "MagicAccountApp", "MagicManagedApp"] diff --git a/src/cloudflare/types/magic_transit/app_update_params.py b/src/cloudflare/types/magic_transit/app_update_params.py index bb7e7df67..ca18ed20c 100644 --- a/src/cloudflare/types/magic_transit/app_update_params.py +++ b/src/cloudflare/types/magic_transit/app_update_params.py @@ -2,12 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, TypeAlias - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing import Union +from typing_extensions import Required, TypeAlias, TypedDict __all__ = ["AppUpdateParams", "UpdateAppName", "UpdateAppType", "UpdateAppHostnames", "UpdateAppSubnets"] diff --git a/src/cloudflare/types/magic_transit/app_update_response.py b/src/cloudflare/types/magic_transit/app_update_response.py index d20fe849f..fb98877f0 100644 --- a/src/cloudflare/types/magic_transit/app_update_response.py +++ b/src/cloudflare/types/magic_transit/app_update_response.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AppUpdateResponse"] diff --git a/src/cloudflare/types/magic_transit/cf_interconnect_get_response.py b/src/cloudflare/types/magic_transit/cf_interconnect_get_response.py index 911fedb47..d819ef870 100644 --- a/src/cloudflare/types/magic_transit/cf_interconnect_get_response.py +++ b/src/cloudflare/types/magic_transit/cf_interconnect_get_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - -from .health_check_rate import HealthCheckRate - -from .health_check_type import HealthCheckType - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .health_check_rate import HealthCheckRate +from .health_check_type import HealthCheckType __all__ = ["CfInterconnectGetResponse", "Interconnect", "InterconnectGRE", "InterconnectHealthCheck"] diff --git a/src/cloudflare/types/magic_transit/cf_interconnect_list_response.py b/src/cloudflare/types/magic_transit/cf_interconnect_list_response.py index 0f9331c27..38c321cab 100644 --- a/src/cloudflare/types/magic_transit/cf_interconnect_list_response.py +++ b/src/cloudflare/types/magic_transit/cf_interconnect_list_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from .health_check_rate import HealthCheckRate - -from .health_check_type import HealthCheckType - +from typing import List, Optional from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .health_check_rate import HealthCheckRate +from .health_check_type import HealthCheckType __all__ = ["CfInterconnectListResponse", "Interconnect", "InterconnectGRE", "InterconnectHealthCheck"] diff --git a/src/cloudflare/types/magic_transit/cf_interconnect_update_params.py b/src/cloudflare/types/magic_transit/cf_interconnect_update_params.py index e7dafe5bd..00fca27a8 100644 --- a/src/cloudflare/types/magic_transit/cf_interconnect_update_params.py +++ b/src/cloudflare/types/magic_transit/cf_interconnect_update_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict from .health_check_rate import HealthCheckRate - from .health_check_type import HealthCheckType -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["CfInterconnectUpdateParams", "GRE", "HealthCheck"] diff --git a/src/cloudflare/types/magic_transit/cf_interconnect_update_response.py b/src/cloudflare/types/magic_transit/cf_interconnect_update_response.py index e5dff3a5b..481f85fef 100644 --- a/src/cloudflare/types/magic_transit/cf_interconnect_update_response.py +++ b/src/cloudflare/types/magic_transit/cf_interconnect_update_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - -from .health_check_rate import HealthCheckRate - -from .health_check_type import HealthCheckType - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .health_check_rate import HealthCheckRate +from .health_check_type import HealthCheckType __all__ = [ "CfInterconnectUpdateResponse", diff --git a/src/cloudflare/types/magic_transit/connector_edit_params.py b/src/cloudflare/types/magic_transit/connector_edit_params.py index 589960ed7..da638c4e8 100644 --- a/src/cloudflare/types/magic_transit/connector_edit_params.py +++ b/src/cloudflare/types/magic_transit/connector_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ConnectorEditParams"] diff --git a/src/cloudflare/types/magic_transit/connector_edit_response.py b/src/cloudflare/types/magic_transit/connector_edit_response.py index 4915f8fc0..47d29cef4 100644 --- a/src/cloudflare/types/magic_transit/connector_edit_response.py +++ b/src/cloudflare/types/magic_transit/connector_edit_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ConnectorEditResponse", "Device"] diff --git a/src/cloudflare/types/magic_transit/connector_get_response.py b/src/cloudflare/types/magic_transit/connector_get_response.py index 5aa622e4a..6b36ed766 100644 --- a/src/cloudflare/types/magic_transit/connector_get_response.py +++ b/src/cloudflare/types/magic_transit/connector_get_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ConnectorGetResponse", "Device"] diff --git a/src/cloudflare/types/magic_transit/connector_list_response.py b/src/cloudflare/types/magic_transit/connector_list_response.py index fd6f89142..abad51544 100644 --- a/src/cloudflare/types/magic_transit/connector_list_response.py +++ b/src/cloudflare/types/magic_transit/connector_list_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ConnectorListResponse", "Device"] diff --git a/src/cloudflare/types/magic_transit/connector_update_params.py b/src/cloudflare/types/magic_transit/connector_update_params.py index b39bd0663..bce1d5811 100644 --- a/src/cloudflare/types/magic_transit/connector_update_params.py +++ b/src/cloudflare/types/magic_transit/connector_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ConnectorUpdateParams"] diff --git a/src/cloudflare/types/magic_transit/connector_update_response.py b/src/cloudflare/types/magic_transit/connector_update_response.py index bff1d608a..80f6a6a51 100644 --- a/src/cloudflare/types/magic_transit/connector_update_response.py +++ b/src/cloudflare/types/magic_transit/connector_update_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ConnectorUpdateResponse", "Device"] diff --git a/src/cloudflare/types/magic_transit/gre_tunnel_create_params.py b/src/cloudflare/types/magic_transit/gre_tunnel_create_params.py index d362342da..3e2fa625e 100644 --- a/src/cloudflare/types/magic_transit/gre_tunnel_create_params.py +++ b/src/cloudflare/types/magic_transit/gre_tunnel_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["GRETunnelCreateParams"] diff --git a/src/cloudflare/types/magic_transit/gre_tunnel_create_response.py b/src/cloudflare/types/magic_transit/gre_tunnel_create_response.py index d7b61b9b3..cb4d4c1b6 100644 --- a/src/cloudflare/types/magic_transit/gre_tunnel_create_response.py +++ b/src/cloudflare/types/magic_transit/gre_tunnel_create_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime +from ..._models import BaseModel from .health_check import HealthCheck -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["GRETunnelCreateResponse", "GRETunnel"] diff --git a/src/cloudflare/types/magic_transit/gre_tunnel_delete_response.py b/src/cloudflare/types/magic_transit/gre_tunnel_delete_response.py index 4bdf41beb..faa9453f7 100644 --- a/src/cloudflare/types/magic_transit/gre_tunnel_delete_response.py +++ b/src/cloudflare/types/magic_transit/gre_tunnel_delete_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime +from ..._models import BaseModel from .health_check import HealthCheck -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["GRETunnelDeleteResponse", "DeletedGRETunnel"] diff --git a/src/cloudflare/types/magic_transit/gre_tunnel_get_response.py b/src/cloudflare/types/magic_transit/gre_tunnel_get_response.py index 47a9590ed..d00062032 100644 --- a/src/cloudflare/types/magic_transit/gre_tunnel_get_response.py +++ b/src/cloudflare/types/magic_transit/gre_tunnel_get_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime +from ..._models import BaseModel from .health_check import HealthCheck -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["GRETunnelGetResponse", "GRETunnel"] diff --git a/src/cloudflare/types/magic_transit/gre_tunnel_list_response.py b/src/cloudflare/types/magic_transit/gre_tunnel_list_response.py index 231731396..54f3538e7 100644 --- a/src/cloudflare/types/magic_transit/gre_tunnel_list_response.py +++ b/src/cloudflare/types/magic_transit/gre_tunnel_list_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime +from ..._models import BaseModel from .health_check import HealthCheck -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["GRETunnelListResponse", "GRETunnel"] diff --git a/src/cloudflare/types/magic_transit/gre_tunnel_update_params.py b/src/cloudflare/types/magic_transit/gre_tunnel_update_params.py index b4bf460c9..6d891bbe5 100644 --- a/src/cloudflare/types/magic_transit/gre_tunnel_update_params.py +++ b/src/cloudflare/types/magic_transit/gre_tunnel_update_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict from .health_check_param import HealthCheckParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["GRETunnelUpdateParams"] diff --git a/src/cloudflare/types/magic_transit/gre_tunnel_update_response.py b/src/cloudflare/types/magic_transit/gre_tunnel_update_response.py index f2622c4bd..1fbd77cd1 100644 --- a/src/cloudflare/types/magic_transit/gre_tunnel_update_response.py +++ b/src/cloudflare/types/magic_transit/gre_tunnel_update_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime +from ..._models import BaseModel from .health_check import HealthCheck -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["GRETunnelUpdateResponse", "ModifiedGRETunnel"] diff --git a/src/cloudflare/types/magic_transit/health_check.py b/src/cloudflare/types/magic_transit/health_check.py index c5e69ff99..ae4874cb9 100644 --- a/src/cloudflare/types/magic_transit/health_check.py +++ b/src/cloudflare/types/magic_transit/health_check.py @@ -1,19 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal +from ..._models import BaseModel from .health_check_rate import HealthCheckRate - from .health_check_type import HealthCheckType -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["HealthCheck"] diff --git a/src/cloudflare/types/magic_transit/health_check_param.py b/src/cloudflare/types/magic_transit/health_check_param.py index d2819b9b8..10d28c17f 100644 --- a/src/cloudflare/types/magic_transit/health_check_param.py +++ b/src/cloudflare/types/magic_transit/health_check_param.py @@ -5,7 +5,6 @@ from __future__ import annotations from typing_extensions import Literal, TypedDict from .health_check_rate import HealthCheckRate - from .health_check_type import HealthCheckType __all__ = ["HealthCheckParam"] diff --git a/src/cloudflare/types/magic_transit/health_check_rate.py b/src/cloudflare/types/magic_transit/health_check_rate.py index 211647b62..f774ffc5d 100644 --- a/src/cloudflare/types/magic_transit/health_check_rate.py +++ b/src/cloudflare/types/magic_transit/health_check_rate.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["HealthCheckRate"] HealthCheckRate: TypeAlias = Literal["low", "mid", "high"] diff --git a/src/cloudflare/types/magic_transit/health_check_type.py b/src/cloudflare/types/magic_transit/health_check_type.py index 64779ad8b..27197fa13 100644 --- a/src/cloudflare/types/magic_transit/health_check_type.py +++ b/src/cloudflare/types/magic_transit/health_check_type.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["HealthCheckType"] HealthCheckType: TypeAlias = Literal["reply", "request"] diff --git a/src/cloudflare/types/magic_transit/ipsec_tunnel_create_params.py b/src/cloudflare/types/magic_transit/ipsec_tunnel_create_params.py index e2a44cd25..1b5917882 100644 --- a/src/cloudflare/types/magic_transit/ipsec_tunnel_create_params.py +++ b/src/cloudflare/types/magic_transit/ipsec_tunnel_create_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict from .health_check_param import HealthCheckParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["IPSECTunnelCreateParams"] diff --git a/src/cloudflare/types/magic_transit/ipsec_tunnel_create_response.py b/src/cloudflare/types/magic_transit/ipsec_tunnel_create_response.py index 635ab2167..21de60ecf 100644 --- a/src/cloudflare/types/magic_transit/ipsec_tunnel_create_response.py +++ b/src/cloudflare/types/magic_transit/ipsec_tunnel_create_response.py @@ -1,20 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from .health_check_rate import HealthCheckRate - -from .health_check_type import HealthCheckType - +from typing import List, Optional from datetime import datetime +from ..._models import BaseModel from .psk_metadata import PSKMetadata - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .health_check_rate import HealthCheckRate +from .health_check_type import HealthCheckType __all__ = ["IPSECTunnelCreateResponse", "IPSECTunnel", "IPSECTunnelTunnelHealthCheck"] diff --git a/src/cloudflare/types/magic_transit/ipsec_tunnel_delete_response.py b/src/cloudflare/types/magic_transit/ipsec_tunnel_delete_response.py index 5a614827d..04bc2e87c 100644 --- a/src/cloudflare/types/magic_transit/ipsec_tunnel_delete_response.py +++ b/src/cloudflare/types/magic_transit/ipsec_tunnel_delete_response.py @@ -1,20 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - -from .health_check_rate import HealthCheckRate - -from .health_check_type import HealthCheckType - from datetime import datetime +from ..._models import BaseModel from .psk_metadata import PSKMetadata - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .health_check_rate import HealthCheckRate +from .health_check_type import HealthCheckType __all__ = ["IPSECTunnelDeleteResponse", "DeletedIPSECTunnel", "DeletedIPSECTunnelTunnelHealthCheck"] diff --git a/src/cloudflare/types/magic_transit/ipsec_tunnel_get_response.py b/src/cloudflare/types/magic_transit/ipsec_tunnel_get_response.py index 2f19f7f27..607f7ed69 100644 --- a/src/cloudflare/types/magic_transit/ipsec_tunnel_get_response.py +++ b/src/cloudflare/types/magic_transit/ipsec_tunnel_get_response.py @@ -1,20 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - -from .health_check_rate import HealthCheckRate - -from .health_check_type import HealthCheckType - from datetime import datetime +from ..._models import BaseModel from .psk_metadata import PSKMetadata - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .health_check_rate import HealthCheckRate +from .health_check_type import HealthCheckType __all__ = ["IPSECTunnelGetResponse", "IPSECTunnel", "IPSECTunnelTunnelHealthCheck"] diff --git a/src/cloudflare/types/magic_transit/ipsec_tunnel_list_response.py b/src/cloudflare/types/magic_transit/ipsec_tunnel_list_response.py index cae80a841..7001f0e4e 100644 --- a/src/cloudflare/types/magic_transit/ipsec_tunnel_list_response.py +++ b/src/cloudflare/types/magic_transit/ipsec_tunnel_list_response.py @@ -1,20 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from .health_check_rate import HealthCheckRate - -from .health_check_type import HealthCheckType - +from typing import List, Optional from datetime import datetime +from ..._models import BaseModel from .psk_metadata import PSKMetadata - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .health_check_rate import HealthCheckRate +from .health_check_type import HealthCheckType __all__ = ["IPSECTunnelListResponse", "IPSECTunnel", "IPSECTunnelTunnelHealthCheck"] diff --git a/src/cloudflare/types/magic_transit/ipsec_tunnel_psk_generate_params.py b/src/cloudflare/types/magic_transit/ipsec_tunnel_psk_generate_params.py index 673f36724..1066fa603 100644 --- a/src/cloudflare/types/magic_transit/ipsec_tunnel_psk_generate_params.py +++ b/src/cloudflare/types/magic_transit/ipsec_tunnel_psk_generate_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["IPSECTunnelPSKGenerateParams"] diff --git a/src/cloudflare/types/magic_transit/ipsec_tunnel_psk_generate_response.py b/src/cloudflare/types/magic_transit/ipsec_tunnel_psk_generate_response.py index 4e9ab9155..9c4438b14 100644 --- a/src/cloudflare/types/magic_transit/ipsec_tunnel_psk_generate_response.py +++ b/src/cloudflare/types/magic_transit/ipsec_tunnel_psk_generate_response.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional +from ..._models import BaseModel from .psk_metadata import PSKMetadata -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["IPSECTunnelPSKGenerateResponse"] diff --git a/src/cloudflare/types/magic_transit/ipsec_tunnel_update_params.py b/src/cloudflare/types/magic_transit/ipsec_tunnel_update_params.py index 60212d886..8a0170e03 100644 --- a/src/cloudflare/types/magic_transit/ipsec_tunnel_update_params.py +++ b/src/cloudflare/types/magic_transit/ipsec_tunnel_update_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict from .health_check_param import HealthCheckParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["IPSECTunnelUpdateParams"] diff --git a/src/cloudflare/types/magic_transit/ipsec_tunnel_update_response.py b/src/cloudflare/types/magic_transit/ipsec_tunnel_update_response.py index f216ce821..7b1094407 100644 --- a/src/cloudflare/types/magic_transit/ipsec_tunnel_update_response.py +++ b/src/cloudflare/types/magic_transit/ipsec_tunnel_update_response.py @@ -1,20 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - -from .health_check_rate import HealthCheckRate - -from .health_check_type import HealthCheckType - from datetime import datetime +from ..._models import BaseModel from .psk_metadata import PSKMetadata - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .health_check_rate import HealthCheckRate +from .health_check_type import HealthCheckType __all__ = ["IPSECTunnelUpdateResponse", "ModifiedIPSECTunnel", "ModifiedIPSECTunnelTunnelHealthCheck"] diff --git a/src/cloudflare/types/magic_transit/psk_metadata.py b/src/cloudflare/types/magic_transit/psk_metadata.py index 075b1b750..db1b57d2b 100644 --- a/src/cloudflare/types/magic_transit/psk_metadata.py +++ b/src/cloudflare/types/magic_transit/psk_metadata.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["PSKMetadata"] diff --git a/src/cloudflare/types/magic_transit/route_create_params.py b/src/cloudflare/types/magic_transit/route_create_params.py index 77ce93382..6afc20132 100644 --- a/src/cloudflare/types/magic_transit/route_create_params.py +++ b/src/cloudflare/types/magic_transit/route_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["RouteCreateParams"] diff --git a/src/cloudflare/types/magic_transit/route_create_response.py b/src/cloudflare/types/magic_transit/route_create_response.py index c51a4f46f..c8b0dd589 100644 --- a/src/cloudflare/types/magic_transit/route_create_response.py +++ b/src/cloudflare/types/magic_transit/route_create_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime from .scope import Scope - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RouteCreateResponse", "Route"] diff --git a/src/cloudflare/types/magic_transit/route_delete_response.py b/src/cloudflare/types/magic_transit/route_delete_response.py index a428eac2a..9fadb0006 100644 --- a/src/cloudflare/types/magic_transit/route_delete_response.py +++ b/src/cloudflare/types/magic_transit/route_delete_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime from .scope import Scope - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RouteDeleteResponse", "DeletedRoute"] diff --git a/src/cloudflare/types/magic_transit/route_empty_response.py b/src/cloudflare/types/magic_transit/route_empty_response.py index f65acb232..3f4073098 100644 --- a/src/cloudflare/types/magic_transit/route_empty_response.py +++ b/src/cloudflare/types/magic_transit/route_empty_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime from .scope import Scope - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RouteEmptyResponse", "DeletedRoute"] diff --git a/src/cloudflare/types/magic_transit/route_get_response.py b/src/cloudflare/types/magic_transit/route_get_response.py index 620acb144..bcd7d7329 100644 --- a/src/cloudflare/types/magic_transit/route_get_response.py +++ b/src/cloudflare/types/magic_transit/route_get_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime from .scope import Scope - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RouteGetResponse", "Route"] diff --git a/src/cloudflare/types/magic_transit/route_list_response.py b/src/cloudflare/types/magic_transit/route_list_response.py index f1af761d0..5e19e5ba4 100644 --- a/src/cloudflare/types/magic_transit/route_list_response.py +++ b/src/cloudflare/types/magic_transit/route_list_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime from .scope import Scope - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RouteListResponse", "Route"] diff --git a/src/cloudflare/types/magic_transit/route_update_params.py b/src/cloudflare/types/magic_transit/route_update_params.py index 42bce3abc..14d10ad42 100644 --- a/src/cloudflare/types/magic_transit/route_update_params.py +++ b/src/cloudflare/types/magic_transit/route_update_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict from .scope_param import ScopeParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["RouteUpdateParams"] diff --git a/src/cloudflare/types/magic_transit/route_update_response.py b/src/cloudflare/types/magic_transit/route_update_response.py index 8e0d9b5b1..9f5d17632 100644 --- a/src/cloudflare/types/magic_transit/route_update_response.py +++ b/src/cloudflare/types/magic_transit/route_update_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime from .scope import Scope - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RouteUpdateResponse", "ModifiedRoute"] diff --git a/src/cloudflare/types/magic_transit/scope.py b/src/cloudflare/types/magic_transit/scope.py index 83a28190b..a01bc5eb3 100644 --- a/src/cloudflare/types/magic_transit/scope.py +++ b/src/cloudflare/types/magic_transit/scope.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Scope"] diff --git a/src/cloudflare/types/magic_transit/scope_param.py b/src/cloudflare/types/magic_transit/scope_param.py index 8b33269cd..95df559e3 100644 --- a/src/cloudflare/types/magic_transit/scope_param.py +++ b/src/cloudflare/types/magic_transit/scope_param.py @@ -3,7 +3,6 @@ from __future__ import annotations from typing import List - from typing_extensions import TypedDict __all__ = ["ScopeParam"] diff --git a/src/cloudflare/types/magic_transit/site.py b/src/cloudflare/types/magic_transit/site.py index 9242e3e6f..e011ab21b 100644 --- a/src/cloudflare/types/magic_transit/site.py +++ b/src/cloudflare/types/magic_transit/site.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional +from ..._models import BaseModel from .site_location import SiteLocation -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Site"] diff --git a/src/cloudflare/types/magic_transit/site_create_params.py b/src/cloudflare/types/magic_transit/site_create_params.py index e1e661e63..70a64bc54 100644 --- a/src/cloudflare/types/magic_transit/site_create_params.py +++ b/src/cloudflare/types/magic_transit/site_create_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict from .site_location_param import SiteLocationParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["SiteCreateParams"] diff --git a/src/cloudflare/types/magic_transit/site_edit_params.py b/src/cloudflare/types/magic_transit/site_edit_params.py index 32db9e9d0..eef65820c 100644 --- a/src/cloudflare/types/magic_transit/site_edit_params.py +++ b/src/cloudflare/types/magic_transit/site_edit_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict from .site_location_param import SiteLocationParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["SiteEditParams"] diff --git a/src/cloudflare/types/magic_transit/site_list_params.py b/src/cloudflare/types/magic_transit/site_list_params.py index 514b195d5..8f74157c2 100644 --- a/src/cloudflare/types/magic_transit/site_list_params.py +++ b/src/cloudflare/types/magic_transit/site_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["SiteListParams"] diff --git a/src/cloudflare/types/magic_transit/site_location.py b/src/cloudflare/types/magic_transit/site_location.py index 32c4f583e..6cf9417b1 100644 --- a/src/cloudflare/types/magic_transit/site_location.py +++ b/src/cloudflare/types/magic_transit/site_location.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["SiteLocation"] diff --git a/src/cloudflare/types/magic_transit/site_update_params.py b/src/cloudflare/types/magic_transit/site_update_params.py index cf2a4099c..456861263 100644 --- a/src/cloudflare/types/magic_transit/site_update_params.py +++ b/src/cloudflare/types/magic_transit/site_update_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict from .site_location_param import SiteLocationParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["SiteUpdateParams"] diff --git a/src/cloudflare/types/magic_transit/sites/__init__.py b/src/cloudflare/types/magic_transit/sites/__init__.py index c0fb0a8de..eb134db7d 100644 --- a/src/cloudflare/types/magic_transit/sites/__init__.py +++ b/src/cloudflare/types/magic_transit/sites/__init__.py @@ -3,32 +3,32 @@ from __future__ import annotations from .acl import ACL as ACL -from .acl_configuration import ACLConfiguration as ACLConfiguration -from .acl_configuration_param import ACLConfigurationParam as ACLConfigurationParam -from .allowed_protocol import AllowedProtocol as AllowedProtocol +from .lan import LAN as LAN +from .nat import Nat as Nat +from .wan import WAN as WAN from .subnet import Subnet as Subnet +from .nat_param import NatParam as NatParam +from .dhcp_relay import DHCPRelay as DHCPRelay +from .dhcp_server import DHCPServer as DHCPServer +from .routed_subnet import RoutedSubnet as RoutedSubnet +from .acl_edit_params import ACLEditParams as ACLEditParams +from .lan_edit_params import LANEditParams as LANEditParams +from .wan_edit_params import WANEditParams as WANEditParams +from .allowed_protocol import AllowedProtocol as AllowedProtocol +from .dhcp_relay_param import DHCPRelayParam as DHCPRelayParam +from .acl_configuration import ACLConfiguration as ACLConfiguration from .acl_create_params import ACLCreateParams as ACLCreateParams from .acl_update_params import ACLUpdateParams as ACLUpdateParams -from .acl_edit_params import ACLEditParams as ACLEditParams -from .dhcp_relay import DHCPRelay as DHCPRelay -from .dhcp_relay_param import DHCPRelayParam as DHCPRelayParam -from .dhcp_server import DHCPServer as DHCPServer from .dhcp_server_param import DHCPServerParam as DHCPServerParam -from .lan import LAN as LAN -from .lan_static_addressing import LANStaticAddressing as LANStaticAddressing -from .lan_static_addressing_param import LANStaticAddressingParam as LANStaticAddressingParam -from .nat import Nat as Nat -from .nat_param import NatParam as NatParam -from .routed_subnet import RoutedSubnet as RoutedSubnet -from .routed_subnet_param import RoutedSubnetParam as RoutedSubnetParam -from .lan_create_response import LANCreateResponse as LANCreateResponse from .lan_create_params import LANCreateParams as LANCreateParams from .lan_update_params import LANUpdateParams as LANUpdateParams -from .lan_edit_params import LANEditParams as LANEditParams -from .wan import WAN as WAN -from .wan_static_addressing import WANStaticAddressing as WANStaticAddressing -from .wan_static_addressing_param import WANStaticAddressingParam as WANStaticAddressingParam -from .wan_create_response import WANCreateResponse as WANCreateResponse from .wan_create_params import WANCreateParams as WANCreateParams from .wan_update_params import WANUpdateParams as WANUpdateParams -from .wan_edit_params import WANEditParams as WANEditParams +from .lan_create_response import LANCreateResponse as LANCreateResponse +from .routed_subnet_param import RoutedSubnetParam as RoutedSubnetParam +from .wan_create_response import WANCreateResponse as WANCreateResponse +from .lan_static_addressing import LANStaticAddressing as LANStaticAddressing +from .wan_static_addressing import WANStaticAddressing as WANStaticAddressing +from .acl_configuration_param import ACLConfigurationParam as ACLConfigurationParam +from .lan_static_addressing_param import LANStaticAddressingParam as LANStaticAddressingParam +from .wan_static_addressing_param import WANStaticAddressingParam as WANStaticAddressingParam diff --git a/src/cloudflare/types/magic_transit/sites/acl.py b/src/cloudflare/types/magic_transit/sites/acl.py index 7d9192b37..5565fc0f5 100644 --- a/src/cloudflare/types/magic_transit/sites/acl.py +++ b/src/cloudflare/types/magic_transit/sites/acl.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ...._models import BaseModel - -from typing import Optional, List - -from .acl_configuration import ACLConfiguration - from .allowed_protocol import AllowedProtocol - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .acl_configuration import ACLConfiguration __all__ = ["ACL"] diff --git a/src/cloudflare/types/magic_transit/sites/acl_configuration.py b/src/cloudflare/types/magic_transit/sites/acl_configuration.py index 24ab86b0d..6c934b500 100644 --- a/src/cloudflare/types/magic_transit/sites/acl_configuration.py +++ b/src/cloudflare/types/magic_transit/sites/acl_configuration.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List +from typing import List, Optional from .subnet import Subnet - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ACLConfiguration"] diff --git a/src/cloudflare/types/magic_transit/sites/acl_configuration_param.py b/src/cloudflare/types/magic_transit/sites/acl_configuration_param.py index 2b23bb288..a674c65a2 100644 --- a/src/cloudflare/types/magic_transit/sites/acl_configuration_param.py +++ b/src/cloudflare/types/magic_transit/sites/acl_configuration_param.py @@ -2,12 +2,11 @@ from __future__ import annotations -from typing import Iterable, List +from typing import List, Iterable +from typing_extensions import Required, TypedDict from .subnet import Subnet -from typing_extensions import TypedDict, Required - __all__ = ["ACLConfigurationParam"] diff --git a/src/cloudflare/types/magic_transit/sites/acl_create_params.py b/src/cloudflare/types/magic_transit/sites/acl_create_params.py index 2f9af68bc..48b2d5f51 100644 --- a/src/cloudflare/types/magic_transit/sites/acl_create_params.py +++ b/src/cloudflare/types/magic_transit/sites/acl_create_params.py @@ -2,18 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from .acl_configuration_param import ACLConfigurationParam - from typing import List +from typing_extensions import Required, TypedDict from .allowed_protocol import AllowedProtocol - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from .acl_configuration_param import ACLConfigurationParam __all__ = ["ACLCreateParams"] diff --git a/src/cloudflare/types/magic_transit/sites/acl_edit_params.py b/src/cloudflare/types/magic_transit/sites/acl_edit_params.py index 9a70e4824..8a6c7b0f5 100644 --- a/src/cloudflare/types/magic_transit/sites/acl_edit_params.py +++ b/src/cloudflare/types/magic_transit/sites/acl_edit_params.py @@ -2,18 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from .acl_configuration_param import ACLConfigurationParam - from typing import List +from typing_extensions import Required, TypedDict from .allowed_protocol import AllowedProtocol - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from .acl_configuration_param import ACLConfigurationParam __all__ = ["ACLEditParams"] diff --git a/src/cloudflare/types/magic_transit/sites/acl_update_params.py b/src/cloudflare/types/magic_transit/sites/acl_update_params.py index 60d7e09e6..5abc70c23 100644 --- a/src/cloudflare/types/magic_transit/sites/acl_update_params.py +++ b/src/cloudflare/types/magic_transit/sites/acl_update_params.py @@ -2,18 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from .acl_configuration_param import ACLConfigurationParam - from typing import List +from typing_extensions import Required, TypedDict from .allowed_protocol import AllowedProtocol - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from .acl_configuration_param import ACLConfigurationParam __all__ = ["ACLUpdateParams"] diff --git a/src/cloudflare/types/magic_transit/sites/allowed_protocol.py b/src/cloudflare/types/magic_transit/sites/allowed_protocol.py index eded662c8..076a921f0 100644 --- a/src/cloudflare/types/magic_transit/sites/allowed_protocol.py +++ b/src/cloudflare/types/magic_transit/sites/allowed_protocol.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AllowedProtocol"] AllowedProtocol: TypeAlias = Literal["tcp", "udp", "icmp"] diff --git a/src/cloudflare/types/magic_transit/sites/dhcp_relay.py b/src/cloudflare/types/magic_transit/sites/dhcp_relay.py index 893d81b3a..573ae4e9a 100644 --- a/src/cloudflare/types/magic_transit/sites/dhcp_relay.py +++ b/src/cloudflare/types/magic_transit/sites/dhcp_relay.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ...._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["DHCPRelay"] diff --git a/src/cloudflare/types/magic_transit/sites/dhcp_relay_param.py b/src/cloudflare/types/magic_transit/sites/dhcp_relay_param.py index 662c1bc39..d683a3210 100644 --- a/src/cloudflare/types/magic_transit/sites/dhcp_relay_param.py +++ b/src/cloudflare/types/magic_transit/sites/dhcp_relay_param.py @@ -3,7 +3,6 @@ from __future__ import annotations from typing import List - from typing_extensions import TypedDict __all__ = ["DHCPRelayParam"] diff --git a/src/cloudflare/types/magic_transit/sites/dhcp_server.py b/src/cloudflare/types/magic_transit/sites/dhcp_server.py index 3a3bb5ad0..2afdcdc65 100644 --- a/src/cloudflare/types/magic_transit/sites/dhcp_server.py +++ b/src/cloudflare/types/magic_transit/sites/dhcp_server.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Dict, Optional + from ...._models import BaseModel -from typing import Optional, Dict - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["DHCPServer"] diff --git a/src/cloudflare/types/magic_transit/sites/dhcp_server_param.py b/src/cloudflare/types/magic_transit/sites/dhcp_server_param.py index 70d7dbd4a..85bfb2f77 100644 --- a/src/cloudflare/types/magic_transit/sites/dhcp_server_param.py +++ b/src/cloudflare/types/magic_transit/sites/dhcp_server_param.py @@ -3,7 +3,6 @@ from __future__ import annotations from typing import Dict - from typing_extensions import TypedDict __all__ = ["DHCPServerParam"] diff --git a/src/cloudflare/types/magic_transit/sites/lan.py b/src/cloudflare/types/magic_transit/sites/lan.py index 9a40b530e..6df37634b 100644 --- a/src/cloudflare/types/magic_transit/sites/lan.py +++ b/src/cloudflare/types/magic_transit/sites/lan.py @@ -1,19 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List +from typing import List, Optional from .nat import Nat - +from ...._models import BaseModel from .routed_subnet import RoutedSubnet - from .lan_static_addressing import LANStaticAddressing -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["LAN"] diff --git a/src/cloudflare/types/magic_transit/sites/lan_create_params.py b/src/cloudflare/types/magic_transit/sites/lan_create_params.py index 924fb9452..16ca5e818 100644 --- a/src/cloudflare/types/magic_transit/sites/lan_create_params.py +++ b/src/cloudflare/types/magic_transit/sites/lan_create_params.py @@ -2,21 +2,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing import Iterable +from typing_extensions import Required, TypedDict from .nat_param import NatParam - -from typing import Iterable - from .routed_subnet_param import RoutedSubnetParam - from .lan_static_addressing_param import LANStaticAddressingParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["LANCreateParams"] diff --git a/src/cloudflare/types/magic_transit/sites/lan_create_response.py b/src/cloudflare/types/magic_transit/sites/lan_create_response.py index bd01ae870..cc90dc2a1 100644 --- a/src/cloudflare/types/magic_transit/sites/lan_create_response.py +++ b/src/cloudflare/types/magic_transit/sites/lan_create_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .lan import LAN - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .lan import LAN __all__ = ["LANCreateResponse"] diff --git a/src/cloudflare/types/magic_transit/sites/lan_edit_params.py b/src/cloudflare/types/magic_transit/sites/lan_edit_params.py index 60dd26ef8..ca11b71b8 100644 --- a/src/cloudflare/types/magic_transit/sites/lan_edit_params.py +++ b/src/cloudflare/types/magic_transit/sites/lan_edit_params.py @@ -2,21 +2,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing import Iterable +from typing_extensions import Required, TypedDict from .nat_param import NatParam - -from typing import Iterable - from .routed_subnet_param import RoutedSubnetParam - from .lan_static_addressing_param import LANStaticAddressingParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["LANEditParams"] diff --git a/src/cloudflare/types/magic_transit/sites/lan_static_addressing.py b/src/cloudflare/types/magic_transit/sites/lan_static_addressing.py index 177a8192a..31801ab85 100644 --- a/src/cloudflare/types/magic_transit/sites/lan_static_addressing.py +++ b/src/cloudflare/types/magic_transit/sites/lan_static_addressing.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional +from ...._models import BaseModel from .dhcp_relay import DHCPRelay - from .dhcp_server import DHCPServer -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["LANStaticAddressing"] diff --git a/src/cloudflare/types/magic_transit/sites/lan_static_addressing_param.py b/src/cloudflare/types/magic_transit/sites/lan_static_addressing_param.py index 3acfa7fb2..779724c0f 100644 --- a/src/cloudflare/types/magic_transit/sites/lan_static_addressing_param.py +++ b/src/cloudflare/types/magic_transit/sites/lan_static_addressing_param.py @@ -2,12 +2,11 @@ from __future__ import annotations +from typing_extensions import Required, TypedDict + from .dhcp_relay_param import DHCPRelayParam - from .dhcp_server_param import DHCPServerParam -from typing_extensions import TypedDict, Required - __all__ = ["LANStaticAddressingParam"] diff --git a/src/cloudflare/types/magic_transit/sites/lan_update_params.py b/src/cloudflare/types/magic_transit/sites/lan_update_params.py index 2548b8ceb..0dea4f2b8 100644 --- a/src/cloudflare/types/magic_transit/sites/lan_update_params.py +++ b/src/cloudflare/types/magic_transit/sites/lan_update_params.py @@ -2,21 +2,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing import Iterable +from typing_extensions import Required, TypedDict from .nat_param import NatParam - -from typing import Iterable - from .routed_subnet_param import RoutedSubnetParam - from .lan_static_addressing_param import LANStaticAddressingParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["LANUpdateParams"] diff --git a/src/cloudflare/types/magic_transit/sites/nat.py b/src/cloudflare/types/magic_transit/sites/nat.py index 92fe79b91..740ebff9f 100644 --- a/src/cloudflare/types/magic_transit/sites/nat.py +++ b/src/cloudflare/types/magic_transit/sites/nat.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["Nat"] diff --git a/src/cloudflare/types/magic_transit/sites/routed_subnet.py b/src/cloudflare/types/magic_transit/sites/routed_subnet.py index 459e8789d..65d73d051 100644 --- a/src/cloudflare/types/magic_transit/sites/routed_subnet.py +++ b/src/cloudflare/types/magic_transit/sites/routed_subnet.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional from .nat import Nat - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["RoutedSubnet"] diff --git a/src/cloudflare/types/magic_transit/sites/routed_subnet_param.py b/src/cloudflare/types/magic_transit/sites/routed_subnet_param.py index fe99e03e5..b5c001175 100644 --- a/src/cloudflare/types/magic_transit/sites/routed_subnet_param.py +++ b/src/cloudflare/types/magic_transit/sites/routed_subnet_param.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .nat_param import NatParam +from typing_extensions import Required, TypedDict -from typing_extensions import TypedDict, Required +from .nat_param import NatParam __all__ = ["RoutedSubnetParam"] diff --git a/src/cloudflare/types/magic_transit/sites/subnet.py b/src/cloudflare/types/magic_transit/sites/subnet.py index 7c0ce2456..4dc5d4ab6 100644 --- a/src/cloudflare/types/magic_transit/sites/subnet.py +++ b/src/cloudflare/types/magic_transit/sites/subnet.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Subnet"] Subnet: TypeAlias = str diff --git a/src/cloudflare/types/magic_transit/sites/wan.py b/src/cloudflare/types/magic_transit/sites/wan.py index 07ca799c2..1148e9f08 100644 --- a/src/cloudflare/types/magic_transit/sites/wan.py +++ b/src/cloudflare/types/magic_transit/sites/wan.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional +from ...._models import BaseModel from .wan_static_addressing import WANStaticAddressing -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["WAN"] diff --git a/src/cloudflare/types/magic_transit/sites/wan_create_params.py b/src/cloudflare/types/magic_transit/sites/wan_create_params.py index 941756c48..f8bcb240d 100644 --- a/src/cloudflare/types/magic_transit/sites/wan_create_params.py +++ b/src/cloudflare/types/magic_transit/sites/wan_create_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict from .wan_static_addressing_param import WANStaticAddressingParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["WANCreateParams"] diff --git a/src/cloudflare/types/magic_transit/sites/wan_create_response.py b/src/cloudflare/types/magic_transit/sites/wan_create_response.py index 3863a6dfc..37b582d7c 100644 --- a/src/cloudflare/types/magic_transit/sites/wan_create_response.py +++ b/src/cloudflare/types/magic_transit/sites/wan_create_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .wan import WAN - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .wan import WAN __all__ = ["WANCreateResponse"] diff --git a/src/cloudflare/types/magic_transit/sites/wan_edit_params.py b/src/cloudflare/types/magic_transit/sites/wan_edit_params.py index 1b9142d38..fdd941a07 100644 --- a/src/cloudflare/types/magic_transit/sites/wan_edit_params.py +++ b/src/cloudflare/types/magic_transit/sites/wan_edit_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict from .wan_static_addressing_param import WANStaticAddressingParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["WANEditParams"] diff --git a/src/cloudflare/types/magic_transit/sites/wan_static_addressing.py b/src/cloudflare/types/magic_transit/sites/wan_static_addressing.py index f61e25efd..ffa5b4c12 100644 --- a/src/cloudflare/types/magic_transit/sites/wan_static_addressing.py +++ b/src/cloudflare/types/magic_transit/sites/wan_static_addressing.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["WANStaticAddressing"] diff --git a/src/cloudflare/types/magic_transit/sites/wan_static_addressing_param.py b/src/cloudflare/types/magic_transit/sites/wan_static_addressing_param.py index 44c03e4c3..273de37cf 100644 --- a/src/cloudflare/types/magic_transit/sites/wan_static_addressing_param.py +++ b/src/cloudflare/types/magic_transit/sites/wan_static_addressing_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["WANStaticAddressingParam"] diff --git a/src/cloudflare/types/magic_transit/sites/wan_update_params.py b/src/cloudflare/types/magic_transit/sites/wan_update_params.py index 825256a2e..6b1a92759 100644 --- a/src/cloudflare/types/magic_transit/sites/wan_update_params.py +++ b/src/cloudflare/types/magic_transit/sites/wan_update_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict from .wan_static_addressing_param import WANStaticAddressingParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["WANUpdateParams"] diff --git a/src/cloudflare/types/managed_headers/__init__.py b/src/cloudflare/types/managed_headers/__init__.py index 15830198a..4398e3171 100644 --- a/src/cloudflare/types/managed_headers/__init__.py +++ b/src/cloudflare/types/managed_headers/__init__.py @@ -4,6 +4,6 @@ from __future__ import annotations from .request_model import RequestModel as RequestModel from .request_model_param import RequestModelParam as RequestModelParam -from .managed_header_list_response import ManagedHeaderListResponse as ManagedHeaderListResponse -from .managed_header_edit_response import ManagedHeaderEditResponse as ManagedHeaderEditResponse from .managed_header_edit_params import ManagedHeaderEditParams as ManagedHeaderEditParams +from .managed_header_edit_response import ManagedHeaderEditResponse as ManagedHeaderEditResponse +from .managed_header_list_response import ManagedHeaderListResponse as ManagedHeaderListResponse diff --git a/src/cloudflare/types/managed_headers/managed_header_edit_params.py b/src/cloudflare/types/managed_headers/managed_header_edit_params.py index 7adb6ac0a..a9bf71d9c 100644 --- a/src/cloudflare/types/managed_headers/managed_header_edit_params.py +++ b/src/cloudflare/types/managed_headers/managed_header_edit_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Iterable +from typing_extensions import Required, TypedDict from .request_model_param import RequestModelParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["ManagedHeaderEditParams"] diff --git a/src/cloudflare/types/managed_headers/managed_header_edit_response.py b/src/cloudflare/types/managed_headers/managed_header_edit_response.py index eb681efe9..d1b0f60e8 100644 --- a/src/cloudflare/types/managed_headers/managed_header_edit_response.py +++ b/src/cloudflare/types/managed_headers/managed_header_edit_response.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ManagedHeaderEditResponse", "ManagedRequestHeader", "ManagedResponseHeader"] diff --git a/src/cloudflare/types/managed_headers/managed_header_list_response.py b/src/cloudflare/types/managed_headers/managed_header_list_response.py index d2cf4e1e0..c155ecb59 100644 --- a/src/cloudflare/types/managed_headers/managed_header_list_response.py +++ b/src/cloudflare/types/managed_headers/managed_header_list_response.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel - -from typing import Optional, List - from .request_model import RequestModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ManagedHeaderListResponse"] diff --git a/src/cloudflare/types/managed_headers/request_model.py b/src/cloudflare/types/managed_headers/request_model.py index 283abc6cc..281db0613 100644 --- a/src/cloudflare/types/managed_headers/request_model.py +++ b/src/cloudflare/types/managed_headers/request_model.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RequestModel"] diff --git a/src/cloudflare/types/memberships/__init__.py b/src/cloudflare/types/memberships/__init__.py index e0f0d8ed8..0ec3d2b63 100644 --- a/src/cloudflare/types/memberships/__init__.py +++ b/src/cloudflare/types/memberships/__init__.py @@ -3,8 +3,8 @@ from __future__ import annotations from .membership import Membership as Membership -from .membership_update_response import MembershipUpdateResponse as MembershipUpdateResponse -from .membership_delete_response import MembershipDeleteResponse as MembershipDeleteResponse +from .membership_list_params import MembershipListParams as MembershipListParams from .membership_get_response import MembershipGetResponse as MembershipGetResponse from .membership_update_params import MembershipUpdateParams as MembershipUpdateParams -from .membership_list_params import MembershipListParams as MembershipListParams +from .membership_delete_response import MembershipDeleteResponse as MembershipDeleteResponse +from .membership_update_response import MembershipUpdateResponse as MembershipUpdateResponse diff --git a/src/cloudflare/types/memberships/membership.py b/src/cloudflare/types/memberships/membership.py index 3a3accf05..a7fb67205 100644 --- a/src/cloudflare/types/memberships/membership.py +++ b/src/cloudflare/types/memberships/membership.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel - -from typing import Optional, List - -from ..shared.permission_grant import PermissionGrant - from ..accounts.account import Account - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..shared.permission_grant import PermissionGrant __all__ = ["Membership", "Permissions"] diff --git a/src/cloudflare/types/memberships/membership_delete_response.py b/src/cloudflare/types/memberships/membership_delete_response.py index 29b32a3bc..8d11b2170 100644 --- a/src/cloudflare/types/memberships/membership_delete_response.py +++ b/src/cloudflare/types/memberships/membership_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["MembershipDeleteResponse"] diff --git a/src/cloudflare/types/memberships/membership_get_response.py b/src/cloudflare/types/memberships/membership_get_response.py index 58335c784..0ef830152 100644 --- a/src/cloudflare/types/memberships/membership_get_response.py +++ b/src/cloudflare/types/memberships/membership_get_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel - -from typing import Optional, List - -from ..shared.permission_grant import PermissionGrant - -from typing_extensions import Literal - from ..accounts.account import Account - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..shared.permission_grant import PermissionGrant __all__ = [ "MembershipGetResponse", diff --git a/src/cloudflare/types/memberships/membership_list_params.py b/src/cloudflare/types/memberships/membership_list_params.py index 6a1bff709..44773235d 100644 --- a/src/cloudflare/types/memberships/membership_list_params.py +++ b/src/cloudflare/types/memberships/membership_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, TypedDict __all__ = ["MembershipListParams", "Account"] diff --git a/src/cloudflare/types/memberships/membership_update_params.py b/src/cloudflare/types/memberships/membership_update_params.py index 97111611b..a369c5659 100644 --- a/src/cloudflare/types/memberships/membership_update_params.py +++ b/src/cloudflare/types/memberships/membership_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["MembershipUpdateParams"] diff --git a/src/cloudflare/types/memberships/membership_update_response.py b/src/cloudflare/types/memberships/membership_update_response.py index ac1272a61..196ccc5a7 100644 --- a/src/cloudflare/types/memberships/membership_update_response.py +++ b/src/cloudflare/types/memberships/membership_update_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel - -from typing import Optional, List - -from ..shared.permission_grant import PermissionGrant - -from typing_extensions import Literal - from ..accounts.account import Account - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..shared.permission_grant import PermissionGrant __all__ = [ "MembershipUpdateResponse", diff --git a/src/cloudflare/types/mtls_certificates/__init__.py b/src/cloudflare/types/mtls_certificates/__init__.py index 95f0af33c..e7b658898 100644 --- a/src/cloudflare/types/mtls_certificates/__init__.py +++ b/src/cloudflare/types/mtls_certificates/__init__.py @@ -3,7 +3,7 @@ from __future__ import annotations from .mtls_certificate import MTLSCertificate as MTLSCertificate -from .mtls_certificate_create_response import MTLSCertificateCreateResponse as MTLSCertificateCreateResponse -from .mtls_certificate_create_params import MTLSCertificateCreateParams as MTLSCertificateCreateParams -from .certificate_asssociation import CertificateAsssociation as CertificateAsssociation from .association_get_response import AssociationGetResponse as AssociationGetResponse +from .certificate_asssociation import CertificateAsssociation as CertificateAsssociation +from .mtls_certificate_create_params import MTLSCertificateCreateParams as MTLSCertificateCreateParams +from .mtls_certificate_create_response import MTLSCertificateCreateResponse as MTLSCertificateCreateResponse diff --git a/src/cloudflare/types/mtls_certificates/association_get_response.py b/src/cloudflare/types/mtls_certificates/association_get_response.py index b47a4457f..e2ef7249f 100644 --- a/src/cloudflare/types/mtls_certificates/association_get_response.py +++ b/src/cloudflare/types/mtls_certificates/association_get_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .certificate_asssociation import CertificateAsssociation - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .certificate_asssociation import CertificateAsssociation __all__ = ["AssociationGetResponse"] diff --git a/src/cloudflare/types/mtls_certificates/certificate_asssociation.py b/src/cloudflare/types/mtls_certificates/certificate_asssociation.py index 7e320946c..e3c5c30a5 100644 --- a/src/cloudflare/types/mtls_certificates/certificate_asssociation.py +++ b/src/cloudflare/types/mtls_certificates/certificate_asssociation.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["CertificateAsssociation"] diff --git a/src/cloudflare/types/mtls_certificates/mtls_certificate.py b/src/cloudflare/types/mtls_certificates/mtls_certificate.py index cdd4176c7..4b7a1e5f3 100644 --- a/src/cloudflare/types/mtls_certificates/mtls_certificate.py +++ b/src/cloudflare/types/mtls_certificates/mtls_certificate.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["MTLSCertificate"] diff --git a/src/cloudflare/types/mtls_certificates/mtls_certificate_create_params.py b/src/cloudflare/types/mtls_certificates/mtls_certificate_create_params.py index c0584ae8b..0a2e368e1 100644 --- a/src/cloudflare/types/mtls_certificates/mtls_certificate_create_params.py +++ b/src/cloudflare/types/mtls_certificates/mtls_certificate_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["MTLSCertificateCreateParams"] diff --git a/src/cloudflare/types/mtls_certificates/mtls_certificate_create_response.py b/src/cloudflare/types/mtls_certificates/mtls_certificate_create_response.py index d917b4546..4d1bd959f 100644 --- a/src/cloudflare/types/mtls_certificates/mtls_certificate_create_response.py +++ b/src/cloudflare/types/mtls_certificates/mtls_certificate_create_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["MTLSCertificateCreateResponse"] diff --git a/src/cloudflare/types/origin_ca_certificates/__init__.py b/src/cloudflare/types/origin_ca_certificates/__init__.py index eac3b18af..719af2c07 100644 --- a/src/cloudflare/types/origin_ca_certificates/__init__.py +++ b/src/cloudflare/types/origin_ca_certificates/__init__.py @@ -3,8 +3,8 @@ from __future__ import annotations from .origin_ca_certificate import OriginCACertificate as OriginCACertificate +from .origin_ca_certificate_list_params import OriginCACertificateListParams as OriginCACertificateListParams +from .origin_ca_certificate_create_params import OriginCACertificateCreateParams as OriginCACertificateCreateParams from .origin_ca_certificate_delete_response import ( OriginCACertificateDeleteResponse as OriginCACertificateDeleteResponse, ) -from .origin_ca_certificate_create_params import OriginCACertificateCreateParams as OriginCACertificateCreateParams -from .origin_ca_certificate_list_params import OriginCACertificateListParams as OriginCACertificateListParams diff --git a/src/cloudflare/types/origin_ca_certificates/origin_ca_certificate.py b/src/cloudflare/types/origin_ca_certificates/origin_ca_certificate.py index 436ef6945..883d2d01b 100644 --- a/src/cloudflare/types/origin_ca_certificates/origin_ca_certificate.py +++ b/src/cloudflare/types/origin_ca_certificates/origin_ca_certificate.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List, Optional - -from ..shared.certificate_request_type import CertificateRequestType - -from ..ssl.request_validity import RequestValidity - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ..ssl.request_validity import RequestValidity +from ..shared.certificate_request_type import CertificateRequestType __all__ = ["OriginCACertificate"] diff --git a/src/cloudflare/types/origin_ca_certificates/origin_ca_certificate_create_params.py b/src/cloudflare/types/origin_ca_certificates/origin_ca_certificate_create_params.py index 93f3975af..21db1d03e 100644 --- a/src/cloudflare/types/origin_ca_certificates/origin_ca_certificate_create_params.py +++ b/src/cloudflare/types/origin_ca_certificates/origin_ca_certificate_create_params.py @@ -2,18 +2,11 @@ from __future__ import annotations +from typing import List from typing_extensions import TypedDict -from typing import List - -from ..shared.certificate_request_type import CertificateRequestType - from ..ssl.request_validity import RequestValidity - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from ..shared.certificate_request_type import CertificateRequestType __all__ = ["OriginCACertificateCreateParams"] diff --git a/src/cloudflare/types/origin_ca_certificates/origin_ca_certificate_delete_response.py b/src/cloudflare/types/origin_ca_certificates/origin_ca_certificate_delete_response.py index 9997f8bec..75bcea0c2 100644 --- a/src/cloudflare/types/origin_ca_certificates/origin_ca_certificate_delete_response.py +++ b/src/cloudflare/types/origin_ca_certificates/origin_ca_certificate_delete_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List, Optional - -from ..shared.certificate_request_type import CertificateRequestType - -from ..ssl.request_validity import RequestValidity - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ..ssl.request_validity import RequestValidity +from ..shared.certificate_request_type import CertificateRequestType __all__ = ["OriginCACertificateDeleteResponse"] diff --git a/src/cloudflare/types/origin_ca_certificates/origin_ca_certificate_list_params.py b/src/cloudflare/types/origin_ca_certificates/origin_ca_certificate_list_params.py index 0c51d6f2b..e4f649558 100644 --- a/src/cloudflare/types/origin_ca_certificates/origin_ca_certificate_list_params.py +++ b/src/cloudflare/types/origin_ca_certificates/origin_ca_certificate_list_params.py @@ -4,11 +4,6 @@ from __future__ import annotations from typing_extensions import TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["OriginCACertificateListParams"] diff --git a/src/cloudflare/types/origin_post_quantum_encryption/origin_post_quantum_encryption_update_params.py b/src/cloudflare/types/origin_post_quantum_encryption/origin_post_quantum_encryption_update_params.py index 0074a239a..b059d4aee 100644 --- a/src/cloudflare/types/origin_post_quantum_encryption/origin_post_quantum_encryption_update_params.py +++ b/src/cloudflare/types/origin_post_quantum_encryption/origin_post_quantum_encryption_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["OriginPostQuantumEncryptionUpdateParams"] diff --git a/src/cloudflare/types/origin_tls_client_auth/__init__.py b/src/cloudflare/types/origin_tls_client_auth/__init__.py index 59f0f83a3..e9dd09da3 100644 --- a/src/cloudflare/types/origin_tls_client_auth/__init__.py +++ b/src/cloudflare/types/origin_tls_client_auth/__init__.py @@ -2,11 +2,11 @@ from __future__ import annotations -from .zone_authenticated_origin_pull import ZoneAuthenticatedOriginPull as ZoneAuthenticatedOriginPull -from .origin_tls_client_auth_create_params import OriginTLSClientAuthCreateParams as OriginTLSClientAuthCreateParams -from .authenticated_origin_pull import AuthenticatedOriginPull as AuthenticatedOriginPull -from .hostname_update_response import HostnameUpdateResponse as HostnameUpdateResponse -from .hostname_update_params import HostnameUpdateParams as HostnameUpdateParams -from .setting_update_response import SettingUpdateResponse as SettingUpdateResponse from .setting_get_response import SettingGetResponse as SettingGetResponse from .setting_update_params import SettingUpdateParams as SettingUpdateParams +from .hostname_update_params import HostnameUpdateParams as HostnameUpdateParams +from .setting_update_response import SettingUpdateResponse as SettingUpdateResponse +from .hostname_update_response import HostnameUpdateResponse as HostnameUpdateResponse +from .authenticated_origin_pull import AuthenticatedOriginPull as AuthenticatedOriginPull +from .zone_authenticated_origin_pull import ZoneAuthenticatedOriginPull as ZoneAuthenticatedOriginPull +from .origin_tls_client_auth_create_params import OriginTLSClientAuthCreateParams as OriginTLSClientAuthCreateParams diff --git a/src/cloudflare/types/origin_tls_client_auth/authenticated_origin_pull.py b/src/cloudflare/types/origin_tls_client_auth/authenticated_origin_pull.py index 5a54b1e23..4f996546d 100644 --- a/src/cloudflare/types/origin_tls_client_auth/authenticated_origin_pull.py +++ b/src/cloudflare/types/origin_tls_client_auth/authenticated_origin_pull.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - -from typing_extensions import Literal - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["AuthenticatedOriginPull"] diff --git a/src/cloudflare/types/origin_tls_client_auth/hostname_update_params.py b/src/cloudflare/types/origin_tls_client_auth/hostname_update_params.py index 3c6912fac..9b1355274 100644 --- a/src/cloudflare/types/origin_tls_client_auth/hostname_update_params.py +++ b/src/cloudflare/types/origin_tls_client_auth/hostname_update_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Iterable, Optional - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["HostnameUpdateParams", "Config"] diff --git a/src/cloudflare/types/origin_tls_client_auth/hostname_update_response.py b/src/cloudflare/types/origin_tls_client_auth/hostname_update_response.py index a45984437..a6b297b17 100644 --- a/src/cloudflare/types/origin_tls_client_auth/hostname_update_response.py +++ b/src/cloudflare/types/origin_tls_client_auth/hostname_update_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .authenticated_origin_pull import AuthenticatedOriginPull - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .authenticated_origin_pull import AuthenticatedOriginPull __all__ = ["HostnameUpdateResponse"] diff --git a/src/cloudflare/types/origin_tls_client_auth/hostnames/__init__.py b/src/cloudflare/types/origin_tls_client_auth/hostnames/__init__.py index 2592f297a..bdf506a1e 100644 --- a/src/cloudflare/types/origin_tls_client_auth/hostnames/__init__.py +++ b/src/cloudflare/types/origin_tls_client_auth/hostnames/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations -from .certificate_create_response import CertificateCreateResponse as CertificateCreateResponse -from .certificate_delete_response import CertificateDeleteResponse as CertificateDeleteResponse from .certificate_get_response import CertificateGetResponse as CertificateGetResponse from .certificate_create_params import CertificateCreateParams as CertificateCreateParams +from .certificate_create_response import CertificateCreateResponse as CertificateCreateResponse +from .certificate_delete_response import CertificateDeleteResponse as CertificateDeleteResponse diff --git a/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate_create_params.py b/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate_create_params.py index 1a8579d30..9d4e5360e 100644 --- a/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate_create_params.py +++ b/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["CertificateCreateParams"] diff --git a/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate_create_response.py b/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate_create_response.py index 9a0dbe959..a841654f3 100644 --- a/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate_create_response.py +++ b/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate_create_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["CertificateCreateResponse"] diff --git a/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate_delete_response.py b/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate_delete_response.py index 34e8c8296..2cd196b82 100644 --- a/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate_delete_response.py +++ b/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate_delete_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["CertificateDeleteResponse"] diff --git a/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate_get_response.py b/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate_get_response.py index 24e03b94f..3f5da2edf 100644 --- a/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate_get_response.py +++ b/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate_get_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["CertificateGetResponse"] diff --git a/src/cloudflare/types/origin_tls_client_auth/origin_tls_client_auth_create_params.py b/src/cloudflare/types/origin_tls_client_auth/origin_tls_client_auth_create_params.py index a7600b8b1..721fb37c8 100644 --- a/src/cloudflare/types/origin_tls_client_auth/origin_tls_client_auth_create_params.py +++ b/src/cloudflare/types/origin_tls_client_auth/origin_tls_client_auth_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["OriginTLSClientAuthCreateParams"] diff --git a/src/cloudflare/types/origin_tls_client_auth/setting_get_response.py b/src/cloudflare/types/origin_tls_client_auth/setting_get_response.py index 04ee6f5a7..bcf0f3d58 100644 --- a/src/cloudflare/types/origin_tls_client_auth/setting_get_response.py +++ b/src/cloudflare/types/origin_tls_client_auth/setting_get_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["SettingGetResponse"] diff --git a/src/cloudflare/types/origin_tls_client_auth/setting_update_params.py b/src/cloudflare/types/origin_tls_client_auth/setting_update_params.py index 8d26e65f9..ba8a2b9f0 100644 --- a/src/cloudflare/types/origin_tls_client_auth/setting_update_params.py +++ b/src/cloudflare/types/origin_tls_client_auth/setting_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["SettingUpdateParams"] diff --git a/src/cloudflare/types/origin_tls_client_auth/setting_update_response.py b/src/cloudflare/types/origin_tls_client_auth/setting_update_response.py index 0119fed43..b68851a39 100644 --- a/src/cloudflare/types/origin_tls_client_auth/setting_update_response.py +++ b/src/cloudflare/types/origin_tls_client_auth/setting_update_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["SettingUpdateResponse"] diff --git a/src/cloudflare/types/origin_tls_client_auth/zone_authenticated_origin_pull.py b/src/cloudflare/types/origin_tls_client_auth/zone_authenticated_origin_pull.py index 4f98f1f2e..77c12a377 100644 --- a/src/cloudflare/types/origin_tls_client_auth/zone_authenticated_origin_pull.py +++ b/src/cloudflare/types/origin_tls_client_auth/zone_authenticated_origin_pull.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ZoneAuthenticatedOriginPull"] diff --git a/src/cloudflare/types/page_shield/__init__.py b/src/cloudflare/types/page_shield/__init__.py index 8a7de7153..9a501fdfc 100644 --- a/src/cloudflare/types/page_shield/__init__.py +++ b/src/cloudflare/types/page_shield/__init__.py @@ -2,20 +2,20 @@ from __future__ import annotations +from .script import Script as Script from .setting import Setting as Setting -from .page_shield_update_response import PageShieldUpdateResponse as PageShieldUpdateResponse -from .page_shield_update_params import PageShieldUpdateParams as PageShieldUpdateParams +from .connection import Connection as Connection +from .cookie_list_params import CookieListParams as CookieListParams +from .script_list_params import ScriptListParams as ScriptListParams +from .cookie_get_response import CookieGetResponse as CookieGetResponse +from .policy_get_response import PolicyGetResponse as PolicyGetResponse +from .script_get_response import ScriptGetResponse as ScriptGetResponse +from .cookie_list_response import CookieListResponse as CookieListResponse +from .policy_create_params import PolicyCreateParams as PolicyCreateParams +from .policy_list_response import PolicyListResponse as PolicyListResponse +from .policy_update_params import PolicyUpdateParams as PolicyUpdateParams +from .connection_list_params import ConnectionListParams as ConnectionListParams from .policy_create_response import PolicyCreateResponse as PolicyCreateResponse from .policy_update_response import PolicyUpdateResponse as PolicyUpdateResponse -from .policy_list_response import PolicyListResponse as PolicyListResponse -from .policy_get_response import PolicyGetResponse as PolicyGetResponse -from .policy_create_params import PolicyCreateParams as PolicyCreateParams -from .policy_update_params import PolicyUpdateParams as PolicyUpdateParams -from .connection import Connection as Connection -from .connection_list_params import ConnectionListParams as ConnectionListParams -from .script import Script as Script -from .script_get_response import ScriptGetResponse as ScriptGetResponse -from .script_list_params import ScriptListParams as ScriptListParams -from .cookie_list_response import CookieListResponse as CookieListResponse -from .cookie_get_response import CookieGetResponse as CookieGetResponse -from .cookie_list_params import CookieListParams as CookieListParams +from .page_shield_update_params import PageShieldUpdateParams as PageShieldUpdateParams +from .page_shield_update_response import PageShieldUpdateResponse as PageShieldUpdateResponse diff --git a/src/cloudflare/types/page_shield/connection.py b/src/cloudflare/types/page_shield/connection.py index 12a7581bd..252091a2c 100644 --- a/src/cloudflare/types/page_shield/connection.py +++ b/src/cloudflare/types/page_shield/connection.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Connection"] diff --git a/src/cloudflare/types/page_shield/connection_list_params.py b/src/cloudflare/types/page_shield/connection_list_params.py index 0d377b357..3986c62ea 100644 --- a/src/cloudflare/types/page_shield/connection_list_params.py +++ b/src/cloudflare/types/page_shield/connection_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["ConnectionListParams"] diff --git a/src/cloudflare/types/page_shield/cookie_get_response.py b/src/cloudflare/types/page_shield/cookie_get_response.py index 08cde5c09..45735f300 100644 --- a/src/cloudflare/types/page_shield/cookie_get_response.py +++ b/src/cloudflare/types/page_shield/cookie_get_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import List, Optional from datetime import datetime - from typing_extensions import Literal -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["CookieGetResponse"] diff --git a/src/cloudflare/types/page_shield/cookie_list_params.py b/src/cloudflare/types/page_shield/cookie_list_params.py index 675887cc3..3daf5bdee 100644 --- a/src/cloudflare/types/page_shield/cookie_list_params.py +++ b/src/cloudflare/types/page_shield/cookie_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["CookieListParams"] diff --git a/src/cloudflare/types/page_shield/cookie_list_response.py b/src/cloudflare/types/page_shield/cookie_list_response.py index 40f8915e5..144fd84b5 100644 --- a/src/cloudflare/types/page_shield/cookie_list_response.py +++ b/src/cloudflare/types/page_shield/cookie_list_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import List, Optional from datetime import datetime - from typing_extensions import Literal -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["CookieListResponse"] diff --git a/src/cloudflare/types/page_shield/page_shield_update_params.py b/src/cloudflare/types/page_shield/page_shield_update_params.py index 827bb0df4..123ba5bb1 100644 --- a/src/cloudflare/types/page_shield/page_shield_update_params.py +++ b/src/cloudflare/types/page_shield/page_shield_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["PageShieldUpdateParams"] diff --git a/src/cloudflare/types/page_shield/page_shield_update_response.py b/src/cloudflare/types/page_shield/page_shield_update_response.py index d636424e0..ad2852df7 100644 --- a/src/cloudflare/types/page_shield/page_shield_update_response.py +++ b/src/cloudflare/types/page_shield/page_shield_update_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["PageShieldUpdateResponse"] diff --git a/src/cloudflare/types/page_shield/policy_create_params.py b/src/cloudflare/types/page_shield/policy_create_params.py index 021b83e7b..6578a3823 100644 --- a/src/cloudflare/types/page_shield/policy_create_params.py +++ b/src/cloudflare/types/page_shield/policy_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["PolicyCreateParams"] diff --git a/src/cloudflare/types/page_shield/policy_create_response.py b/src/cloudflare/types/page_shield/policy_create_response.py index 3cd6c2121..483d28357 100644 --- a/src/cloudflare/types/page_shield/policy_create_response.py +++ b/src/cloudflare/types/page_shield/policy_create_response.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing_extensions import Literal + from ..._models import BaseModel -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["PolicyCreateResponse"] diff --git a/src/cloudflare/types/page_shield/policy_get_response.py b/src/cloudflare/types/page_shield/policy_get_response.py index c8f086938..3b28c2951 100644 --- a/src/cloudflare/types/page_shield/policy_get_response.py +++ b/src/cloudflare/types/page_shield/policy_get_response.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing_extensions import Literal + from ..._models import BaseModel -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["PolicyGetResponse"] diff --git a/src/cloudflare/types/page_shield/policy_list_response.py b/src/cloudflare/types/page_shield/policy_list_response.py index 6249c5881..5ce2180de 100644 --- a/src/cloudflare/types/page_shield/policy_list_response.py +++ b/src/cloudflare/types/page_shield/policy_list_response.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing_extensions import Literal + from ..._models import BaseModel -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["PolicyListResponse"] diff --git a/src/cloudflare/types/page_shield/policy_update_params.py b/src/cloudflare/types/page_shield/policy_update_params.py index f1cbaabb6..547f43a7a 100644 --- a/src/cloudflare/types/page_shield/policy_update_params.py +++ b/src/cloudflare/types/page_shield/policy_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["PolicyUpdateParams"] diff --git a/src/cloudflare/types/page_shield/policy_update_response.py b/src/cloudflare/types/page_shield/policy_update_response.py index e66132681..dcc40a8c6 100644 --- a/src/cloudflare/types/page_shield/policy_update_response.py +++ b/src/cloudflare/types/page_shield/policy_update_response.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing_extensions import Literal + from ..._models import BaseModel -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["PolicyUpdateResponse"] diff --git a/src/cloudflare/types/page_shield/script.py b/src/cloudflare/types/page_shield/script.py index cba755d37..2db2c5499 100644 --- a/src/cloudflare/types/page_shield/script.py +++ b/src/cloudflare/types/page_shield/script.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Script"] diff --git a/src/cloudflare/types/page_shield/script_get_response.py b/src/cloudflare/types/page_shield/script_get_response.py index 2874c7577..56d60bc21 100644 --- a/src/cloudflare/types/page_shield/script_get_response.py +++ b/src/cloudflare/types/page_shield/script_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ScriptGetResponse", "Version"] diff --git a/src/cloudflare/types/page_shield/script_list_params.py b/src/cloudflare/types/page_shield/script_list_params.py index cb5f49d1b..99e6ba8ac 100644 --- a/src/cloudflare/types/page_shield/script_list_params.py +++ b/src/cloudflare/types/page_shield/script_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["ScriptListParams"] diff --git a/src/cloudflare/types/page_shield/setting.py b/src/cloudflare/types/page_shield/setting.py index c73a0caba..46e4fd6da 100644 --- a/src/cloudflare/types/page_shield/setting.py +++ b/src/cloudflare/types/page_shield/setting.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["Setting"] diff --git a/src/cloudflare/types/pagerules/__init__.py b/src/cloudflare/types/pagerules/__init__.py index 814f1515e..02d46c7b4 100644 --- a/src/cloudflare/types/pagerules/__init__.py +++ b/src/cloudflare/types/pagerules/__init__.py @@ -2,19 +2,19 @@ from __future__ import annotations -from .page_rule import PageRule as PageRule from .route import Route as Route -from .route_param import RouteParam as RouteParam from .target import Target as Target +from .page_rule import PageRule as PageRule +from .route_param import RouteParam as RouteParam from .target_param import TargetParam as TargetParam -from .pagerule_create_response import PageruleCreateResponse as PageruleCreateResponse -from .pagerule_update_response import PageruleUpdateResponse as PageruleUpdateResponse -from .pagerule_list_response import PageruleListResponse as PageruleListResponse -from .pagerule_delete_response import PageruleDeleteResponse as PageruleDeleteResponse -from .pagerule_edit_response import PageruleEditResponse as PageruleEditResponse -from .pagerule_get_response import PageruleGetResponse as PageruleGetResponse -from .pagerule_create_params import PageruleCreateParams as PageruleCreateParams -from .pagerule_update_params import PageruleUpdateParams as PageruleUpdateParams -from .pagerule_list_params import PageruleListParams as PageruleListParams from .pagerule_edit_params import PageruleEditParams as PageruleEditParams +from .pagerule_list_params import PageruleListParams as PageruleListParams +from .pagerule_get_response import PageruleGetResponse as PageruleGetResponse from .setting_list_response import SettingListResponse as SettingListResponse +from .pagerule_create_params import PageruleCreateParams as PageruleCreateParams +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 .pagerule_create_response import PageruleCreateResponse as PageruleCreateResponse +from .pagerule_delete_response import PageruleDeleteResponse as PageruleDeleteResponse +from .pagerule_update_response import PageruleUpdateResponse as PageruleUpdateResponse diff --git a/src/cloudflare/types/pagerules/page_rule.py b/src/cloudflare/types/pagerules/page_rule.py index 739ae357c..d7a0d1b81 100644 --- a/src/cloudflare/types/pagerules/page_rule.py +++ b/src/cloudflare/types/pagerules/page_rule.py @@ -1,20 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List +from datetime import datetime +from typing_extensions import Literal from .route import Route - -from datetime import datetime - -from typing_extensions import Literal - from .target import Target - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["PageRule"] diff --git a/src/cloudflare/types/pagerules/pagerule_create_params.py b/src/cloudflare/types/pagerules/pagerule_create_params.py index 1b0169abf..dfbfb8837 100644 --- a/src/cloudflare/types/pagerules/pagerule_create_params.py +++ b/src/cloudflare/types/pagerules/pagerule_create_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Iterable +from typing_extensions import Literal, Required, TypedDict from .route_param import RouteParam - from .target_param import TargetParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["PageruleCreateParams"] diff --git a/src/cloudflare/types/pagerules/pagerule_create_response.py b/src/cloudflare/types/pagerules/pagerule_create_response.py index 0ee69dbd3..279a33702 100644 --- a/src/cloudflare/types/pagerules/pagerule_create_response.py +++ b/src/cloudflare/types/pagerules/pagerule_create_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["PageruleCreateResponse"] PageruleCreateResponse: TypeAlias = Union[str, object] diff --git a/src/cloudflare/types/pagerules/pagerule_delete_response.py b/src/cloudflare/types/pagerules/pagerule_delete_response.py index 1822960e4..eb624fc48 100644 --- a/src/cloudflare/types/pagerules/pagerule_delete_response.py +++ b/src/cloudflare/types/pagerules/pagerule_delete_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["PageruleDeleteResponse"] diff --git a/src/cloudflare/types/pagerules/pagerule_edit_params.py b/src/cloudflare/types/pagerules/pagerule_edit_params.py index 0a2585dd3..5d2ed4636 100644 --- a/src/cloudflare/types/pagerules/pagerule_edit_params.py +++ b/src/cloudflare/types/pagerules/pagerule_edit_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Iterable +from typing_extensions import Literal, Required, TypedDict from .route_param import RouteParam - from .target_param import TargetParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["PageruleEditParams"] diff --git a/src/cloudflare/types/pagerules/pagerule_edit_response.py b/src/cloudflare/types/pagerules/pagerule_edit_response.py index bdd90d0b8..ff50de1e7 100644 --- a/src/cloudflare/types/pagerules/pagerule_edit_response.py +++ b/src/cloudflare/types/pagerules/pagerule_edit_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["PageruleEditResponse"] PageruleEditResponse: TypeAlias = Union[str, object] diff --git a/src/cloudflare/types/pagerules/pagerule_get_response.py b/src/cloudflare/types/pagerules/pagerule_get_response.py index e0c2e3af7..961e4bded 100644 --- a/src/cloudflare/types/pagerules/pagerule_get_response.py +++ b/src/cloudflare/types/pagerules/pagerule_get_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["PageruleGetResponse"] PageruleGetResponse: TypeAlias = Union[str, object] diff --git a/src/cloudflare/types/pagerules/pagerule_list_params.py b/src/cloudflare/types/pagerules/pagerule_list_params.py index 6ee87c1cc..f243c08fa 100644 --- a/src/cloudflare/types/pagerules/pagerule_list_params.py +++ b/src/cloudflare/types/pagerules/pagerule_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["PageruleListParams"] diff --git a/src/cloudflare/types/pagerules/pagerule_list_response.py b/src/cloudflare/types/pagerules/pagerule_list_response.py index 3569ca609..b2992e28b 100644 --- a/src/cloudflare/types/pagerules/pagerule_list_response.py +++ b/src/cloudflare/types/pagerules/pagerule_list_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .page_rule import PageRule - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .page_rule import PageRule __all__ = ["PageruleListResponse"] diff --git a/src/cloudflare/types/pagerules/pagerule_update_params.py b/src/cloudflare/types/pagerules/pagerule_update_params.py index 63776cb87..4637d036a 100644 --- a/src/cloudflare/types/pagerules/pagerule_update_params.py +++ b/src/cloudflare/types/pagerules/pagerule_update_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Iterable +from typing_extensions import Literal, Required, TypedDict from .route_param import RouteParam - from .target_param import TargetParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["PageruleUpdateParams"] diff --git a/src/cloudflare/types/pagerules/pagerule_update_response.py b/src/cloudflare/types/pagerules/pagerule_update_response.py index b1435abc5..fdb374865 100644 --- a/src/cloudflare/types/pagerules/pagerule_update_response.py +++ b/src/cloudflare/types/pagerules/pagerule_update_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["PageruleUpdateResponse"] PageruleUpdateResponse: TypeAlias = Union[str, object] diff --git a/src/cloudflare/types/pagerules/route.py b/src/cloudflare/types/pagerules/route.py index c22b62c98..df4910ea5 100644 --- a/src/cloudflare/types/pagerules/route.py +++ b/src/cloudflare/types/pagerules/route.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - -from typing_extensions import Literal - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["Route", "Value"] diff --git a/src/cloudflare/types/pagerules/setting_list_response.py b/src/cloudflare/types/pagerules/setting_list_response.py index 75b851d45..69e8c454a 100644 --- a/src/cloudflare/types/pagerules/setting_list_response.py +++ b/src/cloudflare/types/pagerules/setting_list_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SettingListResponse"] SettingListResponse: TypeAlias = List[object] diff --git a/src/cloudflare/types/pagerules/target.py b/src/cloudflare/types/pagerules/target.py index 3c22706b4..497c176cb 100644 --- a/src/cloudflare/types/pagerules/target.py +++ b/src/cloudflare/types/pagerules/target.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["Target", "Constraint"] diff --git a/src/cloudflare/types/pagerules/target_param.py b/src/cloudflare/types/pagerules/target_param.py index b581c5128..9d6e17969 100644 --- a/src/cloudflare/types/pagerules/target_param.py +++ b/src/cloudflare/types/pagerules/target_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["TargetParam", "Constraint"] diff --git a/src/cloudflare/types/pages/__init__.py b/src/cloudflare/types/pages/__init__.py index c72815ed6..23cd855f5 100644 --- a/src/cloudflare/types/pages/__init__.py +++ b/src/cloudflare/types/pages/__init__.py @@ -2,8 +2,8 @@ from __future__ import annotations -from .deployment import Deployment as Deployment -from .project import Project as Project from .stage import Stage as Stage -from .project_create_params import ProjectCreateParams as ProjectCreateParams +from .project import Project as Project +from .deployment import Deployment as Deployment from .project_edit_params import ProjectEditParams as ProjectEditParams +from .project_create_params import ProjectCreateParams as ProjectCreateParams diff --git a/src/cloudflare/types/pages/deployment.py b/src/cloudflare/types/pages/deployment.py index 48ac05f3d..cb44e963d 100644 --- a/src/cloudflare/types/pages/deployment.py +++ b/src/cloudflare/types/pages/deployment.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List, Dict - -from typing_extensions import Literal - +from typing import Dict, List, Optional from datetime import datetime +from typing_extensions import Literal from .stage import Stage - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = [ "Deployment", diff --git a/src/cloudflare/types/pages/project.py b/src/cloudflare/types/pages/project.py index dd2d8cd7b..a06fbc10a 100644 --- a/src/cloudflare/types/pages/project.py +++ b/src/cloudflare/types/pages/project.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, Dict, List - -from typing_extensions import Literal - -from .deployment import Deployment - +from typing import Dict, List, Optional from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel +from .deployment import Deployment __all__ = [ "Project", diff --git a/src/cloudflare/types/pages/project_create_params.py b/src/cloudflare/types/pages/project_create_params.py index 231193967..906b2fcc6 100644 --- a/src/cloudflare/types/pages/project_create_params.py +++ b/src/cloudflare/types/pages/project_create_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import Optional, Dict, List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing import Dict, List, Optional +from typing_extensions import Literal, Required, TypedDict __all__ = [ "ProjectCreateParams", diff --git a/src/cloudflare/types/pages/project_edit_params.py b/src/cloudflare/types/pages/project_edit_params.py index 32a7b546a..c0c482147 100644 --- a/src/cloudflare/types/pages/project_edit_params.py +++ b/src/cloudflare/types/pages/project_edit_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import Optional, Dict, List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing import Dict, List, Optional +from typing_extensions import Literal, Required, TypedDict __all__ = [ "ProjectEditParams", diff --git a/src/cloudflare/types/pages/projects/__init__.py b/src/cloudflare/types/pages/projects/__init__.py index bb64c0557..81b8dbf35 100644 --- a/src/cloudflare/types/pages/projects/__init__.py +++ b/src/cloudflare/types/pages/projects/__init__.py @@ -2,13 +2,13 @@ from __future__ import annotations -from .deployment_create_params import DeploymentCreateParams as DeploymentCreateParams -from .deployment_list_params import DeploymentListParams as DeploymentListParams -from .deployment_retry_params import DeploymentRetryParams as DeploymentRetryParams -from .deployment_rollback_params import DeploymentRollbackParams as DeploymentRollbackParams -from .domain_create_response import DomainCreateResponse as DomainCreateResponse -from .domain_list_response import DomainListResponse as DomainListResponse -from .domain_edit_response import DomainEditResponse as DomainEditResponse +from .domain_edit_params import DomainEditParams as DomainEditParams from .domain_get_response import DomainGetResponse as DomainGetResponse from .domain_create_params import DomainCreateParams as DomainCreateParams -from .domain_edit_params import DomainEditParams as DomainEditParams +from .domain_edit_response import DomainEditResponse as DomainEditResponse +from .domain_list_response import DomainListResponse as DomainListResponse +from .deployment_list_params import DeploymentListParams as DeploymentListParams +from .domain_create_response import DomainCreateResponse as DomainCreateResponse +from .deployment_retry_params import DeploymentRetryParams as DeploymentRetryParams +from .deployment_create_params import DeploymentCreateParams as DeploymentCreateParams +from .deployment_rollback_params import DeploymentRollbackParams as DeploymentRollbackParams diff --git a/src/cloudflare/types/pages/projects/deployment_create_params.py b/src/cloudflare/types/pages/projects/deployment_create_params.py index cab5d9046..6a628190f 100644 --- a/src/cloudflare/types/pages/projects/deployment_create_params.py +++ b/src/cloudflare/types/pages/projects/deployment_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["DeploymentCreateParams"] diff --git a/src/cloudflare/types/pages/projects/deployment_list_params.py b/src/cloudflare/types/pages/projects/deployment_list_params.py index f108bbcd8..5eec7e246 100644 --- a/src/cloudflare/types/pages/projects/deployment_list_params.py +++ b/src/cloudflare/types/pages/projects/deployment_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["DeploymentListParams"] diff --git a/src/cloudflare/types/pages/projects/deployment_retry_params.py b/src/cloudflare/types/pages/projects/deployment_retry_params.py index e84e3e2bc..298b72a33 100644 --- a/src/cloudflare/types/pages/projects/deployment_retry_params.py +++ b/src/cloudflare/types/pages/projects/deployment_retry_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["DeploymentRetryParams"] diff --git a/src/cloudflare/types/pages/projects/deployment_rollback_params.py b/src/cloudflare/types/pages/projects/deployment_rollback_params.py index a1445b3f0..078d237c4 100644 --- a/src/cloudflare/types/pages/projects/deployment_rollback_params.py +++ b/src/cloudflare/types/pages/projects/deployment_rollback_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["DeploymentRollbackParams"] diff --git a/src/cloudflare/types/pages/projects/deployments/history/log_get_response.py b/src/cloudflare/types/pages/projects/deployments/history/log_get_response.py index cd137c68f..195fe442b 100644 --- a/src/cloudflare/types/pages/projects/deployments/history/log_get_response.py +++ b/src/cloudflare/types/pages/projects/deployments/history/log_get_response.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ......_models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["LogGetResponse", "Data"] diff --git a/src/cloudflare/types/pages/projects/domain_create_params.py b/src/cloudflare/types/pages/projects/domain_create_params.py index b885fbb4c..6c0e36fe1 100644 --- a/src/cloudflare/types/pages/projects/domain_create_params.py +++ b/src/cloudflare/types/pages/projects/domain_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["DomainCreateParams"] diff --git a/src/cloudflare/types/pages/projects/domain_create_response.py b/src/cloudflare/types/pages/projects/domain_create_response.py index fe6c5f570..a3e5585b2 100644 --- a/src/cloudflare/types/pages/projects/domain_create_response.py +++ b/src/cloudflare/types/pages/projects/domain_create_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["DomainCreateResponse", "ValidationData", "VerificationData"] diff --git a/src/cloudflare/types/pages/projects/domain_edit_params.py b/src/cloudflare/types/pages/projects/domain_edit_params.py index b17c31dbd..ff0dda3be 100644 --- a/src/cloudflare/types/pages/projects/domain_edit_params.py +++ b/src/cloudflare/types/pages/projects/domain_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["DomainEditParams"] diff --git a/src/cloudflare/types/pages/projects/domain_edit_response.py b/src/cloudflare/types/pages/projects/domain_edit_response.py index bcb5fdd7e..96f47cc81 100644 --- a/src/cloudflare/types/pages/projects/domain_edit_response.py +++ b/src/cloudflare/types/pages/projects/domain_edit_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["DomainEditResponse", "ValidationData", "VerificationData"] diff --git a/src/cloudflare/types/pages/projects/domain_get_response.py b/src/cloudflare/types/pages/projects/domain_get_response.py index 8c9ffe89b..0e0fabe07 100644 --- a/src/cloudflare/types/pages/projects/domain_get_response.py +++ b/src/cloudflare/types/pages/projects/domain_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["DomainGetResponse", "ValidationData", "VerificationData"] diff --git a/src/cloudflare/types/pages/projects/domain_list_response.py b/src/cloudflare/types/pages/projects/domain_list_response.py index 828d810e4..625dcd205 100644 --- a/src/cloudflare/types/pages/projects/domain_list_response.py +++ b/src/cloudflare/types/pages/projects/domain_list_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["DomainListResponse", "ValidationData", "VerificationData"] diff --git a/src/cloudflare/types/pages/stage.py b/src/cloudflare/types/pages/stage.py index a9997b903..cd33c72eb 100644 --- a/src/cloudflare/types/pages/stage.py +++ b/src/cloudflare/types/pages/stage.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Stage"] diff --git a/src/cloudflare/types/pcaps/__init__.py b/src/cloudflare/types/pcaps/__init__.py index 466494ee1..771b78a08 100644 --- a/src/cloudflare/types/pcaps/__init__.py +++ b/src/cloudflare/types/pcaps/__init__.py @@ -3,13 +3,13 @@ from __future__ import annotations from .pcap import PCAP as PCAP +from .ownership import Ownership as Ownership from .pcap_filter import PCAPFilter as PCAPFilter from .pcap_filter_param import PCAPFilterParam as PCAPFilterParam -from .pcap_create_response import PCAPCreateResponse as PCAPCreateResponse -from .pcap_list_response import PCAPListResponse as PCAPListResponse from .pcap_get_response import PCAPGetResponse as PCAPGetResponse from .pcap_create_params import PCAPCreateParams as PCAPCreateParams -from .ownership import Ownership as Ownership +from .pcap_list_response import PCAPListResponse as PCAPListResponse +from .pcap_create_response import PCAPCreateResponse as PCAPCreateResponse from .ownership_get_response import OwnershipGetResponse as OwnershipGetResponse from .ownership_create_params import OwnershipCreateParams as OwnershipCreateParams from .ownership_validate_params import OwnershipValidateParams as OwnershipValidateParams diff --git a/src/cloudflare/types/pcaps/ownership.py b/src/cloudflare/types/pcaps/ownership.py index c2a355673..2373d88a8 100644 --- a/src/cloudflare/types/pcaps/ownership.py +++ b/src/cloudflare/types/pcaps/ownership.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["Ownership"] diff --git a/src/cloudflare/types/pcaps/ownership_create_params.py b/src/cloudflare/types/pcaps/ownership_create_params.py index 60a955743..4d1410927 100644 --- a/src/cloudflare/types/pcaps/ownership_create_params.py +++ b/src/cloudflare/types/pcaps/ownership_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["OwnershipCreateParams"] diff --git a/src/cloudflare/types/pcaps/ownership_get_response.py b/src/cloudflare/types/pcaps/ownership_get_response.py index 4e25c270d..d4b576046 100644 --- a/src/cloudflare/types/pcaps/ownership_get_response.py +++ b/src/cloudflare/types/pcaps/ownership_get_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .ownership import Ownership - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .ownership import Ownership __all__ = ["OwnershipGetResponse"] diff --git a/src/cloudflare/types/pcaps/ownership_validate_params.py b/src/cloudflare/types/pcaps/ownership_validate_params.py index ecf3e8782..cc7a07647 100644 --- a/src/cloudflare/types/pcaps/ownership_validate_params.py +++ b/src/cloudflare/types/pcaps/ownership_validate_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["OwnershipValidateParams"] diff --git a/src/cloudflare/types/pcaps/pcap.py b/src/cloudflare/types/pcaps/pcap.py index 3bb0d5532..849b46601 100644 --- a/src/cloudflare/types/pcaps/pcap.py +++ b/src/cloudflare/types/pcaps/pcap.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional +from typing_extensions import Literal +from ..._models import BaseModel from .pcap_filter import PCAPFilter -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["PCAP"] diff --git a/src/cloudflare/types/pcaps/pcap_create_params.py b/src/cloudflare/types/pcaps/pcap_create_params.py index b2b2c1917..dc7c45329 100644 --- a/src/cloudflare/types/pcaps/pcap_create_params.py +++ b/src/cloudflare/types/pcaps/pcap_create_params.py @@ -2,15 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias +from typing import Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict from .pcap_filter_param import PCAPFilterParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["PCAPCreateParams", "MagicVisibilityPCAPsRequestSimple", "MagicVisibilityPCAPsRequestFull"] diff --git a/src/cloudflare/types/pcaps/pcap_create_response.py b/src/cloudflare/types/pcaps/pcap_create_response.py index 68634161c..9742a4b7b 100644 --- a/src/cloudflare/types/pcaps/pcap_create_response.py +++ b/src/cloudflare/types/pcaps/pcap_create_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .pcap import PCAP - -from ..._models import BaseModel - -from typing import Optional - -from .pcap_filter import PCAPFilter - +from typing import Union, Optional from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .pcap import PCAP +from ..._models import BaseModel +from .pcap_filter import PCAPFilter __all__ = ["PCAPCreateResponse", "MagicVisibilityPCAPsResponseFull"] diff --git a/src/cloudflare/types/pcaps/pcap_filter.py b/src/cloudflare/types/pcaps/pcap_filter.py index 0c9636ea2..edc1d8d34 100644 --- a/src/cloudflare/types/pcaps/pcap_filter.py +++ b/src/cloudflare/types/pcaps/pcap_filter.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["PCAPFilter"] diff --git a/src/cloudflare/types/pcaps/pcap_get_response.py b/src/cloudflare/types/pcaps/pcap_get_response.py index f9d73d15a..ef091862e 100644 --- a/src/cloudflare/types/pcaps/pcap_get_response.py +++ b/src/cloudflare/types/pcaps/pcap_get_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .pcap import PCAP - -from ..._models import BaseModel - -from typing import Optional - -from .pcap_filter import PCAPFilter - +from typing import Union, Optional from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .pcap import PCAP +from ..._models import BaseModel +from .pcap_filter import PCAPFilter __all__ = ["PCAPGetResponse", "MagicVisibilityPCAPsResponseFull"] diff --git a/src/cloudflare/types/pcaps/pcap_list_response.py b/src/cloudflare/types/pcaps/pcap_list_response.py index 52d8b3370..efd785bf6 100644 --- a/src/cloudflare/types/pcaps/pcap_list_response.py +++ b/src/cloudflare/types/pcaps/pcap_list_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .pcap import PCAP - -from ..._models import BaseModel - -from typing import Optional - -from .pcap_filter import PCAPFilter - +from typing import Union, Optional from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .pcap import PCAP +from ..._models import BaseModel +from .pcap_filter import PCAPFilter __all__ = ["PCAPListResponse", "MagicVisibilityPCAPsResponseFull"] diff --git a/src/cloudflare/types/plans/available_rate_plan.py b/src/cloudflare/types/plans/available_rate_plan.py index 7545b3f00..b898fa23e 100644 --- a/src/cloudflare/types/plans/available_rate_plan.py +++ b/src/cloudflare/types/plans/available_rate_plan.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["AvailableRatePlan"] diff --git a/src/cloudflare/types/queues/__init__.py b/src/cloudflare/types/queues/__init__.py index 9d490f1a3..7dd8b118b 100644 --- a/src/cloudflare/types/queues/__init__.py +++ b/src/cloudflare/types/queues/__init__.py @@ -3,19 +3,19 @@ from __future__ import annotations from .queue import Queue as Queue +from .consumer import Consumer as Consumer from .queue_created import QueueCreated as QueueCreated from .queue_updated import QueueUpdated as QueueUpdated -from .queue_delete_response import QueueDeleteResponse as QueueDeleteResponse -from .queue_create_params import QueueCreateParams as QueueCreateParams -from .queue_update_params import QueueUpdateParams as QueueUpdateParams -from .consumer import Consumer as Consumer -from .consumer_create_response import ConsumerCreateResponse as ConsumerCreateResponse -from .consumer_update_response import ConsumerUpdateResponse as ConsumerUpdateResponse -from .consumer_delete_response import ConsumerDeleteResponse as ConsumerDeleteResponse -from .consumer_get_response import ConsumerGetResponse as ConsumerGetResponse -from .consumer_create_params import ConsumerCreateParams as ConsumerCreateParams -from .consumer_update_params import ConsumerUpdateParams as ConsumerUpdateParams -from .message_ack_response import MessageAckResponse as MessageAckResponse -from .message_pull_response import MessagePullResponse as MessagePullResponse from .message_ack_params import MessageAckParams as MessageAckParams from .message_pull_params import MessagePullParams as MessagePullParams +from .queue_create_params import QueueCreateParams as QueueCreateParams +from .queue_update_params import QueueUpdateParams as QueueUpdateParams +from .message_ack_response import MessageAckResponse as MessageAckResponse +from .consumer_get_response import ConsumerGetResponse as ConsumerGetResponse +from .message_pull_response import MessagePullResponse as MessagePullResponse +from .queue_delete_response import QueueDeleteResponse as QueueDeleteResponse +from .consumer_create_params import ConsumerCreateParams as ConsumerCreateParams +from .consumer_update_params import ConsumerUpdateParams as ConsumerUpdateParams +from .consumer_create_response import ConsumerCreateResponse as ConsumerCreateResponse +from .consumer_delete_response import ConsumerDeleteResponse as ConsumerDeleteResponse +from .consumer_update_response import ConsumerUpdateResponse as ConsumerUpdateResponse diff --git a/src/cloudflare/types/queues/consumer.py b/src/cloudflare/types/queues/consumer.py index 31ed52481..49500bb12 100644 --- a/src/cloudflare/types/queues/consumer.py +++ b/src/cloudflare/types/queues/consumer.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Consumer", "Settings"] diff --git a/src/cloudflare/types/queues/consumer_create_params.py b/src/cloudflare/types/queues/consumer_create_params.py index bcd7b4502..ee3b7882d 100644 --- a/src/cloudflare/types/queues/consumer_create_params.py +++ b/src/cloudflare/types/queues/consumer_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ConsumerCreateParams"] diff --git a/src/cloudflare/types/queues/consumer_create_response.py b/src/cloudflare/types/queues/consumer_create_response.py index 6df0429a6..d1224bacf 100644 --- a/src/cloudflare/types/queues/consumer_create_response.py +++ b/src/cloudflare/types/queues/consumer_create_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ConsumerCreateResponse", "Settings"] diff --git a/src/cloudflare/types/queues/consumer_delete_response.py b/src/cloudflare/types/queues/consumer_delete_response.py index 06a0ad0f0..afad16318 100644 --- a/src/cloudflare/types/queues/consumer_delete_response.py +++ b/src/cloudflare/types/queues/consumer_delete_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List - +from typing import List, Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ConsumerDeleteResponse"] ConsumerDeleteResponse: TypeAlias = Union[List[object], str, object, None] diff --git a/src/cloudflare/types/queues/consumer_get_response.py b/src/cloudflare/types/queues/consumer_get_response.py index fe195783f..5d513b81d 100644 --- a/src/cloudflare/types/queues/consumer_get_response.py +++ b/src/cloudflare/types/queues/consumer_get_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .consumer import Consumer - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .consumer import Consumer __all__ = ["ConsumerGetResponse"] diff --git a/src/cloudflare/types/queues/consumer_update_params.py b/src/cloudflare/types/queues/consumer_update_params.py index e44521832..a741a2473 100644 --- a/src/cloudflare/types/queues/consumer_update_params.py +++ b/src/cloudflare/types/queues/consumer_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ConsumerUpdateParams"] diff --git a/src/cloudflare/types/queues/consumer_update_response.py b/src/cloudflare/types/queues/consumer_update_response.py index 4596794cc..7a201a4c8 100644 --- a/src/cloudflare/types/queues/consumer_update_response.py +++ b/src/cloudflare/types/queues/consumer_update_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ConsumerUpdateResponse", "Settings"] diff --git a/src/cloudflare/types/queues/message_ack_params.py b/src/cloudflare/types/queues/message_ack_params.py index e285d80aa..a076ef3df 100644 --- a/src/cloudflare/types/queues/message_ack_params.py +++ b/src/cloudflare/types/queues/message_ack_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Iterable - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["MessageAckParams", "Ack", "Retry"] diff --git a/src/cloudflare/types/queues/message_ack_response.py b/src/cloudflare/types/queues/message_ack_response.py index b4670a703..8b95c5cb9 100644 --- a/src/cloudflare/types/queues/message_ack_response.py +++ b/src/cloudflare/types/queues/message_ack_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel +from typing import List, Optional -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["MessageAckResponse"] diff --git a/src/cloudflare/types/queues/message_pull_params.py b/src/cloudflare/types/queues/message_pull_params.py index 3e5779726..a04c0f08a 100644 --- a/src/cloudflare/types/queues/message_pull_params.py +++ b/src/cloudflare/types/queues/message_pull_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["MessagePullParams"] diff --git a/src/cloudflare/types/queues/message_pull_response.py b/src/cloudflare/types/queues/message_pull_response.py index af947016b..a1bfa17bb 100644 --- a/src/cloudflare/types/queues/message_pull_response.py +++ b/src/cloudflare/types/queues/message_pull_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional - +from typing import List, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["MessagePullResponse", "MessagePullResponseItem"] diff --git a/src/cloudflare/types/queues/queue.py b/src/cloudflare/types/queues/queue.py index 92fb01574..63269339f 100644 --- a/src/cloudflare/types/queues/queue.py +++ b/src/cloudflare/types/queues/queue.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List +from typing import List, Optional from .consumer import Consumer - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Queue", "Producer"] diff --git a/src/cloudflare/types/queues/queue_create_params.py b/src/cloudflare/types/queues/queue_create_params.py index ad88237ba..a3d1af9a2 100644 --- a/src/cloudflare/types/queues/queue_create_params.py +++ b/src/cloudflare/types/queues/queue_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["QueueCreateParams"] diff --git a/src/cloudflare/types/queues/queue_created.py b/src/cloudflare/types/queues/queue_created.py index fc0ffc501..01363715a 100644 --- a/src/cloudflare/types/queues/queue_created.py +++ b/src/cloudflare/types/queues/queue_created.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["QueueCreated"] diff --git a/src/cloudflare/types/queues/queue_delete_response.py b/src/cloudflare/types/queues/queue_delete_response.py index 46d5eaaa5..b158c51a0 100644 --- a/src/cloudflare/types/queues/queue_delete_response.py +++ b/src/cloudflare/types/queues/queue_delete_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List - +from typing import List, Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["QueueDeleteResponse"] QueueDeleteResponse: TypeAlias = Union[List[object], str, object, None] diff --git a/src/cloudflare/types/queues/queue_update_params.py b/src/cloudflare/types/queues/queue_update_params.py index 57362a649..e5f2bfc97 100644 --- a/src/cloudflare/types/queues/queue_update_params.py +++ b/src/cloudflare/types/queues/queue_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["QueueUpdateParams"] diff --git a/src/cloudflare/types/queues/queue_updated.py b/src/cloudflare/types/queues/queue_updated.py index ca8fba7b3..fae1969eb 100644 --- a/src/cloudflare/types/queues/queue_updated.py +++ b/src/cloudflare/types/queues/queue_updated.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["QueueUpdated"] diff --git a/src/cloudflare/types/r2/__init__.py b/src/cloudflare/types/r2/__init__.py index 5fde087a9..7f668e1e2 100644 --- a/src/cloudflare/types/r2/__init__.py +++ b/src/cloudflare/types/r2/__init__.py @@ -2,13 +2,13 @@ from __future__ import annotations -from .bucket import Bucket as Bucket -from .bucket_list_response import BucketListResponse as BucketListResponse -from .bucket_create_params import BucketCreateParams as BucketCreateParams -from .bucket_list_params import BucketListParams as BucketListParams -from .provider import Provider as Provider from .sippy import Sippy as Sippy -from .sippy_delete_response import SippyDeleteResponse as SippyDeleteResponse +from .bucket import Bucket as Bucket +from .provider import Provider as Provider +from .bucket_list_params import BucketListParams as BucketListParams from .sippy_update_params import SippyUpdateParams as SippyUpdateParams -from .temporary_credential_create_response import TemporaryCredentialCreateResponse as TemporaryCredentialCreateResponse +from .bucket_create_params import BucketCreateParams as BucketCreateParams +from .bucket_list_response import BucketListResponse as BucketListResponse +from .sippy_delete_response import SippyDeleteResponse as SippyDeleteResponse from .temporary_credential_create_params import TemporaryCredentialCreateParams as TemporaryCredentialCreateParams +from .temporary_credential_create_response import TemporaryCredentialCreateResponse as TemporaryCredentialCreateResponse diff --git a/src/cloudflare/types/r2/bucket.py b/src/cloudflare/types/r2/bucket.py index 5262f0b18..aa601305f 100644 --- a/src/cloudflare/types/r2/bucket.py +++ b/src/cloudflare/types/r2/bucket.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Bucket"] diff --git a/src/cloudflare/types/r2/bucket_create_params.py b/src/cloudflare/types/r2/bucket_create_params.py index 5ffc9d8b5..ad5ad8a75 100644 --- a/src/cloudflare/types/r2/bucket_create_params.py +++ b/src/cloudflare/types/r2/bucket_create_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, Annotated +from typing_extensions import Literal, Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["BucketCreateParams"] diff --git a/src/cloudflare/types/r2/bucket_list_params.py b/src/cloudflare/types/r2/bucket_list_params.py index 62476015f..260b44c70 100644 --- a/src/cloudflare/types/r2/bucket_list_params.py +++ b/src/cloudflare/types/r2/bucket_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["BucketListParams"] diff --git a/src/cloudflare/types/r2/bucket_list_response.py b/src/cloudflare/types/r2/bucket_list_response.py index 0de21fdce..a52999502 100755 --- a/src/cloudflare/types/r2/bucket_list_response.py +++ b/src/cloudflare/types/r2/bucket_list_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List +from typing import List, Optional from .bucket import Bucket - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["BucketListResponse"] diff --git a/src/cloudflare/types/r2/domains/__init__.py b/src/cloudflare/types/r2/domains/__init__.py index 487dfb570..c10bc6f59 100755 --- a/src/cloudflare/types/r2/domains/__init__.py +++ b/src/cloudflare/types/r2/domains/__init__.py @@ -2,12 +2,12 @@ from __future__ import annotations -from .custom_create_response import CustomCreateResponse as CustomCreateResponse -from .custom_update_response import CustomUpdateResponse as CustomUpdateResponse -from .custom_list_response import CustomListResponse as CustomListResponse -from .custom_delete_response import CustomDeleteResponse as CustomDeleteResponse from .custom_create_params import CustomCreateParams as CustomCreateParams +from .custom_list_response import CustomListResponse as CustomListResponse from .custom_update_params import CustomUpdateParams as CustomUpdateParams -from .managed_update_response import ManagedUpdateResponse as ManagedUpdateResponse from .managed_list_response import ManagedListResponse as ManagedListResponse from .managed_update_params import ManagedUpdateParams as ManagedUpdateParams +from .custom_create_response import CustomCreateResponse as CustomCreateResponse +from .custom_delete_response import CustomDeleteResponse as CustomDeleteResponse +from .custom_update_response import CustomUpdateResponse as CustomUpdateResponse +from .managed_update_response import ManagedUpdateResponse as ManagedUpdateResponse diff --git a/src/cloudflare/types/r2/domains/custom_create_params.py b/src/cloudflare/types/r2/domains/custom_create_params.py index e74927dc4..0dcd68b5c 100755 --- a/src/cloudflare/types/r2/domains/custom_create_params.py +++ b/src/cloudflare/types/r2/domains/custom_create_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated +from typing_extensions import Required, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["CustomCreateParams"] diff --git a/src/cloudflare/types/r2/domains/custom_create_response.py b/src/cloudflare/types/r2/domains/custom_create_response.py index 289fc181f..3412493fa 100755 --- a/src/cloudflare/types/r2/domains/custom_create_response.py +++ b/src/cloudflare/types/r2/domains/custom_create_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["CustomCreateResponse"] diff --git a/src/cloudflare/types/r2/domains/custom_delete_response.py b/src/cloudflare/types/r2/domains/custom_delete_response.py index b96e53f37..838b7c12d 100755 --- a/src/cloudflare/types/r2/domains/custom_delete_response.py +++ b/src/cloudflare/types/r2/domains/custom_delete_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["CustomDeleteResponse"] diff --git a/src/cloudflare/types/r2/domains/custom_list_response.py b/src/cloudflare/types/r2/domains/custom_list_response.py index e8384f50d..62a484145 100755 --- a/src/cloudflare/types/r2/domains/custom_list_response.py +++ b/src/cloudflare/types/r2/domains/custom_list_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from typing_extensions import Literal -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["CustomListResponse", "Domain", "DomainStatus"] diff --git a/src/cloudflare/types/r2/domains/custom_update_params.py b/src/cloudflare/types/r2/domains/custom_update_params.py index 2923cb21e..8ec285446 100755 --- a/src/cloudflare/types/r2/domains/custom_update_params.py +++ b/src/cloudflare/types/r2/domains/custom_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["CustomUpdateParams"] diff --git a/src/cloudflare/types/r2/domains/custom_update_response.py b/src/cloudflare/types/r2/domains/custom_update_response.py index 26435425e..42bc481a9 100755 --- a/src/cloudflare/types/r2/domains/custom_update_response.py +++ b/src/cloudflare/types/r2/domains/custom_update_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["CustomUpdateResponse"] diff --git a/src/cloudflare/types/r2/domains/managed_list_response.py b/src/cloudflare/types/r2/domains/managed_list_response.py index cbed8ecc1..2b8a9a441 100755 --- a/src/cloudflare/types/r2/domains/managed_list_response.py +++ b/src/cloudflare/types/r2/domains/managed_list_response.py @@ -1,11 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["ManagedListResponse"] diff --git a/src/cloudflare/types/r2/domains/managed_update_params.py b/src/cloudflare/types/r2/domains/managed_update_params.py index 18090addb..dcbe5f712 100755 --- a/src/cloudflare/types/r2/domains/managed_update_params.py +++ b/src/cloudflare/types/r2/domains/managed_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ManagedUpdateParams"] diff --git a/src/cloudflare/types/r2/domains/managed_update_response.py b/src/cloudflare/types/r2/domains/managed_update_response.py index a97e5137a..b36795f9a 100755 --- a/src/cloudflare/types/r2/domains/managed_update_response.py +++ b/src/cloudflare/types/r2/domains/managed_update_response.py @@ -1,11 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["ManagedUpdateResponse"] diff --git a/src/cloudflare/types/r2/provider.py b/src/cloudflare/types/r2/provider.py index 031129131..45eb13e5c 100644 --- a/src/cloudflare/types/r2/provider.py +++ b/src/cloudflare/types/r2/provider.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Provider"] Provider: TypeAlias = Literal["r2"] diff --git a/src/cloudflare/types/r2/sippy.py b/src/cloudflare/types/r2/sippy.py index cd8f157e8..89d993510 100644 --- a/src/cloudflare/types/r2/sippy.py +++ b/src/cloudflare/types/r2/sippy.py @@ -1,16 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional +from typing_extensions import Literal + +from pydantic import Field as FieldInfo from .provider import Provider - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Sippy", "Destination", "Source"] diff --git a/src/cloudflare/types/r2/sippy_delete_response.py b/src/cloudflare/types/r2/sippy_delete_response.py index 076ca891a..312026706 100644 --- a/src/cloudflare/types/r2/sippy_delete_response.py +++ b/src/cloudflare/types/r2/sippy_delete_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["SippyDeleteResponse"] diff --git a/src/cloudflare/types/r2/sippy_update_params.py b/src/cloudflare/types/r2/sippy_update_params.py index b94e9b9fb..9112282b6 100644 --- a/src/cloudflare/types/r2/sippy_update_params.py +++ b/src/cloudflare/types/r2/sippy_update_params.py @@ -2,17 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal, TypeAlias +from typing import Union +from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict +from ..._utils import PropertyInfo from .provider import Provider -from ..._utils import PropertyInfo - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = [ "SippyUpdateParams", "R2EnableSippyAws", diff --git a/src/cloudflare/types/r2/temporary_credential_create_params.py b/src/cloudflare/types/r2/temporary_credential_create_params.py index d1ddd2765..861a6a184 100644 --- a/src/cloudflare/types/r2/temporary_credential_create_params.py +++ b/src/cloudflare/types/r2/temporary_credential_create_params.py @@ -2,15 +2,9 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal - -from ..._utils import PropertyInfo - from typing import List +from typing_extensions import Literal, Required, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes from ..._utils import PropertyInfo __all__ = ["TemporaryCredentialCreateParams"] diff --git a/src/cloudflare/types/r2/temporary_credential_create_response.py b/src/cloudflare/types/r2/temporary_credential_create_response.py index 8f903691c..3a1838f74 100644 --- a/src/cloudflare/types/r2/temporary_credential_create_response.py +++ b/src/cloudflare/types/r2/temporary_credential_create_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["TemporaryCredentialCreateResponse"] diff --git a/src/cloudflare/types/radar/__init__.py b/src/cloudflare/types/radar/__init__.py index 567e9c00d..1d559930f 100644 --- a/src/cloudflare/types/radar/__init__.py +++ b/src/cloudflare/types/radar/__init__.py @@ -2,42 +2,40 @@ from __future__ import annotations -from .annotation_list_response import AnnotationListResponse as AnnotationListResponse -from .annotation_list_params import AnnotationListParams as AnnotationListParams -from .bgp_timeseries_response import BGPTimeseriesResponse as BGPTimeseriesResponse +from .entity_get_params import EntityGetParams as EntityGetParams +from .radar_email_series import RadarEmailSeries as RadarEmailSeries +from .ranking_top_params import RankingTopParams as RankingTopParams +from .dataset_list_params import DatasetListParams as DatasetListParams +from .entity_get_response import EntityGetResponse as EntityGetResponse +from .radar_email_summary import RadarEmailSummary as RadarEmailSummary +from .dataset_get_response import DatasetGetResponse as DatasetGetResponse +from .ranking_top_response import RankingTopResponse as RankingTopResponse +from .search_global_params import SearchGlobalParams as SearchGlobalParams from .bgp_timeseries_params import BGPTimeseriesParams as BGPTimeseriesParams from .dataset_list_response import DatasetListResponse as DatasetListResponse -from .dataset_download_response import DatasetDownloadResponse as DatasetDownloadResponse -from .dataset_get_response import DatasetGetResponse as DatasetGetResponse -from .dataset_list_params import DatasetListParams as DatasetListParams -from .dataset_download_params import DatasetDownloadParams as DatasetDownloadParams -from .netflow_summary_response import NetflowSummaryResponse as NetflowSummaryResponse -from .netflow_timeseries_response import NetflowTimeseriesResponse as NetflowTimeseriesResponse -from .netflow_summary_params import NetflowSummaryParams as NetflowSummaryParams -from .netflow_timeseries_params import NetflowTimeseriesParams as NetflowTimeseriesParams -from .search_global_response import SearchGlobalResponse as SearchGlobalResponse -from .search_global_params import SearchGlobalParams as SearchGlobalParams -from .as112_timeseries_response import AS112TimeseriesResponse as AS112TimeseriesResponse -from .as112_timeseries_params import AS112TimeseriesParams as AS112TimeseriesParams -from .radar_email_series import RadarEmailSeries as RadarEmailSeries -from .radar_email_summary import RadarEmailSummary as RadarEmailSummary -from .entity_get_response import EntityGetResponse as EntityGetResponse -from .entity_get_params import EntityGetParams as EntityGetParams -from .http_timeseries_response import HTTPTimeseriesResponse as HTTPTimeseriesResponse +from .annotation_list_params import AnnotationListParams as AnnotationListParams from .http_timeseries_params import HTTPTimeseriesParams as HTTPTimeseriesParams -from .ranking_timeseries_groups_response import RankingTimeseriesGroupsResponse as RankingTimeseriesGroupsResponse -from .ranking_top_response import RankingTopResponse as RankingTopResponse -from .ranking_timeseries_groups_params import RankingTimeseriesGroupsParams as RankingTimeseriesGroupsParams -from .ranking_top_params import RankingTopParams as RankingTopParams -from .traffic_anomaly_get_response import TrafficAnomalyGetResponse as TrafficAnomalyGetResponse +from .netflow_summary_params import NetflowSummaryParams as NetflowSummaryParams +from .search_global_response import SearchGlobalResponse as SearchGlobalResponse +from .as112_timeseries_params import AS112TimeseriesParams as AS112TimeseriesParams +from .bgp_timeseries_response import BGPTimeseriesResponse as BGPTimeseriesResponse +from .dataset_download_params import DatasetDownloadParams as DatasetDownloadParams +from .annotation_list_response import AnnotationListResponse as AnnotationListResponse +from .http_timeseries_response import HTTPTimeseriesResponse as HTTPTimeseriesResponse +from .netflow_summary_response import NetflowSummaryResponse as NetflowSummaryResponse +from .as112_timeseries_response import AS112TimeseriesResponse as AS112TimeseriesResponse +from .dataset_download_response import DatasetDownloadResponse as DatasetDownloadResponse +from .netflow_timeseries_params import NetflowTimeseriesParams as NetflowTimeseriesParams from .traffic_anomaly_get_params import TrafficAnomalyGetParams as TrafficAnomalyGetParams -from .tcp_resets_timeout_summary_response import TCPResetsTimeoutSummaryResponse as TCPResetsTimeoutSummaryResponse -from .tcp_resets_timeout_timeseries_groups_response import ( - TCPResetsTimeoutTimeseriesGroupsResponse as TCPResetsTimeoutTimeseriesGroupsResponse, -) +from .netflow_timeseries_response import NetflowTimeseriesResponse as NetflowTimeseriesResponse +from .traffic_anomaly_get_response import TrafficAnomalyGetResponse as TrafficAnomalyGetResponse +from .ranking_timeseries_groups_params import RankingTimeseriesGroupsParams as RankingTimeseriesGroupsParams from .tcp_resets_timeout_summary_params import TCPResetsTimeoutSummaryParams as TCPResetsTimeoutSummaryParams +from .ranking_timeseries_groups_response import RankingTimeseriesGroupsResponse as RankingTimeseriesGroupsResponse +from .tcp_resets_timeout_summary_response import TCPResetsTimeoutSummaryResponse as TCPResetsTimeoutSummaryResponse from .tcp_resets_timeout_timeseries_groups_params import ( TCPResetsTimeoutTimeseriesGroupsParams as TCPResetsTimeoutTimeseriesGroupsParams, ) -from .robots_txt_domains_response import RobotsTXTDomainsResponse as RobotsTXTDomainsResponse -from .robots_txt_domains_params import RobotsTXTDomainsParams as RobotsTXTDomainsParams +from .tcp_resets_timeout_timeseries_groups_response import ( + TCPResetsTimeoutTimeseriesGroupsResponse as TCPResetsTimeoutTimeseriesGroupsResponse, +) diff --git a/src/cloudflare/types/radar/ai/gateway/__init__.py b/src/cloudflare/types/radar/ai/gateway/__init__.py index 6fb2e3e48..7f0d2d205 100755 --- a/src/cloudflare/types/radar/ai/gateway/__init__.py +++ b/src/cloudflare/types/radar/ai/gateway/__init__.py @@ -2,15 +2,15 @@ from __future__ import annotations -from .summary_model_response import SummaryModelResponse as SummaryModelResponse -from .summary_provider_response import SummaryProviderResponse as SummaryProviderResponse -from .summary_task_response import SummaryTaskResponse as SummaryTaskResponse -from .summary_model_params import SummaryModelParams as SummaryModelParams -from .summary_provider_params import SummaryProviderParams as SummaryProviderParams from .summary_task_params import SummaryTaskParams as SummaryTaskParams -from .timeseries_group_model_response import TimeseriesGroupModelResponse as TimeseriesGroupModelResponse -from .timeseries_group_provider_response import TimeseriesGroupProviderResponse as TimeseriesGroupProviderResponse -from .timeseries_group_task_response import TimeseriesGroupTaskResponse as TimeseriesGroupTaskResponse -from .timeseries_group_model_params import TimeseriesGroupModelParams as TimeseriesGroupModelParams -from .timeseries_group_provider_params import TimeseriesGroupProviderParams as TimeseriesGroupProviderParams +from .summary_model_params import SummaryModelParams as SummaryModelParams +from .summary_task_response import SummaryTaskResponse as SummaryTaskResponse +from .summary_model_response import SummaryModelResponse as SummaryModelResponse +from .summary_provider_params import SummaryProviderParams as SummaryProviderParams +from .summary_provider_response import SummaryProviderResponse as SummaryProviderResponse from .timeseries_group_task_params import TimeseriesGroupTaskParams as TimeseriesGroupTaskParams +from .timeseries_group_model_params import TimeseriesGroupModelParams as TimeseriesGroupModelParams +from .timeseries_group_task_response import TimeseriesGroupTaskResponse as TimeseriesGroupTaskResponse +from .timeseries_group_model_response import TimeseriesGroupModelResponse as TimeseriesGroupModelResponse +from .timeseries_group_provider_params import TimeseriesGroupProviderParams as TimeseriesGroupProviderParams +from .timeseries_group_provider_response import TimeseriesGroupProviderResponse as TimeseriesGroupProviderResponse diff --git a/src/cloudflare/types/radar/ai/gateway/summary_model_params.py b/src/cloudflare/types/radar/ai/gateway/summary_model_params.py index c05d703bb..e6e46e566 100755 --- a/src/cloudflare/types/radar/ai/gateway/summary_model_params.py +++ b/src/cloudflare/types/radar/ai/gateway/summary_model_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryModelParams"] diff --git a/src/cloudflare/types/radar/ai/gateway/summary_model_response.py b/src/cloudflare/types/radar/ai/gateway/summary_model_response.py index 66d6b325a..905152eca 100755 --- a/src/cloudflare/types/radar/ai/gateway/summary_model_response.py +++ b/src/cloudflare/types/radar/ai/gateway/summary_model_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import Dict, List, Optional from datetime import datetime -from typing import Optional, List, Dict - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["SummaryModelResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] diff --git a/src/cloudflare/types/radar/ai/gateway/summary_provider_params.py b/src/cloudflare/types/radar/ai/gateway/summary_provider_params.py index 3f65e4221..66577843b 100755 --- a/src/cloudflare/types/radar/ai/gateway/summary_provider_params.py +++ b/src/cloudflare/types/radar/ai/gateway/summary_provider_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryProviderParams"] diff --git a/src/cloudflare/types/radar/ai/gateway/summary_provider_response.py b/src/cloudflare/types/radar/ai/gateway/summary_provider_response.py index 313d077fa..0ca630f92 100755 --- a/src/cloudflare/types/radar/ai/gateway/summary_provider_response.py +++ b/src/cloudflare/types/radar/ai/gateway/summary_provider_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import Dict, List, Optional from datetime import datetime -from typing import Optional, List, Dict - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["SummaryProviderResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] diff --git a/src/cloudflare/types/radar/ai/gateway/summary_task_params.py b/src/cloudflare/types/radar/ai/gateway/summary_task_params.py index 403c47bb6..9941e203e 100755 --- a/src/cloudflare/types/radar/ai/gateway/summary_task_params.py +++ b/src/cloudflare/types/radar/ai/gateway/summary_task_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryTaskParams"] diff --git a/src/cloudflare/types/radar/ai/gateway/summary_task_response.py b/src/cloudflare/types/radar/ai/gateway/summary_task_response.py index 6f2689eed..8e6c0dc4e 100755 --- a/src/cloudflare/types/radar/ai/gateway/summary_task_response.py +++ b/src/cloudflare/types/radar/ai/gateway/summary_task_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import Dict, List, Optional from datetime import datetime -from typing import Optional, List, Dict - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["SummaryTaskResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] diff --git a/src/cloudflare/types/radar/ai/gateway/timeseries_group_model_params.py b/src/cloudflare/types/radar/ai/gateway/timeseries_group_model_params.py index 16b2145db..15395e4b0 100755 --- a/src/cloudflare/types/radar/ai/gateway/timeseries_group_model_params.py +++ b/src/cloudflare/types/radar/ai/gateway/timeseries_group_model_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupModelParams"] diff --git a/src/cloudflare/types/radar/ai/gateway/timeseries_group_model_response.py b/src/cloudflare/types/radar/ai/gateway/timeseries_group_model_response.py index b5ffc4241..383498bc5 100755 --- a/src/cloudflare/types/radar/ai/gateway/timeseries_group_model_response.py +++ b/src/cloudflare/types/radar/ai/gateway/timeseries_group_model_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import TYPE_CHECKING, List + from ....._models import BaseModel -from typing import List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo -from typing import TYPE_CHECKING - __all__ = ["TimeseriesGroupModelResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/ai/gateway/timeseries_group_provider_params.py b/src/cloudflare/types/radar/ai/gateway/timeseries_group_provider_params.py index e7f719ca8..1bf0c1401 100755 --- a/src/cloudflare/types/radar/ai/gateway/timeseries_group_provider_params.py +++ b/src/cloudflare/types/radar/ai/gateway/timeseries_group_provider_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupProviderParams"] diff --git a/src/cloudflare/types/radar/ai/gateway/timeseries_group_provider_response.py b/src/cloudflare/types/radar/ai/gateway/timeseries_group_provider_response.py index dda267b0c..f8ecaf74e 100755 --- a/src/cloudflare/types/radar/ai/gateway/timeseries_group_provider_response.py +++ b/src/cloudflare/types/radar/ai/gateway/timeseries_group_provider_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import TYPE_CHECKING, List + from ....._models import BaseModel -from typing import List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo -from typing import TYPE_CHECKING - __all__ = ["TimeseriesGroupProviderResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/ai/gateway/timeseries_group_task_params.py b/src/cloudflare/types/radar/ai/gateway/timeseries_group_task_params.py index a5555434c..b7b40fee8 100755 --- a/src/cloudflare/types/radar/ai/gateway/timeseries_group_task_params.py +++ b/src/cloudflare/types/radar/ai/gateway/timeseries_group_task_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupTaskParams"] diff --git a/src/cloudflare/types/radar/ai/gateway/timeseries_group_task_response.py b/src/cloudflare/types/radar/ai/gateway/timeseries_group_task_response.py index 6f1de63e7..d4158642a 100755 --- a/src/cloudflare/types/radar/ai/gateway/timeseries_group_task_response.py +++ b/src/cloudflare/types/radar/ai/gateway/timeseries_group_task_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import TYPE_CHECKING, List + from ....._models import BaseModel -from typing import List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo -from typing import TYPE_CHECKING - __all__ = ["TimeseriesGroupTaskResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/annotation_list_params.py b/src/cloudflare/types/radar/annotation_list_params.py index 3986ec58a..884c4c007 100644 --- a/src/cloudflare/types/radar/annotation_list_params.py +++ b/src/cloudflare/types/radar/annotation_list_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["AnnotationListParams"] diff --git a/src/cloudflare/types/radar/annotation_list_response.py b/src/cloudflare/types/radar/annotation_list_response.py index 2c3fe36a9..859a2a080 100644 --- a/src/cloudflare/types/radar/annotation_list_response.py +++ b/src/cloudflare/types/radar/annotation_list_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel +from typing import List, Optional -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = [ "AnnotationListResponse", "Annotation", diff --git a/src/cloudflare/types/radar/annotations/__init__.py b/src/cloudflare/types/radar/annotations/__init__.py index 2b813a88e..cb637454d 100644 --- a/src/cloudflare/types/radar/annotations/__init__.py +++ b/src/cloudflare/types/radar/annotations/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations -from .outage_get_response import OutageGetResponse as OutageGetResponse -from .outage_locations_response import OutageLocationsResponse as OutageLocationsResponse from .outage_get_params import OutageGetParams as OutageGetParams +from .outage_get_response import OutageGetResponse as OutageGetResponse from .outage_locations_params import OutageLocationsParams as OutageLocationsParams +from .outage_locations_response import OutageLocationsResponse as OutageLocationsResponse diff --git a/src/cloudflare/types/radar/annotations/outage_get_params.py b/src/cloudflare/types/radar/annotations/outage_get_params.py index a2242c4b4..23df41133 100644 --- a/src/cloudflare/types/radar/annotations/outage_get_params.py +++ b/src/cloudflare/types/radar/annotations/outage_get_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["OutageGetParams"] diff --git a/src/cloudflare/types/radar/annotations/outage_get_response.py b/src/cloudflare/types/radar/annotations/outage_get_response.py index c09dee2e9..a849b72fd 100644 --- a/src/cloudflare/types/radar/annotations/outage_get_response.py +++ b/src/cloudflare/types/radar/annotations/outage_get_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel +from typing import List, Optional -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "OutageGetResponse", "Annotation", diff --git a/src/cloudflare/types/radar/annotations/outage_locations_params.py b/src/cloudflare/types/radar/annotations/outage_locations_params.py index 6db6ba82a..51ae07786 100644 --- a/src/cloudflare/types/radar/annotations/outage_locations_params.py +++ b/src/cloudflare/types/radar/annotations/outage_locations_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["OutageLocationsParams"] diff --git a/src/cloudflare/types/radar/annotations/outage_locations_response.py b/src/cloudflare/types/radar/annotations/outage_locations_response.py index 4ceadb7a1..b175087e1 100644 --- a/src/cloudflare/types/radar/annotations/outage_locations_response.py +++ b/src/cloudflare/types/radar/annotations/outage_locations_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["OutageLocationsResponse", "Annotation"] diff --git a/src/cloudflare/types/radar/as112/__init__.py b/src/cloudflare/types/radar/as112/__init__.py index 80461ba74..cedccedcb 100644 --- a/src/cloudflare/types/radar/as112/__init__.py +++ b/src/cloudflare/types/radar/as112/__init__.py @@ -2,39 +2,39 @@ from __future__ import annotations -from .summary_dnssec_response import SummaryDNSSECResponse as SummaryDNSSECResponse -from .summary_edns_response import SummaryEdnsResponse as SummaryEdnsResponse -from .summary_ip_version_response import SummaryIPVersionResponse as SummaryIPVersionResponse -from .summary_protocol_response import SummaryProtocolResponse as SummaryProtocolResponse -from .summary_query_type_response import SummaryQueryTypeResponse as SummaryQueryTypeResponse -from .summary_response_codes_response import SummaryResponseCodesResponse as SummaryResponseCodesResponse -from .summary_dnssec_params import SummaryDNSSECParams as SummaryDNSSECParams +from .top_edns_params import TopEdnsParams as TopEdnsParams +from .top_dnssec_params import TopDNSSECParams as TopDNSSECParams +from .top_edns_response import TopEdnsResponse as TopEdnsResponse from .summary_edns_params import SummaryEdnsParams as SummaryEdnsParams -from .summary_ip_version_params import SummaryIPVersionParams as SummaryIPVersionParams +from .top_dnssec_response import TopDNSSECResponse as TopDNSSECResponse +from .top_locations_params import TopLocationsParams as TopLocationsParams +from .summary_dnssec_params import SummaryDNSSECParams as SummaryDNSSECParams +from .summary_edns_response import SummaryEdnsResponse as SummaryEdnsResponse +from .top_ip_version_params import TopIPVersionParams as TopIPVersionParams +from .top_locations_response import TopLocationsResponse as TopLocationsResponse +from .summary_dnssec_response import SummaryDNSSECResponse as SummaryDNSSECResponse from .summary_protocol_params import SummaryProtocolParams as SummaryProtocolParams +from .top_ip_version_response import TopIPVersionResponse as TopIPVersionResponse +from .summary_ip_version_params import SummaryIPVersionParams as SummaryIPVersionParams +from .summary_protocol_response import SummaryProtocolResponse as SummaryProtocolResponse from .summary_query_type_params import SummaryQueryTypeParams as SummaryQueryTypeParams -from .summary_response_codes_params import SummaryResponseCodesParams as SummaryResponseCodesParams -from .timeseries_group_dnssec_response import TimeseriesGroupDNSSECResponse as TimeseriesGroupDNSSECResponse -from .timeseries_group_edns_response import TimeseriesGroupEdnsResponse as TimeseriesGroupEdnsResponse -from .timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse as TimeseriesGroupIPVersionResponse -from .timeseries_group_protocol_response import TimeseriesGroupProtocolResponse as TimeseriesGroupProtocolResponse -from .timeseries_group_query_type_response import TimeseriesGroupQueryTypeResponse as TimeseriesGroupQueryTypeResponse -from .timeseries_group_response_codes_response import ( - TimeseriesGroupResponseCodesResponse as TimeseriesGroupResponseCodesResponse, -) -from .timeseries_group_dnssec_params import TimeseriesGroupDNSSECParams as TimeseriesGroupDNSSECParams +from .summary_ip_version_response import SummaryIPVersionResponse as SummaryIPVersionResponse +from .summary_query_type_response import SummaryQueryTypeResponse as SummaryQueryTypeResponse from .timeseries_group_edns_params import TimeseriesGroupEdnsParams as TimeseriesGroupEdnsParams -from .timeseries_group_ip_version_params import TimeseriesGroupIPVersionParams as TimeseriesGroupIPVersionParams +from .summary_response_codes_params import SummaryResponseCodesParams as SummaryResponseCodesParams +from .timeseries_group_dnssec_params import TimeseriesGroupDNSSECParams as TimeseriesGroupDNSSECParams +from .timeseries_group_edns_response import TimeseriesGroupEdnsResponse as TimeseriesGroupEdnsResponse +from .summary_response_codes_response import SummaryResponseCodesResponse as SummaryResponseCodesResponse +from .timeseries_group_dnssec_response import TimeseriesGroupDNSSECResponse as TimeseriesGroupDNSSECResponse from .timeseries_group_protocol_params import TimeseriesGroupProtocolParams as TimeseriesGroupProtocolParams +from .timeseries_group_ip_version_params import TimeseriesGroupIPVersionParams as TimeseriesGroupIPVersionParams +from .timeseries_group_protocol_response import TimeseriesGroupProtocolResponse as TimeseriesGroupProtocolResponse from .timeseries_group_query_type_params import TimeseriesGroupQueryTypeParams as TimeseriesGroupQueryTypeParams +from .timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse as TimeseriesGroupIPVersionResponse +from .timeseries_group_query_type_response import TimeseriesGroupQueryTypeResponse as TimeseriesGroupQueryTypeResponse from .timeseries_group_response_codes_params import ( TimeseriesGroupResponseCodesParams as TimeseriesGroupResponseCodesParams, ) -from .top_dnssec_response import TopDNSSECResponse as TopDNSSECResponse -from .top_edns_response import TopEdnsResponse as TopEdnsResponse -from .top_ip_version_response import TopIPVersionResponse as TopIPVersionResponse -from .top_locations_response import TopLocationsResponse as TopLocationsResponse -from .top_dnssec_params import TopDNSSECParams as TopDNSSECParams -from .top_edns_params import TopEdnsParams as TopEdnsParams -from .top_ip_version_params import TopIPVersionParams as TopIPVersionParams -from .top_locations_params import TopLocationsParams as TopLocationsParams +from .timeseries_group_response_codes_response import ( + TimeseriesGroupResponseCodesResponse as TimeseriesGroupResponseCodesResponse, +) diff --git a/src/cloudflare/types/radar/as112/summary_dnssec_params.py b/src/cloudflare/types/radar/as112/summary_dnssec_params.py index 0118e9f3d..df69e8362 100644 --- a/src/cloudflare/types/radar/as112/summary_dnssec_params.py +++ b/src/cloudflare/types/radar/as112/summary_dnssec_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["SummaryDNSSECParams"] diff --git a/src/cloudflare/types/radar/as112/summary_dnssec_response.py b/src/cloudflare/types/radar/as112/summary_dnssec_response.py index 875443629..b692d28f0 100644 --- a/src/cloudflare/types/radar/as112/summary_dnssec_response.py +++ b/src/cloudflare/types/radar/as112/summary_dnssec_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "SummaryDNSSECResponse", "Meta", diff --git a/src/cloudflare/types/radar/as112/summary_edns_params.py b/src/cloudflare/types/radar/as112/summary_edns_params.py index 88e8aae74..aa8cb7595 100644 --- a/src/cloudflare/types/radar/as112/summary_edns_params.py +++ b/src/cloudflare/types/radar/as112/summary_edns_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["SummaryEdnsParams"] diff --git a/src/cloudflare/types/radar/as112/summary_edns_response.py b/src/cloudflare/types/radar/as112/summary_edns_response.py index 64cfae5ab..48ca75177 100644 --- a/src/cloudflare/types/radar/as112/summary_edns_response.py +++ b/src/cloudflare/types/radar/as112/summary_edns_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "SummaryEdnsResponse", "Meta", diff --git a/src/cloudflare/types/radar/as112/summary_ip_version_params.py b/src/cloudflare/types/radar/as112/summary_ip_version_params.py index c2bc53fcb..edf5caac4 100644 --- a/src/cloudflare/types/radar/as112/summary_ip_version_params.py +++ b/src/cloudflare/types/radar/as112/summary_ip_version_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["SummaryIPVersionParams"] diff --git a/src/cloudflare/types/radar/as112/summary_ip_version_response.py b/src/cloudflare/types/radar/as112/summary_ip_version_response.py index e604ce514..6286c80dc 100644 --- a/src/cloudflare/types/radar/as112/summary_ip_version_response.py +++ b/src/cloudflare/types/radar/as112/summary_ip_version_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "SummaryIPVersionResponse", "Meta", diff --git a/src/cloudflare/types/radar/as112/summary_protocol_params.py b/src/cloudflare/types/radar/as112/summary_protocol_params.py index c2a4f1708..bfe7e7731 100644 --- a/src/cloudflare/types/radar/as112/summary_protocol_params.py +++ b/src/cloudflare/types/radar/as112/summary_protocol_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["SummaryProtocolParams"] diff --git a/src/cloudflare/types/radar/as112/summary_protocol_response.py b/src/cloudflare/types/radar/as112/summary_protocol_response.py index 4384898af..473abd366 100644 --- a/src/cloudflare/types/radar/as112/summary_protocol_response.py +++ b/src/cloudflare/types/radar/as112/summary_protocol_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "SummaryProtocolResponse", "Meta", diff --git a/src/cloudflare/types/radar/as112/summary_query_type_params.py b/src/cloudflare/types/radar/as112/summary_query_type_params.py index 7dcc060e1..aea17cb0a 100644 --- a/src/cloudflare/types/radar/as112/summary_query_type_params.py +++ b/src/cloudflare/types/radar/as112/summary_query_type_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["SummaryQueryTypeParams"] diff --git a/src/cloudflare/types/radar/as112/summary_query_type_response.py b/src/cloudflare/types/radar/as112/summary_query_type_response.py index 22163dd72..d5268d2eb 100644 --- a/src/cloudflare/types/radar/as112/summary_query_type_response.py +++ b/src/cloudflare/types/radar/as112/summary_query_type_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "SummaryQueryTypeResponse", "Meta", diff --git a/src/cloudflare/types/radar/as112/summary_response_codes_params.py b/src/cloudflare/types/radar/as112/summary_response_codes_params.py index 35845a30a..9579b0476 100644 --- a/src/cloudflare/types/radar/as112/summary_response_codes_params.py +++ b/src/cloudflare/types/radar/as112/summary_response_codes_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["SummaryResponseCodesParams"] diff --git a/src/cloudflare/types/radar/as112/summary_response_codes_response.py b/src/cloudflare/types/radar/as112/summary_response_codes_response.py index fe6b515d1..9c916f07a 100644 --- a/src/cloudflare/types/radar/as112/summary_response_codes_response.py +++ b/src/cloudflare/types/radar/as112/summary_response_codes_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "SummaryResponseCodesResponse", "Meta", diff --git a/src/cloudflare/types/radar/as112/timeseries_group_dnssec_params.py b/src/cloudflare/types/radar/as112/timeseries_group_dnssec_params.py index 05831ec1f..d818ce2dd 100644 --- a/src/cloudflare/types/radar/as112/timeseries_group_dnssec_params.py +++ b/src/cloudflare/types/radar/as112/timeseries_group_dnssec_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ...._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["TimeseriesGroupDNSSECParams"] diff --git a/src/cloudflare/types/radar/as112/timeseries_group_dnssec_response.py b/src/cloudflare/types/radar/as112/timeseries_group_dnssec_response.py index 57d6167c1..dc3bd4beb 100644 --- a/src/cloudflare/types/radar/as112/timeseries_group_dnssec_response.py +++ b/src/cloudflare/types/radar/as112/timeseries_group_dnssec_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["TimeseriesGroupDNSSECResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/as112/timeseries_group_edns_params.py b/src/cloudflare/types/radar/as112/timeseries_group_edns_params.py index 6b3860679..cde360d1e 100644 --- a/src/cloudflare/types/radar/as112/timeseries_group_edns_params.py +++ b/src/cloudflare/types/radar/as112/timeseries_group_edns_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ...._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["TimeseriesGroupEdnsParams"] diff --git a/src/cloudflare/types/radar/as112/timeseries_group_edns_response.py b/src/cloudflare/types/radar/as112/timeseries_group_edns_response.py index ccb28c3b4..b40d292d6 100644 --- a/src/cloudflare/types/radar/as112/timeseries_group_edns_response.py +++ b/src/cloudflare/types/radar/as112/timeseries_group_edns_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["TimeseriesGroupEdnsResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/as112/timeseries_group_ip_version_params.py b/src/cloudflare/types/radar/as112/timeseries_group_ip_version_params.py index 0395d0c49..54f655692 100644 --- a/src/cloudflare/types/radar/as112/timeseries_group_ip_version_params.py +++ b/src/cloudflare/types/radar/as112/timeseries_group_ip_version_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ...._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["TimeseriesGroupIPVersionParams"] diff --git a/src/cloudflare/types/radar/as112/timeseries_group_ip_version_response.py b/src/cloudflare/types/radar/as112/timeseries_group_ip_version_response.py index 33accc65f..4e9128d1c 100644 --- a/src/cloudflare/types/radar/as112/timeseries_group_ip_version_response.py +++ b/src/cloudflare/types/radar/as112/timeseries_group_ip_version_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["TimeseriesGroupIPVersionResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/as112/timeseries_group_protocol_params.py b/src/cloudflare/types/radar/as112/timeseries_group_protocol_params.py index 0ce2fbdf9..deb737e61 100644 --- a/src/cloudflare/types/radar/as112/timeseries_group_protocol_params.py +++ b/src/cloudflare/types/radar/as112/timeseries_group_protocol_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ...._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["TimeseriesGroupProtocolParams"] diff --git a/src/cloudflare/types/radar/as112/timeseries_group_protocol_response.py b/src/cloudflare/types/radar/as112/timeseries_group_protocol_response.py index 954d2cea6..dbbce1e4e 100644 --- a/src/cloudflare/types/radar/as112/timeseries_group_protocol_response.py +++ b/src/cloudflare/types/radar/as112/timeseries_group_protocol_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["TimeseriesGroupProtocolResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/as112/timeseries_group_query_type_params.py b/src/cloudflare/types/radar/as112/timeseries_group_query_type_params.py index 653d02790..d83568fe1 100644 --- a/src/cloudflare/types/radar/as112/timeseries_group_query_type_params.py +++ b/src/cloudflare/types/radar/as112/timeseries_group_query_type_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ...._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["TimeseriesGroupQueryTypeParams"] diff --git a/src/cloudflare/types/radar/as112/timeseries_group_query_type_response.py b/src/cloudflare/types/radar/as112/timeseries_group_query_type_response.py index 72974c55a..5cf5ed0ab 100644 --- a/src/cloudflare/types/radar/as112/timeseries_group_query_type_response.py +++ b/src/cloudflare/types/radar/as112/timeseries_group_query_type_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["TimeseriesGroupQueryTypeResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/as112/timeseries_group_response_codes_params.py b/src/cloudflare/types/radar/as112/timeseries_group_response_codes_params.py index fec6db261..05cf4ac7f 100644 --- a/src/cloudflare/types/radar/as112/timeseries_group_response_codes_params.py +++ b/src/cloudflare/types/radar/as112/timeseries_group_response_codes_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ...._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["TimeseriesGroupResponseCodesParams"] diff --git a/src/cloudflare/types/radar/as112/timeseries_group_response_codes_response.py b/src/cloudflare/types/radar/as112/timeseries_group_response_codes_response.py index d10f85398..e2bd1783d 100644 --- a/src/cloudflare/types/radar/as112/timeseries_group_response_codes_response.py +++ b/src/cloudflare/types/radar/as112/timeseries_group_response_codes_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["TimeseriesGroupResponseCodesResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/as112/top_dnssec_params.py b/src/cloudflare/types/radar/as112/top_dnssec_params.py index dec3d1cf9..9f46b8ec0 100644 --- a/src/cloudflare/types/radar/as112/top_dnssec_params.py +++ b/src/cloudflare/types/radar/as112/top_dnssec_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["TopDNSSECParams"] diff --git a/src/cloudflare/types/radar/as112/top_dnssec_response.py b/src/cloudflare/types/radar/as112/top_dnssec_response.py index d5f3486f1..a911d0d50 100644 --- a/src/cloudflare/types/radar/as112/top_dnssec_response.py +++ b/src/cloudflare/types/radar/as112/top_dnssec_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["TopDNSSECResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/as112/top_edns_params.py b/src/cloudflare/types/radar/as112/top_edns_params.py index 9d30f16ae..046c0d251 100644 --- a/src/cloudflare/types/radar/as112/top_edns_params.py +++ b/src/cloudflare/types/radar/as112/top_edns_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["TopEdnsParams"] diff --git a/src/cloudflare/types/radar/as112/top_edns_response.py b/src/cloudflare/types/radar/as112/top_edns_response.py index a4737a89d..208c881c5 100644 --- a/src/cloudflare/types/radar/as112/top_edns_response.py +++ b/src/cloudflare/types/radar/as112/top_edns_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["TopEdnsResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/as112/top_ip_version_params.py b/src/cloudflare/types/radar/as112/top_ip_version_params.py index dc03647f7..18ff8eb6a 100644 --- a/src/cloudflare/types/radar/as112/top_ip_version_params.py +++ b/src/cloudflare/types/radar/as112/top_ip_version_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["TopIPVersionParams"] diff --git a/src/cloudflare/types/radar/as112/top_ip_version_response.py b/src/cloudflare/types/radar/as112/top_ip_version_response.py index 4a13f9f7c..3b48dfa0c 100644 --- a/src/cloudflare/types/radar/as112/top_ip_version_response.py +++ b/src/cloudflare/types/radar/as112/top_ip_version_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "TopIPVersionResponse", "Meta", diff --git a/src/cloudflare/types/radar/as112/top_locations_params.py b/src/cloudflare/types/radar/as112/top_locations_params.py index ab0eb3e6c..74b6631d0 100644 --- a/src/cloudflare/types/radar/as112/top_locations_params.py +++ b/src/cloudflare/types/radar/as112/top_locations_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["TopLocationsParams"] diff --git a/src/cloudflare/types/radar/as112/top_locations_response.py b/src/cloudflare/types/radar/as112/top_locations_response.py index b6f4ebc18..671c32845 100644 --- a/src/cloudflare/types/radar/as112/top_locations_response.py +++ b/src/cloudflare/types/radar/as112/top_locations_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "TopLocationsResponse", "Meta", diff --git a/src/cloudflare/types/radar/as112_timeseries_params.py b/src/cloudflare/types/radar/as112_timeseries_params.py index 26c599a4a..c2e37c6ce 100644 --- a/src/cloudflare/types/radar/as112_timeseries_params.py +++ b/src/cloudflare/types/radar/as112_timeseries_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ..._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes from ..._utils import PropertyInfo __all__ = ["AS112TimeseriesParams"] diff --git a/src/cloudflare/types/radar/as112_timeseries_response.py b/src/cloudflare/types/radar/as112_timeseries_response.py index 4ad4ae2af..3664bedad 100644 --- a/src/cloudflare/types/radar/as112_timeseries_response.py +++ b/src/cloudflare/types/radar/as112_timeseries_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = [ "AS112TimeseriesResponse", "Meta", diff --git a/src/cloudflare/types/radar/attacks/__init__.py b/src/cloudflare/types/radar/attacks/__init__.py index cb8c00dd4..a4c50214f 100644 --- a/src/cloudflare/types/radar/attacks/__init__.py +++ b/src/cloudflare/types/radar/attacks/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations -from .layer3_timeseries_response import Layer3TimeseriesResponse as Layer3TimeseriesResponse from .layer3_timeseries_params import Layer3TimeseriesParams as Layer3TimeseriesParams -from .layer7_timeseries_response import Layer7TimeseriesResponse as Layer7TimeseriesResponse from .layer7_timeseries_params import Layer7TimeseriesParams as Layer7TimeseriesParams +from .layer3_timeseries_response import Layer3TimeseriesResponse as Layer3TimeseriesResponse +from .layer7_timeseries_response import Layer7TimeseriesResponse as Layer7TimeseriesResponse diff --git a/src/cloudflare/types/radar/attacks/layer3/__init__.py b/src/cloudflare/types/radar/attacks/layer3/__init__.py index b7204bbed..a0a2f946d 100644 --- a/src/cloudflare/types/radar/attacks/layer3/__init__.py +++ b/src/cloudflare/types/radar/attacks/layer3/__init__.py @@ -2,37 +2,37 @@ from __future__ import annotations -from .summary_bitrate_response import SummaryBitrateResponse as SummaryBitrateResponse -from .summary_duration_response import SummaryDurationResponse as SummaryDurationResponse -from .summary_get_response import SummaryGetResponse as SummaryGetResponse -from .summary_ip_version_response import SummaryIPVersionResponse as SummaryIPVersionResponse -from .summary_protocol_response import SummaryProtocolResponse as SummaryProtocolResponse -from .summary_vector_response import SummaryVectorResponse as SummaryVectorResponse -from .summary_bitrate_params import SummaryBitrateParams as SummaryBitrateParams -from .summary_duration_params import SummaryDurationParams as SummaryDurationParams from .summary_get_params import SummaryGetParams as SummaryGetParams -from .summary_ip_version_params import SummaryIPVersionParams as SummaryIPVersionParams -from .summary_protocol_params import SummaryProtocolParams as SummaryProtocolParams -from .summary_vector_params import SummaryVectorParams as SummaryVectorParams -from .timeseries_group_bitrate_response import TimeseriesGroupBitrateResponse as TimeseriesGroupBitrateResponse -from .timeseries_group_duration_response import TimeseriesGroupDurationResponse as TimeseriesGroupDurationResponse -from .timeseries_group_get_response import TimeseriesGroupGetResponse as TimeseriesGroupGetResponse -from .timeseries_group_industry_response import TimeseriesGroupIndustryResponse as TimeseriesGroupIndustryResponse -from .timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse as TimeseriesGroupIPVersionResponse -from .timeseries_group_protocol_response import TimeseriesGroupProtocolResponse as TimeseriesGroupProtocolResponse -from .timeseries_group_vector_response import TimeseriesGroupVectorResponse as TimeseriesGroupVectorResponse -from .timeseries_group_vertical_response import TimeseriesGroupVerticalResponse as TimeseriesGroupVerticalResponse -from .timeseries_group_bitrate_params import TimeseriesGroupBitrateParams as TimeseriesGroupBitrateParams -from .timeseries_group_duration_params import TimeseriesGroupDurationParams as TimeseriesGroupDurationParams -from .timeseries_group_get_params import TimeseriesGroupGetParams as TimeseriesGroupGetParams -from .timeseries_group_industry_params import TimeseriesGroupIndustryParams as TimeseriesGroupIndustryParams -from .timeseries_group_ip_version_params import TimeseriesGroupIPVersionParams as TimeseriesGroupIPVersionParams -from .timeseries_group_protocol_params import TimeseriesGroupProtocolParams as TimeseriesGroupProtocolParams -from .timeseries_group_vector_params import TimeseriesGroupVectorParams as TimeseriesGroupVectorParams -from .timeseries_group_vertical_params import TimeseriesGroupVerticalParams as TimeseriesGroupVerticalParams -from .top_attacks_response import TopAttacksResponse as TopAttacksResponse -from .top_industry_response import TopIndustryResponse as TopIndustryResponse -from .top_vertical_response import TopVerticalResponse as TopVerticalResponse from .top_attacks_params import TopAttacksParams as TopAttacksParams from .top_industry_params import TopIndustryParams as TopIndustryParams from .top_vertical_params import TopVerticalParams as TopVerticalParams +from .summary_get_response import SummaryGetResponse as SummaryGetResponse +from .top_attacks_response import TopAttacksResponse as TopAttacksResponse +from .summary_vector_params import SummaryVectorParams as SummaryVectorParams +from .top_industry_response import TopIndustryResponse as TopIndustryResponse +from .top_vertical_response import TopVerticalResponse as TopVerticalResponse +from .summary_bitrate_params import SummaryBitrateParams as SummaryBitrateParams +from .summary_duration_params import SummaryDurationParams as SummaryDurationParams +from .summary_protocol_params import SummaryProtocolParams as SummaryProtocolParams +from .summary_vector_response import SummaryVectorResponse as SummaryVectorResponse +from .summary_bitrate_response import SummaryBitrateResponse as SummaryBitrateResponse +from .summary_duration_response import SummaryDurationResponse as SummaryDurationResponse +from .summary_ip_version_params import SummaryIPVersionParams as SummaryIPVersionParams +from .summary_protocol_response import SummaryProtocolResponse as SummaryProtocolResponse +from .summary_ip_version_response import SummaryIPVersionResponse as SummaryIPVersionResponse +from .timeseries_group_get_params import TimeseriesGroupGetParams as TimeseriesGroupGetParams +from .timeseries_group_get_response import TimeseriesGroupGetResponse as TimeseriesGroupGetResponse +from .timeseries_group_vector_params import TimeseriesGroupVectorParams as TimeseriesGroupVectorParams +from .timeseries_group_bitrate_params import TimeseriesGroupBitrateParams as TimeseriesGroupBitrateParams +from .timeseries_group_duration_params import TimeseriesGroupDurationParams as TimeseriesGroupDurationParams +from .timeseries_group_industry_params import TimeseriesGroupIndustryParams as TimeseriesGroupIndustryParams +from .timeseries_group_protocol_params import TimeseriesGroupProtocolParams as TimeseriesGroupProtocolParams +from .timeseries_group_vector_response import TimeseriesGroupVectorResponse as TimeseriesGroupVectorResponse +from .timeseries_group_vertical_params import TimeseriesGroupVerticalParams as TimeseriesGroupVerticalParams +from .timeseries_group_bitrate_response import TimeseriesGroupBitrateResponse as TimeseriesGroupBitrateResponse +from .timeseries_group_duration_response import TimeseriesGroupDurationResponse as TimeseriesGroupDurationResponse +from .timeseries_group_industry_response import TimeseriesGroupIndustryResponse as TimeseriesGroupIndustryResponse +from .timeseries_group_ip_version_params import TimeseriesGroupIPVersionParams as TimeseriesGroupIPVersionParams +from .timeseries_group_protocol_response import TimeseriesGroupProtocolResponse as TimeseriesGroupProtocolResponse +from .timeseries_group_vertical_response import TimeseriesGroupVerticalResponse as TimeseriesGroupVerticalResponse +from .timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse as TimeseriesGroupIPVersionResponse diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_bitrate_params.py b/src/cloudflare/types/radar/attacks/layer3/summary_bitrate_params.py index b92b41871..b4d0b88d8 100644 --- a/src/cloudflare/types/radar/attacks/layer3/summary_bitrate_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/summary_bitrate_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryBitrateParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_bitrate_response.py b/src/cloudflare/types/radar/attacks/layer3/summary_bitrate_response.py index b022021a4..b04e158c2 100644 --- a/src/cloudflare/types/radar/attacks/layer3/summary_bitrate_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/summary_bitrate_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "SummaryBitrateResponse", "Meta", diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_duration_params.py b/src/cloudflare/types/radar/attacks/layer3/summary_duration_params.py index c68d7e21c..615fe9728 100644 --- a/src/cloudflare/types/radar/attacks/layer3/summary_duration_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/summary_duration_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryDurationParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_duration_response.py b/src/cloudflare/types/radar/attacks/layer3/summary_duration_response.py index 18b6defcc..a08fb88a4 100644 --- a/src/cloudflare/types/radar/attacks/layer3/summary_duration_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/summary_duration_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "SummaryDurationResponse", "Meta", diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_get_params.py b/src/cloudflare/types/radar/attacks/layer3/summary_get_params.py index a477d2da2..fe1dae91b 100644 --- a/src/cloudflare/types/radar/attacks/layer3/summary_get_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/summary_get_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryGetParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_get_response.py b/src/cloudflare/types/radar/attacks/layer3/summary_get_response.py index 5d0f2ffed..e332260ec 100644 --- a/src/cloudflare/types/radar/attacks/layer3/summary_get_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/summary_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "SummaryGetResponse", "Meta", diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_ip_version_params.py b/src/cloudflare/types/radar/attacks/layer3/summary_ip_version_params.py index 964edd401..b1ab3c417 100644 --- a/src/cloudflare/types/radar/attacks/layer3/summary_ip_version_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/summary_ip_version_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryIPVersionParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_ip_version_response.py b/src/cloudflare/types/radar/attacks/layer3/summary_ip_version_response.py index 38e6dba83..e1a3995c7 100644 --- a/src/cloudflare/types/radar/attacks/layer3/summary_ip_version_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/summary_ip_version_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "SummaryIPVersionResponse", "Meta", diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_protocol_params.py b/src/cloudflare/types/radar/attacks/layer3/summary_protocol_params.py index c65fc493f..f3c6e1f2d 100644 --- a/src/cloudflare/types/radar/attacks/layer3/summary_protocol_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/summary_protocol_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryProtocolParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_protocol_response.py b/src/cloudflare/types/radar/attacks/layer3/summary_protocol_response.py index d008e6235..7d749df3a 100644 --- a/src/cloudflare/types/radar/attacks/layer3/summary_protocol_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/summary_protocol_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "SummaryProtocolResponse", "Meta", diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_vector_params.py b/src/cloudflare/types/radar/attacks/layer3/summary_vector_params.py index e15bfa3b9..3da6f2912 100644 --- a/src/cloudflare/types/radar/attacks/layer3/summary_vector_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/summary_vector_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryVectorParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_vector_response.py b/src/cloudflare/types/radar/attacks/layer3/summary_vector_response.py index b6c07c828..cf21e3557 100644 --- a/src/cloudflare/types/radar/attacks/layer3/summary_vector_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/summary_vector_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import Dict, List, Optional from datetime import datetime -from typing import Optional, List, Dict - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["SummaryVectorResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_bitrate_params.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_bitrate_params.py index 44a76586e..9ef70e178 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_bitrate_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_bitrate_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupBitrateParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_bitrate_response.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_bitrate_response.py index 8b6034461..0e8f9525a 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_bitrate_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_bitrate_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["TimeseriesGroupBitrateResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_duration_params.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_duration_params.py index 728a7379b..0ac1f04ea 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_duration_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_duration_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupDurationParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_duration_response.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_duration_response.py index ddd9d88e9..21149a347 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_duration_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_duration_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["TimeseriesGroupDurationResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_get_params.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_get_params.py index 0f8d2d2cc..9ab69b16b 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_get_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_get_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupGetParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_get_response.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_get_response.py index b33998880..ea55dbde5 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_get_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "TimeseriesGroupGetResponse", "Meta", diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_industry_params.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_industry_params.py index 8b937f527..b9474428b 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_industry_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_industry_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupIndustryParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_industry_response.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_industry_response.py index 4e6b6c353..2751b1e13 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_industry_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_industry_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import TYPE_CHECKING, List + from ....._models import BaseModel -from typing import List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo -from typing import TYPE_CHECKING - __all__ = ["TimeseriesGroupIndustryResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_ip_version_params.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_ip_version_params.py index 358d1d073..5f8b50a1f 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_ip_version_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_ip_version_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupIPVersionParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_ip_version_response.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_ip_version_response.py index 387975075..136fc4da3 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_ip_version_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_ip_version_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["TimeseriesGroupIPVersionResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_protocol_params.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_protocol_params.py index 5fe69aaa7..c96f496eb 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_protocol_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_protocol_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupProtocolParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_protocol_response.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_protocol_response.py index 2ad7675a8..c667519f0 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_protocol_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_protocol_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["TimeseriesGroupProtocolResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vector_params.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vector_params.py index 28eeccbaa..bdd8255a8 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vector_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vector_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupVectorParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vector_response.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vector_response.py index b2d8badf0..383d68a51 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vector_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vector_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import TYPE_CHECKING, List + from ....._models import BaseModel -from typing import List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo -from typing import TYPE_CHECKING - __all__ = ["TimeseriesGroupVectorResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vertical_params.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vertical_params.py index 35433b6a4..4e20388b2 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vertical_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vertical_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupVerticalParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vertical_response.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vertical_response.py index 629b99b4e..5b185a2ed 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vertical_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vertical_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import TYPE_CHECKING, List + from ....._models import BaseModel -from typing import List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo -from typing import TYPE_CHECKING - __all__ = ["TimeseriesGroupVerticalResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/attacks/layer3/top/__init__.py b/src/cloudflare/types/radar/attacks/layer3/top/__init__.py index 0c92f2934..32a6e3c5a 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top/__init__.py +++ b/src/cloudflare/types/radar/attacks/layer3/top/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations -from .location_origin_response import LocationOriginResponse as LocationOriginResponse -from .location_target_response import LocationTargetResponse as LocationTargetResponse from .location_origin_params import LocationOriginParams as LocationOriginParams from .location_target_params import LocationTargetParams as LocationTargetParams +from .location_origin_response import LocationOriginResponse as LocationOriginResponse +from .location_target_response import LocationTargetResponse as LocationTargetResponse diff --git a/src/cloudflare/types/radar/attacks/layer3/top/location_origin_params.py b/src/cloudflare/types/radar/attacks/layer3/top/location_origin_params.py index 4e820bc22..06ae05b87 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top/location_origin_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/top/location_origin_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ......_utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ......_types import FileTypes -from ......_utils import PropertyInfo - __all__ = ["LocationOriginParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/top/location_origin_response.py b/src/cloudflare/types/radar/attacks/layer3/top/location_origin_response.py index 94a584608..102661bf5 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top/location_origin_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/top/location_origin_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ......_models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ......_models import BaseModel + __all__ = [ "LocationOriginResponse", "Meta", diff --git a/src/cloudflare/types/radar/attacks/layer3/top/location_target_params.py b/src/cloudflare/types/radar/attacks/layer3/top/location_target_params.py index b1409bc6a..4b1f0a0e4 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top/location_target_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/top/location_target_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ......_utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ......_types import FileTypes -from ......_utils import PropertyInfo - __all__ = ["LocationTargetParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/top/location_target_response.py b/src/cloudflare/types/radar/attacks/layer3/top/location_target_response.py index a75ca2a26..4641eb271 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top/location_target_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/top/location_target_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ......_models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ......_models import BaseModel + __all__ = [ "LocationTargetResponse", "Meta", diff --git a/src/cloudflare/types/radar/attacks/layer3/top_attacks_params.py b/src/cloudflare/types/radar/attacks/layer3/top_attacks_params.py index 9999df87c..a93d37a63 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top_attacks_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/top_attacks_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["TopAttacksParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/top_attacks_response.py b/src/cloudflare/types/radar/attacks/layer3/top_attacks_response.py index 69247dad7..100bfdc7d 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top_attacks_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/top_attacks_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["TopAttacksResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/attacks/layer3/top_industry_params.py b/src/cloudflare/types/radar/attacks/layer3/top_industry_params.py index 1cf2835cd..41360260a 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top_industry_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/top_industry_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["TopIndustryParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/top_industry_response.py b/src/cloudflare/types/radar/attacks/layer3/top_industry_response.py index 8d0a6ca91..7b8893c1c 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top_industry_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/top_industry_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["TopIndustryResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/attacks/layer3/top_vertical_params.py b/src/cloudflare/types/radar/attacks/layer3/top_vertical_params.py index 0dfa53ac4..d04759c7a 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top_vertical_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/top_vertical_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["TopVerticalParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/top_vertical_response.py b/src/cloudflare/types/radar/attacks/layer3/top_vertical_response.py index 125a5cb2f..a9b5b23fb 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top_vertical_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/top_vertical_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["TopVerticalResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/attacks/layer3_timeseries_params.py b/src/cloudflare/types/radar/attacks/layer3_timeseries_params.py index 15bc954f2..61c6eb226 100644 --- a/src/cloudflare/types/radar/attacks/layer3_timeseries_params.py +++ b/src/cloudflare/types/radar/attacks/layer3_timeseries_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ...._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["Layer3TimeseriesParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3_timeseries_response.py b/src/cloudflare/types/radar/attacks/layer3_timeseries_response.py index 366bedaeb..c83a6af95 100644 --- a/src/cloudflare/types/radar/attacks/layer3_timeseries_response.py +++ b/src/cloudflare/types/radar/attacks/layer3_timeseries_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["Layer3TimeseriesResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/attacks/layer7/__init__.py b/src/cloudflare/types/radar/attacks/layer7/__init__.py index 7211825af..1f41fbea2 100644 --- a/src/cloudflare/types/radar/attacks/layer7/__init__.py +++ b/src/cloudflare/types/radar/attacks/layer7/__init__.py @@ -2,49 +2,49 @@ from __future__ import annotations -from .summary_get_response import SummaryGetResponse as SummaryGetResponse -from .summary_http_method_response import SummaryHTTPMethodResponse as SummaryHTTPMethodResponse -from .summary_http_version_response import SummaryHTTPVersionResponse as SummaryHTTPVersionResponse -from .summary_ip_version_response import SummaryIPVersionResponse as SummaryIPVersionResponse -from .summary_managed_rules_response import SummaryManagedRulesResponse as SummaryManagedRulesResponse -from .summary_mitigation_product_response import SummaryMitigationProductResponse as SummaryMitigationProductResponse from .summary_get_params import SummaryGetParams as SummaryGetParams +from .top_attacks_params import TopAttacksParams as TopAttacksParams +from .top_industry_params import TopIndustryParams as TopIndustryParams +from .top_vertical_params import TopVerticalParams as TopVerticalParams +from .summary_get_response import SummaryGetResponse as SummaryGetResponse +from .top_attacks_response import TopAttacksResponse as TopAttacksResponse +from .top_industry_response import TopIndustryResponse as TopIndustryResponse +from .top_vertical_response import TopVerticalResponse as TopVerticalResponse +from .summary_ip_version_params import SummaryIPVersionParams as SummaryIPVersionParams from .summary_http_method_params import SummaryHTTPMethodParams as SummaryHTTPMethodParams from .summary_http_version_params import SummaryHTTPVersionParams as SummaryHTTPVersionParams -from .summary_ip_version_params import SummaryIPVersionParams as SummaryIPVersionParams +from .summary_ip_version_response import SummaryIPVersionResponse as SummaryIPVersionResponse +from .timeseries_group_get_params import TimeseriesGroupGetParams as TimeseriesGroupGetParams +from .summary_http_method_response import SummaryHTTPMethodResponse as SummaryHTTPMethodResponse from .summary_managed_rules_params import SummaryManagedRulesParams as SummaryManagedRulesParams -from .summary_mitigation_product_params import SummaryMitigationProductParams as SummaryMitigationProductParams +from .summary_http_version_response import SummaryHTTPVersionResponse as SummaryHTTPVersionResponse from .timeseries_group_get_response import TimeseriesGroupGetResponse as TimeseriesGroupGetResponse +from .summary_managed_rules_response import SummaryManagedRulesResponse as SummaryManagedRulesResponse +from .timeseries_group_industry_params import TimeseriesGroupIndustryParams as TimeseriesGroupIndustryParams +from .timeseries_group_vertical_params import TimeseriesGroupVerticalParams as TimeseriesGroupVerticalParams +from .summary_mitigation_product_params import SummaryMitigationProductParams as SummaryMitigationProductParams +from .timeseries_group_industry_response import TimeseriesGroupIndustryResponse as TimeseriesGroupIndustryResponse +from .timeseries_group_ip_version_params import TimeseriesGroupIPVersionParams as TimeseriesGroupIPVersionParams +from .timeseries_group_vertical_response import TimeseriesGroupVerticalResponse as TimeseriesGroupVerticalResponse +from .summary_mitigation_product_response import SummaryMitigationProductResponse as SummaryMitigationProductResponse +from .timeseries_group_http_method_params import TimeseriesGroupHTTPMethodParams as TimeseriesGroupHTTPMethodParams +from .timeseries_group_http_version_params import TimeseriesGroupHTTPVersionParams as TimeseriesGroupHTTPVersionParams +from .timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse as TimeseriesGroupIPVersionResponse from .timeseries_group_http_method_response import ( TimeseriesGroupHTTPMethodResponse as TimeseriesGroupHTTPMethodResponse, ) +from .timeseries_group_managed_rules_params import ( + TimeseriesGroupManagedRulesParams as TimeseriesGroupManagedRulesParams, +) from .timeseries_group_http_version_response import ( TimeseriesGroupHTTPVersionResponse as TimeseriesGroupHTTPVersionResponse, ) -from .timeseries_group_industry_response import TimeseriesGroupIndustryResponse as TimeseriesGroupIndustryResponse -from .timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse as TimeseriesGroupIPVersionResponse from .timeseries_group_managed_rules_response import ( TimeseriesGroupManagedRulesResponse as TimeseriesGroupManagedRulesResponse, ) -from .timeseries_group_mitigation_product_response import ( - TimeseriesGroupMitigationProductResponse as TimeseriesGroupMitigationProductResponse, -) -from .timeseries_group_vertical_response import TimeseriesGroupVerticalResponse as TimeseriesGroupVerticalResponse -from .timeseries_group_get_params import TimeseriesGroupGetParams as TimeseriesGroupGetParams -from .timeseries_group_http_method_params import TimeseriesGroupHTTPMethodParams as TimeseriesGroupHTTPMethodParams -from .timeseries_group_http_version_params import TimeseriesGroupHTTPVersionParams as TimeseriesGroupHTTPVersionParams -from .timeseries_group_industry_params import TimeseriesGroupIndustryParams as TimeseriesGroupIndustryParams -from .timeseries_group_ip_version_params import TimeseriesGroupIPVersionParams as TimeseriesGroupIPVersionParams -from .timeseries_group_managed_rules_params import ( - TimeseriesGroupManagedRulesParams as TimeseriesGroupManagedRulesParams, -) from .timeseries_group_mitigation_product_params import ( TimeseriesGroupMitigationProductParams as TimeseriesGroupMitigationProductParams, ) -from .timeseries_group_vertical_params import TimeseriesGroupVerticalParams as TimeseriesGroupVerticalParams -from .top_attacks_response import TopAttacksResponse as TopAttacksResponse -from .top_industry_response import TopIndustryResponse as TopIndustryResponse -from .top_vertical_response import TopVerticalResponse as TopVerticalResponse -from .top_attacks_params import TopAttacksParams as TopAttacksParams -from .top_industry_params import TopIndustryParams as TopIndustryParams -from .top_vertical_params import TopVerticalParams as TopVerticalParams +from .timeseries_group_mitigation_product_response import ( + TimeseriesGroupMitigationProductResponse as TimeseriesGroupMitigationProductResponse, +) diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_get_params.py b/src/cloudflare/types/radar/attacks/layer7/summary_get_params.py index a477d2da2..fe1dae91b 100644 --- a/src/cloudflare/types/radar/attacks/layer7/summary_get_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/summary_get_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryGetParams"] diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_get_response.py b/src/cloudflare/types/radar/attacks/layer7/summary_get_response.py index 20c3ab76d..383040602 100644 --- a/src/cloudflare/types/radar/attacks/layer7/summary_get_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/summary_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "SummaryGetResponse", "Meta", diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_http_method_params.py b/src/cloudflare/types/radar/attacks/layer7/summary_http_method_params.py index fd32e49bb..6060fcfa6 100644 --- a/src/cloudflare/types/radar/attacks/layer7/summary_http_method_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/summary_http_method_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryHTTPMethodParams"] diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_http_method_response.py b/src/cloudflare/types/radar/attacks/layer7/summary_http_method_response.py index 23f329183..38203e4eb 100644 --- a/src/cloudflare/types/radar/attacks/layer7/summary_http_method_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/summary_http_method_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "SummaryHTTPMethodResponse", "Meta", diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_http_version_params.py b/src/cloudflare/types/radar/attacks/layer7/summary_http_version_params.py index 762acd635..7a900629d 100644 --- a/src/cloudflare/types/radar/attacks/layer7/summary_http_version_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/summary_http_version_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryHTTPVersionParams"] diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_http_version_response.py b/src/cloudflare/types/radar/attacks/layer7/summary_http_version_response.py index 0d7fc02c3..f78c229da 100644 --- a/src/cloudflare/types/radar/attacks/layer7/summary_http_version_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/summary_http_version_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "SummaryHTTPVersionResponse", "Meta", diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_ip_version_params.py b/src/cloudflare/types/radar/attacks/layer7/summary_ip_version_params.py index 2f97c05fd..9a7e6f3cc 100644 --- a/src/cloudflare/types/radar/attacks/layer7/summary_ip_version_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/summary_ip_version_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryIPVersionParams"] diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_ip_version_response.py b/src/cloudflare/types/radar/attacks/layer7/summary_ip_version_response.py index 38e6dba83..e1a3995c7 100644 --- a/src/cloudflare/types/radar/attacks/layer7/summary_ip_version_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/summary_ip_version_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "SummaryIPVersionResponse", "Meta", diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_managed_rules_params.py b/src/cloudflare/types/radar/attacks/layer7/summary_managed_rules_params.py index 201704445..5dfedbebd 100644 --- a/src/cloudflare/types/radar/attacks/layer7/summary_managed_rules_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/summary_managed_rules_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryManagedRulesParams"] diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_managed_rules_response.py b/src/cloudflare/types/radar/attacks/layer7/summary_managed_rules_response.py index f049709c6..c62312dff 100644 --- a/src/cloudflare/types/radar/attacks/layer7/summary_managed_rules_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/summary_managed_rules_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "SummaryManagedRulesResponse", "Meta", diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_mitigation_product_params.py b/src/cloudflare/types/radar/attacks/layer7/summary_mitigation_product_params.py index bcac9936c..4013e1ee4 100644 --- a/src/cloudflare/types/radar/attacks/layer7/summary_mitigation_product_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/summary_mitigation_product_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryMitigationProductParams"] diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_mitigation_product_response.py b/src/cloudflare/types/radar/attacks/layer7/summary_mitigation_product_response.py index 8d484c2e9..f815da237 100644 --- a/src/cloudflare/types/radar/attacks/layer7/summary_mitigation_product_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/summary_mitigation_product_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "SummaryMitigationProductResponse", "Meta", diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_get_params.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_get_params.py index 0f8d2d2cc..9ab69b16b 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_get_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_get_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupGetParams"] diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_get_response.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_get_response.py index 94c24e6ae..60c8a9d91 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_get_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "TimeseriesGroupGetResponse", "Meta", diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_http_method_params.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_http_method_params.py index dac0ec9a1..d6ea3e4ee 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_http_method_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_http_method_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupHTTPMethodParams"] diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_http_method_response.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_http_method_response.py index 7f0f989ee..a0f6379a2 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_http_method_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_http_method_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["TimeseriesGroupHTTPMethodResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_http_version_params.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_http_version_params.py index 2bd5d2e72..f2c435b51 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_http_version_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_http_version_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupHTTPVersionParams"] diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_http_version_response.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_http_version_response.py index 0564e3b52..f8085143f 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_http_version_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_http_version_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["TimeseriesGroupHTTPVersionResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_industry_params.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_industry_params.py index 7aa93269b..274b5be39 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_industry_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_industry_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupIndustryParams"] diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_industry_response.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_industry_response.py index 4e6b6c353..2751b1e13 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_industry_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_industry_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import TYPE_CHECKING, List + from ....._models import BaseModel -from typing import List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo -from typing import TYPE_CHECKING - __all__ = ["TimeseriesGroupIndustryResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_ip_version_params.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_ip_version_params.py index ca1e0493a..dfeee4f83 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_ip_version_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_ip_version_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupIPVersionParams"] diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_ip_version_response.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_ip_version_response.py index 387975075..136fc4da3 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_ip_version_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_ip_version_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["TimeseriesGroupIPVersionResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_managed_rules_params.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_managed_rules_params.py index 3244cf890..7c26f5c6c 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_managed_rules_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_managed_rules_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupManagedRulesParams"] diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_managed_rules_response.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_managed_rules_response.py index d18f88b41..73dcc4c22 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_managed_rules_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_managed_rules_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["TimeseriesGroupManagedRulesResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_mitigation_product_params.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_mitigation_product_params.py index 4439a21dc..7dfb37412 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_mitigation_product_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_mitigation_product_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupMitigationProductParams"] diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_mitigation_product_response.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_mitigation_product_response.py index 8e8183bc1..7e598104c 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_mitigation_product_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_mitigation_product_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["TimeseriesGroupMitigationProductResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_vertical_params.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_vertical_params.py index 0b409a035..97c91f531 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_vertical_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_vertical_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupVerticalParams"] diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_vertical_response.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_vertical_response.py index 629b99b4e..5b185a2ed 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_vertical_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_vertical_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import TYPE_CHECKING, List + from ....._models import BaseModel -from typing import List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo -from typing import TYPE_CHECKING - __all__ = ["TimeseriesGroupVerticalResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/attacks/layer7/top/__init__.py b/src/cloudflare/types/radar/attacks/layer7/top/__init__.py index f00805dc0..a0b358c50 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top/__init__.py +++ b/src/cloudflare/types/radar/attacks/layer7/top/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .location_origin_response import LocationOriginResponse as LocationOriginResponse -from .location_target_response import LocationTargetResponse as LocationTargetResponse +from .ase_origin_params import AseOriginParams as AseOriginParams +from .ase_origin_response import AseOriginResponse as AseOriginResponse from .location_origin_params import LocationOriginParams as LocationOriginParams from .location_target_params import LocationTargetParams as LocationTargetParams -from .ase_origin_response import AseOriginResponse as AseOriginResponse -from .ase_origin_params import AseOriginParams as AseOriginParams +from .location_origin_response import LocationOriginResponse as LocationOriginResponse +from .location_target_response import LocationTargetResponse as LocationTargetResponse diff --git a/src/cloudflare/types/radar/attacks/layer7/top/ase_origin_params.py b/src/cloudflare/types/radar/attacks/layer7/top/ase_origin_params.py index 5842b80cb..17099f3e0 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top/ase_origin_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/top/ase_origin_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ......_utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ......_types import FileTypes -from ......_utils import PropertyInfo - __all__ = ["AseOriginParams"] diff --git a/src/cloudflare/types/radar/attacks/layer7/top/ase_origin_response.py b/src/cloudflare/types/radar/attacks/layer7/top/ase_origin_response.py index c7f74ca37..7c7bdac68 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top/ase_origin_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/top/ase_origin_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ......_models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ......_models import BaseModel + __all__ = ["AseOriginResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/attacks/layer7/top/location_origin_params.py b/src/cloudflare/types/radar/attacks/layer7/top/location_origin_params.py index 5d240640e..58aa33984 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top/location_origin_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/top/location_origin_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ......_utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ......_types import FileTypes -from ......_utils import PropertyInfo - __all__ = ["LocationOriginParams"] diff --git a/src/cloudflare/types/radar/attacks/layer7/top/location_origin_response.py b/src/cloudflare/types/radar/attacks/layer7/top/location_origin_response.py index 94a584608..102661bf5 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top/location_origin_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/top/location_origin_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ......_models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ......_models import BaseModel + __all__ = [ "LocationOriginResponse", "Meta", diff --git a/src/cloudflare/types/radar/attacks/layer7/top/location_target_params.py b/src/cloudflare/types/radar/attacks/layer7/top/location_target_params.py index 5fd4010a0..50a57bfe0 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top/location_target_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/top/location_target_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ......_utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ......_types import FileTypes -from ......_utils import PropertyInfo - __all__ = ["LocationTargetParams"] diff --git a/src/cloudflare/types/radar/attacks/layer7/top/location_target_response.py b/src/cloudflare/types/radar/attacks/layer7/top/location_target_response.py index a75ca2a26..4641eb271 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top/location_target_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/top/location_target_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ......_models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ......_models import BaseModel + __all__ = [ "LocationTargetResponse", "Meta", diff --git a/src/cloudflare/types/radar/attacks/layer7/top_attacks_params.py b/src/cloudflare/types/radar/attacks/layer7/top_attacks_params.py index 5ed2ab446..d735b60cb 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top_attacks_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/top_attacks_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["TopAttacksParams"] diff --git a/src/cloudflare/types/radar/attacks/layer7/top_attacks_response.py b/src/cloudflare/types/radar/attacks/layer7/top_attacks_response.py index b6119d876..68577c2c6 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top_attacks_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/top_attacks_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["TopAttacksResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/attacks/layer7/top_industry_params.py b/src/cloudflare/types/radar/attacks/layer7/top_industry_params.py index 14caadad9..54c26d716 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top_industry_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/top_industry_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["TopIndustryParams"] diff --git a/src/cloudflare/types/radar/attacks/layer7/top_industry_response.py b/src/cloudflare/types/radar/attacks/layer7/top_industry_response.py index 8d0a6ca91..7b8893c1c 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top_industry_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/top_industry_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["TopIndustryResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/attacks/layer7/top_vertical_params.py b/src/cloudflare/types/radar/attacks/layer7/top_vertical_params.py index 6d88c503f..cb941de5c 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top_vertical_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/top_vertical_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["TopVerticalParams"] diff --git a/src/cloudflare/types/radar/attacks/layer7/top_vertical_response.py b/src/cloudflare/types/radar/attacks/layer7/top_vertical_response.py index 125a5cb2f..a9b5b23fb 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top_vertical_response.py +++ b/src/cloudflare/types/radar/attacks/layer7/top_vertical_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["TopVerticalResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/attacks/layer7_timeseries_params.py b/src/cloudflare/types/radar/attacks/layer7_timeseries_params.py index 307d20bdd..1808607d4 100644 --- a/src/cloudflare/types/radar/attacks/layer7_timeseries_params.py +++ b/src/cloudflare/types/radar/attacks/layer7_timeseries_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ...._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["Layer7TimeseriesParams"] diff --git a/src/cloudflare/types/radar/attacks/layer7_timeseries_response.py b/src/cloudflare/types/radar/attacks/layer7_timeseries_response.py index 979dba4cb..355696d9d 100644 --- a/src/cloudflare/types/radar/attacks/layer7_timeseries_response.py +++ b/src/cloudflare/types/radar/attacks/layer7_timeseries_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "Layer7TimeseriesResponse", "Meta", diff --git a/src/cloudflare/types/radar/bgp/__init__.py b/src/cloudflare/types/radar/bgp/__init__.py index 57da52ee7..fdbf378f6 100644 --- a/src/cloudflare/types/radar/bgp/__init__.py +++ b/src/cloudflare/types/radar/bgp/__init__.py @@ -2,15 +2,15 @@ from __future__ import annotations -from .top_prefixes_response import TopPrefixesResponse as TopPrefixesResponse -from .top_prefixes_params import TopPrefixesParams as TopPrefixesParams -from .route_ases_response import RouteAsesResponse as RouteAsesResponse -from .route_moas_response import RouteMoasResponse as RouteMoasResponse -from .route_pfx2as_response import RoutePfx2asResponse as RoutePfx2asResponse -from .route_stats_response import RouteStatsResponse as RouteStatsResponse from .route_ases_params import RouteAsesParams as RouteAsesParams from .route_moas_params import RouteMoasParams as RouteMoasParams -from .route_pfx2as_params import RoutePfx2asParams as RoutePfx2asParams from .route_stats_params import RouteStatsParams as RouteStatsParams -from .ip_timeseries_response import IPTimeseriesResponse as IPTimeseriesResponse +from .route_ases_response import RouteAsesResponse as RouteAsesResponse +from .route_moas_response import RouteMoasResponse as RouteMoasResponse +from .route_pfx2as_params import RoutePfx2asParams as RoutePfx2asParams +from .top_prefixes_params import TopPrefixesParams as TopPrefixesParams from .ip_timeseries_params import IPTimeseriesParams as IPTimeseriesParams +from .route_stats_response import RouteStatsResponse as RouteStatsResponse +from .route_pfx2as_response import RoutePfx2asResponse as RoutePfx2asResponse +from .top_prefixes_response import TopPrefixesResponse as TopPrefixesResponse +from .ip_timeseries_response import IPTimeseriesResponse as IPTimeseriesResponse diff --git a/src/cloudflare/types/radar/bgp/hijacks/__init__.py b/src/cloudflare/types/radar/bgp/hijacks/__init__.py index d29c1ad5b..c9d802c01 100644 --- a/src/cloudflare/types/radar/bgp/hijacks/__init__.py +++ b/src/cloudflare/types/radar/bgp/hijacks/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .event_list_response import EventListResponse as EventListResponse from .event_list_params import EventListParams as EventListParams +from .event_list_response import EventListResponse as EventListResponse diff --git a/src/cloudflare/types/radar/bgp/hijacks/event_list_params.py b/src/cloudflare/types/radar/bgp/hijacks/event_list_params.py index 2e21fde66..7433cf1aa 100644 --- a/src/cloudflare/types/radar/bgp/hijacks/event_list_params.py +++ b/src/cloudflare/types/radar/bgp/hijacks/event_list_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["EventListParams"] diff --git a/src/cloudflare/types/radar/bgp/hijacks/event_list_response.py b/src/cloudflare/types/radar/bgp/hijacks/event_list_response.py index 12b095996..1d28e50b2 100644 --- a/src/cloudflare/types/radar/bgp/hijacks/event_list_response.py +++ b/src/cloudflare/types/radar/bgp/hijacks/event_list_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["EventListResponse", "Result", "ResultASNInfo", "ResultEvent", "ResultEventTag", "ResultInfo"] diff --git a/src/cloudflare/types/radar/bgp/ip_timeseries_params.py b/src/cloudflare/types/radar/bgp/ip_timeseries_params.py index 276e72fb5..4eead42ac 100644 --- a/src/cloudflare/types/radar/bgp/ip_timeseries_params.py +++ b/src/cloudflare/types/radar/bgp/ip_timeseries_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["IPTimeseriesParams"] diff --git a/src/cloudflare/types/radar/bgp/ip_timeseries_response.py b/src/cloudflare/types/radar/bgp/ip_timeseries_response.py index 2914195b4..a1ca89321 100644 --- a/src/cloudflare/types/radar/bgp/ip_timeseries_response.py +++ b/src/cloudflare/types/radar/bgp/ip_timeseries_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["IPTimeseriesResponse", "Meta", "MetaQuery", "MetaQueryDateRange", "Serie174"] diff --git a/src/cloudflare/types/radar/bgp/leaks/__init__.py b/src/cloudflare/types/radar/bgp/leaks/__init__.py index d29c1ad5b..c9d802c01 100644 --- a/src/cloudflare/types/radar/bgp/leaks/__init__.py +++ b/src/cloudflare/types/radar/bgp/leaks/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .event_list_response import EventListResponse as EventListResponse from .event_list_params import EventListParams as EventListParams +from .event_list_response import EventListResponse as EventListResponse diff --git a/src/cloudflare/types/radar/bgp/leaks/event_list_params.py b/src/cloudflare/types/radar/bgp/leaks/event_list_params.py index 5dac78430..a9773f39d 100644 --- a/src/cloudflare/types/radar/bgp/leaks/event_list_params.py +++ b/src/cloudflare/types/radar/bgp/leaks/event_list_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["EventListParams"] diff --git a/src/cloudflare/types/radar/bgp/leaks/event_list_response.py b/src/cloudflare/types/radar/bgp/leaks/event_list_response.py index 50d05cffc..2a5447b03 100644 --- a/src/cloudflare/types/radar/bgp/leaks/event_list_response.py +++ b/src/cloudflare/types/radar/bgp/leaks/event_list_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["EventListResponse", "Result", "ResultASNInfo", "ResultEvent", "ResultInfo"] diff --git a/src/cloudflare/types/radar/bgp/route_ases_params.py b/src/cloudflare/types/radar/bgp/route_ases_params.py index b73fdeba1..734a74168 100644 --- a/src/cloudflare/types/radar/bgp/route_ases_params.py +++ b/src/cloudflare/types/radar/bgp/route_ases_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["RouteAsesParams"] diff --git a/src/cloudflare/types/radar/bgp/route_ases_response.py b/src/cloudflare/types/radar/bgp/route_ases_response.py index 8531e214c..56e851baf 100644 --- a/src/cloudflare/types/radar/bgp/route_ases_response.py +++ b/src/cloudflare/types/radar/bgp/route_ases_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["RouteAsesResponse", "ASN", "Meta"] diff --git a/src/cloudflare/types/radar/bgp/route_moas_params.py b/src/cloudflare/types/radar/bgp/route_moas_params.py index 930e1e0fd..8bf9d86d6 100644 --- a/src/cloudflare/types/radar/bgp/route_moas_params.py +++ b/src/cloudflare/types/radar/bgp/route_moas_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, TypedDict __all__ = ["RouteMoasParams"] diff --git a/src/cloudflare/types/radar/bgp/route_moas_response.py b/src/cloudflare/types/radar/bgp/route_moas_response.py index 13eee5c04..13918ba1f 100644 --- a/src/cloudflare/types/radar/bgp/route_moas_response.py +++ b/src/cloudflare/types/radar/bgp/route_moas_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["RouteMoasResponse", "Meta", "Moa", "MoaOrigin"] diff --git a/src/cloudflare/types/radar/bgp/route_pfx2as_params.py b/src/cloudflare/types/radar/bgp/route_pfx2as_params.py index 6c79ff42b..caa3a87e8 100644 --- a/src/cloudflare/types/radar/bgp/route_pfx2as_params.py +++ b/src/cloudflare/types/radar/bgp/route_pfx2as_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["RoutePfx2asParams"] diff --git a/src/cloudflare/types/radar/bgp/route_pfx2as_response.py b/src/cloudflare/types/radar/bgp/route_pfx2as_response.py index d1222b753..2bcf9de4e 100644 --- a/src/cloudflare/types/radar/bgp/route_pfx2as_response.py +++ b/src/cloudflare/types/radar/bgp/route_pfx2as_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["RoutePfx2asResponse", "Meta", "PrefixOrigin"] diff --git a/src/cloudflare/types/radar/bgp/route_stats_params.py b/src/cloudflare/types/radar/bgp/route_stats_params.py index b13d5e4cc..0cd7211c5 100644 --- a/src/cloudflare/types/radar/bgp/route_stats_params.py +++ b/src/cloudflare/types/radar/bgp/route_stats_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, TypedDict __all__ = ["RouteStatsParams"] diff --git a/src/cloudflare/types/radar/bgp/route_stats_response.py b/src/cloudflare/types/radar/bgp/route_stats_response.py index 089653770..65e83a79c 100644 --- a/src/cloudflare/types/radar/bgp/route_stats_response.py +++ b/src/cloudflare/types/radar/bgp/route_stats_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["RouteStatsResponse", "Meta", "Stats"] diff --git a/src/cloudflare/types/radar/bgp/top/__init__.py b/src/cloudflare/types/radar/bgp/top/__init__.py index f21d2b831..4a4e4651e 100644 --- a/src/cloudflare/types/radar/bgp/top/__init__.py +++ b/src/cloudflare/types/radar/bgp/top/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations -from .ase_get_response import AseGetResponse as AseGetResponse -from .ase_prefixes_response import AsePrefixesResponse as AsePrefixesResponse from .ase_get_params import AseGetParams as AseGetParams +from .ase_get_response import AseGetResponse as AseGetResponse from .ase_prefixes_params import AsePrefixesParams as AsePrefixesParams +from .ase_prefixes_response import AsePrefixesResponse as AsePrefixesResponse diff --git a/src/cloudflare/types/radar/bgp/top/ase_get_params.py b/src/cloudflare/types/radar/bgp/top/ase_get_params.py index 2cd609031..4073484c0 100644 --- a/src/cloudflare/types/radar/bgp/top/ase_get_params.py +++ b/src/cloudflare/types/radar/bgp/top/ase_get_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["AseGetParams"] diff --git a/src/cloudflare/types/radar/bgp/top/ase_get_response.py b/src/cloudflare/types/radar/bgp/top/ase_get_response.py index cf1bb7934..e891e99ce 100644 --- a/src/cloudflare/types/radar/bgp/top/ase_get_response.py +++ b/src/cloudflare/types/radar/bgp/top/ase_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List from datetime import datetime -from typing import List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["AseGetResponse", "Meta", "MetaDateRange", "Top0"] diff --git a/src/cloudflare/types/radar/bgp/top/ase_prefixes_params.py b/src/cloudflare/types/radar/bgp/top/ase_prefixes_params.py index 776c83982..c9c9492ee 100644 --- a/src/cloudflare/types/radar/bgp/top/ase_prefixes_params.py +++ b/src/cloudflare/types/radar/bgp/top/ase_prefixes_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from typing_extensions import Literal, TypedDict __all__ = ["AsePrefixesParams"] diff --git a/src/cloudflare/types/radar/bgp/top/ase_prefixes_response.py b/src/cloudflare/types/radar/bgp/top/ase_prefixes_response.py index 5a4269fa9..e0a853b09 100644 --- a/src/cloudflare/types/radar/bgp/top/ase_prefixes_response.py +++ b/src/cloudflare/types/radar/bgp/top/ase_prefixes_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["AsePrefixesResponse", "ASN", "Meta"] diff --git a/src/cloudflare/types/radar/bgp/top_prefixes_params.py b/src/cloudflare/types/radar/bgp/top_prefixes_params.py index 1a9a4ba8a..a73c20fb3 100644 --- a/src/cloudflare/types/radar/bgp/top_prefixes_params.py +++ b/src/cloudflare/types/radar/bgp/top_prefixes_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["TopPrefixesParams"] diff --git a/src/cloudflare/types/radar/bgp/top_prefixes_response.py b/src/cloudflare/types/radar/bgp/top_prefixes_response.py index 78a0bb1c5..9f5e92716 100644 --- a/src/cloudflare/types/radar/bgp/top_prefixes_response.py +++ b/src/cloudflare/types/radar/bgp/top_prefixes_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List from datetime import datetime -from typing import List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["TopPrefixesResponse", "Meta", "MetaDateRange", "Top0"] diff --git a/src/cloudflare/types/radar/bgp_timeseries_params.py b/src/cloudflare/types/radar/bgp_timeseries_params.py index a936ae33d..df2ef13b5 100644 --- a/src/cloudflare/types/radar/bgp_timeseries_params.py +++ b/src/cloudflare/types/radar/bgp_timeseries_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ..._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes from ..._utils import PropertyInfo __all__ = ["BGPTimeseriesParams"] diff --git a/src/cloudflare/types/radar/bgp_timeseries_response.py b/src/cloudflare/types/radar/bgp_timeseries_response.py index ac6344e83..b3ca270da 100644 --- a/src/cloudflare/types/radar/bgp_timeseries_response.py +++ b/src/cloudflare/types/radar/bgp_timeseries_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = [ "BGPTimeseriesResponse", "Meta", diff --git a/src/cloudflare/types/radar/dataset_download_params.py b/src/cloudflare/types/radar/dataset_download_params.py index bcda3120a..6921739ca 100644 --- a/src/cloudflare/types/radar/dataset_download_params.py +++ b/src/cloudflare/types/radar/dataset_download_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Required, Literal +from typing_extensions import Literal, Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["DatasetDownloadParams"] diff --git a/src/cloudflare/types/radar/dataset_download_response.py b/src/cloudflare/types/radar/dataset_download_response.py index c6a60b79c..3b8bb8376 100644 --- a/src/cloudflare/types/radar/dataset_download_response.py +++ b/src/cloudflare/types/radar/dataset_download_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["DatasetDownloadResponse", "Dataset"] diff --git a/src/cloudflare/types/radar/dataset_get_response.py b/src/cloudflare/types/radar/dataset_get_response.py index 948ac1e73..fc3329cd5 100644 --- a/src/cloudflare/types/radar/dataset_get_response.py +++ b/src/cloudflare/types/radar/dataset_get_response.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["DatasetGetResponse"] DatasetGetResponse: TypeAlias = str diff --git a/src/cloudflare/types/radar/dataset_list_params.py b/src/cloudflare/types/radar/dataset_list_params.py index 8bbe00a5a..9e2a161f3 100644 --- a/src/cloudflare/types/radar/dataset_list_params.py +++ b/src/cloudflare/types/radar/dataset_list_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated +from typing_extensions import Literal, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["DatasetListParams"] diff --git a/src/cloudflare/types/radar/dataset_list_response.py b/src/cloudflare/types/radar/dataset_list_response.py index 6b0aae373..648ca382f 100644 --- a/src/cloudflare/types/radar/dataset_list_response.py +++ b/src/cloudflare/types/radar/dataset_list_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["DatasetListResponse", "Dataset"] diff --git a/src/cloudflare/types/radar/dns/__init__.py b/src/cloudflare/types/radar/dns/__init__.py index a0a9c34bb..4bc84848b 100644 --- a/src/cloudflare/types/radar/dns/__init__.py +++ b/src/cloudflare/types/radar/dns/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations -from .top_ases_response import TopAsesResponse as TopAsesResponse -from .top_locations_response import TopLocationsResponse as TopLocationsResponse from .top_ases_params import TopAsesParams as TopAsesParams +from .top_ases_response import TopAsesResponse as TopAsesResponse from .top_locations_params import TopLocationsParams as TopLocationsParams +from .top_locations_response import TopLocationsResponse as TopLocationsResponse diff --git a/src/cloudflare/types/radar/dns/top_ases_params.py b/src/cloudflare/types/radar/dns/top_ases_params.py index 517c94beb..fed6e0438 100644 --- a/src/cloudflare/types/radar/dns/top_ases_params.py +++ b/src/cloudflare/types/radar/dns/top_ases_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Required, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["TopAsesParams"] diff --git a/src/cloudflare/types/radar/dns/top_ases_response.py b/src/cloudflare/types/radar/dns/top_ases_response.py index 86eadee96..e87c9d659 100644 --- a/src/cloudflare/types/radar/dns/top_ases_response.py +++ b/src/cloudflare/types/radar/dns/top_ases_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["TopAsesResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/dns/top_locations_params.py b/src/cloudflare/types/radar/dns/top_locations_params.py index 545a474ea..a0f8a46d7 100644 --- a/src/cloudflare/types/radar/dns/top_locations_params.py +++ b/src/cloudflare/types/radar/dns/top_locations_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Required, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["TopLocationsParams"] diff --git a/src/cloudflare/types/radar/dns/top_locations_response.py b/src/cloudflare/types/radar/dns/top_locations_response.py index 06e23439d..4be71f2a0 100644 --- a/src/cloudflare/types/radar/dns/top_locations_response.py +++ b/src/cloudflare/types/radar/dns/top_locations_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "TopLocationsResponse", "Meta", diff --git a/src/cloudflare/types/radar/email/routing/__init__.py b/src/cloudflare/types/radar/email/routing/__init__.py index 5c0e93077..c5aee743f 100644 --- a/src/cloudflare/types/radar/email/routing/__init__.py +++ b/src/cloudflare/types/radar/email/routing/__init__.py @@ -2,27 +2,27 @@ from __future__ import annotations +from .summary_arc_params import SummaryARCParams as SummaryARCParams +from .summary_spf_params import SummarySPFParams as SummarySPFParams +from .summary_dkim_params import SummaryDKIMParams as SummaryDKIMParams from .summary_arc_response import SummaryARCResponse as SummaryARCResponse +from .summary_dmarc_params import SummaryDMARCParams as SummaryDMARCParams +from .summary_spf_response import SummarySPFResponse as SummarySPFResponse from .summary_dkim_response import SummaryDKIMResponse as SummaryDKIMResponse from .summary_dmarc_response import SummaryDMARCResponse as SummaryDMARCResponse -from .summary_encrypted_response import SummaryEncryptedResponse as SummaryEncryptedResponse -from .summary_ip_version_response import SummaryIPVersionResponse as SummaryIPVersionResponse -from .summary_spf_response import SummarySPFResponse as SummarySPFResponse -from .summary_arc_params import SummaryARCParams as SummaryARCParams -from .summary_dkim_params import SummaryDKIMParams as SummaryDKIMParams -from .summary_dmarc_params import SummaryDMARCParams as SummaryDMARCParams from .summary_encrypted_params import SummaryEncryptedParams as SummaryEncryptedParams from .summary_ip_version_params import SummaryIPVersionParams as SummaryIPVersionParams -from .summary_spf_params import SummarySPFParams as SummarySPFParams +from .summary_encrypted_response import SummaryEncryptedResponse as SummaryEncryptedResponse +from .summary_ip_version_response import SummaryIPVersionResponse as SummaryIPVersionResponse +from .timeseries_group_arc_params import TimeseriesGroupARCParams as TimeseriesGroupARCParams +from .timeseries_group_spf_params import TimeseriesGroupSPFParams as TimeseriesGroupSPFParams +from .timeseries_group_dkim_params import TimeseriesGroupDKIMParams as TimeseriesGroupDKIMParams from .timeseries_group_arc_response import TimeseriesGroupARCResponse as TimeseriesGroupARCResponse +from .timeseries_group_dmarc_params import TimeseriesGroupDMARCParams as TimeseriesGroupDMARCParams +from .timeseries_group_spf_response import TimeseriesGroupSPFResponse as TimeseriesGroupSPFResponse from .timeseries_group_dkim_response import TimeseriesGroupDKIMResponse as TimeseriesGroupDKIMResponse from .timeseries_group_dmarc_response import TimeseriesGroupDMARCResponse as TimeseriesGroupDMARCResponse -from .timeseries_group_encrypted_response import TimeseriesGroupEncryptedResponse as TimeseriesGroupEncryptedResponse -from .timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse as TimeseriesGroupIPVersionResponse -from .timeseries_group_spf_response import TimeseriesGroupSPFResponse as TimeseriesGroupSPFResponse -from .timeseries_group_arc_params import TimeseriesGroupARCParams as TimeseriesGroupARCParams -from .timeseries_group_dkim_params import TimeseriesGroupDKIMParams as TimeseriesGroupDKIMParams -from .timeseries_group_dmarc_params import TimeseriesGroupDMARCParams as TimeseriesGroupDMARCParams from .timeseries_group_encrypted_params import TimeseriesGroupEncryptedParams as TimeseriesGroupEncryptedParams from .timeseries_group_ip_version_params import TimeseriesGroupIPVersionParams as TimeseriesGroupIPVersionParams -from .timeseries_group_spf_params import TimeseriesGroupSPFParams as TimeseriesGroupSPFParams +from .timeseries_group_encrypted_response import TimeseriesGroupEncryptedResponse as TimeseriesGroupEncryptedResponse +from .timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse as TimeseriesGroupIPVersionResponse diff --git a/src/cloudflare/types/radar/email/routing/summary_arc_params.py b/src/cloudflare/types/radar/email/routing/summary_arc_params.py index fb4e9acfc..58c3c1218 100644 --- a/src/cloudflare/types/radar/email/routing/summary_arc_params.py +++ b/src/cloudflare/types/radar/email/routing/summary_arc_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryARCParams"] diff --git a/src/cloudflare/types/radar/email/routing/summary_arc_response.py b/src/cloudflare/types/radar/email/routing/summary_arc_response.py index ce833aeac..274e9a535 100644 --- a/src/cloudflare/types/radar/email/routing/summary_arc_response.py +++ b/src/cloudflare/types/radar/email/routing/summary_arc_response.py @@ -1,17 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from ...radar_email_summary import RadarEmailSummary - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel +from ...radar_email_summary import RadarEmailSummary + __all__ = ["SummaryARCResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] diff --git a/src/cloudflare/types/radar/email/routing/summary_dkim_params.py b/src/cloudflare/types/radar/email/routing/summary_dkim_params.py index b03ffe8ac..19be32494 100644 --- a/src/cloudflare/types/radar/email/routing/summary_dkim_params.py +++ b/src/cloudflare/types/radar/email/routing/summary_dkim_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryDKIMParams"] diff --git a/src/cloudflare/types/radar/email/routing/summary_dkim_response.py b/src/cloudflare/types/radar/email/routing/summary_dkim_response.py index 7f43c9a8c..df8a79048 100644 --- a/src/cloudflare/types/radar/email/routing/summary_dkim_response.py +++ b/src/cloudflare/types/radar/email/routing/summary_dkim_response.py @@ -1,17 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from ...radar_email_summary import RadarEmailSummary - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel +from ...radar_email_summary import RadarEmailSummary + __all__ = ["SummaryDKIMResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] diff --git a/src/cloudflare/types/radar/email/routing/summary_dmarc_params.py b/src/cloudflare/types/radar/email/routing/summary_dmarc_params.py index 4abfdafb2..f356077e0 100644 --- a/src/cloudflare/types/radar/email/routing/summary_dmarc_params.py +++ b/src/cloudflare/types/radar/email/routing/summary_dmarc_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryDMARCParams"] diff --git a/src/cloudflare/types/radar/email/routing/summary_dmarc_response.py b/src/cloudflare/types/radar/email/routing/summary_dmarc_response.py index e0167fc4b..0563a7422 100644 --- a/src/cloudflare/types/radar/email/routing/summary_dmarc_response.py +++ b/src/cloudflare/types/radar/email/routing/summary_dmarc_response.py @@ -1,17 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from ...radar_email_summary import RadarEmailSummary - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel +from ...radar_email_summary import RadarEmailSummary + __all__ = ["SummaryDMARCResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] diff --git a/src/cloudflare/types/radar/email/routing/summary_encrypted_params.py b/src/cloudflare/types/radar/email/routing/summary_encrypted_params.py index 2204f5ab3..b65534481 100644 --- a/src/cloudflare/types/radar/email/routing/summary_encrypted_params.py +++ b/src/cloudflare/types/radar/email/routing/summary_encrypted_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryEncryptedParams"] diff --git a/src/cloudflare/types/radar/email/routing/summary_encrypted_response.py b/src/cloudflare/types/radar/email/routing/summary_encrypted_response.py index ceb4596c0..5461181d3 100644 --- a/src/cloudflare/types/radar/email/routing/summary_encrypted_response.py +++ b/src/cloudflare/types/radar/email/routing/summary_encrypted_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "SummaryEncryptedResponse", "Meta", diff --git a/src/cloudflare/types/radar/email/routing/summary_ip_version_params.py b/src/cloudflare/types/radar/email/routing/summary_ip_version_params.py index 7e94d764a..a1e7d6396 100644 --- a/src/cloudflare/types/radar/email/routing/summary_ip_version_params.py +++ b/src/cloudflare/types/radar/email/routing/summary_ip_version_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryIPVersionParams"] diff --git a/src/cloudflare/types/radar/email/routing/summary_ip_version_response.py b/src/cloudflare/types/radar/email/routing/summary_ip_version_response.py index 38e6dba83..e1a3995c7 100644 --- a/src/cloudflare/types/radar/email/routing/summary_ip_version_response.py +++ b/src/cloudflare/types/radar/email/routing/summary_ip_version_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "SummaryIPVersionResponse", "Meta", diff --git a/src/cloudflare/types/radar/email/routing/summary_spf_params.py b/src/cloudflare/types/radar/email/routing/summary_spf_params.py index 938aab166..f594b1931 100644 --- a/src/cloudflare/types/radar/email/routing/summary_spf_params.py +++ b/src/cloudflare/types/radar/email/routing/summary_spf_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummarySPFParams"] diff --git a/src/cloudflare/types/radar/email/routing/summary_spf_response.py b/src/cloudflare/types/radar/email/routing/summary_spf_response.py index d14281d7c..9cd062e39 100644 --- a/src/cloudflare/types/radar/email/routing/summary_spf_response.py +++ b/src/cloudflare/types/radar/email/routing/summary_spf_response.py @@ -1,17 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from ...radar_email_summary import RadarEmailSummary - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel +from ...radar_email_summary import RadarEmailSummary + __all__ = ["SummarySPFResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_arc_params.py b/src/cloudflare/types/radar/email/routing/timeseries_group_arc_params.py index f34c3f89f..2c950448f 100644 --- a/src/cloudflare/types/radar/email/routing/timeseries_group_arc_params.py +++ b/src/cloudflare/types/radar/email/routing/timeseries_group_arc_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupARCParams"] diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_arc_response.py b/src/cloudflare/types/radar/email/routing/timeseries_group_arc_response.py index 4bc2f76ba..68e15b2ca 100644 --- a/src/cloudflare/types/radar/email/routing/timeseries_group_arc_response.py +++ b/src/cloudflare/types/radar/email/routing/timeseries_group_arc_response.py @@ -1,13 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ....._models import BaseModel - from ...radar_email_series import RadarEmailSeries -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["TimeseriesGroupARCResponse"] diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_dkim_params.py b/src/cloudflare/types/radar/email/routing/timeseries_group_dkim_params.py index 5a26013ce..28c98ab3c 100644 --- a/src/cloudflare/types/radar/email/routing/timeseries_group_dkim_params.py +++ b/src/cloudflare/types/radar/email/routing/timeseries_group_dkim_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupDKIMParams"] diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_dkim_response.py b/src/cloudflare/types/radar/email/routing/timeseries_group_dkim_response.py index 23bb72422..0495c34b2 100644 --- a/src/cloudflare/types/radar/email/routing/timeseries_group_dkim_response.py +++ b/src/cloudflare/types/radar/email/routing/timeseries_group_dkim_response.py @@ -1,13 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ....._models import BaseModel - from ...radar_email_series import RadarEmailSeries -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["TimeseriesGroupDKIMResponse"] diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_dmarc_params.py b/src/cloudflare/types/radar/email/routing/timeseries_group_dmarc_params.py index 9b35620fd..71271e551 100644 --- a/src/cloudflare/types/radar/email/routing/timeseries_group_dmarc_params.py +++ b/src/cloudflare/types/radar/email/routing/timeseries_group_dmarc_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupDMARCParams"] diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_dmarc_response.py b/src/cloudflare/types/radar/email/routing/timeseries_group_dmarc_response.py index 15b9f5cfa..2221b842e 100644 --- a/src/cloudflare/types/radar/email/routing/timeseries_group_dmarc_response.py +++ b/src/cloudflare/types/radar/email/routing/timeseries_group_dmarc_response.py @@ -1,13 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ....._models import BaseModel - from ...radar_email_series import RadarEmailSeries -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["TimeseriesGroupDMARCResponse"] diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_encrypted_params.py b/src/cloudflare/types/radar/email/routing/timeseries_group_encrypted_params.py index 6e327650b..093524f3b 100644 --- a/src/cloudflare/types/radar/email/routing/timeseries_group_encrypted_params.py +++ b/src/cloudflare/types/radar/email/routing/timeseries_group_encrypted_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupEncryptedParams"] diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_encrypted_response.py b/src/cloudflare/types/radar/email/routing/timeseries_group_encrypted_response.py index 760eb565e..e6d73b1a0 100644 --- a/src/cloudflare/types/radar/email/routing/timeseries_group_encrypted_response.py +++ b/src/cloudflare/types/radar/email/routing/timeseries_group_encrypted_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["TimeseriesGroupEncryptedResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_ip_version_params.py b/src/cloudflare/types/radar/email/routing/timeseries_group_ip_version_params.py index 467858a67..f264feafd 100644 --- a/src/cloudflare/types/radar/email/routing/timeseries_group_ip_version_params.py +++ b/src/cloudflare/types/radar/email/routing/timeseries_group_ip_version_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupIPVersionParams"] diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_ip_version_response.py b/src/cloudflare/types/radar/email/routing/timeseries_group_ip_version_response.py index 743715b8c..613041d35 100644 --- a/src/cloudflare/types/radar/email/routing/timeseries_group_ip_version_response.py +++ b/src/cloudflare/types/radar/email/routing/timeseries_group_ip_version_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["TimeseriesGroupIPVersionResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_spf_params.py b/src/cloudflare/types/radar/email/routing/timeseries_group_spf_params.py index 9f8015d13..22168b70e 100644 --- a/src/cloudflare/types/radar/email/routing/timeseries_group_spf_params.py +++ b/src/cloudflare/types/radar/email/routing/timeseries_group_spf_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupSPFParams"] diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_spf_response.py b/src/cloudflare/types/radar/email/routing/timeseries_group_spf_response.py index 3e8a41cba..fbca7a77b 100644 --- a/src/cloudflare/types/radar/email/routing/timeseries_group_spf_response.py +++ b/src/cloudflare/types/radar/email/routing/timeseries_group_spf_response.py @@ -1,13 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ....._models import BaseModel - from ...radar_email_series import RadarEmailSeries -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["TimeseriesGroupSPFResponse"] diff --git a/src/cloudflare/types/radar/email/security/__init__.py b/src/cloudflare/types/radar/email/security/__init__.py index d3e701f48..a3d3364ea 100644 --- a/src/cloudflare/types/radar/email/security/__init__.py +++ b/src/cloudflare/types/radar/email/security/__init__.py @@ -2,45 +2,45 @@ from __future__ import annotations -from .summary_arc_response import SummaryARCResponse as SummaryARCResponse -from .summary_dkim_response import SummaryDKIMResponse as SummaryDKIMResponse -from .summary_dmarc_response import SummaryDMARCResponse as SummaryDMARCResponse -from .summary_malicious_response import SummaryMaliciousResponse as SummaryMaliciousResponse -from .summary_spam_response import SummarySpamResponse as SummarySpamResponse -from .summary_spf_response import SummarySPFResponse as SummarySPFResponse -from .summary_spoof_response import SummarySpoofResponse as SummarySpoofResponse -from .summary_threat_category_response import SummaryThreatCategoryResponse as SummaryThreatCategoryResponse -from .summary_tls_version_response import SummaryTLSVersionResponse as SummaryTLSVersionResponse from .summary_arc_params import SummaryARCParams as SummaryARCParams -from .summary_dkim_params import SummaryDKIMParams as SummaryDKIMParams -from .summary_dmarc_params import SummaryDMARCParams as SummaryDMARCParams -from .summary_malicious_params import SummaryMaliciousParams as SummaryMaliciousParams -from .summary_spam_params import SummarySpamParams as SummarySpamParams from .summary_spf_params import SummarySPFParams as SummarySPFParams +from .summary_dkim_params import SummaryDKIMParams as SummaryDKIMParams +from .summary_spam_params import SummarySpamParams as SummarySpamParams +from .summary_arc_response import SummaryARCResponse as SummaryARCResponse +from .summary_dmarc_params import SummaryDMARCParams as SummaryDMARCParams +from .summary_spf_response import SummarySPFResponse as SummarySPFResponse from .summary_spoof_params import SummarySpoofParams as SummarySpoofParams -from .summary_threat_category_params import SummaryThreatCategoryParams as SummaryThreatCategoryParams +from .summary_dkim_response import SummaryDKIMResponse as SummaryDKIMResponse +from .summary_spam_response import SummarySpamResponse as SummarySpamResponse +from .summary_dmarc_response import SummaryDMARCResponse as SummaryDMARCResponse +from .summary_spoof_response import SummarySpoofResponse as SummarySpoofResponse +from .summary_malicious_params import SummaryMaliciousParams as SummaryMaliciousParams +from .summary_malicious_response import SummaryMaliciousResponse as SummaryMaliciousResponse from .summary_tls_version_params import SummaryTLSVersionParams as SummaryTLSVersionParams +from .timeseries_group_arc_params import TimeseriesGroupARCParams as TimeseriesGroupARCParams +from .timeseries_group_spf_params import TimeseriesGroupSPFParams as TimeseriesGroupSPFParams +from .summary_tls_version_response import SummaryTLSVersionResponse as SummaryTLSVersionResponse +from .timeseries_group_dkim_params import TimeseriesGroupDKIMParams as TimeseriesGroupDKIMParams +from .timeseries_group_spam_params import TimeseriesGroupSpamParams as TimeseriesGroupSpamParams from .timeseries_group_arc_response import TimeseriesGroupARCResponse as TimeseriesGroupARCResponse -from .timeseries_group_dkim_response import TimeseriesGroupDKIMResponse as TimeseriesGroupDKIMResponse -from .timeseries_group_dmarc_response import TimeseriesGroupDMARCResponse as TimeseriesGroupDMARCResponse -from .timeseries_group_malicious_response import TimeseriesGroupMaliciousResponse as TimeseriesGroupMaliciousResponse -from .timeseries_group_spam_response import TimeseriesGroupSpamResponse as TimeseriesGroupSpamResponse +from .timeseries_group_dmarc_params import TimeseriesGroupDMARCParams as TimeseriesGroupDMARCParams from .timeseries_group_spf_response import TimeseriesGroupSPFResponse as TimeseriesGroupSPFResponse +from .timeseries_group_spoof_params import TimeseriesGroupSpoofParams as TimeseriesGroupSpoofParams +from .summary_threat_category_params import SummaryThreatCategoryParams as SummaryThreatCategoryParams +from .timeseries_group_dkim_response import TimeseriesGroupDKIMResponse as TimeseriesGroupDKIMResponse +from .timeseries_group_spam_response import TimeseriesGroupSpamResponse as TimeseriesGroupSpamResponse +from .timeseries_group_dmarc_response import TimeseriesGroupDMARCResponse as TimeseriesGroupDMARCResponse from .timeseries_group_spoof_response import TimeseriesGroupSpoofResponse as TimeseriesGroupSpoofResponse -from .timeseries_group_threat_category_response import ( - TimeseriesGroupThreatCategoryResponse as TimeseriesGroupThreatCategoryResponse, -) +from .summary_threat_category_response import SummaryThreatCategoryResponse as SummaryThreatCategoryResponse +from .timeseries_group_malicious_params import TimeseriesGroupMaliciousParams as TimeseriesGroupMaliciousParams +from .timeseries_group_malicious_response import TimeseriesGroupMaliciousResponse as TimeseriesGroupMaliciousResponse +from .timeseries_group_tls_version_params import TimeseriesGroupTLSVersionParams as TimeseriesGroupTLSVersionParams from .timeseries_group_tls_version_response import ( TimeseriesGroupTLSVersionResponse as TimeseriesGroupTLSVersionResponse, ) -from .timeseries_group_arc_params import TimeseriesGroupARCParams as TimeseriesGroupARCParams -from .timeseries_group_dkim_params import TimeseriesGroupDKIMParams as TimeseriesGroupDKIMParams -from .timeseries_group_dmarc_params import TimeseriesGroupDMARCParams as TimeseriesGroupDMARCParams -from .timeseries_group_malicious_params import TimeseriesGroupMaliciousParams as TimeseriesGroupMaliciousParams -from .timeseries_group_spam_params import TimeseriesGroupSpamParams as TimeseriesGroupSpamParams -from .timeseries_group_spf_params import TimeseriesGroupSPFParams as TimeseriesGroupSPFParams -from .timeseries_group_spoof_params import TimeseriesGroupSpoofParams as TimeseriesGroupSpoofParams from .timeseries_group_threat_category_params import ( TimeseriesGroupThreatCategoryParams as TimeseriesGroupThreatCategoryParams, ) -from .timeseries_group_tls_version_params import TimeseriesGroupTLSVersionParams as TimeseriesGroupTLSVersionParams +from .timeseries_group_threat_category_response import ( + TimeseriesGroupThreatCategoryResponse as TimeseriesGroupThreatCategoryResponse, +) diff --git a/src/cloudflare/types/radar/email/security/summary_arc_params.py b/src/cloudflare/types/radar/email/security/summary_arc_params.py index 365c0233c..b141a65af 100644 --- a/src/cloudflare/types/radar/email/security/summary_arc_params.py +++ b/src/cloudflare/types/radar/email/security/summary_arc_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryARCParams"] diff --git a/src/cloudflare/types/radar/email/security/summary_arc_response.py b/src/cloudflare/types/radar/email/security/summary_arc_response.py index ce833aeac..274e9a535 100644 --- a/src/cloudflare/types/radar/email/security/summary_arc_response.py +++ b/src/cloudflare/types/radar/email/security/summary_arc_response.py @@ -1,17 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from ...radar_email_summary import RadarEmailSummary - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel +from ...radar_email_summary import RadarEmailSummary + __all__ = ["SummaryARCResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] diff --git a/src/cloudflare/types/radar/email/security/summary_dkim_params.py b/src/cloudflare/types/radar/email/security/summary_dkim_params.py index 6fa3542de..f92d75457 100644 --- a/src/cloudflare/types/radar/email/security/summary_dkim_params.py +++ b/src/cloudflare/types/radar/email/security/summary_dkim_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryDKIMParams"] diff --git a/src/cloudflare/types/radar/email/security/summary_dkim_response.py b/src/cloudflare/types/radar/email/security/summary_dkim_response.py index 7f43c9a8c..df8a79048 100644 --- a/src/cloudflare/types/radar/email/security/summary_dkim_response.py +++ b/src/cloudflare/types/radar/email/security/summary_dkim_response.py @@ -1,17 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from ...radar_email_summary import RadarEmailSummary - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel +from ...radar_email_summary import RadarEmailSummary + __all__ = ["SummaryDKIMResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] diff --git a/src/cloudflare/types/radar/email/security/summary_dmarc_params.py b/src/cloudflare/types/radar/email/security/summary_dmarc_params.py index 564e8661b..f31a3218c 100644 --- a/src/cloudflare/types/radar/email/security/summary_dmarc_params.py +++ b/src/cloudflare/types/radar/email/security/summary_dmarc_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryDMARCParams"] diff --git a/src/cloudflare/types/radar/email/security/summary_dmarc_response.py b/src/cloudflare/types/radar/email/security/summary_dmarc_response.py index e0167fc4b..0563a7422 100644 --- a/src/cloudflare/types/radar/email/security/summary_dmarc_response.py +++ b/src/cloudflare/types/radar/email/security/summary_dmarc_response.py @@ -1,17 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from ...radar_email_summary import RadarEmailSummary - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel +from ...radar_email_summary import RadarEmailSummary + __all__ = ["SummaryDMARCResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] diff --git a/src/cloudflare/types/radar/email/security/summary_malicious_params.py b/src/cloudflare/types/radar/email/security/summary_malicious_params.py index 3d6a35bfe..432685036 100644 --- a/src/cloudflare/types/radar/email/security/summary_malicious_params.py +++ b/src/cloudflare/types/radar/email/security/summary_malicious_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryMaliciousParams"] diff --git a/src/cloudflare/types/radar/email/security/summary_malicious_response.py b/src/cloudflare/types/radar/email/security/summary_malicious_response.py index 2f5042e8f..44426a6e8 100644 --- a/src/cloudflare/types/radar/email/security/summary_malicious_response.py +++ b/src/cloudflare/types/radar/email/security/summary_malicious_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "SummaryMaliciousResponse", "Meta", diff --git a/src/cloudflare/types/radar/email/security/summary_spam_params.py b/src/cloudflare/types/radar/email/security/summary_spam_params.py index 26760db2b..bc535bf3a 100644 --- a/src/cloudflare/types/radar/email/security/summary_spam_params.py +++ b/src/cloudflare/types/radar/email/security/summary_spam_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummarySpamParams"] diff --git a/src/cloudflare/types/radar/email/security/summary_spam_response.py b/src/cloudflare/types/radar/email/security/summary_spam_response.py index 6fa9273b2..4fe4f3c51 100644 --- a/src/cloudflare/types/radar/email/security/summary_spam_response.py +++ b/src/cloudflare/types/radar/email/security/summary_spam_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "SummarySpamResponse", "Meta", diff --git a/src/cloudflare/types/radar/email/security/summary_spf_params.py b/src/cloudflare/types/radar/email/security/summary_spf_params.py index 08fecc118..43e4ba10c 100644 --- a/src/cloudflare/types/radar/email/security/summary_spf_params.py +++ b/src/cloudflare/types/radar/email/security/summary_spf_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummarySPFParams"] diff --git a/src/cloudflare/types/radar/email/security/summary_spf_response.py b/src/cloudflare/types/radar/email/security/summary_spf_response.py index d14281d7c..9cd062e39 100644 --- a/src/cloudflare/types/radar/email/security/summary_spf_response.py +++ b/src/cloudflare/types/radar/email/security/summary_spf_response.py @@ -1,17 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from ...radar_email_summary import RadarEmailSummary - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel +from ...radar_email_summary import RadarEmailSummary + __all__ = ["SummarySPFResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"] diff --git a/src/cloudflare/types/radar/email/security/summary_spoof_params.py b/src/cloudflare/types/radar/email/security/summary_spoof_params.py index 1c883dbe8..f82a3b585 100644 --- a/src/cloudflare/types/radar/email/security/summary_spoof_params.py +++ b/src/cloudflare/types/radar/email/security/summary_spoof_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummarySpoofParams"] diff --git a/src/cloudflare/types/radar/email/security/summary_spoof_response.py b/src/cloudflare/types/radar/email/security/summary_spoof_response.py index d21e31d28..b9e738ea0 100644 --- a/src/cloudflare/types/radar/email/security/summary_spoof_response.py +++ b/src/cloudflare/types/radar/email/security/summary_spoof_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "SummarySpoofResponse", "Meta", diff --git a/src/cloudflare/types/radar/email/security/summary_threat_category_params.py b/src/cloudflare/types/radar/email/security/summary_threat_category_params.py index d5f1515a8..c38e50ac6 100644 --- a/src/cloudflare/types/radar/email/security/summary_threat_category_params.py +++ b/src/cloudflare/types/radar/email/security/summary_threat_category_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryThreatCategoryParams"] diff --git a/src/cloudflare/types/radar/email/security/summary_threat_category_response.py b/src/cloudflare/types/radar/email/security/summary_threat_category_response.py index 3bf5e1121..36e2d29bb 100644 --- a/src/cloudflare/types/radar/email/security/summary_threat_category_response.py +++ b/src/cloudflare/types/radar/email/security/summary_threat_category_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "SummaryThreatCategoryResponse", "Meta", diff --git a/src/cloudflare/types/radar/email/security/summary_tls_version_params.py b/src/cloudflare/types/radar/email/security/summary_tls_version_params.py index cd2959f7f..4d7362e13 100644 --- a/src/cloudflare/types/radar/email/security/summary_tls_version_params.py +++ b/src/cloudflare/types/radar/email/security/summary_tls_version_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SummaryTLSVersionParams"] diff --git a/src/cloudflare/types/radar/email/security/summary_tls_version_response.py b/src/cloudflare/types/radar/email/security/summary_tls_version_response.py index ad1b27cf4..f9ea5ad07 100644 --- a/src/cloudflare/types/radar/email/security/summary_tls_version_response.py +++ b/src/cloudflare/types/radar/email/security/summary_tls_version_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "SummaryTLSVersionResponse", "Meta", diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_arc_params.py b/src/cloudflare/types/radar/email/security/timeseries_group_arc_params.py index bde2d2405..abc50a0d1 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_arc_params.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_arc_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupARCParams"] diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_arc_response.py b/src/cloudflare/types/radar/email/security/timeseries_group_arc_response.py index 4bc2f76ba..68e15b2ca 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_arc_response.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_arc_response.py @@ -1,13 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ....._models import BaseModel - from ...radar_email_series import RadarEmailSeries -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["TimeseriesGroupARCResponse"] diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_dkim_params.py b/src/cloudflare/types/radar/email/security/timeseries_group_dkim_params.py index b5e1d3b0e..25f67103f 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_dkim_params.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_dkim_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupDKIMParams"] diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_dkim_response.py b/src/cloudflare/types/radar/email/security/timeseries_group_dkim_response.py index 23bb72422..0495c34b2 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_dkim_response.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_dkim_response.py @@ -1,13 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ....._models import BaseModel - from ...radar_email_series import RadarEmailSeries -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["TimeseriesGroupDKIMResponse"] diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_dmarc_params.py b/src/cloudflare/types/radar/email/security/timeseries_group_dmarc_params.py index 95cc9fcb6..b6c44355b 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_dmarc_params.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_dmarc_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupDMARCParams"] diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_dmarc_response.py b/src/cloudflare/types/radar/email/security/timeseries_group_dmarc_response.py index 15b9f5cfa..2221b842e 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_dmarc_response.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_dmarc_response.py @@ -1,13 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ....._models import BaseModel - from ...radar_email_series import RadarEmailSeries -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["TimeseriesGroupDMARCResponse"] diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_malicious_params.py b/src/cloudflare/types/radar/email/security/timeseries_group_malicious_params.py index 3cdc3625d..4fadea147 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_malicious_params.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_malicious_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupMaliciousParams"] diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_malicious_response.py b/src/cloudflare/types/radar/email/security/timeseries_group_malicious_response.py index 8682d86a5..ad00ede30 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_malicious_response.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_malicious_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["TimeseriesGroupMaliciousResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_spam_params.py b/src/cloudflare/types/radar/email/security/timeseries_group_spam_params.py index 69fdb602c..cf290efb9 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_spam_params.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_spam_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupSpamParams"] diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_spam_response.py b/src/cloudflare/types/radar/email/security/timeseries_group_spam_response.py index d48b24de0..2ef1a4775 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_spam_response.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_spam_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["TimeseriesGroupSpamResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_spf_params.py b/src/cloudflare/types/radar/email/security/timeseries_group_spf_params.py index e0cb17e5b..02c8899e0 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_spf_params.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_spf_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupSPFParams"] diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_spf_response.py b/src/cloudflare/types/radar/email/security/timeseries_group_spf_response.py index 3e8a41cba..fbca7a77b 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_spf_response.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_spf_response.py @@ -1,13 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ....._models import BaseModel - from ...radar_email_series import RadarEmailSeries -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["TimeseriesGroupSPFResponse"] diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_spoof_params.py b/src/cloudflare/types/radar/email/security/timeseries_group_spoof_params.py index 3df5a0420..7192baec6 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_spoof_params.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_spoof_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupSpoofParams"] diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_spoof_response.py b/src/cloudflare/types/radar/email/security/timeseries_group_spoof_response.py index 358ac0011..e5df9bebb 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_spoof_response.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_spoof_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["TimeseriesGroupSpoofResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_threat_category_params.py b/src/cloudflare/types/radar/email/security/timeseries_group_threat_category_params.py index bf138d186..2db3534a3 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_threat_category_params.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_threat_category_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupThreatCategoryParams"] diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_threat_category_response.py b/src/cloudflare/types/radar/email/security/timeseries_group_threat_category_response.py index 5fb6487cf..001546718 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_threat_category_response.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_threat_category_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["TimeseriesGroupThreatCategoryResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_tls_version_params.py b/src/cloudflare/types/radar/email/security/timeseries_group_tls_version_params.py index ef08b8f0d..84a9ada00 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_tls_version_params.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_tls_version_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TimeseriesGroupTLSVersionParams"] diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_tls_version_response.py b/src/cloudflare/types/radar/email/security/timeseries_group_tls_version_response.py index 06b0c2059..8e41a8115 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_tls_version_response.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_tls_version_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["TimeseriesGroupTLSVersionResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/email/security/top/__init__.py b/src/cloudflare/types/radar/email/security/top/__init__.py index 86c8a4c09..99d37f109 100644 --- a/src/cloudflare/types/radar/email/security/top/__init__.py +++ b/src/cloudflare/types/radar/email/security/top/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .tld_get_response import TldGetResponse as TldGetResponse from .tld_get_params import TldGetParams as TldGetParams +from .tld_get_response import TldGetResponse as TldGetResponse diff --git a/src/cloudflare/types/radar/email/security/top/tld_get_params.py b/src/cloudflare/types/radar/email/security/top/tld_get_params.py index 1b7b9c8c3..3921a4e59 100644 --- a/src/cloudflare/types/radar/email/security/top/tld_get_params.py +++ b/src/cloudflare/types/radar/email/security/top/tld_get_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ......_utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ......_types import FileTypes -from ......_utils import PropertyInfo - __all__ = ["TldGetParams"] diff --git a/src/cloudflare/types/radar/email/security/top/tld_get_response.py b/src/cloudflare/types/radar/email/security/top/tld_get_response.py index fb266291f..49aa4d04c 100644 --- a/src/cloudflare/types/radar/email/security/top/tld_get_response.py +++ b/src/cloudflare/types/radar/email/security/top/tld_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ......_models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ......_models import BaseModel + __all__ = ["TldGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/email/security/top/tlds/__init__.py b/src/cloudflare/types/radar/email/security/top/tlds/__init__.py index 10e2b297c..2ae0fe70c 100644 --- a/src/cloudflare/types/radar/email/security/top/tlds/__init__.py +++ b/src/cloudflare/types/radar/email/security/top/tlds/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .malicious_get_response import MaliciousGetResponse as MaliciousGetResponse -from .malicious_get_params import MaliciousGetParams as MaliciousGetParams -from .spam_get_response import SpamGetResponse as SpamGetResponse from .spam_get_params import SpamGetParams as SpamGetParams -from .spoof_get_response import SpoofGetResponse as SpoofGetResponse from .spoof_get_params import SpoofGetParams as SpoofGetParams +from .spam_get_response import SpamGetResponse as SpamGetResponse +from .spoof_get_response import SpoofGetResponse as SpoofGetResponse +from .malicious_get_params import MaliciousGetParams as MaliciousGetParams +from .malicious_get_response import MaliciousGetResponse as MaliciousGetResponse diff --git a/src/cloudflare/types/radar/email/security/top/tlds/malicious_get_params.py b/src/cloudflare/types/radar/email/security/top/tlds/malicious_get_params.py index a56c72835..e1cc9a021 100644 --- a/src/cloudflare/types/radar/email/security/top/tlds/malicious_get_params.py +++ b/src/cloudflare/types/radar/email/security/top/tlds/malicious_get_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ......._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ......._types import FileTypes -from ......._utils import PropertyInfo - __all__ = ["MaliciousGetParams"] diff --git a/src/cloudflare/types/radar/email/security/top/tlds/malicious_get_response.py b/src/cloudflare/types/radar/email/security/top/tlds/malicious_get_response.py index c792fc23f..48be3d39b 100644 --- a/src/cloudflare/types/radar/email/security/top/tlds/malicious_get_response.py +++ b/src/cloudflare/types/radar/email/security/top/tlds/malicious_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ......._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ......._models import BaseModel + __all__ = [ "MaliciousGetResponse", "Meta", diff --git a/src/cloudflare/types/radar/email/security/top/tlds/spam_get_params.py b/src/cloudflare/types/radar/email/security/top/tlds/spam_get_params.py index 6a84bd1e5..69fbfba03 100644 --- a/src/cloudflare/types/radar/email/security/top/tlds/spam_get_params.py +++ b/src/cloudflare/types/radar/email/security/top/tlds/spam_get_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ......._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ......._types import FileTypes -from ......._utils import PropertyInfo - __all__ = ["SpamGetParams"] diff --git a/src/cloudflare/types/radar/email/security/top/tlds/spam_get_response.py b/src/cloudflare/types/radar/email/security/top/tlds/spam_get_response.py index f12c56371..f4114b967 100644 --- a/src/cloudflare/types/radar/email/security/top/tlds/spam_get_response.py +++ b/src/cloudflare/types/radar/email/security/top/tlds/spam_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ......._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ......._models import BaseModel + __all__ = ["SpamGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/email/security/top/tlds/spoof_get_params.py b/src/cloudflare/types/radar/email/security/top/tlds/spoof_get_params.py index 32ec6c6d8..5750c3439 100644 --- a/src/cloudflare/types/radar/email/security/top/tlds/spoof_get_params.py +++ b/src/cloudflare/types/radar/email/security/top/tlds/spoof_get_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ......._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ......._types import FileTypes -from ......._utils import PropertyInfo - __all__ = ["SpoofGetParams"] diff --git a/src/cloudflare/types/radar/email/security/top/tlds/spoof_get_response.py b/src/cloudflare/types/radar/email/security/top/tlds/spoof_get_response.py index d58cdeb5e..212026d45 100644 --- a/src/cloudflare/types/radar/email/security/top/tlds/spoof_get_response.py +++ b/src/cloudflare/types/radar/email/security/top/tlds/spoof_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ......._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ......._models import BaseModel + __all__ = ["SpoofGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/entities/__init__.py b/src/cloudflare/types/radar/entities/__init__.py index 88b2ad61c..4d86141ff 100644 --- a/src/cloudflare/types/radar/entities/__init__.py +++ b/src/cloudflare/types/radar/entities/__init__.py @@ -2,15 +2,15 @@ from __future__ import annotations -from .asn_list_response import ASNListResponse as ASNListResponse -from .asn_get_response import ASNGetResponse as ASNGetResponse -from .asn_ip_response import ASNIPResponse as ASNIPResponse -from .asn_rel_response import ASNRelResponse as ASNRelResponse -from .asn_list_params import ASNListParams as ASNListParams -from .asn_get_params import ASNGetParams as ASNGetParams from .asn_ip_params import ASNIPParams as ASNIPParams +from .asn_get_params import ASNGetParams as ASNGetParams from .asn_rel_params import ASNRelParams as ASNRelParams -from .location_list_response import LocationListResponse as LocationListResponse -from .location_get_response import LocationGetResponse as LocationGetResponse -from .location_list_params import LocationListParams as LocationListParams +from .asn_ip_response import ASNIPResponse as ASNIPResponse +from .asn_list_params import ASNListParams as ASNListParams +from .asn_get_response import ASNGetResponse as ASNGetResponse +from .asn_rel_response import ASNRelResponse as ASNRelResponse +from .asn_list_response import ASNListResponse as ASNListResponse from .location_get_params import LocationGetParams as LocationGetParams +from .location_list_params import LocationListParams as LocationListParams +from .location_get_response import LocationGetResponse as LocationGetResponse +from .location_list_response import LocationListResponse as LocationListResponse diff --git a/src/cloudflare/types/radar/entities/asn_get_params.py b/src/cloudflare/types/radar/entities/asn_get_params.py index eebd5efd1..c74a42d25 100644 --- a/src/cloudflare/types/radar/entities/asn_get_params.py +++ b/src/cloudflare/types/radar/entities/asn_get_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, TypedDict __all__ = ["ASNGetParams"] diff --git a/src/cloudflare/types/radar/entities/asn_get_response.py b/src/cloudflare/types/radar/entities/asn_get_response.py index da4ac4975..37662d3be 100644 --- a/src/cloudflare/types/radar/entities/asn_get_response.py +++ b/src/cloudflare/types/radar/entities/asn_get_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel +from typing import List, Optional -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["ASNGetResponse", "ASN", "ASNEstimatedUsers", "ASNEstimatedUsersLocation", "ASNRelated"] diff --git a/src/cloudflare/types/radar/entities/asn_ip_params.py b/src/cloudflare/types/radar/entities/asn_ip_params.py index fda4a5019..11d8bfa9d 100644 --- a/src/cloudflare/types/radar/entities/asn_ip_params.py +++ b/src/cloudflare/types/radar/entities/asn_ip_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["ASNIPParams"] diff --git a/src/cloudflare/types/radar/entities/asn_ip_response.py b/src/cloudflare/types/radar/entities/asn_ip_response.py index 0a4cbad35..3e4337e77 100644 --- a/src/cloudflare/types/radar/entities/asn_ip_response.py +++ b/src/cloudflare/types/radar/entities/asn_ip_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel +from typing import List, Optional -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["ASNIPResponse", "ASN", "ASNEstimatedUsers", "ASNEstimatedUsersLocation", "ASNRelated"] diff --git a/src/cloudflare/types/radar/entities/asn_list_params.py b/src/cloudflare/types/radar/entities/asn_list_params.py index d752602d2..7c327f0ff 100644 --- a/src/cloudflare/types/radar/entities/asn_list_params.py +++ b/src/cloudflare/types/radar/entities/asn_list_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["ASNListParams"] diff --git a/src/cloudflare/types/radar/entities/asn_list_response.py b/src/cloudflare/types/radar/entities/asn_list_response.py index e08e0913a..8ab3d93b8 100644 --- a/src/cloudflare/types/radar/entities/asn_list_response.py +++ b/src/cloudflare/types/radar/entities/asn_list_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel +from typing import List, Optional -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["ASNListResponse", "ASN"] diff --git a/src/cloudflare/types/radar/entities/asn_rel_params.py b/src/cloudflare/types/radar/entities/asn_rel_params.py index 011c1faf3..500ad9c46 100644 --- a/src/cloudflare/types/radar/entities/asn_rel_params.py +++ b/src/cloudflare/types/radar/entities/asn_rel_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, TypedDict __all__ = ["ASNRelParams"] diff --git a/src/cloudflare/types/radar/entities/asn_rel_response.py b/src/cloudflare/types/radar/entities/asn_rel_response.py index c17b247ab..f6c855e34 100644 --- a/src/cloudflare/types/radar/entities/asn_rel_response.py +++ b/src/cloudflare/types/radar/entities/asn_rel_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ASNRelResponse", "Meta", "Rel"] diff --git a/src/cloudflare/types/radar/entities/location_get_params.py b/src/cloudflare/types/radar/entities/location_get_params.py index ae6deb595..7b90d15cb 100644 --- a/src/cloudflare/types/radar/entities/location_get_params.py +++ b/src/cloudflare/types/radar/entities/location_get_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, TypedDict __all__ = ["LocationGetParams"] diff --git a/src/cloudflare/types/radar/entities/location_get_response.py b/src/cloudflare/types/radar/entities/location_get_response.py index 84af1468d..99c28d7fb 100644 --- a/src/cloudflare/types/radar/entities/location_get_response.py +++ b/src/cloudflare/types/radar/entities/location_get_response.py @@ -1,11 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["LocationGetResponse", "Location"] diff --git a/src/cloudflare/types/radar/entities/location_list_params.py b/src/cloudflare/types/radar/entities/location_list_params.py index f01b7da81..89e77d562 100644 --- a/src/cloudflare/types/radar/entities/location_list_params.py +++ b/src/cloudflare/types/radar/entities/location_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, TypedDict __all__ = ["LocationListParams"] diff --git a/src/cloudflare/types/radar/entities/location_list_response.py b/src/cloudflare/types/radar/entities/location_list_response.py index c079ea7c8..0141afd42 100644 --- a/src/cloudflare/types/radar/entities/location_list_response.py +++ b/src/cloudflare/types/radar/entities/location_list_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["LocationListResponse", "Location"] diff --git a/src/cloudflare/types/radar/entity_get_params.py b/src/cloudflare/types/radar/entity_get_params.py index 9b40421da..1bd5c38fa 100644 --- a/src/cloudflare/types/radar/entity_get_params.py +++ b/src/cloudflare/types/radar/entity_get_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["EntityGetParams"] diff --git a/src/cloudflare/types/radar/entity_get_response.py b/src/cloudflare/types/radar/entity_get_response.py index ad4343e07..ad27e10b1 100644 --- a/src/cloudflare/types/radar/entity_get_response.py +++ b/src/cloudflare/types/radar/entity_get_response.py @@ -1,11 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["EntityGetResponse", "IP"] diff --git a/src/cloudflare/types/radar/http/__init__.py b/src/cloudflare/types/radar/http/__init__.py index eca1aad1d..ecf8325cb 100644 --- a/src/cloudflare/types/radar/http/__init__.py +++ b/src/cloudflare/types/radar/http/__init__.py @@ -2,63 +2,63 @@ from __future__ import annotations -from .location_get_response import LocationGetResponse as LocationGetResponse -from .location_get_params import LocationGetParams as LocationGetParams -from .ase_get_response import AseGetResponse as AseGetResponse from .ase_get_params import AseGetParams as AseGetParams -from .summary_bot_class_response import SummaryBotClassResponse as SummaryBotClassResponse -from .summary_device_type_response import SummaryDeviceTypeResponse as SummaryDeviceTypeResponse -from .summary_http_protocol_response import SummaryHTTPProtocolResponse as SummaryHTTPProtocolResponse -from .summary_http_version_response import SummaryHTTPVersionResponse as SummaryHTTPVersionResponse -from .summary_ip_version_response import SummaryIPVersionResponse as SummaryIPVersionResponse -from .summary_os_response import SummaryOSResponse as SummaryOSResponse -from .summary_post_quantum_response import SummaryPostQuantumResponse as SummaryPostQuantumResponse -from .summary_tls_version_response import SummaryTLSVersionResponse as SummaryTLSVersionResponse -from .summary_bot_class_params import SummaryBotClassParams as SummaryBotClassParams -from .summary_device_type_params import SummaryDeviceTypeParams as SummaryDeviceTypeParams -from .summary_http_protocol_params import SummaryHTTPProtocolParams as SummaryHTTPProtocolParams -from .summary_http_version_params import SummaryHTTPVersionParams as SummaryHTTPVersionParams -from .summary_ip_version_params import SummaryIPVersionParams as SummaryIPVersionParams +from .ase_get_response import AseGetResponse as AseGetResponse from .summary_os_params import SummaryOSParams as SummaryOSParams -from .summary_post_quantum_params import SummaryPostQuantumParams as SummaryPostQuantumParams +from .top_browser_params import TopBrowserParams as TopBrowserParams +from .location_get_params import LocationGetParams as LocationGetParams +from .summary_os_response import SummaryOSResponse as SummaryOSResponse +from .top_browser_response import TopBrowserResponse as TopBrowserResponse +from .location_get_response import LocationGetResponse as LocationGetResponse +from .summary_bot_class_params import SummaryBotClassParams as SummaryBotClassParams +from .summary_ip_version_params import SummaryIPVersionParams as SummaryIPVersionParams +from .top_browser_family_params import TopBrowserFamilyParams as TopBrowserFamilyParams +from .summary_bot_class_response import SummaryBotClassResponse as SummaryBotClassResponse +from .summary_device_type_params import SummaryDeviceTypeParams as SummaryDeviceTypeParams from .summary_tls_version_params import SummaryTLSVersionParams as SummaryTLSVersionParams -from .timeseries_group_bot_class_response import TimeseriesGroupBotClassResponse as TimeseriesGroupBotClassResponse +from .timeseries_group_os_params import TimeseriesGroupOSParams as TimeseriesGroupOSParams +from .summary_http_version_params import SummaryHTTPVersionParams as SummaryHTTPVersionParams +from .summary_ip_version_response import SummaryIPVersionResponse as SummaryIPVersionResponse +from .summary_post_quantum_params import SummaryPostQuantumParams as SummaryPostQuantumParams +from .top_browser_family_response import TopBrowserFamilyResponse as TopBrowserFamilyResponse +from .summary_device_type_response import SummaryDeviceTypeResponse as SummaryDeviceTypeResponse +from .summary_http_protocol_params import SummaryHTTPProtocolParams as SummaryHTTPProtocolParams +from .summary_tls_version_response import SummaryTLSVersionResponse as SummaryTLSVersionResponse +from .timeseries_group_os_response import TimeseriesGroupOSResponse as TimeseriesGroupOSResponse +from .summary_http_version_response import SummaryHTTPVersionResponse as SummaryHTTPVersionResponse +from .summary_post_quantum_response import SummaryPostQuantumResponse as SummaryPostQuantumResponse +from .summary_http_protocol_response import SummaryHTTPProtocolResponse as SummaryHTTPProtocolResponse +from .timeseries_group_browser_params import TimeseriesGroupBrowserParams as TimeseriesGroupBrowserParams +from .timeseries_group_bot_class_params import TimeseriesGroupBotClassParams as TimeseriesGroupBotClassParams from .timeseries_group_browser_response import TimeseriesGroupBrowserResponse as TimeseriesGroupBrowserResponse -from .timeseries_group_browser_family_response import ( - TimeseriesGroupBrowserFamilyResponse as TimeseriesGroupBrowserFamilyResponse, -) +from .timeseries_group_ip_version_params import TimeseriesGroupIPVersionParams as TimeseriesGroupIPVersionParams +from .timeseries_group_bot_class_response import TimeseriesGroupBotClassResponse as TimeseriesGroupBotClassResponse +from .timeseries_group_device_type_params import TimeseriesGroupDeviceTypeParams as TimeseriesGroupDeviceTypeParams +from .timeseries_group_tls_version_params import TimeseriesGroupTLSVersionParams as TimeseriesGroupTLSVersionParams +from .timeseries_group_http_version_params import TimeseriesGroupHTTPVersionParams as TimeseriesGroupHTTPVersionParams +from .timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse as TimeseriesGroupIPVersionResponse +from .timeseries_group_post_quantum_params import TimeseriesGroupPostQuantumParams as TimeseriesGroupPostQuantumParams from .timeseries_group_device_type_response import ( TimeseriesGroupDeviceTypeResponse as TimeseriesGroupDeviceTypeResponse, ) -from .timeseries_group_http_protocol_response import ( - TimeseriesGroupHTTPProtocolResponse as TimeseriesGroupHTTPProtocolResponse, -) -from .timeseries_group_http_version_response import ( - TimeseriesGroupHTTPVersionResponse as TimeseriesGroupHTTPVersionResponse, -) -from .timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse as TimeseriesGroupIPVersionResponse -from .timeseries_group_os_response import TimeseriesGroupOSResponse as TimeseriesGroupOSResponse -from .timeseries_group_post_quantum_response import ( - TimeseriesGroupPostQuantumResponse as TimeseriesGroupPostQuantumResponse, +from .timeseries_group_http_protocol_params import ( + TimeseriesGroupHTTPProtocolParams as TimeseriesGroupHTTPProtocolParams, ) from .timeseries_group_tls_version_response import ( TimeseriesGroupTLSVersionResponse as TimeseriesGroupTLSVersionResponse, ) -from .timeseries_group_bot_class_params import TimeseriesGroupBotClassParams as TimeseriesGroupBotClassParams -from .timeseries_group_browser_params import TimeseriesGroupBrowserParams as TimeseriesGroupBrowserParams from .timeseries_group_browser_family_params import ( TimeseriesGroupBrowserFamilyParams as TimeseriesGroupBrowserFamilyParams, ) -from .timeseries_group_device_type_params import TimeseriesGroupDeviceTypeParams as TimeseriesGroupDeviceTypeParams -from .timeseries_group_http_protocol_params import ( - TimeseriesGroupHTTPProtocolParams as TimeseriesGroupHTTPProtocolParams, +from .timeseries_group_http_version_response import ( + TimeseriesGroupHTTPVersionResponse as TimeseriesGroupHTTPVersionResponse, +) +from .timeseries_group_post_quantum_response import ( + TimeseriesGroupPostQuantumResponse as TimeseriesGroupPostQuantumResponse, +) +from .timeseries_group_http_protocol_response import ( + TimeseriesGroupHTTPProtocolResponse as TimeseriesGroupHTTPProtocolResponse, +) +from .timeseries_group_browser_family_response import ( + TimeseriesGroupBrowserFamilyResponse as TimeseriesGroupBrowserFamilyResponse, ) -from .timeseries_group_http_version_params import TimeseriesGroupHTTPVersionParams as TimeseriesGroupHTTPVersionParams -from .timeseries_group_ip_version_params import TimeseriesGroupIPVersionParams as TimeseriesGroupIPVersionParams -from .timeseries_group_os_params import TimeseriesGroupOSParams as TimeseriesGroupOSParams -from .timeseries_group_post_quantum_params import TimeseriesGroupPostQuantumParams as TimeseriesGroupPostQuantumParams -from .timeseries_group_tls_version_params import TimeseriesGroupTLSVersionParams as TimeseriesGroupTLSVersionParams -from .top_browser_response import TopBrowserResponse as TopBrowserResponse -from .top_browser_family_response import TopBrowserFamilyResponse as TopBrowserFamilyResponse -from .top_browser_params import TopBrowserParams as TopBrowserParams -from .top_browser_family_params import TopBrowserFamilyParams as TopBrowserFamilyParams diff --git a/src/cloudflare/types/radar/http/ase_get_params.py b/src/cloudflare/types/radar/http/ase_get_params.py index 2d3a855a8..811464b10 100644 --- a/src/cloudflare/types/radar/http/ase_get_params.py +++ b/src/cloudflare/types/radar/http/ase_get_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ...._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["AseGetParams"] diff --git a/src/cloudflare/types/radar/http/ase_get_response.py b/src/cloudflare/types/radar/http/ase_get_response.py index 4d907cb96..a606c25f8 100644 --- a/src/cloudflare/types/radar/http/ase_get_response.py +++ b/src/cloudflare/types/radar/http/ase_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["AseGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/http/ases/__init__.py b/src/cloudflare/types/radar/http/ases/__init__.py index 0d7399b57..c527d55fd 100644 --- a/src/cloudflare/types/radar/http/ases/__init__.py +++ b/src/cloudflare/types/radar/http/ases/__init__.py @@ -2,19 +2,19 @@ from __future__ import annotations -from .bot_class_get_response import BotClassGetResponse as BotClassGetResponse -from .bot_class_get_params import BotClassGetParams as BotClassGetParams -from .device_type_get_response import DeviceTypeGetResponse as DeviceTypeGetResponse -from .device_type_get_params import DeviceTypeGetParams as DeviceTypeGetParams -from .http_protocol_get_response import HTTPProtocolGetResponse as HTTPProtocolGetResponse -from .http_protocol_get_params import HTTPProtocolGetParams as HTTPProtocolGetParams -from .http_method_get_response import HTTPMethodGetResponse as HTTPMethodGetResponse -from .http_method_get_params import HTTPMethodGetParams as HTTPMethodGetParams -from .ip_version_get_response import IPVersionGetResponse as IPVersionGetResponse -from .ip_version_get_params import IPVersionGetParams as IPVersionGetParams -from .os_get_response import OSGetResponse as OSGetResponse from .os_get_params import OSGetParams as OSGetParams -from .tls_version_get_response import TLSVersionGetResponse as TLSVersionGetResponse +from .os_get_response import OSGetResponse as OSGetResponse +from .bot_class_get_params import BotClassGetParams as BotClassGetParams +from .ip_version_get_params import IPVersionGetParams as IPVersionGetParams +from .bot_class_get_response import BotClassGetResponse as BotClassGetResponse +from .device_type_get_params import DeviceTypeGetParams as DeviceTypeGetParams +from .http_method_get_params import HTTPMethodGetParams as HTTPMethodGetParams from .tls_version_get_params import TLSVersionGetParams as TLSVersionGetParams -from .browser_family_get_response import BrowserFamilyGetResponse as BrowserFamilyGetResponse +from .ip_version_get_response import IPVersionGetResponse as IPVersionGetResponse +from .device_type_get_response import DeviceTypeGetResponse as DeviceTypeGetResponse +from .http_method_get_response import HTTPMethodGetResponse as HTTPMethodGetResponse +from .http_protocol_get_params import HTTPProtocolGetParams as HTTPProtocolGetParams +from .tls_version_get_response import TLSVersionGetResponse as TLSVersionGetResponse from .browser_family_get_params import BrowserFamilyGetParams as BrowserFamilyGetParams +from .http_protocol_get_response import HTTPProtocolGetResponse as HTTPProtocolGetResponse +from .browser_family_get_response import BrowserFamilyGetResponse as BrowserFamilyGetResponse diff --git a/src/cloudflare/types/radar/http/ases/bot_class_get_params.py b/src/cloudflare/types/radar/http/ases/bot_class_get_params.py index 1acdbab20..59a823a18 100644 --- a/src/cloudflare/types/radar/http/ases/bot_class_get_params.py +++ b/src/cloudflare/types/radar/http/ases/bot_class_get_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ....._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["BotClassGetParams"] diff --git a/src/cloudflare/types/radar/http/ases/bot_class_get_response.py b/src/cloudflare/types/radar/http/ases/bot_class_get_response.py index 2a7536859..c48362bea 100644 --- a/src/cloudflare/types/radar/http/ases/bot_class_get_response.py +++ b/src/cloudflare/types/radar/http/ases/bot_class_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["BotClassGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/http/ases/browser_family_get_params.py b/src/cloudflare/types/radar/http/ases/browser_family_get_params.py index cfa1c15a8..ed19fdee4 100644 --- a/src/cloudflare/types/radar/http/ases/browser_family_get_params.py +++ b/src/cloudflare/types/radar/http/ases/browser_family_get_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ....._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["BrowserFamilyGetParams"] diff --git a/src/cloudflare/types/radar/http/ases/browser_family_get_response.py b/src/cloudflare/types/radar/http/ases/browser_family_get_response.py index b5e4ed831..f4d2f1fc2 100644 --- a/src/cloudflare/types/radar/http/ases/browser_family_get_response.py +++ b/src/cloudflare/types/radar/http/ases/browser_family_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "BrowserFamilyGetResponse", "Meta", diff --git a/src/cloudflare/types/radar/http/ases/device_type_get_params.py b/src/cloudflare/types/radar/http/ases/device_type_get_params.py index 2650cad05..43e1b06c8 100644 --- a/src/cloudflare/types/radar/http/ases/device_type_get_params.py +++ b/src/cloudflare/types/radar/http/ases/device_type_get_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ....._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["DeviceTypeGetParams"] diff --git a/src/cloudflare/types/radar/http/ases/device_type_get_response.py b/src/cloudflare/types/radar/http/ases/device_type_get_response.py index 8f6f7db8b..a61978597 100644 --- a/src/cloudflare/types/radar/http/ases/device_type_get_response.py +++ b/src/cloudflare/types/radar/http/ases/device_type_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "DeviceTypeGetResponse", "Meta", diff --git a/src/cloudflare/types/radar/http/ases/http_method_get_params.py b/src/cloudflare/types/radar/http/ases/http_method_get_params.py index 48595dcfe..fb2275929 100644 --- a/src/cloudflare/types/radar/http/ases/http_method_get_params.py +++ b/src/cloudflare/types/radar/http/ases/http_method_get_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ....._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["HTTPMethodGetParams"] diff --git a/src/cloudflare/types/radar/http/ases/http_method_get_response.py b/src/cloudflare/types/radar/http/ases/http_method_get_response.py index d0a572af2..d4e4622fe 100644 --- a/src/cloudflare/types/radar/http/ases/http_method_get_response.py +++ b/src/cloudflare/types/radar/http/ases/http_method_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "HTTPMethodGetResponse", "Meta", diff --git a/src/cloudflare/types/radar/http/ases/http_protocol_get_params.py b/src/cloudflare/types/radar/http/ases/http_protocol_get_params.py index 1d7e99c6d..629a3b8d8 100644 --- a/src/cloudflare/types/radar/http/ases/http_protocol_get_params.py +++ b/src/cloudflare/types/radar/http/ases/http_protocol_get_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ....._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["HTTPProtocolGetParams"] diff --git a/src/cloudflare/types/radar/http/ases/http_protocol_get_response.py b/src/cloudflare/types/radar/http/ases/http_protocol_get_response.py index 7eda9b215..3552fc7ca 100644 --- a/src/cloudflare/types/radar/http/ases/http_protocol_get_response.py +++ b/src/cloudflare/types/radar/http/ases/http_protocol_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "HTTPProtocolGetResponse", "Meta", diff --git a/src/cloudflare/types/radar/http/ases/ip_version_get_params.py b/src/cloudflare/types/radar/http/ases/ip_version_get_params.py index 110c79520..86ababaa7 100644 --- a/src/cloudflare/types/radar/http/ases/ip_version_get_params.py +++ b/src/cloudflare/types/radar/http/ases/ip_version_get_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ....._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["IPVersionGetParams"] diff --git a/src/cloudflare/types/radar/http/ases/ip_version_get_response.py b/src/cloudflare/types/radar/http/ases/ip_version_get_response.py index e03ad54e9..cb714fbcd 100644 --- a/src/cloudflare/types/radar/http/ases/ip_version_get_response.py +++ b/src/cloudflare/types/radar/http/ases/ip_version_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "IPVersionGetResponse", "Meta", diff --git a/src/cloudflare/types/radar/http/ases/os_get_params.py b/src/cloudflare/types/radar/http/ases/os_get_params.py index 6f0a2b75e..12ac2d093 100644 --- a/src/cloudflare/types/radar/http/ases/os_get_params.py +++ b/src/cloudflare/types/radar/http/ases/os_get_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ....._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["OSGetParams"] diff --git a/src/cloudflare/types/radar/http/ases/os_get_response.py b/src/cloudflare/types/radar/http/ases/os_get_response.py index 0387da19c..a8777949f 100644 --- a/src/cloudflare/types/radar/http/ases/os_get_response.py +++ b/src/cloudflare/types/radar/http/ases/os_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["OSGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/http/ases/tls_version_get_params.py b/src/cloudflare/types/radar/http/ases/tls_version_get_params.py index 83e1f41f1..050045d80 100644 --- a/src/cloudflare/types/radar/http/ases/tls_version_get_params.py +++ b/src/cloudflare/types/radar/http/ases/tls_version_get_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ....._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TLSVersionGetParams"] diff --git a/src/cloudflare/types/radar/http/ases/tls_version_get_response.py b/src/cloudflare/types/radar/http/ases/tls_version_get_response.py index 9c41f6cda..1ffc7b6c3 100644 --- a/src/cloudflare/types/radar/http/ases/tls_version_get_response.py +++ b/src/cloudflare/types/radar/http/ases/tls_version_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "TLSVersionGetResponse", "Meta", diff --git a/src/cloudflare/types/radar/http/location_get_params.py b/src/cloudflare/types/radar/http/location_get_params.py index 7776fea76..1459dbe0e 100644 --- a/src/cloudflare/types/radar/http/location_get_params.py +++ b/src/cloudflare/types/radar/http/location_get_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ...._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["LocationGetParams"] diff --git a/src/cloudflare/types/radar/http/location_get_response.py b/src/cloudflare/types/radar/http/location_get_response.py index 2cdfe119b..95a4c526f 100644 --- a/src/cloudflare/types/radar/http/location_get_response.py +++ b/src/cloudflare/types/radar/http/location_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["LocationGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/http/locations/__init__.py b/src/cloudflare/types/radar/http/locations/__init__.py index 0d7399b57..c527d55fd 100644 --- a/src/cloudflare/types/radar/http/locations/__init__.py +++ b/src/cloudflare/types/radar/http/locations/__init__.py @@ -2,19 +2,19 @@ from __future__ import annotations -from .bot_class_get_response import BotClassGetResponse as BotClassGetResponse -from .bot_class_get_params import BotClassGetParams as BotClassGetParams -from .device_type_get_response import DeviceTypeGetResponse as DeviceTypeGetResponse -from .device_type_get_params import DeviceTypeGetParams as DeviceTypeGetParams -from .http_protocol_get_response import HTTPProtocolGetResponse as HTTPProtocolGetResponse -from .http_protocol_get_params import HTTPProtocolGetParams as HTTPProtocolGetParams -from .http_method_get_response import HTTPMethodGetResponse as HTTPMethodGetResponse -from .http_method_get_params import HTTPMethodGetParams as HTTPMethodGetParams -from .ip_version_get_response import IPVersionGetResponse as IPVersionGetResponse -from .ip_version_get_params import IPVersionGetParams as IPVersionGetParams -from .os_get_response import OSGetResponse as OSGetResponse from .os_get_params import OSGetParams as OSGetParams -from .tls_version_get_response import TLSVersionGetResponse as TLSVersionGetResponse +from .os_get_response import OSGetResponse as OSGetResponse +from .bot_class_get_params import BotClassGetParams as BotClassGetParams +from .ip_version_get_params import IPVersionGetParams as IPVersionGetParams +from .bot_class_get_response import BotClassGetResponse as BotClassGetResponse +from .device_type_get_params import DeviceTypeGetParams as DeviceTypeGetParams +from .http_method_get_params import HTTPMethodGetParams as HTTPMethodGetParams from .tls_version_get_params import TLSVersionGetParams as TLSVersionGetParams -from .browser_family_get_response import BrowserFamilyGetResponse as BrowserFamilyGetResponse +from .ip_version_get_response import IPVersionGetResponse as IPVersionGetResponse +from .device_type_get_response import DeviceTypeGetResponse as DeviceTypeGetResponse +from .http_method_get_response import HTTPMethodGetResponse as HTTPMethodGetResponse +from .http_protocol_get_params import HTTPProtocolGetParams as HTTPProtocolGetParams +from .tls_version_get_response import TLSVersionGetResponse as TLSVersionGetResponse from .browser_family_get_params import BrowserFamilyGetParams as BrowserFamilyGetParams +from .http_protocol_get_response import HTTPProtocolGetResponse as HTTPProtocolGetResponse +from .browser_family_get_response import BrowserFamilyGetResponse as BrowserFamilyGetResponse diff --git a/src/cloudflare/types/radar/http/locations/bot_class_get_params.py b/src/cloudflare/types/radar/http/locations/bot_class_get_params.py index 1acdbab20..59a823a18 100644 --- a/src/cloudflare/types/radar/http/locations/bot_class_get_params.py +++ b/src/cloudflare/types/radar/http/locations/bot_class_get_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ....._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["BotClassGetParams"] diff --git a/src/cloudflare/types/radar/http/locations/bot_class_get_response.py b/src/cloudflare/types/radar/http/locations/bot_class_get_response.py index 67021e160..9b7d9f6c2 100644 --- a/src/cloudflare/types/radar/http/locations/bot_class_get_response.py +++ b/src/cloudflare/types/radar/http/locations/bot_class_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["BotClassGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/http/locations/browser_family_get_params.py b/src/cloudflare/types/radar/http/locations/browser_family_get_params.py index cfa1c15a8..ed19fdee4 100644 --- a/src/cloudflare/types/radar/http/locations/browser_family_get_params.py +++ b/src/cloudflare/types/radar/http/locations/browser_family_get_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ....._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["BrowserFamilyGetParams"] diff --git a/src/cloudflare/types/radar/http/locations/browser_family_get_response.py b/src/cloudflare/types/radar/http/locations/browser_family_get_response.py index e6679b1d7..5f161c390 100644 --- a/src/cloudflare/types/radar/http/locations/browser_family_get_response.py +++ b/src/cloudflare/types/radar/http/locations/browser_family_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "BrowserFamilyGetResponse", "Meta", diff --git a/src/cloudflare/types/radar/http/locations/device_type_get_params.py b/src/cloudflare/types/radar/http/locations/device_type_get_params.py index 2650cad05..43e1b06c8 100644 --- a/src/cloudflare/types/radar/http/locations/device_type_get_params.py +++ b/src/cloudflare/types/radar/http/locations/device_type_get_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ....._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["DeviceTypeGetParams"] diff --git a/src/cloudflare/types/radar/http/locations/device_type_get_response.py b/src/cloudflare/types/radar/http/locations/device_type_get_response.py index bbe289f66..ed2f568fa 100644 --- a/src/cloudflare/types/radar/http/locations/device_type_get_response.py +++ b/src/cloudflare/types/radar/http/locations/device_type_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "DeviceTypeGetResponse", "Meta", diff --git a/src/cloudflare/types/radar/http/locations/http_method_get_params.py b/src/cloudflare/types/radar/http/locations/http_method_get_params.py index 48595dcfe..fb2275929 100644 --- a/src/cloudflare/types/radar/http/locations/http_method_get_params.py +++ b/src/cloudflare/types/radar/http/locations/http_method_get_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ....._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["HTTPMethodGetParams"] diff --git a/src/cloudflare/types/radar/http/locations/http_method_get_response.py b/src/cloudflare/types/radar/http/locations/http_method_get_response.py index 4ea737758..ed56bfd05 100644 --- a/src/cloudflare/types/radar/http/locations/http_method_get_response.py +++ b/src/cloudflare/types/radar/http/locations/http_method_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "HTTPMethodGetResponse", "Meta", diff --git a/src/cloudflare/types/radar/http/locations/http_protocol_get_params.py b/src/cloudflare/types/radar/http/locations/http_protocol_get_params.py index 1d7e99c6d..629a3b8d8 100644 --- a/src/cloudflare/types/radar/http/locations/http_protocol_get_params.py +++ b/src/cloudflare/types/radar/http/locations/http_protocol_get_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ....._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["HTTPProtocolGetParams"] diff --git a/src/cloudflare/types/radar/http/locations/http_protocol_get_response.py b/src/cloudflare/types/radar/http/locations/http_protocol_get_response.py index 0f8661b3f..6d9b31aad 100644 --- a/src/cloudflare/types/radar/http/locations/http_protocol_get_response.py +++ b/src/cloudflare/types/radar/http/locations/http_protocol_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "HTTPProtocolGetResponse", "Meta", diff --git a/src/cloudflare/types/radar/http/locations/ip_version_get_params.py b/src/cloudflare/types/radar/http/locations/ip_version_get_params.py index 110c79520..86ababaa7 100644 --- a/src/cloudflare/types/radar/http/locations/ip_version_get_params.py +++ b/src/cloudflare/types/radar/http/locations/ip_version_get_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ....._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["IPVersionGetParams"] diff --git a/src/cloudflare/types/radar/http/locations/ip_version_get_response.py b/src/cloudflare/types/radar/http/locations/ip_version_get_response.py index b0a693870..bb30d89b8 100644 --- a/src/cloudflare/types/radar/http/locations/ip_version_get_response.py +++ b/src/cloudflare/types/radar/http/locations/ip_version_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "IPVersionGetResponse", "Meta", diff --git a/src/cloudflare/types/radar/http/locations/os_get_params.py b/src/cloudflare/types/radar/http/locations/os_get_params.py index 6f0a2b75e..12ac2d093 100644 --- a/src/cloudflare/types/radar/http/locations/os_get_params.py +++ b/src/cloudflare/types/radar/http/locations/os_get_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ....._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["OSGetParams"] diff --git a/src/cloudflare/types/radar/http/locations/os_get_response.py b/src/cloudflare/types/radar/http/locations/os_get_response.py index fdd105078..31e246337 100644 --- a/src/cloudflare/types/radar/http/locations/os_get_response.py +++ b/src/cloudflare/types/radar/http/locations/os_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["OSGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/http/locations/tls_version_get_params.py b/src/cloudflare/types/radar/http/locations/tls_version_get_params.py index 83e1f41f1..050045d80 100644 --- a/src/cloudflare/types/radar/http/locations/tls_version_get_params.py +++ b/src/cloudflare/types/radar/http/locations/tls_version_get_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ....._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["TLSVersionGetParams"] diff --git a/src/cloudflare/types/radar/http/locations/tls_version_get_response.py b/src/cloudflare/types/radar/http/locations/tls_version_get_response.py index fe213021e..82d4b85ee 100644 --- a/src/cloudflare/types/radar/http/locations/tls_version_get_response.py +++ b/src/cloudflare/types/radar/http/locations/tls_version_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "TLSVersionGetResponse", "Meta", diff --git a/src/cloudflare/types/radar/http/summary_bot_class_params.py b/src/cloudflare/types/radar/http/summary_bot_class_params.py index 626f561de..fcd244197 100644 --- a/src/cloudflare/types/radar/http/summary_bot_class_params.py +++ b/src/cloudflare/types/radar/http/summary_bot_class_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["SummaryBotClassParams"] diff --git a/src/cloudflare/types/radar/http/summary_bot_class_response.py b/src/cloudflare/types/radar/http/summary_bot_class_response.py index dfe2977a3..d4c5847ae 100644 --- a/src/cloudflare/types/radar/http/summary_bot_class_response.py +++ b/src/cloudflare/types/radar/http/summary_bot_class_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "SummaryBotClassResponse", "Meta", diff --git a/src/cloudflare/types/radar/http/summary_device_type_params.py b/src/cloudflare/types/radar/http/summary_device_type_params.py index 847f450db..c0a7a7664 100644 --- a/src/cloudflare/types/radar/http/summary_device_type_params.py +++ b/src/cloudflare/types/radar/http/summary_device_type_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ...._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["SummaryDeviceTypeParams"] diff --git a/src/cloudflare/types/radar/http/summary_device_type_response.py b/src/cloudflare/types/radar/http/summary_device_type_response.py index 6b0e13f9b..7aa1bbd9f 100644 --- a/src/cloudflare/types/radar/http/summary_device_type_response.py +++ b/src/cloudflare/types/radar/http/summary_device_type_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "SummaryDeviceTypeResponse", "Meta", diff --git a/src/cloudflare/types/radar/http/summary_http_protocol_params.py b/src/cloudflare/types/radar/http/summary_http_protocol_params.py index 09d020cec..ca05adc80 100644 --- a/src/cloudflare/types/radar/http/summary_http_protocol_params.py +++ b/src/cloudflare/types/radar/http/summary_http_protocol_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ...._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["SummaryHTTPProtocolParams"] diff --git a/src/cloudflare/types/radar/http/summary_http_protocol_response.py b/src/cloudflare/types/radar/http/summary_http_protocol_response.py index 37212edfc..3ee6ffef0 100644 --- a/src/cloudflare/types/radar/http/summary_http_protocol_response.py +++ b/src/cloudflare/types/radar/http/summary_http_protocol_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "SummaryHTTPProtocolResponse", "Meta", diff --git a/src/cloudflare/types/radar/http/summary_http_version_params.py b/src/cloudflare/types/radar/http/summary_http_version_params.py index 918425165..f103dfb05 100644 --- a/src/cloudflare/types/radar/http/summary_http_version_params.py +++ b/src/cloudflare/types/radar/http/summary_http_version_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ...._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["SummaryHTTPVersionParams"] diff --git a/src/cloudflare/types/radar/http/summary_http_version_response.py b/src/cloudflare/types/radar/http/summary_http_version_response.py index 7a59776a5..7c3c97a3d 100644 --- a/src/cloudflare/types/radar/http/summary_http_version_response.py +++ b/src/cloudflare/types/radar/http/summary_http_version_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "SummaryHTTPVersionResponse", "Meta", diff --git a/src/cloudflare/types/radar/http/summary_ip_version_params.py b/src/cloudflare/types/radar/http/summary_ip_version_params.py index 1aefa7ae2..5d135a393 100644 --- a/src/cloudflare/types/radar/http/summary_ip_version_params.py +++ b/src/cloudflare/types/radar/http/summary_ip_version_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ...._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["SummaryIPVersionParams"] diff --git a/src/cloudflare/types/radar/http/summary_ip_version_response.py b/src/cloudflare/types/radar/http/summary_ip_version_response.py index e604ce514..6286c80dc 100644 --- a/src/cloudflare/types/radar/http/summary_ip_version_response.py +++ b/src/cloudflare/types/radar/http/summary_ip_version_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "SummaryIPVersionResponse", "Meta", diff --git a/src/cloudflare/types/radar/http/summary_os_params.py b/src/cloudflare/types/radar/http/summary_os_params.py index 10f88dc0a..f475ca933 100644 --- a/src/cloudflare/types/radar/http/summary_os_params.py +++ b/src/cloudflare/types/radar/http/summary_os_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ...._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["SummaryOSParams"] diff --git a/src/cloudflare/types/radar/http/summary_os_response.py b/src/cloudflare/types/radar/http/summary_os_response.py index d4c49d8b9..b9737a2dc 100644 --- a/src/cloudflare/types/radar/http/summary_os_response.py +++ b/src/cloudflare/types/radar/http/summary_os_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "SummaryOSResponse", "Meta", diff --git a/src/cloudflare/types/radar/http/summary_post_quantum_params.py b/src/cloudflare/types/radar/http/summary_post_quantum_params.py index 843dd3b9e..e9c7b6195 100644 --- a/src/cloudflare/types/radar/http/summary_post_quantum_params.py +++ b/src/cloudflare/types/radar/http/summary_post_quantum_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ...._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["SummaryPostQuantumParams"] diff --git a/src/cloudflare/types/radar/http/summary_post_quantum_response.py b/src/cloudflare/types/radar/http/summary_post_quantum_response.py index 1bd170969..f244b9910 100644 --- a/src/cloudflare/types/radar/http/summary_post_quantum_response.py +++ b/src/cloudflare/types/radar/http/summary_post_quantum_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "SummaryPostQuantumResponse", "Meta", diff --git a/src/cloudflare/types/radar/http/summary_tls_version_params.py b/src/cloudflare/types/radar/http/summary_tls_version_params.py index 6e4cc36f3..d158f1f43 100644 --- a/src/cloudflare/types/radar/http/summary_tls_version_params.py +++ b/src/cloudflare/types/radar/http/summary_tls_version_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ...._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["SummaryTLSVersionParams"] diff --git a/src/cloudflare/types/radar/http/summary_tls_version_response.py b/src/cloudflare/types/radar/http/summary_tls_version_response.py index db5dfa4dc..1a8ffeb3e 100644 --- a/src/cloudflare/types/radar/http/summary_tls_version_response.py +++ b/src/cloudflare/types/radar/http/summary_tls_version_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "SummaryTLSVersionResponse", "Meta", diff --git a/src/cloudflare/types/radar/http/timeseries_group_bot_class_params.py b/src/cloudflare/types/radar/http/timeseries_group_bot_class_params.py index 659cc162d..c356954fb 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_bot_class_params.py +++ b/src/cloudflare/types/radar/http/timeseries_group_bot_class_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ...._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["TimeseriesGroupBotClassParams"] diff --git a/src/cloudflare/types/radar/http/timeseries_group_bot_class_response.py b/src/cloudflare/types/radar/http/timeseries_group_bot_class_response.py index 4325a603e..8e2d5aa1a 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_bot_class_response.py +++ b/src/cloudflare/types/radar/http/timeseries_group_bot_class_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["TimeseriesGroupBotClassResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/http/timeseries_group_browser_family_params.py b/src/cloudflare/types/radar/http/timeseries_group_browser_family_params.py index 928abbad3..df1710163 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_browser_family_params.py +++ b/src/cloudflare/types/radar/http/timeseries_group_browser_family_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ...._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["TimeseriesGroupBrowserFamilyParams"] diff --git a/src/cloudflare/types/radar/http/timeseries_group_browser_family_response.py b/src/cloudflare/types/radar/http/timeseries_group_browser_family_response.py index c61254fd3..8f14d62ef 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_browser_family_response.py +++ b/src/cloudflare/types/radar/http/timeseries_group_browser_family_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import TYPE_CHECKING, List + from ...._models import BaseModel -from typing import List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo -from typing import TYPE_CHECKING - __all__ = ["TimeseriesGroupBrowserFamilyResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/http/timeseries_group_browser_params.py b/src/cloudflare/types/radar/http/timeseries_group_browser_params.py index 4d6b66f14..7b2bdbd2a 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_browser_params.py +++ b/src/cloudflare/types/radar/http/timeseries_group_browser_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ...._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["TimeseriesGroupBrowserParams"] diff --git a/src/cloudflare/types/radar/http/timeseries_group_browser_response.py b/src/cloudflare/types/radar/http/timeseries_group_browser_response.py index 071a7be68..329563a8c 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_browser_response.py +++ b/src/cloudflare/types/radar/http/timeseries_group_browser_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import TYPE_CHECKING, List + from ...._models import BaseModel -from typing import List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo -from typing import TYPE_CHECKING - __all__ = ["TimeseriesGroupBrowserResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/http/timeseries_group_device_type_params.py b/src/cloudflare/types/radar/http/timeseries_group_device_type_params.py index 6a2851070..4e44b25d6 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_device_type_params.py +++ b/src/cloudflare/types/radar/http/timeseries_group_device_type_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ...._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["TimeseriesGroupDeviceTypeParams"] diff --git a/src/cloudflare/types/radar/http/timeseries_group_device_type_response.py b/src/cloudflare/types/radar/http/timeseries_group_device_type_response.py index bf59249dc..d053d647f 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_device_type_response.py +++ b/src/cloudflare/types/radar/http/timeseries_group_device_type_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["TimeseriesGroupDeviceTypeResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/http/timeseries_group_http_protocol_params.py b/src/cloudflare/types/radar/http/timeseries_group_http_protocol_params.py index aa86378d2..ba7ee2c31 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_http_protocol_params.py +++ b/src/cloudflare/types/radar/http/timeseries_group_http_protocol_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ...._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["TimeseriesGroupHTTPProtocolParams"] diff --git a/src/cloudflare/types/radar/http/timeseries_group_http_protocol_response.py b/src/cloudflare/types/radar/http/timeseries_group_http_protocol_response.py index 22353d7b0..62628a005 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_http_protocol_response.py +++ b/src/cloudflare/types/radar/http/timeseries_group_http_protocol_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["TimeseriesGroupHTTPProtocolResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/http/timeseries_group_http_version_params.py b/src/cloudflare/types/radar/http/timeseries_group_http_version_params.py index 43571f5df..97e2dbca2 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_http_version_params.py +++ b/src/cloudflare/types/radar/http/timeseries_group_http_version_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ...._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["TimeseriesGroupHTTPVersionParams"] diff --git a/src/cloudflare/types/radar/http/timeseries_group_http_version_response.py b/src/cloudflare/types/radar/http/timeseries_group_http_version_response.py index 254de3c3e..0bde713e0 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_http_version_response.py +++ b/src/cloudflare/types/radar/http/timeseries_group_http_version_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["TimeseriesGroupHTTPVersionResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/http/timeseries_group_ip_version_params.py b/src/cloudflare/types/radar/http/timeseries_group_ip_version_params.py index 04a06cab1..6c5aa48d0 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_ip_version_params.py +++ b/src/cloudflare/types/radar/http/timeseries_group_ip_version_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ...._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["TimeseriesGroupIPVersionParams"] diff --git a/src/cloudflare/types/radar/http/timeseries_group_ip_version_response.py b/src/cloudflare/types/radar/http/timeseries_group_ip_version_response.py index 2ca07e96d..560271c2f 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_ip_version_response.py +++ b/src/cloudflare/types/radar/http/timeseries_group_ip_version_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["TimeseriesGroupIPVersionResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/http/timeseries_group_os_params.py b/src/cloudflare/types/radar/http/timeseries_group_os_params.py index 9d9b11111..229e0d9ff 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_os_params.py +++ b/src/cloudflare/types/radar/http/timeseries_group_os_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ...._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["TimeseriesGroupOSParams"] diff --git a/src/cloudflare/types/radar/http/timeseries_group_os_response.py b/src/cloudflare/types/radar/http/timeseries_group_os_response.py index 12563c0de..717cffd93 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_os_response.py +++ b/src/cloudflare/types/radar/http/timeseries_group_os_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import TYPE_CHECKING, List + from ...._models import BaseModel -from typing import List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo -from typing import TYPE_CHECKING - __all__ = ["TimeseriesGroupOSResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/http/timeseries_group_post_quantum_params.py b/src/cloudflare/types/radar/http/timeseries_group_post_quantum_params.py index 2a8865303..486a7428e 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_post_quantum_params.py +++ b/src/cloudflare/types/radar/http/timeseries_group_post_quantum_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ...._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["TimeseriesGroupPostQuantumParams"] diff --git a/src/cloudflare/types/radar/http/timeseries_group_post_quantum_response.py b/src/cloudflare/types/radar/http/timeseries_group_post_quantum_response.py index 018e46972..17c145551 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_post_quantum_response.py +++ b/src/cloudflare/types/radar/http/timeseries_group_post_quantum_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["TimeseriesGroupPostQuantumResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/http/timeseries_group_tls_version_params.py b/src/cloudflare/types/radar/http/timeseries_group_tls_version_params.py index a4626b721..8fef3fd16 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_tls_version_params.py +++ b/src/cloudflare/types/radar/http/timeseries_group_tls_version_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ...._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["TimeseriesGroupTLSVersionParams"] diff --git a/src/cloudflare/types/radar/http/timeseries_group_tls_version_response.py b/src/cloudflare/types/radar/http/timeseries_group_tls_version_response.py index c444da38a..5f79831e6 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_tls_version_response.py +++ b/src/cloudflare/types/radar/http/timeseries_group_tls_version_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["TimeseriesGroupTLSVersionResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/http/top_browser_family_params.py b/src/cloudflare/types/radar/http/top_browser_family_params.py index 7244ebda5..a3382520b 100644 --- a/src/cloudflare/types/radar/http/top_browser_family_params.py +++ b/src/cloudflare/types/radar/http/top_browser_family_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ...._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["TopBrowserFamilyParams"] diff --git a/src/cloudflare/types/radar/http/top_browser_family_response.py b/src/cloudflare/types/radar/http/top_browser_family_response.py index dc5122cea..07776d8e4 100644 --- a/src/cloudflare/types/radar/http/top_browser_family_response.py +++ b/src/cloudflare/types/radar/http/top_browser_family_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "TopBrowserFamilyResponse", "Meta", diff --git a/src/cloudflare/types/radar/http/top_browser_params.py b/src/cloudflare/types/radar/http/top_browser_params.py index 81efceea3..a5ff89514 100644 --- a/src/cloudflare/types/radar/http/top_browser_params.py +++ b/src/cloudflare/types/radar/http/top_browser_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List, Union - -from ...._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["TopBrowserParams"] diff --git a/src/cloudflare/types/radar/http/top_browser_response.py b/src/cloudflare/types/radar/http/top_browser_response.py index 8a5b2dd16..6499e5ba9 100644 --- a/src/cloudflare/types/radar/http/top_browser_response.py +++ b/src/cloudflare/types/radar/http/top_browser_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["TopBrowserResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/http_timeseries_params.py b/src/cloudflare/types/radar/http_timeseries_params.py index 5cf08919e..9d7ebcfe6 100644 --- a/src/cloudflare/types/radar/http_timeseries_params.py +++ b/src/cloudflare/types/radar/http_timeseries_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ..._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes from ..._utils import PropertyInfo __all__ = ["HTTPTimeseriesParams"] diff --git a/src/cloudflare/types/radar/http_timeseries_response.py b/src/cloudflare/types/radar/http_timeseries_response.py index da83e5ea5..6b45e4c11 100644 --- a/src/cloudflare/types/radar/http_timeseries_response.py +++ b/src/cloudflare/types/radar/http_timeseries_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = [ "HTTPTimeseriesResponse", "Meta", diff --git a/src/cloudflare/types/radar/netflow_summary_params.py b/src/cloudflare/types/radar/netflow_summary_params.py index 9d2f80d42..eaae72b84 100644 --- a/src/cloudflare/types/radar/netflow_summary_params.py +++ b/src/cloudflare/types/radar/netflow_summary_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["NetflowSummaryParams"] diff --git a/src/cloudflare/types/radar/netflow_summary_response.py b/src/cloudflare/types/radar/netflow_summary_response.py index 2ad4c80c5..bfaf00772 100644 --- a/src/cloudflare/types/radar/netflow_summary_response.py +++ b/src/cloudflare/types/radar/netflow_summary_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = [ "NetflowSummaryResponse", "Meta", diff --git a/src/cloudflare/types/radar/netflow_timeseries_params.py b/src/cloudflare/types/radar/netflow_timeseries_params.py index b42f31490..4b0bc3ba3 100644 --- a/src/cloudflare/types/radar/netflow_timeseries_params.py +++ b/src/cloudflare/types/radar/netflow_timeseries_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ..._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes from ..._utils import PropertyInfo __all__ = ["NetflowTimeseriesParams"] diff --git a/src/cloudflare/types/radar/netflow_timeseries_response.py b/src/cloudflare/types/radar/netflow_timeseries_response.py index 9635cbaad..99701458c 100644 --- a/src/cloudflare/types/radar/netflow_timeseries_response.py +++ b/src/cloudflare/types/radar/netflow_timeseries_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = [ "NetflowTimeseriesResponse", "Meta", diff --git a/src/cloudflare/types/radar/netflows/__init__.py b/src/cloudflare/types/radar/netflows/__init__.py index a0a9c34bb..4bc84848b 100644 --- a/src/cloudflare/types/radar/netflows/__init__.py +++ b/src/cloudflare/types/radar/netflows/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations -from .top_ases_response import TopAsesResponse as TopAsesResponse -from .top_locations_response import TopLocationsResponse as TopLocationsResponse from .top_ases_params import TopAsesParams as TopAsesParams +from .top_ases_response import TopAsesResponse as TopAsesResponse from .top_locations_params import TopLocationsParams as TopLocationsParams +from .top_locations_response import TopLocationsResponse as TopLocationsResponse diff --git a/src/cloudflare/types/radar/netflows/top_ases_params.py b/src/cloudflare/types/radar/netflows/top_ases_params.py index 101f518b2..951cd0fb3 100644 --- a/src/cloudflare/types/radar/netflows/top_ases_params.py +++ b/src/cloudflare/types/radar/netflows/top_ases_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["TopAsesParams"] diff --git a/src/cloudflare/types/radar/netflows/top_ases_response.py b/src/cloudflare/types/radar/netflows/top_ases_response.py index a456ab677..90b022f89 100644 --- a/src/cloudflare/types/radar/netflows/top_ases_response.py +++ b/src/cloudflare/types/radar/netflows/top_ases_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["TopAsesResponse", "Top0"] diff --git a/src/cloudflare/types/radar/netflows/top_locations_params.py b/src/cloudflare/types/radar/netflows/top_locations_params.py index ab0eb3e6c..74b6631d0 100644 --- a/src/cloudflare/types/radar/netflows/top_locations_params.py +++ b/src/cloudflare/types/radar/netflows/top_locations_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["TopLocationsParams"] diff --git a/src/cloudflare/types/radar/netflows/top_locations_response.py b/src/cloudflare/types/radar/netflows/top_locations_response.py index 1bfd5e0e8..fc168e7c5 100644 --- a/src/cloudflare/types/radar/netflows/top_locations_response.py +++ b/src/cloudflare/types/radar/netflows/top_locations_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["TopLocationsResponse", "Top0"] diff --git a/src/cloudflare/types/radar/quality/__init__.py b/src/cloudflare/types/radar/quality/__init__.py index 882eca62b..c7b11dc96 100644 --- a/src/cloudflare/types/radar/quality/__init__.py +++ b/src/cloudflare/types/radar/quality/__init__.py @@ -2,11 +2,11 @@ from __future__ import annotations -from .iqi_summary_response import IQISummaryResponse as IQISummaryResponse -from .iqi_timeseries_groups_response import IQITimeseriesGroupsResponse as IQITimeseriesGroupsResponse from .iqi_summary_params import IQISummaryParams as IQISummaryParams -from .iqi_timeseries_groups_params import IQITimeseriesGroupsParams as IQITimeseriesGroupsParams -from .speed_histogram_response import SpeedHistogramResponse as SpeedHistogramResponse -from .speed_summary_response import SpeedSummaryResponse as SpeedSummaryResponse -from .speed_histogram_params import SpeedHistogramParams as SpeedHistogramParams +from .iqi_summary_response import IQISummaryResponse as IQISummaryResponse from .speed_summary_params import SpeedSummaryParams as SpeedSummaryParams +from .speed_histogram_params import SpeedHistogramParams as SpeedHistogramParams +from .speed_summary_response import SpeedSummaryResponse as SpeedSummaryResponse +from .speed_histogram_response import SpeedHistogramResponse as SpeedHistogramResponse +from .iqi_timeseries_groups_params import IQITimeseriesGroupsParams as IQITimeseriesGroupsParams +from .iqi_timeseries_groups_response import IQITimeseriesGroupsResponse as IQITimeseriesGroupsResponse diff --git a/src/cloudflare/types/radar/quality/iqi_summary_params.py b/src/cloudflare/types/radar/quality/iqi_summary_params.py index 1ac9f2d8f..1de09c36a 100644 --- a/src/cloudflare/types/radar/quality/iqi_summary_params.py +++ b/src/cloudflare/types/radar/quality/iqi_summary_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Required, Annotated - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Required, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["IQISummaryParams"] diff --git a/src/cloudflare/types/radar/quality/iqi_summary_response.py b/src/cloudflare/types/radar/quality/iqi_summary_response.py index 517295ae7..3e241c1ed 100644 --- a/src/cloudflare/types/radar/quality/iqi_summary_response.py +++ b/src/cloudflare/types/radar/quality/iqi_summary_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "IQISummaryResponse", "Meta", diff --git a/src/cloudflare/types/radar/quality/iqi_timeseries_groups_params.py b/src/cloudflare/types/radar/quality/iqi_timeseries_groups_params.py index ded1a73d0..6923ba58c 100644 --- a/src/cloudflare/types/radar/quality/iqi_timeseries_groups_params.py +++ b/src/cloudflare/types/radar/quality/iqi_timeseries_groups_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Required, Annotated - -from ...._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Required, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["IQITimeseriesGroupsParams"] diff --git a/src/cloudflare/types/radar/quality/iqi_timeseries_groups_response.py b/src/cloudflare/types/radar/quality/iqi_timeseries_groups_response.py index 6081a9bf5..1f4fca310 100644 --- a/src/cloudflare/types/radar/quality/iqi_timeseries_groups_response.py +++ b/src/cloudflare/types/radar/quality/iqi_timeseries_groups_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["IQITimeseriesGroupsResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/quality/speed/__init__.py b/src/cloudflare/types/radar/quality/speed/__init__.py index a0a9c34bb..4bc84848b 100644 --- a/src/cloudflare/types/radar/quality/speed/__init__.py +++ b/src/cloudflare/types/radar/quality/speed/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations -from .top_ases_response import TopAsesResponse as TopAsesResponse -from .top_locations_response import TopLocationsResponse as TopLocationsResponse from .top_ases_params import TopAsesParams as TopAsesParams +from .top_ases_response import TopAsesResponse as TopAsesResponse from .top_locations_params import TopLocationsParams as TopLocationsParams +from .top_locations_response import TopLocationsResponse as TopLocationsResponse diff --git a/src/cloudflare/types/radar/quality/speed/top_ases_params.py b/src/cloudflare/types/radar/quality/speed/top_ases_params.py index 9e2b73606..d6d3e12b7 100644 --- a/src/cloudflare/types/radar/quality/speed/top_ases_params.py +++ b/src/cloudflare/types/radar/quality/speed/top_ases_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["TopAsesParams"] diff --git a/src/cloudflare/types/radar/quality/speed/top_ases_response.py b/src/cloudflare/types/radar/quality/speed/top_ases_response.py index 707fd697d..a67ff9d1b 100644 --- a/src/cloudflare/types/radar/quality/speed/top_ases_response.py +++ b/src/cloudflare/types/radar/quality/speed/top_ases_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["TopAsesResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/quality/speed/top_locations_params.py b/src/cloudflare/types/radar/quality/speed/top_locations_params.py index 213976a42..89adc5a99 100644 --- a/src/cloudflare/types/radar/quality/speed/top_locations_params.py +++ b/src/cloudflare/types/radar/quality/speed/top_locations_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["TopLocationsParams"] diff --git a/src/cloudflare/types/radar/quality/speed/top_locations_response.py b/src/cloudflare/types/radar/quality/speed/top_locations_response.py index af27ac956..37420438e 100644 --- a/src/cloudflare/types/radar/quality/speed/top_locations_response.py +++ b/src/cloudflare/types/radar/quality/speed/top_locations_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = [ "TopLocationsResponse", "Meta", diff --git a/src/cloudflare/types/radar/quality/speed_histogram_params.py b/src/cloudflare/types/radar/quality/speed_histogram_params.py index 5a3f73cc0..489717a60 100644 --- a/src/cloudflare/types/radar/quality/speed_histogram_params.py +++ b/src/cloudflare/types/radar/quality/speed_histogram_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - -from ...._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["SpeedHistogramParams"] diff --git a/src/cloudflare/types/radar/quality/speed_histogram_response.py b/src/cloudflare/types/radar/quality/speed_histogram_response.py index 404194ced..61d0fbc66 100644 --- a/src/cloudflare/types/radar/quality/speed_histogram_response.py +++ b/src/cloudflare/types/radar/quality/speed_histogram_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["SpeedHistogramResponse", "Histogram0"] diff --git a/src/cloudflare/types/radar/quality/speed_summary_params.py b/src/cloudflare/types/radar/quality/speed_summary_params.py index 49554db5f..8cf97078b 100644 --- a/src/cloudflare/types/radar/quality/speed_summary_params.py +++ b/src/cloudflare/types/radar/quality/speed_summary_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["SpeedSummaryParams"] diff --git a/src/cloudflare/types/radar/quality/speed_summary_response.py b/src/cloudflare/types/radar/quality/speed_summary_response.py index 953d4cd37..af59a84fb 100644 --- a/src/cloudflare/types/radar/quality/speed_summary_response.py +++ b/src/cloudflare/types/radar/quality/speed_summary_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "SpeedSummaryResponse", "Meta", diff --git a/src/cloudflare/types/radar/radar_email_series.py b/src/cloudflare/types/radar/radar_email_series.py index 18aeda7d8..dbe15ff3c 100644 --- a/src/cloudflare/types/radar/radar_email_series.py +++ b/src/cloudflare/types/radar/radar_email_series.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["RadarEmailSeries"] diff --git a/src/cloudflare/types/radar/radar_email_summary.py b/src/cloudflare/types/radar/radar_email_summary.py index 3c5dc4722..d98b19527 100644 --- a/src/cloudflare/types/radar/radar_email_summary.py +++ b/src/cloudflare/types/radar/radar_email_summary.py @@ -1,11 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["RadarEmailSummary"] diff --git a/src/cloudflare/types/radar/ranking/__init__.py b/src/cloudflare/types/radar/ranking/__init__.py index fa50d0635..14589db42 100644 --- a/src/cloudflare/types/radar/ranking/__init__.py +++ b/src/cloudflare/types/radar/ranking/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .domain_get_response import DomainGetResponse as DomainGetResponse from .domain_get_params import DomainGetParams as DomainGetParams +from .domain_get_response import DomainGetResponse as DomainGetResponse diff --git a/src/cloudflare/types/radar/ranking/domain_get_params.py b/src/cloudflare/types/radar/ranking/domain_get_params.py index cec06ce16..98bbbaf27 100644 --- a/src/cloudflare/types/radar/ranking/domain_get_params.py +++ b/src/cloudflare/types/radar/ranking/domain_get_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["DomainGetParams"] diff --git a/src/cloudflare/types/radar/ranking/domain_get_response.py b/src/cloudflare/types/radar/ranking/domain_get_response.py index 435d86047..1f2feba60 100644 --- a/src/cloudflare/types/radar/ranking/domain_get_response.py +++ b/src/cloudflare/types/radar/ranking/domain_get_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List, Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["DomainGetResponse", "Details0", "Details0Category", "Details0TopLocation"] diff --git a/src/cloudflare/types/radar/ranking_timeseries_groups_params.py b/src/cloudflare/types/radar/ranking_timeseries_groups_params.py index e78608913..f9f165cc3 100644 --- a/src/cloudflare/types/radar/ranking_timeseries_groups_params.py +++ b/src/cloudflare/types/radar/ranking_timeseries_groups_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["RankingTimeseriesGroupsParams"] diff --git a/src/cloudflare/types/radar/ranking_timeseries_groups_response.py b/src/cloudflare/types/radar/ranking_timeseries_groups_response.py index b2da6c2de..804dbdab1 100644 --- a/src/cloudflare/types/radar/ranking_timeseries_groups_response.py +++ b/src/cloudflare/types/radar/ranking_timeseries_groups_response.py @@ -1,15 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import TYPE_CHECKING, List, Union from datetime import datetime -from typing import List, Union - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo -from typing import TYPE_CHECKING + +from ..._models import BaseModel __all__ = ["RankingTimeseriesGroupsResponse", "Meta", "MetaDateRange", "Serie0"] diff --git a/src/cloudflare/types/radar/ranking_top_params.py b/src/cloudflare/types/radar/ranking_top_params.py index a7f92af80..e482e6f9f 100644 --- a/src/cloudflare/types/radar/ranking_top_params.py +++ b/src/cloudflare/types/radar/ranking_top_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - from typing import List +from typing_extensions import Literal, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["RankingTopParams"] diff --git a/src/cloudflare/types/radar/ranking_top_response.py b/src/cloudflare/types/radar/ranking_top_response.py index 08ef07dc3..83c7e56df 100644 --- a/src/cloudflare/types/radar/ranking_top_response.py +++ b/src/cloudflare/types/radar/ranking_top_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List, Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["RankingTopResponse", "Meta", "MetaTop0", "Top0", "Top0Category"] diff --git a/src/cloudflare/types/radar/robots_txt/__init__.py b/src/cloudflare/types/radar/robots_txt/__init__.py deleted file mode 100644 index f8ee8b14b..000000000 --- a/src/cloudflare/types/radar/robots_txt/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations diff --git a/src/cloudflare/types/radar/robots_txt/top/__init__.py b/src/cloudflare/types/radar/robots_txt/top/__init__.py deleted file mode 100644 index e76d5b18e..000000000 --- a/src/cloudflare/types/radar/robots_txt/top/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from .directive_get_response import DirectiveGetResponse as DirectiveGetResponse -from .directive_get_params import DirectiveGetParams as DirectiveGetParams diff --git a/src/cloudflare/types/radar/robots_txt/top/directive_get_params.py b/src/cloudflare/types/radar/robots_txt/top/directive_get_params.py deleted file mode 100644 index 0e79f3d3a..000000000 --- a/src/cloudflare/types/radar/robots_txt/top/directive_get_params.py +++ /dev/null @@ -1,33 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing_extensions import TypedDict, Literal, Annotated - -from ....._utils import PropertyInfo - -from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - -__all__ = ["DirectiveGetParams"] - - -class DirectiveGetParams(TypedDict, total=False): - agent_category: Annotated[Literal["AI"], PropertyInfo(alias="agentCategory")] - """Filter by user agent category.""" - - date: str - """Date to filter the ranking.""" - - format: Literal["JSON", "CSV"] - """Format results are returned in.""" - - limit: int - """Limit the number of objects in the response.""" - - name: List[str] - """Array of names that will be used to name the series in responses.""" diff --git a/src/cloudflare/types/radar/robots_txt/top/directive_get_response.py b/src/cloudflare/types/radar/robots_txt/top/directive_get_response.py deleted file mode 100644 index 11ce3a509..000000000 --- a/src/cloudflare/types/radar/robots_txt/top/directive_get_response.py +++ /dev/null @@ -1,76 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from ....._models import BaseModel - -from datetime import datetime - -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - -__all__ = [ - "DirectiveGetResponse", - "Meta", - "MetaDateRange", - "MetaConfidenceInfo", - "MetaConfidenceInfoAnnotation", - "Top0", -] - - -class MetaDateRange(BaseModel): - end_time: datetime = FieldInfo(alias="endTime") - """Adjusted end of date range.""" - - start_time: datetime = FieldInfo(alias="startTime") - """Adjusted start of date range.""" - - -class MetaConfidenceInfoAnnotation(BaseModel): - data_source: str = FieldInfo(alias="dataSource") - - description: str - - event_type: str = FieldInfo(alias="eventType") - - is_instantaneous: bool = FieldInfo(alias="isInstantaneous") - - end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None) - - linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None) - - start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None) - - -class MetaConfidenceInfo(BaseModel): - annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None - - level: Optional[int] = None - - -class Meta(BaseModel): - date_range: List[MetaDateRange] = FieldInfo(alias="dateRange") - - last_updated: str = FieldInfo(alias="lastUpdated") - - confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None) - - -class Top0(BaseModel): - date: str - - fully: int - - partially: int - - total: int - - user_agent: str = FieldInfo(alias="userAgent") - - -class DirectiveGetResponse(BaseModel): - meta: Meta - - top_0: List[Top0] diff --git a/src/cloudflare/types/radar/robots_txt_domains_params.py b/src/cloudflare/types/radar/robots_txt_domains_params.py deleted file mode 100644 index 207a0ac76..000000000 --- a/src/cloudflare/types/radar/robots_txt_domains_params.py +++ /dev/null @@ -1,31 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing_extensions import TypedDict, Annotated, Literal - -from ..._utils import PropertyInfo - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - -__all__ = ["RobotsTXTDomainsParams"] - - -class RobotsTXTDomainsParams(TypedDict, total=False): - domain_category: Annotated[str, PropertyInfo(alias="domainCategory")] - """Filter domains by category""" - - domain_name: Annotated[str, PropertyInfo(alias="domainName")] - """Filter domains by name""" - - format: Literal["JSON", "CSV"] - """Format results are returned in.""" - - limit: int - """Limit the number of objects in the response.""" - - offset: int - """Number of objects to skip before grabbing results.""" diff --git a/src/cloudflare/types/radar/robots_txt_domains_response.py b/src/cloudflare/types/radar/robots_txt_domains_response.py deleted file mode 100644 index e82f91325..000000000 --- a/src/cloudflare/types/radar/robots_txt_domains_response.py +++ /dev/null @@ -1,29 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from ..._models import BaseModel - -from typing import List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - -__all__ = ["RobotsTXTDomainsResponse", "Domain"] - -class Domain(BaseModel): - : str = FieldInfo(alias = "*") - - amazonbot: str - - categories_parent: str - - categories_sub: str - - domain: str - -class RobotsTXTDomainsResponse(BaseModel): - date: str - - domains: List[Domain] - - user_agents: List[str] = FieldInfo(alias = "userAgents") \ No newline at end of file diff --git a/src/cloudflare/types/radar/search_global_params.py b/src/cloudflare/types/radar/search_global_params.py index 8b746da25..a819d17e1 100644 --- a/src/cloudflare/types/radar/search_global_params.py +++ b/src/cloudflare/types/radar/search_global_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, Annotated - from typing import List +from typing_extensions import Literal, Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["SearchGlobalParams"] diff --git a/src/cloudflare/types/radar/search_global_response.py b/src/cloudflare/types/radar/search_global_response.py index ada0ca0d4..caa75d7e2 100644 --- a/src/cloudflare/types/radar/search_global_response.py +++ b/src/cloudflare/types/radar/search_global_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["SearchGlobalResponse", "Search"] diff --git a/src/cloudflare/types/radar/tcp_resets_timeout_summary_params.py b/src/cloudflare/types/radar/tcp_resets_timeout_summary_params.py index 56847fd57..a278b500c 100644 --- a/src/cloudflare/types/radar/tcp_resets_timeout_summary_params.py +++ b/src/cloudflare/types/radar/tcp_resets_timeout_summary_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["TCPResetsTimeoutSummaryParams"] diff --git a/src/cloudflare/types/radar/tcp_resets_timeout_summary_response.py b/src/cloudflare/types/radar/tcp_resets_timeout_summary_response.py index 75178478e..f38a9c7df 100644 --- a/src/cloudflare/types/radar/tcp_resets_timeout_summary_response.py +++ b/src/cloudflare/types/radar/tcp_resets_timeout_summary_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = [ "TCPResetsTimeoutSummaryResponse", "Meta", diff --git a/src/cloudflare/types/radar/tcp_resets_timeout_timeseries_groups_params.py b/src/cloudflare/types/radar/tcp_resets_timeout_timeseries_groups_params.py index f4b2134d8..81d83b0cd 100644 --- a/src/cloudflare/types/radar/tcp_resets_timeout_timeseries_groups_params.py +++ b/src/cloudflare/types/radar/tcp_resets_timeout_timeseries_groups_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Annotated - -from ..._utils import PropertyInfo - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes from ..._utils import PropertyInfo __all__ = ["TCPResetsTimeoutTimeseriesGroupsParams"] diff --git a/src/cloudflare/types/radar/tcp_resets_timeout_timeseries_groups_response.py b/src/cloudflare/types/radar/tcp_resets_timeout_timeseries_groups_response.py index 43442702d..84e1ce0e8 100644 --- a/src/cloudflare/types/radar/tcp_resets_timeout_timeseries_groups_response.py +++ b/src/cloudflare/types/radar/tcp_resets_timeout_timeseries_groups_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = [ "TCPResetsTimeoutTimeseriesGroupsResponse", "Meta", diff --git a/src/cloudflare/types/radar/traffic_anomalies/__init__.py b/src/cloudflare/types/radar/traffic_anomalies/__init__.py index 0593306b5..f76395bb6 100644 --- a/src/cloudflare/types/radar/traffic_anomalies/__init__.py +++ b/src/cloudflare/types/radar/traffic_anomalies/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .location_get_response import LocationGetResponse as LocationGetResponse from .location_get_params import LocationGetParams as LocationGetParams +from .location_get_response import LocationGetResponse as LocationGetResponse diff --git a/src/cloudflare/types/radar/traffic_anomalies/location_get_params.py b/src/cloudflare/types/radar/traffic_anomalies/location_get_params.py index 08759f229..bd0ebc748 100644 --- a/src/cloudflare/types/radar/traffic_anomalies/location_get_params.py +++ b/src/cloudflare/types/radar/traffic_anomalies/location_get_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["LocationGetParams"] diff --git a/src/cloudflare/types/radar/traffic_anomalies/location_get_response.py b/src/cloudflare/types/radar/traffic_anomalies/location_get_response.py index ae4bba13f..3cf6ca01d 100644 --- a/src/cloudflare/types/radar/traffic_anomalies/location_get_response.py +++ b/src/cloudflare/types/radar/traffic_anomalies/location_get_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["LocationGetResponse", "TrafficAnomaly"] diff --git a/src/cloudflare/types/radar/traffic_anomaly_get_params.py b/src/cloudflare/types/radar/traffic_anomaly_get_params.py index d204637d3..0fae350c5 100644 --- a/src/cloudflare/types/radar/traffic_anomaly_get_params.py +++ b/src/cloudflare/types/radar/traffic_anomaly_get_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["TrafficAnomalyGetParams"] diff --git a/src/cloudflare/types/radar/traffic_anomaly_get_response.py b/src/cloudflare/types/radar/traffic_anomaly_get_response.py index 08bcab1b4..ba231bfa2 100644 --- a/src/cloudflare/types/radar/traffic_anomaly_get_response.py +++ b/src/cloudflare/types/radar/traffic_anomaly_get_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel +from typing import List, Optional -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = [ "TrafficAnomalyGetResponse", "TrafficAnomaly", diff --git a/src/cloudflare/types/radar/verified_bots/__init__.py b/src/cloudflare/types/radar/verified_bots/__init__.py index 05f459165..664508a4c 100644 --- a/src/cloudflare/types/radar/verified_bots/__init__.py +++ b/src/cloudflare/types/radar/verified_bots/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations -from .top_bots_response import TopBotsResponse as TopBotsResponse -from .top_categories_response import TopCategoriesResponse as TopCategoriesResponse from .top_bots_params import TopBotsParams as TopBotsParams +from .top_bots_response import TopBotsResponse as TopBotsResponse from .top_categories_params import TopCategoriesParams as TopCategoriesParams +from .top_categories_response import TopCategoriesResponse as TopCategoriesResponse diff --git a/src/cloudflare/types/radar/verified_bots/top_bots_params.py b/src/cloudflare/types/radar/verified_bots/top_bots_params.py index 9622a13a5..5eb7fcda9 100644 --- a/src/cloudflare/types/radar/verified_bots/top_bots_params.py +++ b/src/cloudflare/types/radar/verified_bots/top_bots_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["TopBotsParams"] diff --git a/src/cloudflare/types/radar/verified_bots/top_bots_response.py b/src/cloudflare/types/radar/verified_bots/top_bots_response.py index 83ee9bb6b..2e3ffc6a6 100644 --- a/src/cloudflare/types/radar/verified_bots/top_bots_response.py +++ b/src/cloudflare/types/radar/verified_bots/top_bots_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["TopBotsResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/verified_bots/top_categories_params.py b/src/cloudflare/types/radar/verified_bots/top_categories_params.py index 4079ea2d0..70f3ced1d 100644 --- a/src/cloudflare/types/radar/verified_bots/top_categories_params.py +++ b/src/cloudflare/types/radar/verified_bots/top_categories_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["TopCategoriesParams"] diff --git a/src/cloudflare/types/radar/verified_bots/top_categories_response.py b/src/cloudflare/types/radar/verified_bots/top_categories_response.py index fd03ee6d7..46260e454 100644 --- a/src/cloudflare/types/radar/verified_bots/top_categories_response.py +++ b/src/cloudflare/types/radar/verified_bots/top_categories_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Optional from datetime import datetime -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "TopCategoriesResponse", "Meta", diff --git a/src/cloudflare/types/rate_limits/__init__.py b/src/cloudflare/types/rate_limits/__init__.py index 730f59c28..ac12490e2 100644 --- a/src/cloudflare/types/rate_limits/__init__.py +++ b/src/cloudflare/types/rate_limits/__init__.py @@ -5,10 +5,10 @@ from __future__ import annotations from .action import Action as Action from .methods import Methods as Methods from .rate_limit import RateLimit as RateLimit -from .rate_limit_create_response import RateLimitCreateResponse as RateLimitCreateResponse -from .rate_limit_delete_response import RateLimitDeleteResponse as RateLimitDeleteResponse -from .rate_limit_edit_response import RateLimitEditResponse as RateLimitEditResponse +from .rate_limit_edit_params import RateLimitEditParams as RateLimitEditParams +from .rate_limit_list_params import RateLimitListParams as RateLimitListParams from .rate_limit_get_response import RateLimitGetResponse as RateLimitGetResponse from .rate_limit_create_params import RateLimitCreateParams as RateLimitCreateParams -from .rate_limit_list_params import RateLimitListParams as RateLimitListParams -from .rate_limit_edit_params import RateLimitEditParams as RateLimitEditParams +from .rate_limit_edit_response import RateLimitEditResponse as RateLimitEditResponse +from .rate_limit_create_response import RateLimitCreateResponse as RateLimitCreateResponse +from .rate_limit_delete_response import RateLimitDeleteResponse as RateLimitDeleteResponse diff --git a/src/cloudflare/types/rate_limits/action.py b/src/cloudflare/types/rate_limits/action.py index 9ca65f92b..56a4942dd 100644 --- a/src/cloudflare/types/rate_limits/action.py +++ b/src/cloudflare/types/rate_limits/action.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Action"] Action: TypeAlias = Literal["block", "challenge", "js_challenge", "managed_challenge", "allow", "log", "bypass"] diff --git a/src/cloudflare/types/rate_limits/methods.py b/src/cloudflare/types/rate_limits/methods.py index 0f479cdb1..56be0c9d9 100644 --- a/src/cloudflare/types/rate_limits/methods.py +++ b/src/cloudflare/types/rate_limits/methods.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Methods"] Methods: TypeAlias = Literal["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "_ALL_"] diff --git a/src/cloudflare/types/rate_limits/rate_limit.py b/src/cloudflare/types/rate_limits/rate_limit.py index 71407c7e9..9fa5741af 100644 --- a/src/cloudflare/types/rate_limits/rate_limit.py +++ b/src/cloudflare/types/rate_limits/rate_limit.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from typing_extensions import Literal from .methods import Methods - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RateLimit", "Action", "ActionResponse", "Bypass", "Match", "MatchHeader", "MatchRequest", "MatchResponse"] diff --git a/src/cloudflare/types/rate_limits/rate_limit_create_params.py b/src/cloudflare/types/rate_limits/rate_limit_create_params.py index e183b5993..b118bb033 100644 --- a/src/cloudflare/types/rate_limits/rate_limit_create_params.py +++ b/src/cloudflare/types/rate_limits/rate_limit_create_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import Iterable, List +from typing import List, Iterable +from typing_extensions import Literal, Required, TypedDict from .methods import Methods -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["RateLimitCreateParams", "Action", "ActionResponse", "Match", "MatchHeader", "MatchRequest", "MatchResponse"] diff --git a/src/cloudflare/types/rate_limits/rate_limit_create_response.py b/src/cloudflare/types/rate_limits/rate_limit_create_response.py index f682a820f..46f90b4a9 100644 --- a/src/cloudflare/types/rate_limits/rate_limit_create_response.py +++ b/src/cloudflare/types/rate_limits/rate_limit_create_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - +from typing import Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["RateLimitCreateResponse"] RateLimitCreateResponse: TypeAlias = Union[Optional[str], object] diff --git a/src/cloudflare/types/rate_limits/rate_limit_delete_response.py b/src/cloudflare/types/rate_limits/rate_limit_delete_response.py index c7623dec7..779d21472 100644 --- a/src/cloudflare/types/rate_limits/rate_limit_delete_response.py +++ b/src/cloudflare/types/rate_limits/rate_limit_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RateLimitDeleteResponse"] diff --git a/src/cloudflare/types/rate_limits/rate_limit_edit_params.py b/src/cloudflare/types/rate_limits/rate_limit_edit_params.py index c7f8a83c5..02200d2e3 100644 --- a/src/cloudflare/types/rate_limits/rate_limit_edit_params.py +++ b/src/cloudflare/types/rate_limits/rate_limit_edit_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import Iterable, List +from typing import List, Iterable +from typing_extensions import Literal, Required, TypedDict from .methods import Methods -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["RateLimitEditParams", "Action", "ActionResponse", "Match", "MatchHeader", "MatchRequest", "MatchResponse"] diff --git a/src/cloudflare/types/rate_limits/rate_limit_edit_response.py b/src/cloudflare/types/rate_limits/rate_limit_edit_response.py index d7064cd30..6bf33364b 100644 --- a/src/cloudflare/types/rate_limits/rate_limit_edit_response.py +++ b/src/cloudflare/types/rate_limits/rate_limit_edit_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - +from typing import Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["RateLimitEditResponse"] RateLimitEditResponse: TypeAlias = Union[Optional[str], object] diff --git a/src/cloudflare/types/rate_limits/rate_limit_get_response.py b/src/cloudflare/types/rate_limits/rate_limit_get_response.py index 04a80bc0c..edefe69c8 100644 --- a/src/cloudflare/types/rate_limits/rate_limit_get_response.py +++ b/src/cloudflare/types/rate_limits/rate_limit_get_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - +from typing import Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["RateLimitGetResponse"] RateLimitGetResponse: TypeAlias = Union[Optional[str], object] diff --git a/src/cloudflare/types/rate_limits/rate_limit_list_params.py b/src/cloudflare/types/rate_limits/rate_limit_list_params.py index e74fb38c0..de7ce430a 100644 --- a/src/cloudflare/types/rate_limits/rate_limit_list_params.py +++ b/src/cloudflare/types/rate_limits/rate_limit_list_params.py @@ -4,11 +4,6 @@ from __future__ import annotations from typing_extensions import TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["RateLimitListParams"] diff --git a/src/cloudflare/types/rate_plans/rate_plan.py b/src/cloudflare/types/rate_plans/rate_plan.py index 55d72dd9b..b903fed0f 100644 --- a/src/cloudflare/types/rate_plans/rate_plan.py +++ b/src/cloudflare/types/rate_plans/rate_plan.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel -from typing import Optional, List - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["RatePlan", "Component"] diff --git a/src/cloudflare/types/rate_plans/rate_plan_get_response.py b/src/cloudflare/types/rate_plans/rate_plan_get_response.py index a0951406d..3882b66e4 100644 --- a/src/cloudflare/types/rate_plans/rate_plan_get_response.py +++ b/src/cloudflare/types/rate_plans/rate_plan_get_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .rate_plan import RatePlan - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .rate_plan import RatePlan __all__ = ["RatePlanGetResponse"] diff --git a/src/cloudflare/types/registrar/__init__.py b/src/cloudflare/types/registrar/__init__.py index 5ce3c6568..bde3ce2da 100644 --- a/src/cloudflare/types/registrar/__init__.py +++ b/src/cloudflare/types/registrar/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations -from .domain_update_response import DomainUpdateResponse as DomainUpdateResponse -from .domain_list_response import DomainListResponse as DomainListResponse from .domain_get_response import DomainGetResponse as DomainGetResponse +from .domain_list_response import DomainListResponse as DomainListResponse from .domain_update_params import DomainUpdateParams as DomainUpdateParams +from .domain_update_response import DomainUpdateResponse as DomainUpdateResponse diff --git a/src/cloudflare/types/registrar/domain_get_response.py b/src/cloudflare/types/registrar/domain_get_response.py index 52788a74b..61920fb7e 100644 --- a/src/cloudflare/types/registrar/domain_get_response.py +++ b/src/cloudflare/types/registrar/domain_get_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List - +from typing import List, Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["DomainGetResponse"] DomainGetResponse: TypeAlias = Union[List[object], str, object, None] diff --git a/src/cloudflare/types/registrar/domain_list_response.py b/src/cloudflare/types/registrar/domain_list_response.py index 4ab2a6af2..fe5244670 100644 --- a/src/cloudflare/types/registrar/domain_list_response.py +++ b/src/cloudflare/types/registrar/domain_list_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Union, Optional +from typing_extensions import Literal + from ..._models import BaseModel - -from typing import Optional, List, Union - from ..shared.response_info import ResponseInfo -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["DomainListResponse", "ResultInfo"] diff --git a/src/cloudflare/types/registrar/domain_update_params.py b/src/cloudflare/types/registrar/domain_update_params.py index df747d5ca..c69ee2fe8 100644 --- a/src/cloudflare/types/registrar/domain_update_params.py +++ b/src/cloudflare/types/registrar/domain_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["DomainUpdateParams"] diff --git a/src/cloudflare/types/registrar/domain_update_response.py b/src/cloudflare/types/registrar/domain_update_response.py index dc6922321..29da0dd13 100644 --- a/src/cloudflare/types/registrar/domain_update_response.py +++ b/src/cloudflare/types/registrar/domain_update_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List - +from typing import List, Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["DomainUpdateResponse"] DomainUpdateResponse: TypeAlias = Union[List[object], str, object, None] diff --git a/src/cloudflare/types/request_tracers/__init__.py b/src/cloudflare/types/request_tracers/__init__.py index bdb1e9bea..40a594702 100644 --- a/src/cloudflare/types/request_tracers/__init__.py +++ b/src/cloudflare/types/request_tracers/__init__.py @@ -4,5 +4,5 @@ from __future__ import annotations from .trace import Trace as Trace from .trace_item import TraceItem as TraceItem -from .trace_create_response import TraceCreateResponse as TraceCreateResponse from .trace_create_params import TraceCreateParams as TraceCreateParams +from .trace_create_response import TraceCreateResponse as TraceCreateResponse diff --git a/src/cloudflare/types/request_tracers/trace.py b/src/cloudflare/types/request_tracers/trace.py index 797ede513..d43de3f5a 100644 --- a/src/cloudflare/types/request_tracers/trace.py +++ b/src/cloudflare/types/request_tracers/trace.py @@ -2,12 +2,9 @@ from __future__ import annotations +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Trace"] Trace: TypeAlias = List["TraceItem"] diff --git a/src/cloudflare/types/request_tracers/trace_create_params.py b/src/cloudflare/types/request_tracers/trace_create_params.py index 2e777b520..6acca264b 100644 --- a/src/cloudflare/types/request_tracers/trace_create_params.py +++ b/src/cloudflare/types/request_tracers/trace_create_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Dict - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["TraceCreateParams", "Body", "Context", "ContextGeoloc"] diff --git a/src/cloudflare/types/request_tracers/trace_create_response.py b/src/cloudflare/types/request_tracers/trace_create_response.py index b78d569c8..3e72c080e 100644 --- a/src/cloudflare/types/request_tracers/trace_create_response.py +++ b/src/cloudflare/types/request_tracers/trace_create_response.py @@ -2,14 +2,10 @@ from __future__ import annotations -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo from ..._compat import PYDANTIC_V2 +from ..._models import BaseModel __all__ = ["TraceCreateResponse"] diff --git a/src/cloudflare/types/request_tracers/trace_item.py b/src/cloudflare/types/request_tracers/trace_item.py index a5d1ca506..283076411 100644 --- a/src/cloudflare/types/request_tracers/trace_item.py +++ b/src/cloudflare/types/request_tracers/trace_item.py @@ -2,14 +2,10 @@ from __future__ import annotations -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo from ..._compat import PYDANTIC_V2 +from ..._models import BaseModel __all__ = ["TraceItem"] diff --git a/src/cloudflare/types/rules/__init__.py b/src/cloudflare/types/rules/__init__.py index ea80f1033..f1b0f21a4 100644 --- a/src/cloudflare/types/rules/__init__.py +++ b/src/cloudflare/types/rules/__init__.py @@ -3,10 +3,10 @@ from __future__ import annotations from .hostname import Hostname as Hostname -from .hostname_param import HostnameParam as HostnameParam -from .lists_list import ListsList as ListsList from .redirect import Redirect as Redirect +from .lists_list import ListsList as ListsList +from .hostname_param import HostnameParam as HostnameParam from .redirect_param import RedirectParam as RedirectParam -from .list_delete_response import ListDeleteResponse as ListDeleteResponse from .list_create_params import ListCreateParams as ListCreateParams from .list_update_params import ListUpdateParams as ListUpdateParams +from .list_delete_response import ListDeleteResponse as ListDeleteResponse diff --git a/src/cloudflare/types/rules/hostname.py b/src/cloudflare/types/rules/hostname.py index 95302aad4..04acdbc5d 100644 --- a/src/cloudflare/types/rules/hostname.py +++ b/src/cloudflare/types/rules/hostname.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["Hostname"] diff --git a/src/cloudflare/types/rules/hostname_param.py b/src/cloudflare/types/rules/hostname_param.py index dd11e3d3f..280651700 100644 --- a/src/cloudflare/types/rules/hostname_param.py +++ b/src/cloudflare/types/rules/hostname_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["HostnameParam"] diff --git a/src/cloudflare/types/rules/list_create_params.py b/src/cloudflare/types/rules/list_create_params.py index a92076a41..31bf0a666 100644 --- a/src/cloudflare/types/rules/list_create_params.py +++ b/src/cloudflare/types/rules/list_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["ListCreateParams"] diff --git a/src/cloudflare/types/rules/list_delete_response.py b/src/cloudflare/types/rules/list_delete_response.py index b97cd6b5e..eb08d0c7f 100644 --- a/src/cloudflare/types/rules/list_delete_response.py +++ b/src/cloudflare/types/rules/list_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ListDeleteResponse"] diff --git a/src/cloudflare/types/rules/list_update_params.py b/src/cloudflare/types/rules/list_update_params.py index a273dcbd6..055a88fca 100644 --- a/src/cloudflare/types/rules/list_update_params.py +++ b/src/cloudflare/types/rules/list_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ListUpdateParams"] diff --git a/src/cloudflare/types/rules/lists/__init__.py b/src/cloudflare/types/rules/lists/__init__.py index 33406a6ac..00311bac0 100644 --- a/src/cloudflare/types/rules/lists/__init__.py +++ b/src/cloudflare/types/rules/lists/__init__.py @@ -2,13 +2,13 @@ from __future__ import annotations -from .operation_status import OperationStatus as OperationStatus -from .bulk_operation_get_response import BulkOperationGetResponse as BulkOperationGetResponse from .list_cursor import ListCursor as ListCursor -from .item_create_response import ItemCreateResponse as ItemCreateResponse -from .item_update_response import ItemUpdateResponse as ItemUpdateResponse -from .item_delete_response import ItemDeleteResponse as ItemDeleteResponse +from .item_list_params import ItemListParams as ItemListParams +from .operation_status import OperationStatus as OperationStatus from .item_get_response import ItemGetResponse as ItemGetResponse from .item_create_params import ItemCreateParams as ItemCreateParams from .item_update_params import ItemUpdateParams as ItemUpdateParams -from .item_list_params import ItemListParams as ItemListParams +from .item_create_response import ItemCreateResponse as ItemCreateResponse +from .item_delete_response import ItemDeleteResponse as ItemDeleteResponse +from .item_update_response import ItemUpdateResponse as ItemUpdateResponse +from .bulk_operation_get_response import BulkOperationGetResponse as BulkOperationGetResponse diff --git a/src/cloudflare/types/rules/lists/bulk_operation_get_response.py b/src/cloudflare/types/rules/lists/bulk_operation_get_response.py index acba00e8d..af9bca295 100644 --- a/src/cloudflare/types/rules/lists/bulk_operation_get_response.py +++ b/src/cloudflare/types/rules/lists/bulk_operation_get_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["BulkOperationGetResponse"] BulkOperationGetResponse: TypeAlias = List[object] diff --git a/src/cloudflare/types/rules/lists/item_create_params.py b/src/cloudflare/types/rules/lists/item_create_params.py index 6d04b587a..8db16c19f 100644 --- a/src/cloudflare/types/rules/lists/item_create_params.py +++ b/src/cloudflare/types/rules/lists/item_create_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Iterable +from typing_extensions import Required, TypedDict from ..hostname_param import HostnameParam - from ..redirect_param import RedirectParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["ItemCreateParams", "Body"] diff --git a/src/cloudflare/types/rules/lists/item_create_response.py b/src/cloudflare/types/rules/lists/item_create_response.py index 477b02fc1..4f22d14d3 100644 --- a/src/cloudflare/types/rules/lists/item_create_response.py +++ b/src/cloudflare/types/rules/lists/item_create_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ItemCreateResponse"] diff --git a/src/cloudflare/types/rules/lists/item_delete_response.py b/src/cloudflare/types/rules/lists/item_delete_response.py index 99d8d0305..3b0bf9835 100644 --- a/src/cloudflare/types/rules/lists/item_delete_response.py +++ b/src/cloudflare/types/rules/lists/item_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ItemDeleteResponse"] diff --git a/src/cloudflare/types/rules/lists/item_get_response.py b/src/cloudflare/types/rules/lists/item_get_response.py index 7ad05d91f..a225e8654 100644 --- a/src/cloudflare/types/rules/lists/item_get_response.py +++ b/src/cloudflare/types/rules/lists/item_get_response.py @@ -1,14 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..redirect import Redirect - -from ..hostname import Hostname - +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..hostname import Hostname +from ..redirect import Redirect __all__ = ["ItemGetResponse"] diff --git a/src/cloudflare/types/rules/lists/item_list_params.py b/src/cloudflare/types/rules/lists/item_list_params.py index d027c72b3..a62860229 100644 --- a/src/cloudflare/types/rules/lists/item_list_params.py +++ b/src/cloudflare/types/rules/lists/item_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ItemListParams"] diff --git a/src/cloudflare/types/rules/lists/item_update_params.py b/src/cloudflare/types/rules/lists/item_update_params.py index 0ac0f18ee..eeec3b2a7 100644 --- a/src/cloudflare/types/rules/lists/item_update_params.py +++ b/src/cloudflare/types/rules/lists/item_update_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Iterable +from typing_extensions import Required, TypedDict from ..hostname_param import HostnameParam - from ..redirect_param import RedirectParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["ItemUpdateParams", "Body"] diff --git a/src/cloudflare/types/rules/lists/item_update_response.py b/src/cloudflare/types/rules/lists/item_update_response.py index 0a5d4b18a..afd2fa83b 100644 --- a/src/cloudflare/types/rules/lists/item_update_response.py +++ b/src/cloudflare/types/rules/lists/item_update_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ItemUpdateResponse"] diff --git a/src/cloudflare/types/rules/lists/list_cursor.py b/src/cloudflare/types/rules/lists/list_cursor.py index 168632200..2757b8af1 100644 --- a/src/cloudflare/types/rules/lists/list_cursor.py +++ b/src/cloudflare/types/rules/lists/list_cursor.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ListCursor"] diff --git a/src/cloudflare/types/rules/lists/operation_status.py b/src/cloudflare/types/rules/lists/operation_status.py index e98ff5227..4d5a1520f 100644 --- a/src/cloudflare/types/rules/lists/operation_status.py +++ b/src/cloudflare/types/rules/lists/operation_status.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["OperationStatus"] OperationStatus: TypeAlias = Literal["pending", "running", "completed", "failed"] diff --git a/src/cloudflare/types/rules/lists_list.py b/src/cloudflare/types/rules/lists_list.py index a0fce7b69..17255b5fa 100644 --- a/src/cloudflare/types/rules/lists_list.py +++ b/src/cloudflare/types/rules/lists_list.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ListsList"] diff --git a/src/cloudflare/types/rules/redirect.py b/src/cloudflare/types/rules/redirect.py index 42dd4a277..e52def911 100644 --- a/src/cloudflare/types/rules/redirect.py +++ b/src/cloudflare/types/rules/redirect.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Redirect"] diff --git a/src/cloudflare/types/rules/redirect_param.py b/src/cloudflare/types/rules/redirect_param.py index 00d806bc3..570fd1d90 100644 --- a/src/cloudflare/types/rules/redirect_param.py +++ b/src/cloudflare/types/rules/redirect_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["RedirectParam"] diff --git a/src/cloudflare/types/rulesets/__init__.py b/src/cloudflare/types/rulesets/__init__.py index 6b61cc9d4..7d59836d8 100644 --- a/src/cloudflare/types/rulesets/__init__.py +++ b/src/cloudflare/types/rulesets/__init__.py @@ -4,55 +4,55 @@ from __future__ import annotations from .kind import Kind as Kind from .phase import Phase as Phase -from .ruleset_create_response import RulesetCreateResponse as RulesetCreateResponse -from .ruleset_update_response import RulesetUpdateResponse as RulesetUpdateResponse -from .ruleset_list_response import RulesetListResponse as RulesetListResponse -from .ruleset_get_response import RulesetGetResponse as RulesetGetResponse -from .ruleset_create_params import RulesetCreateParams as RulesetCreateParams -from .ruleset_update_params import RulesetUpdateParams as RulesetUpdateParams -from .phase_update_response import PhaseUpdateResponse as PhaseUpdateResponse -from .phase_get_response import PhaseGetResponse as PhaseGetResponse -from .phase_update_params import PhaseUpdateParams as PhaseUpdateParams -from .block_rule import BlockRule as BlockRule -from .block_rule_param import BlockRuleParam as BlockRuleParam -from .compress_response_rule import CompressResponseRule as CompressResponseRule -from .compress_response_rule_param import CompressResponseRuleParam as CompressResponseRuleParam -from .ddos_dynamic_rule import DDoSDynamicRule as DDoSDynamicRule -from .ddos_dynamic_rule_param import DDoSDynamicRuleParam as DDoSDynamicRuleParam -from .execute_rule import ExecuteRule as ExecuteRule -from .execute_rule_param import ExecuteRuleParam as ExecuteRuleParam -from .force_connection_close_rule import ForceConnectionCloseRule as ForceConnectionCloseRule -from .force_connection_close_rule_param import ForceConnectionCloseRuleParam as ForceConnectionCloseRuleParam -from .log_custom_field_rule import LogCustomFieldRule as LogCustomFieldRule -from .log_custom_field_rule_param import LogCustomFieldRuleParam as LogCustomFieldRuleParam -from .log_rule import LogRule as LogRule -from .log_rule_param import LogRuleParam as LogRuleParam from .logging import Logging as Logging -from .logging_param import LoggingParam as LoggingParam -from .managed_challenge_rule import ManagedChallengeRule as ManagedChallengeRule -from .managed_challenge_rule_param import ManagedChallengeRuleParam as ManagedChallengeRuleParam -from .redirect_rule import RedirectRule as RedirectRule -from .redirect_rule_param import RedirectRuleParam as RedirectRuleParam -from .rewrite_rule import RewriteRule as RewriteRule -from .rewrite_rule_param import RewriteRuleParam as RewriteRuleParam -from .rewrite_uri_part import RewriteURIPart as RewriteURIPart -from .rewrite_uri_part_param import RewriteURIPartParam as RewriteURIPartParam +from .log_rule import LogRule as LogRule +from .skip_rule import SkipRule as SkipRule +from .block_rule import BlockRule as BlockRule from .route_rule import RouteRule as RouteRule -from .route_rule_param import RouteRuleParam as RouteRuleParam from .score_rule import ScoreRule as ScoreRule +from .execute_rule import ExecuteRule as ExecuteRule +from .rewrite_rule import RewriteRule as RewriteRule +from .logging_param import LoggingParam as LoggingParam +from .redirect_rule import RedirectRule as RedirectRule +from .log_rule_param import LogRuleParam as LogRuleParam +from .set_config_rule import SetConfigRule as SetConfigRule +from .skip_rule_param import SkipRuleParam as SkipRuleParam +from .block_rule_param import BlockRuleParam as BlockRuleParam +from .rewrite_uri_part import RewriteURIPart as RewriteURIPart +from .route_rule_param import RouteRuleParam as RouteRuleParam +from .rule_edit_params import RuleEditParams as RuleEditParams from .score_rule_param import ScoreRuleParam as ScoreRuleParam from .serve_error_rule import ServeErrorRule as ServeErrorRule -from .serve_error_rule_param import ServeErrorRuleParam as ServeErrorRuleParam -from .set_cache_settings_rule import SetCacheSettingsRule as SetCacheSettingsRule -from .set_cache_settings_rule_param import SetCacheSettingsRuleParam as SetCacheSettingsRuleParam -from .set_config_rule import SetConfigRule as SetConfigRule -from .set_config_rule_param import SetConfigRuleParam as SetConfigRuleParam -from .skip_rule import SkipRule as SkipRule -from .skip_rule_param import SkipRuleParam as SkipRuleParam +from .ddos_dynamic_rule import DDoSDynamicRule as DDoSDynamicRule +from .execute_rule_param import ExecuteRuleParam as ExecuteRuleParam +from .phase_get_response import PhaseGetResponse as PhaseGetResponse +from .rewrite_rule_param import RewriteRuleParam as RewriteRuleParam +from .rule_create_params import RuleCreateParams as RuleCreateParams +from .rule_edit_response import RuleEditResponse as RuleEditResponse +from .phase_update_params import PhaseUpdateParams as PhaseUpdateParams +from .redirect_rule_param import RedirectRuleParam as RedirectRuleParam from .rule_create_response import RuleCreateResponse as RuleCreateResponse from .rule_delete_response import RuleDeleteResponse as RuleDeleteResponse -from .rule_edit_response import RuleEditResponse as RuleEditResponse -from .rule_create_params import RuleCreateParams as RuleCreateParams -from .rule_edit_params import RuleEditParams as RuleEditParams -from .version_list_response import VersionListResponse as VersionListResponse +from .ruleset_get_response import RulesetGetResponse as RulesetGetResponse from .version_get_response import VersionGetResponse as VersionGetResponse +from .log_custom_field_rule import LogCustomFieldRule as LogCustomFieldRule +from .phase_update_response import PhaseUpdateResponse as PhaseUpdateResponse +from .ruleset_create_params import RulesetCreateParams as RulesetCreateParams +from .ruleset_list_response import RulesetListResponse as RulesetListResponse +from .ruleset_update_params import RulesetUpdateParams as RulesetUpdateParams +from .set_config_rule_param import SetConfigRuleParam as SetConfigRuleParam +from .version_list_response import VersionListResponse as VersionListResponse +from .compress_response_rule import CompressResponseRule as CompressResponseRule +from .managed_challenge_rule import ManagedChallengeRule as ManagedChallengeRule +from .rewrite_uri_part_param import RewriteURIPartParam as RewriteURIPartParam +from .serve_error_rule_param import ServeErrorRuleParam as ServeErrorRuleParam +from .ddos_dynamic_rule_param import DDoSDynamicRuleParam as DDoSDynamicRuleParam +from .ruleset_create_response import RulesetCreateResponse as RulesetCreateResponse +from .ruleset_update_response import RulesetUpdateResponse as RulesetUpdateResponse +from .set_cache_settings_rule import SetCacheSettingsRule as SetCacheSettingsRule +from .force_connection_close_rule import ForceConnectionCloseRule as ForceConnectionCloseRule +from .log_custom_field_rule_param import LogCustomFieldRuleParam as LogCustomFieldRuleParam +from .compress_response_rule_param import CompressResponseRuleParam as CompressResponseRuleParam +from .managed_challenge_rule_param import ManagedChallengeRuleParam as ManagedChallengeRuleParam +from .set_cache_settings_rule_param import SetCacheSettingsRuleParam as SetCacheSettingsRuleParam +from .force_connection_close_rule_param import ForceConnectionCloseRuleParam as ForceConnectionCloseRuleParam diff --git a/src/cloudflare/types/rulesets/block_rule.py b/src/cloudflare/types/rulesets/block_rule.py index 01acb3d31..2efc89a4e 100644 --- a/src/cloudflare/types/rulesets/block_rule.py +++ b/src/cloudflare/types/rulesets/block_rule.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime - from typing_extensions import Literal from .logging import Logging - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["BlockRule", "ActionParameters", "ActionParametersResponse"] diff --git a/src/cloudflare/types/rulesets/block_rule_param.py b/src/cloudflare/types/rulesets/block_rule_param.py index 889997c68..c1ff6a627 100644 --- a/src/cloudflare/types/rulesets/block_rule_param.py +++ b/src/cloudflare/types/rulesets/block_rule_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict from .logging_param import LoggingParam diff --git a/src/cloudflare/types/rulesets/compress_response_rule.py b/src/cloudflare/types/rulesets/compress_response_rule.py index 911614913..cfadff08d 100644 --- a/src/cloudflare/types/rulesets/compress_response_rule.py +++ b/src/cloudflare/types/rulesets/compress_response_rule.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from typing_extensions import Literal - +from typing import List, Optional from datetime import datetime +from typing_extensions import Literal from .logging import Logging - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["CompressResponseRule", "ActionParameters", "ActionParametersAlgorithm"] diff --git a/src/cloudflare/types/rulesets/compress_response_rule_param.py b/src/cloudflare/types/rulesets/compress_response_rule_param.py index 3e3bc9d15..79c4ef449 100644 --- a/src/cloudflare/types/rulesets/compress_response_rule_param.py +++ b/src/cloudflare/types/rulesets/compress_response_rule_param.py @@ -2,12 +2,11 @@ from __future__ import annotations +from typing import Iterable from typing_extensions import Literal, TypedDict from .logging_param import LoggingParam -from typing import Iterable - __all__ = ["CompressResponseRuleParam", "ActionParameters", "ActionParametersAlgorithm"] diff --git a/src/cloudflare/types/rulesets/ddos_dynamic_rule.py b/src/cloudflare/types/rulesets/ddos_dynamic_rule.py index 0b2b8802b..fc8afc70b 100644 --- a/src/cloudflare/types/rulesets/ddos_dynamic_rule.py +++ b/src/cloudflare/types/rulesets/ddos_dynamic_rule.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import List, Optional from datetime import datetime - -from typing import Optional, List - from typing_extensions import Literal from .logging import Logging - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["DDoSDynamicRule"] diff --git a/src/cloudflare/types/rulesets/execute_rule.py b/src/cloudflare/types/rulesets/execute_rule.py index e97aa9f3a..fc82785cd 100644 --- a/src/cloudflare/types/rulesets/execute_rule.py +++ b/src/cloudflare/types/rulesets/execute_rule.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from typing_extensions import Literal - +from typing import List, Optional from datetime import datetime +from typing_extensions import Literal from .logging import Logging - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = [ "ExecuteRule", diff --git a/src/cloudflare/types/rulesets/execute_rule_param.py b/src/cloudflare/types/rulesets/execute_rule_param.py index d797b9ec5..e720f6825 100644 --- a/src/cloudflare/types/rulesets/execute_rule_param.py +++ b/src/cloudflare/types/rulesets/execute_rule_param.py @@ -2,12 +2,11 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing import Iterable +from typing_extensions import Literal, Required, TypedDict from .logging_param import LoggingParam -from typing import Iterable - __all__ = [ "ExecuteRuleParam", "ActionParameters", diff --git a/src/cloudflare/types/rulesets/force_connection_close_rule.py b/src/cloudflare/types/rulesets/force_connection_close_rule.py index 54f62a08d..bf1052f7f 100644 --- a/src/cloudflare/types/rulesets/force_connection_close_rule.py +++ b/src/cloudflare/types/rulesets/force_connection_close_rule.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import List, Optional from datetime import datetime - -from typing import Optional, List - from typing_extensions import Literal from .logging import Logging - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ForceConnectionCloseRule"] diff --git a/src/cloudflare/types/rulesets/kind.py b/src/cloudflare/types/rulesets/kind.py index 7c61e23b3..cb07932d7 100644 --- a/src/cloudflare/types/rulesets/kind.py +++ b/src/cloudflare/types/rulesets/kind.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Kind"] Kind: TypeAlias = Literal["managed", "custom", "root", "zone"] diff --git a/src/cloudflare/types/rulesets/log_custom_field_rule.py b/src/cloudflare/types/rulesets/log_custom_field_rule.py index fd56c4918..20f1a8059 100644 --- a/src/cloudflare/types/rulesets/log_custom_field_rule.py +++ b/src/cloudflare/types/rulesets/log_custom_field_rule.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime - from typing_extensions import Literal from .logging import Logging - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = [ "LogCustomFieldRule", diff --git a/src/cloudflare/types/rulesets/log_custom_field_rule_param.py b/src/cloudflare/types/rulesets/log_custom_field_rule_param.py index 43891b024..a2b990234 100644 --- a/src/cloudflare/types/rulesets/log_custom_field_rule_param.py +++ b/src/cloudflare/types/rulesets/log_custom_field_rule_param.py @@ -2,12 +2,11 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing import Iterable +from typing_extensions import Literal, Required, TypedDict from .logging_param import LoggingParam -from typing import Iterable - __all__ = [ "LogCustomFieldRuleParam", "ActionParameters", diff --git a/src/cloudflare/types/rulesets/log_rule.py b/src/cloudflare/types/rulesets/log_rule.py index f9860b9ec..2f0ae1804 100644 --- a/src/cloudflare/types/rulesets/log_rule.py +++ b/src/cloudflare/types/rulesets/log_rule.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import List, Optional from datetime import datetime - -from typing import Optional, List - from typing_extensions import Literal from .logging import Logging - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["LogRule"] diff --git a/src/cloudflare/types/rulesets/logging.py b/src/cloudflare/types/rulesets/logging.py index 4c998efc1..6e4bb7430 100644 --- a/src/cloudflare/types/rulesets/logging.py +++ b/src/cloudflare/types/rulesets/logging.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["Logging"] diff --git a/src/cloudflare/types/rulesets/logging_param.py b/src/cloudflare/types/rulesets/logging_param.py index 193550be8..7ffdd5a2f 100644 --- a/src/cloudflare/types/rulesets/logging_param.py +++ b/src/cloudflare/types/rulesets/logging_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["LoggingParam"] diff --git a/src/cloudflare/types/rulesets/managed_challenge_rule.py b/src/cloudflare/types/rulesets/managed_challenge_rule.py index 0f42ec87f..6c2772bd1 100644 --- a/src/cloudflare/types/rulesets/managed_challenge_rule.py +++ b/src/cloudflare/types/rulesets/managed_challenge_rule.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import List, Optional from datetime import datetime - -from typing import Optional, List - from typing_extensions import Literal from .logging import Logging - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ManagedChallengeRule"] diff --git a/src/cloudflare/types/rulesets/phase.py b/src/cloudflare/types/rulesets/phase.py index 818afece5..227fb6cf2 100644 --- a/src/cloudflare/types/rulesets/phase.py +++ b/src/cloudflare/types/rulesets/phase.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Phase"] Phase: TypeAlias = Literal[ diff --git a/src/cloudflare/types/rulesets/phase_get_response.py b/src/cloudflare/types/rulesets/phase_get_response.py index 0505b862e..3adb3bc0a 100644 --- a/src/cloudflare/types/rulesets/phase_get_response.py +++ b/src/cloudflare/types/rulesets/phase_get_response.py @@ -1,56 +1,30 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .block_rule import BlockRule - -from .compress_response_rule import CompressResponseRule - -from .execute_rule import ExecuteRule - -from .log_rule import LogRule - -from .managed_challenge_rule import ManagedChallengeRule - -from .redirect_rule import RedirectRule - -from .rewrite_rule import RewriteRule - -from .route_rule import RouteRule - -from .score_rule import ScoreRule - -from .serve_error_rule import ServeErrorRule - -from .set_config_rule import SetConfigRule - -from .skip_rule import SkipRule - -from .set_cache_settings_rule import SetCacheSettingsRule - -from .log_custom_field_rule import LogCustomFieldRule - -from .ddos_dynamic_rule import DDoSDynamicRule - -from .force_connection_close_rule import ForceConnectionCloseRule - -from ..._models import BaseModel - +from typing import List, Union, Optional from datetime import datetime - -from typing import Optional, List - -from typing_extensions import Literal, TypeAlias, Annotated - -from .logging import Logging - -from ..._utils import PropertyInfo +from typing_extensions import Literal, Annotated, TypeAlias from .kind import Kind - from .phase import Phase - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .logging import Logging +from ..._utils import PropertyInfo +from .log_rule import LogRule +from ..._models import BaseModel +from .skip_rule import SkipRule +from .block_rule import BlockRule +from .route_rule import RouteRule +from .score_rule import ScoreRule +from .execute_rule import ExecuteRule +from .rewrite_rule import RewriteRule +from .redirect_rule import RedirectRule +from .set_config_rule import SetConfigRule +from .serve_error_rule import ServeErrorRule +from .ddos_dynamic_rule import DDoSDynamicRule +from .log_custom_field_rule import LogCustomFieldRule +from .compress_response_rule import CompressResponseRule +from .managed_challenge_rule import ManagedChallengeRule +from .set_cache_settings_rule import SetCacheSettingsRule +from .force_connection_close_rule import ForceConnectionCloseRule __all__ = ["PhaseGetResponse", "Rule", "RuleRulesetsChallengeRule", "RuleRulesetsJSChallengeRule"] diff --git a/src/cloudflare/types/rulesets/phase_update_params.py b/src/cloudflare/types/rulesets/phase_update_params.py index 562732b16..318569c1c 100644 --- a/src/cloudflare/types/rulesets/phase_update_params.py +++ b/src/cloudflare/types/rulesets/phase_update_params.py @@ -2,49 +2,27 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias - -from typing import Iterable, Union +from typing import Union, Iterable +from typing_extensions import Literal, Required, TypeAlias, TypedDict from .logging_param import LoggingParam - -from .block_rule_param import BlockRuleParam - -from .compress_response_rule_param import CompressResponseRuleParam - -from .execute_rule_param import ExecuteRuleParam - from .log_rule_param import LogRuleParam - -from .managed_challenge_rule_param import ManagedChallengeRuleParam - -from .redirect_rule_param import RedirectRuleParam - -from .rewrite_rule_param import RewriteRuleParam - -from .route_rule_param import RouteRuleParam - -from .score_rule_param import ScoreRuleParam - -from .serve_error_rule_param import ServeErrorRuleParam - -from .set_config_rule_param import SetConfigRuleParam - from .skip_rule_param import SkipRuleParam - -from .set_cache_settings_rule_param import SetCacheSettingsRuleParam - -from .log_custom_field_rule_param import LogCustomFieldRuleParam - +from .block_rule_param import BlockRuleParam +from .route_rule_param import RouteRuleParam +from .score_rule_param import ScoreRuleParam +from .execute_rule_param import ExecuteRuleParam +from .rewrite_rule_param import RewriteRuleParam +from .redirect_rule_param import RedirectRuleParam +from .set_config_rule_param import SetConfigRuleParam +from .serve_error_rule_param import ServeErrorRuleParam from .ddos_dynamic_rule_param import DDoSDynamicRuleParam - +from .log_custom_field_rule_param import LogCustomFieldRuleParam +from .compress_response_rule_param import CompressResponseRuleParam +from .managed_challenge_rule_param import ManagedChallengeRuleParam +from .set_cache_settings_rule_param import SetCacheSettingsRuleParam from .force_connection_close_rule_param import ForceConnectionCloseRuleParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["PhaseUpdateParams", "Rule", "RuleRulesetsChallengeRule", "RuleRulesetsJSChallengeRule"] diff --git a/src/cloudflare/types/rulesets/phase_update_response.py b/src/cloudflare/types/rulesets/phase_update_response.py index 5d78652c5..12bc7e944 100644 --- a/src/cloudflare/types/rulesets/phase_update_response.py +++ b/src/cloudflare/types/rulesets/phase_update_response.py @@ -1,56 +1,30 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .block_rule import BlockRule - -from .compress_response_rule import CompressResponseRule - -from .execute_rule import ExecuteRule - -from .log_rule import LogRule - -from .managed_challenge_rule import ManagedChallengeRule - -from .redirect_rule import RedirectRule - -from .rewrite_rule import RewriteRule - -from .route_rule import RouteRule - -from .score_rule import ScoreRule - -from .serve_error_rule import ServeErrorRule - -from .set_config_rule import SetConfigRule - -from .skip_rule import SkipRule - -from .set_cache_settings_rule import SetCacheSettingsRule - -from .log_custom_field_rule import LogCustomFieldRule - -from .ddos_dynamic_rule import DDoSDynamicRule - -from .force_connection_close_rule import ForceConnectionCloseRule - -from ..._models import BaseModel - +from typing import List, Union, Optional from datetime import datetime - -from typing import Optional, List - -from typing_extensions import Literal, TypeAlias, Annotated - -from .logging import Logging - -from ..._utils import PropertyInfo +from typing_extensions import Literal, Annotated, TypeAlias from .kind import Kind - from .phase import Phase - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .logging import Logging +from ..._utils import PropertyInfo +from .log_rule import LogRule +from ..._models import BaseModel +from .skip_rule import SkipRule +from .block_rule import BlockRule +from .route_rule import RouteRule +from .score_rule import ScoreRule +from .execute_rule import ExecuteRule +from .rewrite_rule import RewriteRule +from .redirect_rule import RedirectRule +from .set_config_rule import SetConfigRule +from .serve_error_rule import ServeErrorRule +from .ddos_dynamic_rule import DDoSDynamicRule +from .log_custom_field_rule import LogCustomFieldRule +from .compress_response_rule import CompressResponseRule +from .managed_challenge_rule import ManagedChallengeRule +from .set_cache_settings_rule import SetCacheSettingsRule +from .force_connection_close_rule import ForceConnectionCloseRule __all__ = ["PhaseUpdateResponse", "Rule", "RuleRulesetsChallengeRule", "RuleRulesetsJSChallengeRule"] diff --git a/src/cloudflare/types/rulesets/phases/__init__.py b/src/cloudflare/types/rulesets/phases/__init__.py index 66e935781..5a719b3e5 100644 --- a/src/cloudflare/types/rulesets/phases/__init__.py +++ b/src/cloudflare/types/rulesets/phases/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .version_list_response import VersionListResponse as VersionListResponse from .version_get_response import VersionGetResponse as VersionGetResponse +from .version_list_response import VersionListResponse as VersionListResponse diff --git a/src/cloudflare/types/rulesets/phases/version_get_response.py b/src/cloudflare/types/rulesets/phases/version_get_response.py index 58b01dbd5..7273b42d2 100644 --- a/src/cloudflare/types/rulesets/phases/version_get_response.py +++ b/src/cloudflare/types/rulesets/phases/version_get_response.py @@ -1,56 +1,30 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..block_rule import BlockRule - -from ..compress_response_rule import CompressResponseRule - -from ..execute_rule import ExecuteRule - -from ..log_rule import LogRule - -from ..managed_challenge_rule import ManagedChallengeRule - -from ..redirect_rule import RedirectRule - -from ..rewrite_rule import RewriteRule - -from ..route_rule import RouteRule - -from ..score_rule import ScoreRule - -from ..serve_error_rule import ServeErrorRule - -from ..set_config_rule import SetConfigRule - -from ..skip_rule import SkipRule - -from ..set_cache_settings_rule import SetCacheSettingsRule - -from ..log_custom_field_rule import LogCustomFieldRule - -from ..ddos_dynamic_rule import DDoSDynamicRule - -from ..force_connection_close_rule import ForceConnectionCloseRule - -from ...._models import BaseModel - +from typing import List, Union, Optional from datetime import datetime - -from typing import Optional, List - -from typing_extensions import Literal, TypeAlias, Annotated - -from ..logging import Logging - -from ...._utils import PropertyInfo +from typing_extensions import Literal, Annotated, TypeAlias from ..kind import Kind - from ..phase import Phase - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..logging import Logging +from ...._utils import PropertyInfo +from ..log_rule import LogRule +from ...._models import BaseModel +from ..skip_rule import SkipRule +from ..block_rule import BlockRule +from ..route_rule import RouteRule +from ..score_rule import ScoreRule +from ..execute_rule import ExecuteRule +from ..rewrite_rule import RewriteRule +from ..redirect_rule import RedirectRule +from ..set_config_rule import SetConfigRule +from ..serve_error_rule import ServeErrorRule +from ..ddos_dynamic_rule import DDoSDynamicRule +from ..log_custom_field_rule import LogCustomFieldRule +from ..compress_response_rule import CompressResponseRule +from ..managed_challenge_rule import ManagedChallengeRule +from ..set_cache_settings_rule import SetCacheSettingsRule +from ..force_connection_close_rule import ForceConnectionCloseRule __all__ = ["VersionGetResponse", "Rule", "RuleRulesetsChallengeRule", "RuleRulesetsJSChallengeRule"] diff --git a/src/cloudflare/types/rulesets/phases/version_list_response.py b/src/cloudflare/types/rulesets/phases/version_list_response.py index 9f395be36..921e1de8c 100644 --- a/src/cloudflare/types/rulesets/phases/version_list_response.py +++ b/src/cloudflare/types/rulesets/phases/version_list_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from ..kind import Kind - +from typing import Optional from datetime import datetime +from ..kind import Kind from ..phase import Phase - -from typing import Optional - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["VersionListResponse"] diff --git a/src/cloudflare/types/rulesets/redirect_rule.py b/src/cloudflare/types/rulesets/redirect_rule.py index a09968759..13ef2a24d 100644 --- a/src/cloudflare/types/rulesets/redirect_rule.py +++ b/src/cloudflare/types/rulesets/redirect_rule.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from typing_extensions import TypeAlias, Literal - +from typing import List, Union, Optional from datetime import datetime +from typing_extensions import Literal, TypeAlias from .logging import Logging - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = [ "RedirectRule", diff --git a/src/cloudflare/types/rulesets/redirect_rule_param.py b/src/cloudflare/types/rulesets/redirect_rule_param.py index 0bd96e3f7..de378d10e 100644 --- a/src/cloudflare/types/rulesets/redirect_rule_param.py +++ b/src/cloudflare/types/rulesets/redirect_rule_param.py @@ -2,12 +2,11 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, TypeAlias +from typing import Union +from typing_extensions import Literal, TypeAlias, TypedDict from .logging_param import LoggingParam -from typing import Union - __all__ = [ "RedirectRuleParam", "ActionParameters", diff --git a/src/cloudflare/types/rulesets/rewrite_rule.py b/src/cloudflare/types/rulesets/rewrite_rule.py index e21cbc35b..a749aabca 100644 --- a/src/cloudflare/types/rulesets/rewrite_rule.py +++ b/src/cloudflare/types/rulesets/rewrite_rule.py @@ -1,20 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import Dict, List, Union, Optional +from datetime import datetime from typing_extensions import Literal, TypeAlias -from typing import Optional, Dict, List - -from .rewrite_uri_part import RewriteURIPart - -from datetime import datetime - from .logging import Logging - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .rewrite_uri_part import RewriteURIPart __all__ = [ "RewriteRule", diff --git a/src/cloudflare/types/rulesets/rewrite_rule_param.py b/src/cloudflare/types/rulesets/rewrite_rule_param.py index 90956c75d..4c8da6949 100644 --- a/src/cloudflare/types/rulesets/rewrite_rule_param.py +++ b/src/cloudflare/types/rulesets/rewrite_rule_param.py @@ -2,12 +2,10 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required, TypeAlias +from typing import Dict, Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict from .logging_param import LoggingParam - -from typing import Dict, Union - from .rewrite_uri_part_param import RewriteURIPartParam __all__ = [ diff --git a/src/cloudflare/types/rulesets/rewrite_uri_part.py b/src/cloudflare/types/rulesets/rewrite_uri_part.py index b109793ee..e2990e2a6 100644 --- a/src/cloudflare/types/rulesets/rewrite_uri_part.py +++ b/src/cloudflare/types/rulesets/rewrite_uri_part.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RewriteURIPart", "StaticValue", "DynamicValue"] diff --git a/src/cloudflare/types/rulesets/rewrite_uri_part_param.py b/src/cloudflare/types/rulesets/rewrite_uri_part_param.py index af6f14b1b..e33f6615a 100644 --- a/src/cloudflare/types/rulesets/rewrite_uri_part_param.py +++ b/src/cloudflare/types/rulesets/rewrite_uri_part_param.py @@ -2,9 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, TypeAlias - from typing import Union +from typing_extensions import Required, TypeAlias, TypedDict __all__ = ["RewriteURIPartParam", "StaticValue", "DynamicValue"] diff --git a/src/cloudflare/types/rulesets/route_rule.py b/src/cloudflare/types/rulesets/route_rule.py index fbc324612..ee9647c2c 100644 --- a/src/cloudflare/types/rulesets/route_rule.py +++ b/src/cloudflare/types/rulesets/route_rule.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime - from typing_extensions import Literal from .logging import Logging - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RouteRule", "ActionParameters", "ActionParametersOrigin", "ActionParametersSNI"] diff --git a/src/cloudflare/types/rulesets/route_rule_param.py b/src/cloudflare/types/rulesets/route_rule_param.py index 5059ee4ee..13738c29b 100644 --- a/src/cloudflare/types/rulesets/route_rule_param.py +++ b/src/cloudflare/types/rulesets/route_rule_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict from .logging_param import LoggingParam diff --git a/src/cloudflare/types/rulesets/rule_create_params.py b/src/cloudflare/types/rulesets/rule_create_params.py index aa6caffe6..f6002ca59 100644 --- a/src/cloudflare/types/rulesets/rule_create_params.py +++ b/src/cloudflare/types/rulesets/rule_create_params.py @@ -2,20 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Required, TypeAlias - -from .logging_param import LoggingParam - -from typing import Iterable, Union, Dict, List - -from .rewrite_uri_part_param import RewriteURIPartParam +from typing import Dict, List, Union, Iterable +from typing_extensions import Literal, Required, TypeAlias, TypedDict from .phase import Phase - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .logging_param import LoggingParam +from .rewrite_uri_part_param import RewriteURIPartParam __all__ = [ "RuleCreateParams", diff --git a/src/cloudflare/types/rulesets/rule_create_response.py b/src/cloudflare/types/rulesets/rule_create_response.py index 675761c70..fe9fa717a 100644 --- a/src/cloudflare/types/rulesets/rule_create_response.py +++ b/src/cloudflare/types/rulesets/rule_create_response.py @@ -1,56 +1,30 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .block_rule import BlockRule - -from .compress_response_rule import CompressResponseRule - -from .execute_rule import ExecuteRule - -from .log_rule import LogRule - -from .managed_challenge_rule import ManagedChallengeRule - -from .redirect_rule import RedirectRule - -from .rewrite_rule import RewriteRule - -from .route_rule import RouteRule - -from .score_rule import ScoreRule - -from .serve_error_rule import ServeErrorRule - -from .set_config_rule import SetConfigRule - -from .skip_rule import SkipRule - -from .set_cache_settings_rule import SetCacheSettingsRule - -from .log_custom_field_rule import LogCustomFieldRule - -from .ddos_dynamic_rule import DDoSDynamicRule - -from .force_connection_close_rule import ForceConnectionCloseRule - -from ..._models import BaseModel - +from typing import List, Union, Optional from datetime import datetime - -from typing import Optional, List - -from typing_extensions import Literal, TypeAlias, Annotated - -from .logging import Logging - -from ..._utils import PropertyInfo +from typing_extensions import Literal, Annotated, TypeAlias from .kind import Kind - from .phase import Phase - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .logging import Logging +from ..._utils import PropertyInfo +from .log_rule import LogRule +from ..._models import BaseModel +from .skip_rule import SkipRule +from .block_rule import BlockRule +from .route_rule import RouteRule +from .score_rule import ScoreRule +from .execute_rule import ExecuteRule +from .rewrite_rule import RewriteRule +from .redirect_rule import RedirectRule +from .set_config_rule import SetConfigRule +from .serve_error_rule import ServeErrorRule +from .ddos_dynamic_rule import DDoSDynamicRule +from .log_custom_field_rule import LogCustomFieldRule +from .compress_response_rule import CompressResponseRule +from .managed_challenge_rule import ManagedChallengeRule +from .set_cache_settings_rule import SetCacheSettingsRule +from .force_connection_close_rule import ForceConnectionCloseRule __all__ = ["RuleCreateResponse", "Rule", "RuleRulesetsChallengeRule", "RuleRulesetsJSChallengeRule"] diff --git a/src/cloudflare/types/rulesets/rule_delete_response.py b/src/cloudflare/types/rulesets/rule_delete_response.py index 9820ca427..ff63c5a53 100644 --- a/src/cloudflare/types/rulesets/rule_delete_response.py +++ b/src/cloudflare/types/rulesets/rule_delete_response.py @@ -1,56 +1,30 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .block_rule import BlockRule - -from .compress_response_rule import CompressResponseRule - -from .execute_rule import ExecuteRule - -from .log_rule import LogRule - -from .managed_challenge_rule import ManagedChallengeRule - -from .redirect_rule import RedirectRule - -from .rewrite_rule import RewriteRule - -from .route_rule import RouteRule - -from .score_rule import ScoreRule - -from .serve_error_rule import ServeErrorRule - -from .set_config_rule import SetConfigRule - -from .skip_rule import SkipRule - -from .set_cache_settings_rule import SetCacheSettingsRule - -from .log_custom_field_rule import LogCustomFieldRule - -from .ddos_dynamic_rule import DDoSDynamicRule - -from .force_connection_close_rule import ForceConnectionCloseRule - -from ..._models import BaseModel - +from typing import List, Union, Optional from datetime import datetime - -from typing import Optional, List - -from typing_extensions import Literal, TypeAlias, Annotated - -from .logging import Logging - -from ..._utils import PropertyInfo +from typing_extensions import Literal, Annotated, TypeAlias from .kind import Kind - from .phase import Phase - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .logging import Logging +from ..._utils import PropertyInfo +from .log_rule import LogRule +from ..._models import BaseModel +from .skip_rule import SkipRule +from .block_rule import BlockRule +from .route_rule import RouteRule +from .score_rule import ScoreRule +from .execute_rule import ExecuteRule +from .rewrite_rule import RewriteRule +from .redirect_rule import RedirectRule +from .set_config_rule import SetConfigRule +from .serve_error_rule import ServeErrorRule +from .ddos_dynamic_rule import DDoSDynamicRule +from .log_custom_field_rule import LogCustomFieldRule +from .compress_response_rule import CompressResponseRule +from .managed_challenge_rule import ManagedChallengeRule +from .set_cache_settings_rule import SetCacheSettingsRule +from .force_connection_close_rule import ForceConnectionCloseRule __all__ = ["RuleDeleteResponse", "Rule", "RuleRulesetsChallengeRule", "RuleRulesetsJSChallengeRule"] diff --git a/src/cloudflare/types/rulesets/rule_edit_params.py b/src/cloudflare/types/rulesets/rule_edit_params.py index 0d95f7f9c..ac1f07c5c 100644 --- a/src/cloudflare/types/rulesets/rule_edit_params.py +++ b/src/cloudflare/types/rulesets/rule_edit_params.py @@ -2,20 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias - -from .logging_param import LoggingParam - -from typing import Iterable, Union, Dict, List - -from .rewrite_uri_part_param import RewriteURIPartParam +from typing import Dict, List, Union, Iterable +from typing_extensions import Literal, Required, TypeAlias, TypedDict from .phase import Phase - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .logging_param import LoggingParam +from .rewrite_uri_part_param import RewriteURIPartParam __all__ = [ "RuleEditParams", diff --git a/src/cloudflare/types/rulesets/rule_edit_response.py b/src/cloudflare/types/rulesets/rule_edit_response.py index a62f6bb23..8adfbd9a3 100644 --- a/src/cloudflare/types/rulesets/rule_edit_response.py +++ b/src/cloudflare/types/rulesets/rule_edit_response.py @@ -1,56 +1,30 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .block_rule import BlockRule - -from .compress_response_rule import CompressResponseRule - -from .execute_rule import ExecuteRule - -from .log_rule import LogRule - -from .managed_challenge_rule import ManagedChallengeRule - -from .redirect_rule import RedirectRule - -from .rewrite_rule import RewriteRule - -from .route_rule import RouteRule - -from .score_rule import ScoreRule - -from .serve_error_rule import ServeErrorRule - -from .set_config_rule import SetConfigRule - -from .skip_rule import SkipRule - -from .set_cache_settings_rule import SetCacheSettingsRule - -from .log_custom_field_rule import LogCustomFieldRule - -from .ddos_dynamic_rule import DDoSDynamicRule - -from .force_connection_close_rule import ForceConnectionCloseRule - -from ..._models import BaseModel - +from typing import List, Union, Optional from datetime import datetime - -from typing import Optional, List - -from typing_extensions import Literal, TypeAlias, Annotated - -from .logging import Logging - -from ..._utils import PropertyInfo +from typing_extensions import Literal, Annotated, TypeAlias from .kind import Kind - from .phase import Phase - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .logging import Logging +from ..._utils import PropertyInfo +from .log_rule import LogRule +from ..._models import BaseModel +from .skip_rule import SkipRule +from .block_rule import BlockRule +from .route_rule import RouteRule +from .score_rule import ScoreRule +from .execute_rule import ExecuteRule +from .rewrite_rule import RewriteRule +from .redirect_rule import RedirectRule +from .set_config_rule import SetConfigRule +from .serve_error_rule import ServeErrorRule +from .ddos_dynamic_rule import DDoSDynamicRule +from .log_custom_field_rule import LogCustomFieldRule +from .compress_response_rule import CompressResponseRule +from .managed_challenge_rule import ManagedChallengeRule +from .set_cache_settings_rule import SetCacheSettingsRule +from .force_connection_close_rule import ForceConnectionCloseRule __all__ = ["RuleEditResponse", "Rule", "RuleRulesetsChallengeRule", "RuleRulesetsJSChallengeRule"] diff --git a/src/cloudflare/types/rulesets/ruleset_create_params.py b/src/cloudflare/types/rulesets/ruleset_create_params.py index 7947042f6..0176f517c 100644 --- a/src/cloudflare/types/rulesets/ruleset_create_params.py +++ b/src/cloudflare/types/rulesets/ruleset_create_params.py @@ -2,53 +2,29 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias +from typing import Union, Iterable +from typing_extensions import Literal, Required, TypeAlias, TypedDict from .kind import Kind - from .phase import Phase - -from typing import Iterable, Union - from .logging_param import LoggingParam - -from .block_rule_param import BlockRuleParam - -from .compress_response_rule_param import CompressResponseRuleParam - -from .execute_rule_param import ExecuteRuleParam - from .log_rule_param import LogRuleParam - -from .managed_challenge_rule_param import ManagedChallengeRuleParam - -from .redirect_rule_param import RedirectRuleParam - -from .rewrite_rule_param import RewriteRuleParam - -from .route_rule_param import RouteRuleParam - -from .score_rule_param import ScoreRuleParam - -from .serve_error_rule_param import ServeErrorRuleParam - -from .set_config_rule_param import SetConfigRuleParam - from .skip_rule_param import SkipRuleParam - -from .set_cache_settings_rule_param import SetCacheSettingsRuleParam - -from .log_custom_field_rule_param import LogCustomFieldRuleParam - +from .block_rule_param import BlockRuleParam +from .route_rule_param import RouteRuleParam +from .score_rule_param import ScoreRuleParam +from .execute_rule_param import ExecuteRuleParam +from .rewrite_rule_param import RewriteRuleParam +from .redirect_rule_param import RedirectRuleParam +from .set_config_rule_param import SetConfigRuleParam +from .serve_error_rule_param import ServeErrorRuleParam from .ddos_dynamic_rule_param import DDoSDynamicRuleParam - +from .log_custom_field_rule_param import LogCustomFieldRuleParam +from .compress_response_rule_param import CompressResponseRuleParam +from .managed_challenge_rule_param import ManagedChallengeRuleParam +from .set_cache_settings_rule_param import SetCacheSettingsRuleParam from .force_connection_close_rule_param import ForceConnectionCloseRuleParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["RulesetCreateParams", "Rule", "RuleRulesetsChallengeRule", "RuleRulesetsJSChallengeRule"] diff --git a/src/cloudflare/types/rulesets/ruleset_create_response.py b/src/cloudflare/types/rulesets/ruleset_create_response.py index 310031654..ac3c1e5b8 100644 --- a/src/cloudflare/types/rulesets/ruleset_create_response.py +++ b/src/cloudflare/types/rulesets/ruleset_create_response.py @@ -1,56 +1,30 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .block_rule import BlockRule - -from .compress_response_rule import CompressResponseRule - -from .execute_rule import ExecuteRule - -from .log_rule import LogRule - -from .managed_challenge_rule import ManagedChallengeRule - -from .redirect_rule import RedirectRule - -from .rewrite_rule import RewriteRule - -from .route_rule import RouteRule - -from .score_rule import ScoreRule - -from .serve_error_rule import ServeErrorRule - -from .set_config_rule import SetConfigRule - -from .skip_rule import SkipRule - -from .set_cache_settings_rule import SetCacheSettingsRule - -from .log_custom_field_rule import LogCustomFieldRule - -from .ddos_dynamic_rule import DDoSDynamicRule - -from .force_connection_close_rule import ForceConnectionCloseRule - -from ..._models import BaseModel - +from typing import List, Union, Optional from datetime import datetime - -from typing import Optional, List - -from typing_extensions import Literal, TypeAlias, Annotated - -from .logging import Logging - -from ..._utils import PropertyInfo +from typing_extensions import Literal, Annotated, TypeAlias from .kind import Kind - from .phase import Phase - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .logging import Logging +from ..._utils import PropertyInfo +from .log_rule import LogRule +from ..._models import BaseModel +from .skip_rule import SkipRule +from .block_rule import BlockRule +from .route_rule import RouteRule +from .score_rule import ScoreRule +from .execute_rule import ExecuteRule +from .rewrite_rule import RewriteRule +from .redirect_rule import RedirectRule +from .set_config_rule import SetConfigRule +from .serve_error_rule import ServeErrorRule +from .ddos_dynamic_rule import DDoSDynamicRule +from .log_custom_field_rule import LogCustomFieldRule +from .compress_response_rule import CompressResponseRule +from .managed_challenge_rule import ManagedChallengeRule +from .set_cache_settings_rule import SetCacheSettingsRule +from .force_connection_close_rule import ForceConnectionCloseRule __all__ = ["RulesetCreateResponse", "Rule", "RuleRulesetsChallengeRule", "RuleRulesetsJSChallengeRule"] diff --git a/src/cloudflare/types/rulesets/ruleset_get_response.py b/src/cloudflare/types/rulesets/ruleset_get_response.py index d1332564e..3dc2f1d62 100644 --- a/src/cloudflare/types/rulesets/ruleset_get_response.py +++ b/src/cloudflare/types/rulesets/ruleset_get_response.py @@ -1,56 +1,30 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .block_rule import BlockRule - -from .compress_response_rule import CompressResponseRule - -from .execute_rule import ExecuteRule - -from .log_rule import LogRule - -from .managed_challenge_rule import ManagedChallengeRule - -from .redirect_rule import RedirectRule - -from .rewrite_rule import RewriteRule - -from .route_rule import RouteRule - -from .score_rule import ScoreRule - -from .serve_error_rule import ServeErrorRule - -from .set_config_rule import SetConfigRule - -from .skip_rule import SkipRule - -from .set_cache_settings_rule import SetCacheSettingsRule - -from .log_custom_field_rule import LogCustomFieldRule - -from .ddos_dynamic_rule import DDoSDynamicRule - -from .force_connection_close_rule import ForceConnectionCloseRule - -from ..._models import BaseModel - +from typing import List, Union, Optional from datetime import datetime - -from typing import Optional, List - -from typing_extensions import Literal, TypeAlias, Annotated - -from .logging import Logging - -from ..._utils import PropertyInfo +from typing_extensions import Literal, Annotated, TypeAlias from .kind import Kind - from .phase import Phase - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .logging import Logging +from ..._utils import PropertyInfo +from .log_rule import LogRule +from ..._models import BaseModel +from .skip_rule import SkipRule +from .block_rule import BlockRule +from .route_rule import RouteRule +from .score_rule import ScoreRule +from .execute_rule import ExecuteRule +from .rewrite_rule import RewriteRule +from .redirect_rule import RedirectRule +from .set_config_rule import SetConfigRule +from .serve_error_rule import ServeErrorRule +from .ddos_dynamic_rule import DDoSDynamicRule +from .log_custom_field_rule import LogCustomFieldRule +from .compress_response_rule import CompressResponseRule +from .managed_challenge_rule import ManagedChallengeRule +from .set_cache_settings_rule import SetCacheSettingsRule +from .force_connection_close_rule import ForceConnectionCloseRule __all__ = ["RulesetGetResponse", "Rule", "RuleRulesetsChallengeRule", "RuleRulesetsJSChallengeRule"] diff --git a/src/cloudflare/types/rulesets/ruleset_list_response.py b/src/cloudflare/types/rulesets/ruleset_list_response.py index 0f5d5707f..582742290 100644 --- a/src/cloudflare/types/rulesets/ruleset_list_response.py +++ b/src/cloudflare/types/rulesets/ruleset_list_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from .kind import Kind - +from typing import Optional from datetime import datetime +from .kind import Kind from .phase import Phase - -from typing import Optional - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RulesetListResponse"] diff --git a/src/cloudflare/types/rulesets/ruleset_update_params.py b/src/cloudflare/types/rulesets/ruleset_update_params.py index 4ac01046d..08128c647 100644 --- a/src/cloudflare/types/rulesets/ruleset_update_params.py +++ b/src/cloudflare/types/rulesets/ruleset_update_params.py @@ -2,53 +2,29 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias - -from typing import Iterable, Union +from typing import Union, Iterable +from typing_extensions import Literal, Required, TypeAlias, TypedDict from .kind import Kind - from .phase import Phase - from .logging_param import LoggingParam - -from .block_rule_param import BlockRuleParam - -from .compress_response_rule_param import CompressResponseRuleParam - -from .execute_rule_param import ExecuteRuleParam - from .log_rule_param import LogRuleParam - -from .managed_challenge_rule_param import ManagedChallengeRuleParam - -from .redirect_rule_param import RedirectRuleParam - -from .rewrite_rule_param import RewriteRuleParam - -from .route_rule_param import RouteRuleParam - -from .score_rule_param import ScoreRuleParam - -from .serve_error_rule_param import ServeErrorRuleParam - -from .set_config_rule_param import SetConfigRuleParam - from .skip_rule_param import SkipRuleParam - -from .set_cache_settings_rule_param import SetCacheSettingsRuleParam - -from .log_custom_field_rule_param import LogCustomFieldRuleParam - +from .block_rule_param import BlockRuleParam +from .route_rule_param import RouteRuleParam +from .score_rule_param import ScoreRuleParam +from .execute_rule_param import ExecuteRuleParam +from .rewrite_rule_param import RewriteRuleParam +from .redirect_rule_param import RedirectRuleParam +from .set_config_rule_param import SetConfigRuleParam +from .serve_error_rule_param import ServeErrorRuleParam from .ddos_dynamic_rule_param import DDoSDynamicRuleParam - +from .log_custom_field_rule_param import LogCustomFieldRuleParam +from .compress_response_rule_param import CompressResponseRuleParam +from .managed_challenge_rule_param import ManagedChallengeRuleParam +from .set_cache_settings_rule_param import SetCacheSettingsRuleParam from .force_connection_close_rule_param import ForceConnectionCloseRuleParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["RulesetUpdateParams", "Rule", "RuleRulesetsChallengeRule", "RuleRulesetsJSChallengeRule"] diff --git a/src/cloudflare/types/rulesets/ruleset_update_response.py b/src/cloudflare/types/rulesets/ruleset_update_response.py index 1c2c87e4c..bab2ea4b4 100644 --- a/src/cloudflare/types/rulesets/ruleset_update_response.py +++ b/src/cloudflare/types/rulesets/ruleset_update_response.py @@ -1,56 +1,30 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .block_rule import BlockRule - -from .compress_response_rule import CompressResponseRule - -from .execute_rule import ExecuteRule - -from .log_rule import LogRule - -from .managed_challenge_rule import ManagedChallengeRule - -from .redirect_rule import RedirectRule - -from .rewrite_rule import RewriteRule - -from .route_rule import RouteRule - -from .score_rule import ScoreRule - -from .serve_error_rule import ServeErrorRule - -from .set_config_rule import SetConfigRule - -from .skip_rule import SkipRule - -from .set_cache_settings_rule import SetCacheSettingsRule - -from .log_custom_field_rule import LogCustomFieldRule - -from .ddos_dynamic_rule import DDoSDynamicRule - -from .force_connection_close_rule import ForceConnectionCloseRule - -from ..._models import BaseModel - +from typing import List, Union, Optional from datetime import datetime - -from typing import Optional, List - -from typing_extensions import Literal, TypeAlias, Annotated - -from .logging import Logging - -from ..._utils import PropertyInfo +from typing_extensions import Literal, Annotated, TypeAlias from .kind import Kind - from .phase import Phase - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .logging import Logging +from ..._utils import PropertyInfo +from .log_rule import LogRule +from ..._models import BaseModel +from .skip_rule import SkipRule +from .block_rule import BlockRule +from .route_rule import RouteRule +from .score_rule import ScoreRule +from .execute_rule import ExecuteRule +from .rewrite_rule import RewriteRule +from .redirect_rule import RedirectRule +from .set_config_rule import SetConfigRule +from .serve_error_rule import ServeErrorRule +from .ddos_dynamic_rule import DDoSDynamicRule +from .log_custom_field_rule import LogCustomFieldRule +from .compress_response_rule import CompressResponseRule +from .managed_challenge_rule import ManagedChallengeRule +from .set_cache_settings_rule import SetCacheSettingsRule +from .force_connection_close_rule import ForceConnectionCloseRule __all__ = ["RulesetUpdateResponse", "Rule", "RuleRulesetsChallengeRule", "RuleRulesetsJSChallengeRule"] diff --git a/src/cloudflare/types/rulesets/score_rule.py b/src/cloudflare/types/rulesets/score_rule.py index d2029e21c..508adc8d5 100644 --- a/src/cloudflare/types/rulesets/score_rule.py +++ b/src/cloudflare/types/rulesets/score_rule.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime - from typing_extensions import Literal from .logging import Logging - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ScoreRule", "ActionParameters"] diff --git a/src/cloudflare/types/rulesets/serve_error_rule.py b/src/cloudflare/types/rulesets/serve_error_rule.py index e3b9f409e..2713e5ec6 100644 --- a/src/cloudflare/types/rulesets/serve_error_rule.py +++ b/src/cloudflare/types/rulesets/serve_error_rule.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from typing_extensions import Literal - +from typing import List, Optional from datetime import datetime +from typing_extensions import Literal from .logging import Logging - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ServeErrorRule", "ActionParameters"] diff --git a/src/cloudflare/types/rulesets/set_cache_settings_rule.py b/src/cloudflare/types/rulesets/set_cache_settings_rule.py index 63f4b9e4e..f23b60743 100644 --- a/src/cloudflare/types/rulesets/set_cache_settings_rule.py +++ b/src/cloudflare/types/rulesets/set_cache_settings_rule.py @@ -1,18 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import Dict, List, Optional +from datetime import datetime from typing_extensions import Literal -from typing import Optional, List, Dict - -from datetime import datetime +from pydantic import Field as FieldInfo from .logging import Logging - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = [ "SetCacheSettingsRule", diff --git a/src/cloudflare/types/rulesets/set_cache_settings_rule_param.py b/src/cloudflare/types/rulesets/set_cache_settings_rule_param.py index 235d14f4e..cbfbc5c3a 100644 --- a/src/cloudflare/types/rulesets/set_cache_settings_rule_param.py +++ b/src/cloudflare/types/rulesets/set_cache_settings_rule_param.py @@ -2,12 +2,11 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing import Dict, List, Iterable +from typing_extensions import Literal, Required, TypedDict from .logging_param import LoggingParam -from typing import Iterable, List, Dict - __all__ = [ "SetCacheSettingsRuleParam", "ActionParameters", diff --git a/src/cloudflare/types/rulesets/set_config_rule.py b/src/cloudflare/types/rulesets/set_config_rule.py index 12b51f6d8..8f09bbe8b 100644 --- a/src/cloudflare/types/rulesets/set_config_rule.py +++ b/src/cloudflare/types/rulesets/set_config_rule.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from typing_extensions import Literal - +from typing import List, Optional from datetime import datetime +from typing_extensions import Literal from .logging import Logging - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["SetConfigRule", "ActionParameters", "ActionParametersAutominify"] diff --git a/src/cloudflare/types/rulesets/skip_rule.py b/src/cloudflare/types/rulesets/skip_rule.py index c83761987..cdf987baf 100644 --- a/src/cloudflare/types/rulesets/skip_rule.py +++ b/src/cloudflare/types/rulesets/skip_rule.py @@ -1,20 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List, Dict +from typing import Dict, List, Optional +from datetime import datetime +from typing_extensions import Literal from .phase import Phase - -from typing_extensions import Literal - -from datetime import datetime - from .logging import Logging - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["SkipRule", "ActionParameters"] diff --git a/src/cloudflare/types/rulesets/skip_rule_param.py b/src/cloudflare/types/rulesets/skip_rule_param.py index b35446c57..abf557ff9 100644 --- a/src/cloudflare/types/rulesets/skip_rule_param.py +++ b/src/cloudflare/types/rulesets/skip_rule_param.py @@ -2,13 +2,11 @@ from __future__ import annotations +from typing import Dict, List from typing_extensions import Literal, TypedDict -from .logging_param import LoggingParam - -from typing import List, Dict - from .phase import Phase +from .logging_param import LoggingParam __all__ = ["SkipRuleParam", "ActionParameters"] diff --git a/src/cloudflare/types/rulesets/version_get_response.py b/src/cloudflare/types/rulesets/version_get_response.py index ac12ea171..56ac5ac07 100644 --- a/src/cloudflare/types/rulesets/version_get_response.py +++ b/src/cloudflare/types/rulesets/version_get_response.py @@ -1,56 +1,30 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .block_rule import BlockRule - -from .compress_response_rule import CompressResponseRule - -from .execute_rule import ExecuteRule - -from .log_rule import LogRule - -from .managed_challenge_rule import ManagedChallengeRule - -from .redirect_rule import RedirectRule - -from .rewrite_rule import RewriteRule - -from .route_rule import RouteRule - -from .score_rule import ScoreRule - -from .serve_error_rule import ServeErrorRule - -from .set_config_rule import SetConfigRule - -from .skip_rule import SkipRule - -from .set_cache_settings_rule import SetCacheSettingsRule - -from .log_custom_field_rule import LogCustomFieldRule - -from .ddos_dynamic_rule import DDoSDynamicRule - -from .force_connection_close_rule import ForceConnectionCloseRule - -from ..._models import BaseModel - +from typing import List, Union, Optional from datetime import datetime - -from typing import Optional, List - -from typing_extensions import Literal, TypeAlias, Annotated - -from .logging import Logging - -from ..._utils import PropertyInfo +from typing_extensions import Literal, Annotated, TypeAlias from .kind import Kind - from .phase import Phase - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .logging import Logging +from ..._utils import PropertyInfo +from .log_rule import LogRule +from ..._models import BaseModel +from .skip_rule import SkipRule +from .block_rule import BlockRule +from .route_rule import RouteRule +from .score_rule import ScoreRule +from .execute_rule import ExecuteRule +from .rewrite_rule import RewriteRule +from .redirect_rule import RedirectRule +from .set_config_rule import SetConfigRule +from .serve_error_rule import ServeErrorRule +from .ddos_dynamic_rule import DDoSDynamicRule +from .log_custom_field_rule import LogCustomFieldRule +from .compress_response_rule import CompressResponseRule +from .managed_challenge_rule import ManagedChallengeRule +from .set_cache_settings_rule import SetCacheSettingsRule +from .force_connection_close_rule import ForceConnectionCloseRule __all__ = ["VersionGetResponse", "Rule", "RuleRulesetsChallengeRule", "RuleRulesetsJSChallengeRule"] diff --git a/src/cloudflare/types/rulesets/version_list_response.py b/src/cloudflare/types/rulesets/version_list_response.py index f41202177..bfc8b8049 100644 --- a/src/cloudflare/types/rulesets/version_list_response.py +++ b/src/cloudflare/types/rulesets/version_list_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from .kind import Kind - +from typing import Optional from datetime import datetime +from .kind import Kind from .phase import Phase - -from typing import Optional - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["VersionListResponse"] diff --git a/src/cloudflare/types/rulesets/versions/by_tag_get_response.py b/src/cloudflare/types/rulesets/versions/by_tag_get_response.py index f7453836a..539f1bf1b 100644 --- a/src/cloudflare/types/rulesets/versions/by_tag_get_response.py +++ b/src/cloudflare/types/rulesets/versions/by_tag_get_response.py @@ -1,56 +1,30 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..block_rule import BlockRule - -from ..compress_response_rule import CompressResponseRule - -from ..execute_rule import ExecuteRule - -from ..log_rule import LogRule - -from ..managed_challenge_rule import ManagedChallengeRule - -from ..redirect_rule import RedirectRule - -from ..rewrite_rule import RewriteRule - -from ..route_rule import RouteRule - -from ..score_rule import ScoreRule - -from ..serve_error_rule import ServeErrorRule - -from ..set_config_rule import SetConfigRule - -from ..skip_rule import SkipRule - -from ..set_cache_settings_rule import SetCacheSettingsRule - -from ..log_custom_field_rule import LogCustomFieldRule - -from ..ddos_dynamic_rule import DDoSDynamicRule - -from ..force_connection_close_rule import ForceConnectionCloseRule - -from ...._models import BaseModel - +from typing import List, Union, Optional from datetime import datetime - -from typing import Optional, List - -from typing_extensions import Literal, TypeAlias, Annotated - -from ..logging import Logging - -from ...._utils import PropertyInfo +from typing_extensions import Literal, Annotated, TypeAlias from ..kind import Kind - from ..phase import Phase - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..logging import Logging +from ...._utils import PropertyInfo +from ..log_rule import LogRule +from ...._models import BaseModel +from ..skip_rule import SkipRule +from ..block_rule import BlockRule +from ..route_rule import RouteRule +from ..score_rule import ScoreRule +from ..execute_rule import ExecuteRule +from ..rewrite_rule import RewriteRule +from ..redirect_rule import RedirectRule +from ..set_config_rule import SetConfigRule +from ..serve_error_rule import ServeErrorRule +from ..ddos_dynamic_rule import DDoSDynamicRule +from ..log_custom_field_rule import LogCustomFieldRule +from ..compress_response_rule import CompressResponseRule +from ..managed_challenge_rule import ManagedChallengeRule +from ..set_cache_settings_rule import SetCacheSettingsRule +from ..force_connection_close_rule import ForceConnectionCloseRule __all__ = ["ByTagGetResponse", "Rule", "RuleRulesetsChallengeRule", "RuleRulesetsJSChallengeRule"] diff --git a/src/cloudflare/types/rum/__init__.py b/src/cloudflare/types/rum/__init__.py index 28841bd79..870d73731 100644 --- a/src/cloudflare/types/rum/__init__.py +++ b/src/cloudflare/types/rum/__init__.py @@ -3,12 +3,12 @@ from __future__ import annotations from .site import Site as Site -from .site_info_delete_response import SiteInfoDeleteResponse as SiteInfoDeleteResponse +from .rum_rule import RUMRule as RUMRule +from .rule_create_params import RuleCreateParams as RuleCreateParams +from .rule_list_response import RuleListResponse as RuleListResponse +from .rule_update_params import RuleUpdateParams as RuleUpdateParams +from .rule_delete_response import RuleDeleteResponse as RuleDeleteResponse +from .site_info_list_params import SiteInfoListParams as SiteInfoListParams from .site_info_create_params import SiteInfoCreateParams as SiteInfoCreateParams from .site_info_update_params import SiteInfoUpdateParams as SiteInfoUpdateParams -from .site_info_list_params import SiteInfoListParams as SiteInfoListParams -from .rum_rule import RUMRule as RUMRule -from .rule_list_response import RuleListResponse as RuleListResponse -from .rule_delete_response import RuleDeleteResponse as RuleDeleteResponse -from .rule_create_params import RuleCreateParams as RuleCreateParams -from .rule_update_params import RuleUpdateParams as RuleUpdateParams +from .site_info_delete_response import SiteInfoDeleteResponse as SiteInfoDeleteResponse diff --git a/src/cloudflare/types/rum/rule_create_params.py b/src/cloudflare/types/rum/rule_create_params.py index 1737c4953..999786186 100644 --- a/src/cloudflare/types/rum/rule_create_params.py +++ b/src/cloudflare/types/rum/rule_create_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["RuleCreateParams"] diff --git a/src/cloudflare/types/rum/rule_delete_response.py b/src/cloudflare/types/rum/rule_delete_response.py index 368315f5a..2d837d57a 100644 --- a/src/cloudflare/types/rum/rule_delete_response.py +++ b/src/cloudflare/types/rum/rule_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RuleDeleteResponse"] diff --git a/src/cloudflare/types/rum/rule_list_response.py b/src/cloudflare/types/rum/rule_list_response.py index 29371b87b..3d8f03f0d 100644 --- a/src/cloudflare/types/rum/rule_list_response.py +++ b/src/cloudflare/types/rum/rule_list_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List +from typing import List, Optional from .rum_rule import RUMRule - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RuleListResponse", "Ruleset"] diff --git a/src/cloudflare/types/rum/rule_update_params.py b/src/cloudflare/types/rum/rule_update_params.py index b1fe3f7d5..262f25205 100644 --- a/src/cloudflare/types/rum/rule_update_params.py +++ b/src/cloudflare/types/rum/rule_update_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["RuleUpdateParams"] diff --git a/src/cloudflare/types/rum/rum_rule.py b/src/cloudflare/types/rum/rum_rule.py index 852974df6..b6b43189c 100644 --- a/src/cloudflare/types/rum/rum_rule.py +++ b/src/cloudflare/types/rum/rum_rule.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RUMRule"] diff --git a/src/cloudflare/types/rum/site.py b/src/cloudflare/types/rum/site.py index 58caa16d3..504caf445 100644 --- a/src/cloudflare/types/rum/site.py +++ b/src/cloudflare/types/rum/site.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime from .rum_rule import RUMRule - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Site", "Ruleset"] diff --git a/src/cloudflare/types/rum/site_info_create_params.py b/src/cloudflare/types/rum/site_info_create_params.py index 49d39fd53..91186469f 100644 --- a/src/cloudflare/types/rum/site_info_create_params.py +++ b/src/cloudflare/types/rum/site_info_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["SiteInfoCreateParams"] diff --git a/src/cloudflare/types/rum/site_info_delete_response.py b/src/cloudflare/types/rum/site_info_delete_response.py index 459947fb8..0cf42b0e1 100644 --- a/src/cloudflare/types/rum/site_info_delete_response.py +++ b/src/cloudflare/types/rum/site_info_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["SiteInfoDeleteResponse"] diff --git a/src/cloudflare/types/rum/site_info_list_params.py b/src/cloudflare/types/rum/site_info_list_params.py index 9fa6fa68d..621eba190 100644 --- a/src/cloudflare/types/rum/site_info_list_params.py +++ b/src/cloudflare/types/rum/site_info_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["SiteInfoListParams"] diff --git a/src/cloudflare/types/rum/site_info_update_params.py b/src/cloudflare/types/rum/site_info_update_params.py index 384415342..c829ad47b 100644 --- a/src/cloudflare/types/rum/site_info_update_params.py +++ b/src/cloudflare/types/rum/site_info_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["SiteInfoUpdateParams"] diff --git a/src/cloudflare/types/secondary_dns/__init__.py b/src/cloudflare/types/secondary_dns/__init__.py index 2e8e46524..38aa6d40a 100644 --- a/src/cloudflare/types/secondary_dns/__init__.py +++ b/src/cloudflare/types/secondary_dns/__init__.py @@ -2,36 +2,36 @@ from __future__ import annotations +from .acl import ACL as ACL +from .peer import Peer as Peer +from .tsig import TSIG as TSIG from .force_axfr import ForceAXFR as ForceAXFR -from .force_axfr_create_params import ForceAXFRCreateParams as ForceAXFRCreateParams -from .incoming_create_response import IncomingCreateResponse as IncomingCreateResponse -from .incoming_update_response import IncomingUpdateResponse as IncomingUpdateResponse -from .incoming_delete_response import IncomingDeleteResponse as IncomingDeleteResponse -from .incoming_get_response import IncomingGetResponse as IncomingGetResponse -from .incoming_create_params import IncomingCreateParams as IncomingCreateParams -from .incoming_update_params import IncomingUpdateParams as IncomingUpdateParams -from .disable_transfer import DisableTransfer as DisableTransfer from .enable_transfer import EnableTransfer as EnableTransfer from .outgoing_status import OutgoingStatus as OutgoingStatus -from .outgoing_create_response import OutgoingCreateResponse as OutgoingCreateResponse -from .outgoing_update_response import OutgoingUpdateResponse as OutgoingUpdateResponse -from .outgoing_delete_response import OutgoingDeleteResponse as OutgoingDeleteResponse -from .outgoing_force_notify_response import OutgoingForceNotifyResponse as OutgoingForceNotifyResponse -from .outgoing_get_response import OutgoingGetResponse as OutgoingGetResponse -from .outgoing_create_params import OutgoingCreateParams as OutgoingCreateParams -from .outgoing_update_params import OutgoingUpdateParams as OutgoingUpdateParams -from .outgoing_disable_params import OutgoingDisableParams as OutgoingDisableParams -from .outgoing_enable_params import OutgoingEnableParams as OutgoingEnableParams -from .outgoing_force_notify_params import OutgoingForceNotifyParams as OutgoingForceNotifyParams -from .acl import ACL as ACL -from .acl_delete_response import ACLDeleteResponse as ACLDeleteResponse +from .disable_transfer import DisableTransfer as DisableTransfer from .acl_create_params import ACLCreateParams as ACLCreateParams from .acl_update_params import ACLUpdateParams as ACLUpdateParams -from .peer import Peer as Peer -from .peer_delete_response import PeerDeleteResponse as PeerDeleteResponse from .peer_create_params import PeerCreateParams as PeerCreateParams from .peer_update_params import PeerUpdateParams as PeerUpdateParams -from .tsig import TSIG as TSIG -from .tsig_delete_response import TSIGDeleteResponse as TSIGDeleteResponse from .tsig_create_params import TSIGCreateParams as TSIGCreateParams from .tsig_update_params import TSIGUpdateParams as TSIGUpdateParams +from .acl_delete_response import ACLDeleteResponse as ACLDeleteResponse +from .peer_delete_response import PeerDeleteResponse as PeerDeleteResponse +from .tsig_delete_response import TSIGDeleteResponse as TSIGDeleteResponse +from .incoming_get_response import IncomingGetResponse as IncomingGetResponse +from .outgoing_get_response import OutgoingGetResponse as OutgoingGetResponse +from .incoming_create_params import IncomingCreateParams as IncomingCreateParams +from .incoming_update_params import IncomingUpdateParams as IncomingUpdateParams +from .outgoing_create_params import OutgoingCreateParams as OutgoingCreateParams +from .outgoing_enable_params import OutgoingEnableParams as OutgoingEnableParams +from .outgoing_update_params import OutgoingUpdateParams as OutgoingUpdateParams +from .outgoing_disable_params import OutgoingDisableParams as OutgoingDisableParams +from .force_axfr_create_params import ForceAXFRCreateParams as ForceAXFRCreateParams +from .incoming_create_response import IncomingCreateResponse as IncomingCreateResponse +from .incoming_delete_response import IncomingDeleteResponse as IncomingDeleteResponse +from .incoming_update_response import IncomingUpdateResponse as IncomingUpdateResponse +from .outgoing_create_response import OutgoingCreateResponse as OutgoingCreateResponse +from .outgoing_delete_response import OutgoingDeleteResponse as OutgoingDeleteResponse +from .outgoing_update_response import OutgoingUpdateResponse as OutgoingUpdateResponse +from .outgoing_force_notify_params import OutgoingForceNotifyParams as OutgoingForceNotifyParams +from .outgoing_force_notify_response import OutgoingForceNotifyResponse as OutgoingForceNotifyResponse diff --git a/src/cloudflare/types/secondary_dns/acl.py b/src/cloudflare/types/secondary_dns/acl.py index 3147d6be8..41bea9382 100644 --- a/src/cloudflare/types/secondary_dns/acl.py +++ b/src/cloudflare/types/secondary_dns/acl.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["ACL"] diff --git a/src/cloudflare/types/secondary_dns/acl_create_params.py b/src/cloudflare/types/secondary_dns/acl_create_params.py index 549ddac1f..45b0f0d78 100644 --- a/src/cloudflare/types/secondary_dns/acl_create_params.py +++ b/src/cloudflare/types/secondary_dns/acl_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ACLCreateParams"] diff --git a/src/cloudflare/types/secondary_dns/acl_delete_response.py b/src/cloudflare/types/secondary_dns/acl_delete_response.py index a52e8b842..cc996c386 100644 --- a/src/cloudflare/types/secondary_dns/acl_delete_response.py +++ b/src/cloudflare/types/secondary_dns/acl_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ACLDeleteResponse"] diff --git a/src/cloudflare/types/secondary_dns/acl_update_params.py b/src/cloudflare/types/secondary_dns/acl_update_params.py index c49367a14..205f1f8da 100644 --- a/src/cloudflare/types/secondary_dns/acl_update_params.py +++ b/src/cloudflare/types/secondary_dns/acl_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ACLUpdateParams"] diff --git a/src/cloudflare/types/secondary_dns/disable_transfer.py b/src/cloudflare/types/secondary_dns/disable_transfer.py index 584828f0d..a2ef61a6a 100644 --- a/src/cloudflare/types/secondary_dns/disable_transfer.py +++ b/src/cloudflare/types/secondary_dns/disable_transfer.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["DisableTransfer"] DisableTransfer: TypeAlias = str diff --git a/src/cloudflare/types/secondary_dns/enable_transfer.py b/src/cloudflare/types/secondary_dns/enable_transfer.py index 579feac62..48b62c01c 100644 --- a/src/cloudflare/types/secondary_dns/enable_transfer.py +++ b/src/cloudflare/types/secondary_dns/enable_transfer.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["EnableTransfer"] EnableTransfer: TypeAlias = str diff --git a/src/cloudflare/types/secondary_dns/force_axfr.py b/src/cloudflare/types/secondary_dns/force_axfr.py index 7a7abb08c..cfee811da 100644 --- a/src/cloudflare/types/secondary_dns/force_axfr.py +++ b/src/cloudflare/types/secondary_dns/force_axfr.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ForceAXFR"] ForceAXFR: TypeAlias = str diff --git a/src/cloudflare/types/secondary_dns/force_axfr_create_params.py b/src/cloudflare/types/secondary_dns/force_axfr_create_params.py index 7882c1335..892842697 100644 --- a/src/cloudflare/types/secondary_dns/force_axfr_create_params.py +++ b/src/cloudflare/types/secondary_dns/force_axfr_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ForceAXFRCreateParams"] diff --git a/src/cloudflare/types/secondary_dns/incoming.py b/src/cloudflare/types/secondary_dns/incoming.py index bc3e82c03..414010f56 100644 --- a/src/cloudflare/types/secondary_dns/incoming.py +++ b/src/cloudflare/types/secondary_dns/incoming.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Incoming"] diff --git a/src/cloudflare/types/secondary_dns/incoming_create_params.py b/src/cloudflare/types/secondary_dns/incoming_create_params.py index e9f791584..3113f7967 100644 --- a/src/cloudflare/types/secondary_dns/incoming_create_params.py +++ b/src/cloudflare/types/secondary_dns/incoming_create_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["IncomingCreateParams"] diff --git a/src/cloudflare/types/secondary_dns/incoming_create_response.py b/src/cloudflare/types/secondary_dns/incoming_create_response.py index 31fc9214e..7b38910a8 100644 --- a/src/cloudflare/types/secondary_dns/incoming_create_response.py +++ b/src/cloudflare/types/secondary_dns/incoming_create_response.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["IncomingCreateResponse"] diff --git a/src/cloudflare/types/secondary_dns/incoming_delete_response.py b/src/cloudflare/types/secondary_dns/incoming_delete_response.py index aeb6d8597..367531fef 100644 --- a/src/cloudflare/types/secondary_dns/incoming_delete_response.py +++ b/src/cloudflare/types/secondary_dns/incoming_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["IncomingDeleteResponse"] diff --git a/src/cloudflare/types/secondary_dns/incoming_get_response.py b/src/cloudflare/types/secondary_dns/incoming_get_response.py index 203bbb9b8..9951e47ad 100644 --- a/src/cloudflare/types/secondary_dns/incoming_get_response.py +++ b/src/cloudflare/types/secondary_dns/incoming_get_response.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["IncomingGetResponse"] diff --git a/src/cloudflare/types/secondary_dns/incoming_update_params.py b/src/cloudflare/types/secondary_dns/incoming_update_params.py index 78b51bdfa..86d9f4e6f 100644 --- a/src/cloudflare/types/secondary_dns/incoming_update_params.py +++ b/src/cloudflare/types/secondary_dns/incoming_update_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["IncomingUpdateParams"] diff --git a/src/cloudflare/types/secondary_dns/incoming_update_response.py b/src/cloudflare/types/secondary_dns/incoming_update_response.py index f1efd6fe3..c568cbab0 100644 --- a/src/cloudflare/types/secondary_dns/incoming_update_response.py +++ b/src/cloudflare/types/secondary_dns/incoming_update_response.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["IncomingUpdateResponse"] diff --git a/src/cloudflare/types/secondary_dns/outgoing/outgoing.py b/src/cloudflare/types/secondary_dns/outgoing/outgoing.py index 88b4d6fa8..bb4b2ad23 100644 --- a/src/cloudflare/types/secondary_dns/outgoing/outgoing.py +++ b/src/cloudflare/types/secondary_dns/outgoing/outgoing.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ...._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Outgoing"] diff --git a/src/cloudflare/types/secondary_dns/outgoing_create_params.py b/src/cloudflare/types/secondary_dns/outgoing_create_params.py index 8f96a7f4d..1642db02e 100644 --- a/src/cloudflare/types/secondary_dns/outgoing_create_params.py +++ b/src/cloudflare/types/secondary_dns/outgoing_create_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["OutgoingCreateParams"] diff --git a/src/cloudflare/types/secondary_dns/outgoing_create_response.py b/src/cloudflare/types/secondary_dns/outgoing_create_response.py index 540fc29fe..6321df38d 100644 --- a/src/cloudflare/types/secondary_dns/outgoing_create_response.py +++ b/src/cloudflare/types/secondary_dns/outgoing_create_response.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["OutgoingCreateResponse"] diff --git a/src/cloudflare/types/secondary_dns/outgoing_delete_response.py b/src/cloudflare/types/secondary_dns/outgoing_delete_response.py index 2d3de4f61..4c2ace416 100644 --- a/src/cloudflare/types/secondary_dns/outgoing_delete_response.py +++ b/src/cloudflare/types/secondary_dns/outgoing_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["OutgoingDeleteResponse"] diff --git a/src/cloudflare/types/secondary_dns/outgoing_disable_params.py b/src/cloudflare/types/secondary_dns/outgoing_disable_params.py index 71c334277..08d06c56a 100644 --- a/src/cloudflare/types/secondary_dns/outgoing_disable_params.py +++ b/src/cloudflare/types/secondary_dns/outgoing_disable_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["OutgoingDisableParams"] diff --git a/src/cloudflare/types/secondary_dns/outgoing_enable_params.py b/src/cloudflare/types/secondary_dns/outgoing_enable_params.py index dbc411076..93e197b2b 100644 --- a/src/cloudflare/types/secondary_dns/outgoing_enable_params.py +++ b/src/cloudflare/types/secondary_dns/outgoing_enable_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["OutgoingEnableParams"] diff --git a/src/cloudflare/types/secondary_dns/outgoing_force_notify_params.py b/src/cloudflare/types/secondary_dns/outgoing_force_notify_params.py index ae2a18e80..7835ae3d3 100644 --- a/src/cloudflare/types/secondary_dns/outgoing_force_notify_params.py +++ b/src/cloudflare/types/secondary_dns/outgoing_force_notify_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["OutgoingForceNotifyParams"] diff --git a/src/cloudflare/types/secondary_dns/outgoing_force_notify_response.py b/src/cloudflare/types/secondary_dns/outgoing_force_notify_response.py index ef62aeae7..6078b13fd 100644 --- a/src/cloudflare/types/secondary_dns/outgoing_force_notify_response.py +++ b/src/cloudflare/types/secondary_dns/outgoing_force_notify_response.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["OutgoingForceNotifyResponse"] OutgoingForceNotifyResponse: TypeAlias = str diff --git a/src/cloudflare/types/secondary_dns/outgoing_get_response.py b/src/cloudflare/types/secondary_dns/outgoing_get_response.py index aa6d3b84c..fbb224e3c 100644 --- a/src/cloudflare/types/secondary_dns/outgoing_get_response.py +++ b/src/cloudflare/types/secondary_dns/outgoing_get_response.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["OutgoingGetResponse"] diff --git a/src/cloudflare/types/secondary_dns/outgoing_status.py b/src/cloudflare/types/secondary_dns/outgoing_status.py index 9a4e340da..f119a6242 100644 --- a/src/cloudflare/types/secondary_dns/outgoing_status.py +++ b/src/cloudflare/types/secondary_dns/outgoing_status.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Optional - from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["OutgoingStatus"] OutgoingStatus: TypeAlias = Optional[str] diff --git a/src/cloudflare/types/secondary_dns/outgoing_update_params.py b/src/cloudflare/types/secondary_dns/outgoing_update_params.py index 4bf1c0fec..f70ef853e 100644 --- a/src/cloudflare/types/secondary_dns/outgoing_update_params.py +++ b/src/cloudflare/types/secondary_dns/outgoing_update_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["OutgoingUpdateParams"] diff --git a/src/cloudflare/types/secondary_dns/outgoing_update_response.py b/src/cloudflare/types/secondary_dns/outgoing_update_response.py index af2f21426..db9c1b05f 100644 --- a/src/cloudflare/types/secondary_dns/outgoing_update_response.py +++ b/src/cloudflare/types/secondary_dns/outgoing_update_response.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["OutgoingUpdateResponse"] diff --git a/src/cloudflare/types/secondary_dns/peer.py b/src/cloudflare/types/secondary_dns/peer.py index ea361a400..502be2d22 100644 --- a/src/cloudflare/types/secondary_dns/peer.py +++ b/src/cloudflare/types/secondary_dns/peer.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Peer"] diff --git a/src/cloudflare/types/secondary_dns/peer_create_params.py b/src/cloudflare/types/secondary_dns/peer_create_params.py index 8b1c00413..6e4dfbf42 100644 --- a/src/cloudflare/types/secondary_dns/peer_create_params.py +++ b/src/cloudflare/types/secondary_dns/peer_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["PeerCreateParams"] diff --git a/src/cloudflare/types/secondary_dns/peer_delete_response.py b/src/cloudflare/types/secondary_dns/peer_delete_response.py index bb5766307..f15beb9db 100644 --- a/src/cloudflare/types/secondary_dns/peer_delete_response.py +++ b/src/cloudflare/types/secondary_dns/peer_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["PeerDeleteResponse"] diff --git a/src/cloudflare/types/secondary_dns/peer_update_params.py b/src/cloudflare/types/secondary_dns/peer_update_params.py index a71d78b63..a8b0f30a4 100644 --- a/src/cloudflare/types/secondary_dns/peer_update_params.py +++ b/src/cloudflare/types/secondary_dns/peer_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["PeerUpdateParams"] diff --git a/src/cloudflare/types/secondary_dns/tsig.py b/src/cloudflare/types/secondary_dns/tsig.py index 1d652a298..0c270b791 100644 --- a/src/cloudflare/types/secondary_dns/tsig.py +++ b/src/cloudflare/types/secondary_dns/tsig.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["TSIG"] diff --git a/src/cloudflare/types/secondary_dns/tsig_create_params.py b/src/cloudflare/types/secondary_dns/tsig_create_params.py index d1bb8a806..81d9ae163 100644 --- a/src/cloudflare/types/secondary_dns/tsig_create_params.py +++ b/src/cloudflare/types/secondary_dns/tsig_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["TSIGCreateParams"] diff --git a/src/cloudflare/types/secondary_dns/tsig_delete_response.py b/src/cloudflare/types/secondary_dns/tsig_delete_response.py index a61c6844f..f81e354e5 100644 --- a/src/cloudflare/types/secondary_dns/tsig_delete_response.py +++ b/src/cloudflare/types/secondary_dns/tsig_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["TSIGDeleteResponse"] diff --git a/src/cloudflare/types/secondary_dns/tsig_update_params.py b/src/cloudflare/types/secondary_dns/tsig_update_params.py index 0cc98b76f..459c53962 100644 --- a/src/cloudflare/types/secondary_dns/tsig_update_params.py +++ b/src/cloudflare/types/secondary_dns/tsig_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["TSIGUpdateParams"] diff --git a/src/cloudflare/types/shared/__init__.py b/src/cloudflare/types/shared/__init__.py index 0f3724b9e..51d5d9d5f 100644 --- a/src/cloudflare/types/shared/__init__.py +++ b/src/cloudflare/types/shared/__init__.py @@ -1,18 +1,18 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .asn import ASN as ASN +from .role import Role as Role +from .member import Member as Member +from .result import Result as Result from .audit_log import AuditLog as AuditLog -from .certificate_ca import CertificateCA as CertificateCA -from .certificate_request_type import CertificateRequestType as CertificateRequestType -from .cloudflare_tunnel import CloudflareTunnel as CloudflareTunnel from .error_data import ErrorData as ErrorData from .identifier import Identifier as Identifier -from .load_balancer_preview import LoadBalancerPreview as LoadBalancerPreview -from .member import Member as Member -from .pagination_info import PaginationInfo as PaginationInfo from .permission import Permission as Permission -from .permission_grant import PermissionGrant as PermissionGrant from .response_info import ResponseInfo as ResponseInfo -from .result import Result as Result -from .role import Role as Role +from .certificate_ca import CertificateCA as CertificateCA from .sort_direction import SortDirection as SortDirection +from .pagination_info import PaginationInfo as PaginationInfo +from .permission_grant import PermissionGrant as PermissionGrant +from .cloudflare_tunnel import CloudflareTunnel as CloudflareTunnel +from .load_balancer_preview import LoadBalancerPreview as LoadBalancerPreview +from .certificate_request_type import CertificateRequestType as CertificateRequestType diff --git a/src/cloudflare/types/shared/asn.py b/src/cloudflare/types/shared/asn.py index 0526f2802..aaf595998 100644 --- a/src/cloudflare/types/shared/asn.py +++ b/src/cloudflare/types/shared/asn.py @@ -2,13 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - -from ..._models import BaseModel - __all__ = ["ASN"] ASN: TypeAlias = int diff --git a/src/cloudflare/types/shared/audit_log.py b/src/cloudflare/types/shared/audit_log.py index 6a3367a3f..22eef13a5 100644 --- a/src/cloudflare/types/shared/audit_log.py +++ b/src/cloudflare/types/shared/audit_log.py @@ -1,14 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - -from typing_extensions import Literal - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal from pydantic import Field as FieldInfo diff --git a/src/cloudflare/types/shared/certificate_ca.py b/src/cloudflare/types/shared/certificate_ca.py index 6fd304113..469adf0af 100644 --- a/src/cloudflare/types/shared/certificate_ca.py +++ b/src/cloudflare/types/shared/certificate_ca.py @@ -2,13 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - -from ..._models import BaseModel - __all__ = ["CertificateCA"] CertificateCA: TypeAlias = Literal["digicert", "google", "lets_encrypt", "ssl_com"] diff --git a/src/cloudflare/types/shared/certificate_request_type.py b/src/cloudflare/types/shared/certificate_request_type.py index 105fc0814..bfe03f42a 100644 --- a/src/cloudflare/types/shared/certificate_request_type.py +++ b/src/cloudflare/types/shared/certificate_request_type.py @@ -2,13 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - -from ..._models import BaseModel - __all__ = ["CertificateRequestType"] CertificateRequestType: TypeAlias = Literal["origin-rsa", "origin-ecc", "keyless-certificate"] diff --git a/src/cloudflare/types/shared/cloudflare_tunnel.py b/src/cloudflare/types/shared/cloudflare_tunnel.py index dd56a1c56..9fbc6e6c1 100644 --- a/src/cloudflare/types/shared/cloudflare_tunnel.py +++ b/src/cloudflare/types/shared/cloudflare_tunnel.py @@ -1,18 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - from ..._models import BaseModel __all__ = ["CloudflareTunnel", "Connection"] diff --git a/src/cloudflare/types/shared/error_data.py b/src/cloudflare/types/shared/error_data.py index 7f7f8c1ff..e7621bcad 100644 --- a/src/cloudflare/types/shared/error_data.py +++ b/src/cloudflare/types/shared/error_data.py @@ -1,14 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - from ..._models import BaseModel __all__ = ["ErrorData"] diff --git a/src/cloudflare/types/shared/identifier.py b/src/cloudflare/types/shared/identifier.py index 3735f7b26..f45e7984c 100644 --- a/src/cloudflare/types/shared/identifier.py +++ b/src/cloudflare/types/shared/identifier.py @@ -1,14 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - from ..._models import BaseModel __all__ = ["Identifier"] diff --git a/src/cloudflare/types/shared/load_balancer_preview.py b/src/cloudflare/types/shared/load_balancer_preview.py index 529386253..e57784aa9 100644 --- a/src/cloudflare/types/shared/load_balancer_preview.py +++ b/src/cloudflare/types/shared/load_balancer_preview.py @@ -1,13 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, Dict - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal - -from pydantic import Field as FieldInfo +from typing import Dict, Optional from ..._models import BaseModel diff --git a/src/cloudflare/types/shared/member.py b/src/cloudflare/types/shared/member.py index 2fee8d197..c4282582d 100644 --- a/src/cloudflare/types/shared/member.py +++ b/src/cloudflare/types/shared/member.py @@ -1,20 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel - -from typing import Optional, List - from .permission_grant import PermissionGrant -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - -from ..._models import BaseModel - __all__ = ["Member", "Role", "RolePermissions", "User"] diff --git a/src/cloudflare/types/shared/pagination_info.py b/src/cloudflare/types/shared/pagination_info.py index b320b64f2..917e3e94e 100644 --- a/src/cloudflare/types/shared/pagination_info.py +++ b/src/cloudflare/types/shared/pagination_info.py @@ -1,14 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - from ..._models import BaseModel __all__ = ["PaginationInfo"] diff --git a/src/cloudflare/types/shared/permission.py b/src/cloudflare/types/shared/permission.py index 0ada8864d..bf2dbf7f3 100644 --- a/src/cloudflare/types/shared/permission.py +++ b/src/cloudflare/types/shared/permission.py @@ -2,13 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - -from ..._models import BaseModel - __all__ = ["Permission"] Permission: TypeAlias = str diff --git a/src/cloudflare/types/shared/permission_grant.py b/src/cloudflare/types/shared/permission_grant.py index d2a915d50..b62bae8a5 100644 --- a/src/cloudflare/types/shared/permission_grant.py +++ b/src/cloudflare/types/shared/permission_grant.py @@ -1,14 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - from ..._models import BaseModel __all__ = ["PermissionGrant"] diff --git a/src/cloudflare/types/shared/response_info.py b/src/cloudflare/types/shared/response_info.py index 04dca8a64..3208261ab 100644 --- a/src/cloudflare/types/shared/response_info.py +++ b/src/cloudflare/types/shared/response_info.py @@ -1,11 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal - -from pydantic import Field as FieldInfo from ..._models import BaseModel diff --git a/src/cloudflare/types/shared/result.py b/src/cloudflare/types/shared/result.py index be0e63782..0e67a79f2 100644 --- a/src/cloudflare/types/shared/result.py +++ b/src/cloudflare/types/shared/result.py @@ -1,21 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from .response_info import ResponseInfo - -from .audit_log import AuditLog - +from typing import List, Union, Optional from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - from ..._models import BaseModel +from .audit_log import AuditLog +from .response_info import ResponseInfo __all__ = ["Result", "UnionMember0", "AaaAPIResponseCommon"] diff --git a/src/cloudflare/types/shared/role.py b/src/cloudflare/types/shared/role.py index 96fc82575..8bfd1f8f6 100644 --- a/src/cloudflare/types/shared/role.py +++ b/src/cloudflare/types/shared/role.py @@ -1,17 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List -from .permission import Permission - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - from ..._models import BaseModel +from .permission import Permission __all__ = ["Role"] diff --git a/src/cloudflare/types/shared/sort_direction.py b/src/cloudflare/types/shared/sort_direction.py index 17c05d069..ba2e7c840 100644 --- a/src/cloudflare/types/shared/sort_direction.py +++ b/src/cloudflare/types/shared/sort_direction.py @@ -2,13 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal - -from pydantic import Field as FieldInfo - -from ..._models import BaseModel - __all__ = ["SortDirection"] SortDirection: TypeAlias = Literal["asc", "desc"] diff --git a/src/cloudflare/types/shared_params/__init__.py b/src/cloudflare/types/shared_params/__init__.py index 9abf134d3..6a6befd7e 100644 --- a/src/cloudflare/types/shared_params/__init__.py +++ b/src/cloudflare/types/shared_params/__init__.py @@ -2,6 +2,6 @@ from .asn import ASN as ASN from .certificate_ca import CertificateCA as CertificateCA -from .certificate_request_type import CertificateRequestType as CertificateRequestType -from .permission_grant import PermissionGrant as PermissionGrant from .sort_direction import SortDirection as SortDirection +from .permission_grant import PermissionGrant as PermissionGrant +from .certificate_request_type import CertificateRequestType as CertificateRequestType diff --git a/src/cloudflare/types/snippets/__init__.py b/src/cloudflare/types/snippets/__init__.py index a9bc12fc2..2084aa6e7 100644 --- a/src/cloudflare/types/snippets/__init__.py +++ b/src/cloudflare/types/snippets/__init__.py @@ -3,8 +3,8 @@ from __future__ import annotations from .snippet import Snippet as Snippet -from .snippet_delete_response import SnippetDeleteResponse as SnippetDeleteResponse -from .snippet_update_params import SnippetUpdateParams as SnippetUpdateParams -from .rule_update_response import RuleUpdateResponse as RuleUpdateResponse from .rule_list_response import RuleListResponse as RuleListResponse from .rule_update_params import RuleUpdateParams as RuleUpdateParams +from .rule_update_response import RuleUpdateResponse as RuleUpdateResponse +from .snippet_update_params import SnippetUpdateParams as SnippetUpdateParams +from .snippet_delete_response import SnippetDeleteResponse as SnippetDeleteResponse diff --git a/src/cloudflare/types/snippets/rule_list_response.py b/src/cloudflare/types/snippets/rule_list_response.py index f7d4c3e9d..63c540e55 100644 --- a/src/cloudflare/types/snippets/rule_list_response.py +++ b/src/cloudflare/types/snippets/rule_list_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RuleListResponse"] diff --git a/src/cloudflare/types/snippets/rule_update_params.py b/src/cloudflare/types/snippets/rule_update_params.py index 9e7f3accc..a539ccf82 100644 --- a/src/cloudflare/types/snippets/rule_update_params.py +++ b/src/cloudflare/types/snippets/rule_update_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Iterable - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["RuleUpdateParams", "Rule"] diff --git a/src/cloudflare/types/snippets/rule_update_response.py b/src/cloudflare/types/snippets/rule_update_response.py index c2e6c24d2..3b4070d84 100644 --- a/src/cloudflare/types/snippets/rule_update_response.py +++ b/src/cloudflare/types/snippets/rule_update_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional - +from typing import List, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RuleUpdateResponse", "RuleUpdateResponseItem"] diff --git a/src/cloudflare/types/snippets/snippet.py b/src/cloudflare/types/snippets/snippet.py index 61bdf665b..69dc66089 100644 --- a/src/cloudflare/types/snippets/snippet.py +++ b/src/cloudflare/types/snippets/snippet.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Snippet"] diff --git a/src/cloudflare/types/snippets/snippet_delete_response.py b/src/cloudflare/types/snippets/snippet_delete_response.py index f6a2be914..6a1b4806d 100644 --- a/src/cloudflare/types/snippets/snippet_delete_response.py +++ b/src/cloudflare/types/snippets/snippet_delete_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List +from typing_extensions import Literal +from ..._models import BaseModel from ..shared.response_info import ResponseInfo -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SnippetDeleteResponse"] diff --git a/src/cloudflare/types/snippets/snippet_update_params.py b/src/cloudflare/types/snippets/snippet_update_params.py index 21be883f6..7f1e3894a 100644 --- a/src/cloudflare/types/snippets/snippet_update_params.py +++ b/src/cloudflare/types/snippets/snippet_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["SnippetUpdateParams", "Metadata"] diff --git a/src/cloudflare/types/spectrum/__init__.py b/src/cloudflare/types/spectrum/__init__.py index 7d4299ba6..c4193ff84 100644 --- a/src/cloudflare/types/spectrum/__init__.py +++ b/src/cloudflare/types/spectrum/__init__.py @@ -3,18 +3,18 @@ from __future__ import annotations from .dns import DNS as DNS -from .dns_param import DNSParam as DNSParam from .edge_ips import EdgeIPs as EdgeIPs -from .edge_ips_param import EdgeIPsParam as EdgeIPsParam +from .dns_param import DNSParam as DNSParam from .origin_dns import OriginDNS as OriginDNS -from .origin_dns_param import OriginDNSParam as OriginDNSParam from .origin_port import OriginPort as OriginPort +from .edge_ips_param import EdgeIPsParam as EdgeIPsParam +from .app_list_params import AppListParams as AppListParams +from .app_get_response import AppGetResponse as AppGetResponse +from .origin_dns_param import OriginDNSParam as OriginDNSParam +from .app_create_params import AppCreateParams as AppCreateParams +from .app_list_response import AppListResponse as AppListResponse +from .app_update_params import AppUpdateParams as AppUpdateParams from .origin_port_param import OriginPortParam as OriginPortParam from .app_create_response import AppCreateResponse as AppCreateResponse -from .app_update_response import AppUpdateResponse as AppUpdateResponse -from .app_list_response import AppListResponse as AppListResponse from .app_delete_response import AppDeleteResponse as AppDeleteResponse -from .app_get_response import AppGetResponse as AppGetResponse -from .app_create_params import AppCreateParams as AppCreateParams -from .app_update_params import AppUpdateParams as AppUpdateParams -from .app_list_params import AppListParams as AppListParams +from .app_update_response import AppUpdateResponse as AppUpdateResponse diff --git a/src/cloudflare/types/spectrum/analytics/aggregates/__init__.py b/src/cloudflare/types/spectrum/analytics/aggregates/__init__.py index 1e795864f..9570555c7 100644 --- a/src/cloudflare/types/spectrum/analytics/aggregates/__init__.py +++ b/src/cloudflare/types/spectrum/analytics/aggregates/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .current_get_response import CurrentGetResponse as CurrentGetResponse from .current_get_params import CurrentGetParams as CurrentGetParams +from .current_get_response import CurrentGetResponse as CurrentGetResponse diff --git a/src/cloudflare/types/spectrum/analytics/aggregates/current_get_params.py b/src/cloudflare/types/spectrum/analytics/aggregates/current_get_params.py index a522ff83b..1dc8b1085 100644 --- a/src/cloudflare/types/spectrum/analytics/aggregates/current_get_params.py +++ b/src/cloudflare/types/spectrum/analytics/aggregates/current_get_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated +from typing_extensions import Required, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["CurrentGetParams"] diff --git a/src/cloudflare/types/spectrum/analytics/aggregates/current_get_response.py b/src/cloudflare/types/spectrum/analytics/aggregates/current_get_response.py index 2051ec92d..9a69755ef 100644 --- a/src/cloudflare/types/spectrum/analytics/aggregates/current_get_response.py +++ b/src/cloudflare/types/spectrum/analytics/aggregates/current_get_response.py @@ -1,13 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["CurrentGetResponse", "CurrentGetResponseItem"] diff --git a/src/cloudflare/types/spectrum/analytics/dimension.py b/src/cloudflare/types/spectrum/analytics/dimension.py index 4113f57c4..76be1866f 100644 --- a/src/cloudflare/types/spectrum/analytics/dimension.py +++ b/src/cloudflare/types/spectrum/analytics/dimension.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Dimension"] Dimension: TypeAlias = Literal["event", "appID", "coloName", "ipVersion"] diff --git a/src/cloudflare/types/spectrum/analytics/events/__init__.py b/src/cloudflare/types/spectrum/analytics/events/__init__.py index 39a419016..628747c37 100644 --- a/src/cloudflare/types/spectrum/analytics/events/__init__.py +++ b/src/cloudflare/types/spectrum/analytics/events/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations -from .bytime_get_response import BytimeGetResponse as BytimeGetResponse from .bytime_get_params import BytimeGetParams as BytimeGetParams -from .summary_get_response import SummaryGetResponse as SummaryGetResponse from .summary_get_params import SummaryGetParams as SummaryGetParams +from .bytime_get_response import BytimeGetResponse as BytimeGetResponse +from .summary_get_response import SummaryGetResponse as SummaryGetResponse diff --git a/src/cloudflare/types/spectrum/analytics/events/bytime_get_params.py b/src/cloudflare/types/spectrum/analytics/events/bytime_get_params.py index b6a21af87..2a998b647 100644 --- a/src/cloudflare/types/spectrum/analytics/events/bytime_get_params.py +++ b/src/cloudflare/types/spectrum/analytics/events/bytime_get_params.py @@ -2,20 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, Annotated - from typing import List, Union - -from ..dimension import Dimension - from datetime import datetime +from typing_extensions import Literal, Required, Annotated, TypedDict from ....._utils import PropertyInfo - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from ..dimension import Dimension __all__ = ["BytimeGetParams"] diff --git a/src/cloudflare/types/spectrum/analytics/events/bytime_get_response.py b/src/cloudflare/types/spectrum/analytics/events/bytime_get_response.py index 3fe34a734..9920bd395 100644 --- a/src/cloudflare/types/spectrum/analytics/events/bytime_get_response.py +++ b/src/cloudflare/types/spectrum/analytics/events/bytime_get_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - -from typing import Optional, List, Union, Dict +from typing import Dict, List, Union, Optional +from datetime import datetime +from typing_extensions import Literal from ..dimension import Dimension - -from typing_extensions import Literal - -from datetime import datetime - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["BytimeGetResponse", "Data", "Query"] diff --git a/src/cloudflare/types/spectrum/analytics/events/summary_get_params.py b/src/cloudflare/types/spectrum/analytics/events/summary_get_params.py index f88f46a27..cd0ece71f 100644 --- a/src/cloudflare/types/spectrum/analytics/events/summary_get_params.py +++ b/src/cloudflare/types/spectrum/analytics/events/summary_get_params.py @@ -2,20 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, Annotated - from typing import List, Union - -from ..dimension import Dimension - from datetime import datetime +from typing_extensions import Literal, Required, Annotated, TypedDict from ....._utils import PropertyInfo - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from ..dimension import Dimension __all__ = ["SummaryGetParams"] diff --git a/src/cloudflare/types/spectrum/analytics/events/summary_get_response.py b/src/cloudflare/types/spectrum/analytics/events/summary_get_response.py index 792869285..b6e48698e 100644 --- a/src/cloudflare/types/spectrum/analytics/events/summary_get_response.py +++ b/src/cloudflare/types/spectrum/analytics/events/summary_get_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - -from typing import Optional, List, Union, Dict +from typing import Dict, List, Union, Optional +from datetime import datetime +from typing_extensions import Literal from ..dimension import Dimension - -from typing_extensions import Literal - -from datetime import datetime - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["SummaryGetResponse", "Data", "Query"] diff --git a/src/cloudflare/types/spectrum/app_create_params.py b/src/cloudflare/types/spectrum/app_create_params.py index 9c324ef50..321ca9d6d 100644 --- a/src/cloudflare/types/spectrum/app_create_params.py +++ b/src/cloudflare/types/spectrum/app_create_params.py @@ -2,23 +2,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias +from typing import List, Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict from .dns_param import DNSParam - from .edge_ips_param import EdgeIPsParam - -from typing import List - from .origin_dns_param import OriginDNSParam - from .origin_port_param import OriginPortParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["AppCreateParams", "SpectrumConfigAppConfig", "SpectrumConfigPaygoAppConfig"] diff --git a/src/cloudflare/types/spectrum/app_create_response.py b/src/cloudflare/types/spectrum/app_create_response.py index 3ec9340eb..d6a8d9d99 100644 --- a/src/cloudflare/types/spectrum/app_create_response.py +++ b/src/cloudflare/types/spectrum/app_create_response.py @@ -1,25 +1,15 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import List, Union, Optional from datetime import datetime - -from .dns import DNS - from typing_extensions import Literal, TypeAlias -from typing import Optional, List - +from .dns import DNS from .edge_ips import EdgeIPs - +from ..._models import BaseModel from .origin_dns import OriginDNS - from .origin_port import OriginPort -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AppCreateResponse", "SpectrumConfigAppConfig", "SpectrumConfigPaygoAppConfig"] diff --git a/src/cloudflare/types/spectrum/app_delete_response.py b/src/cloudflare/types/spectrum/app_delete_response.py index 73817032e..b1bdd49d6 100644 --- a/src/cloudflare/types/spectrum/app_delete_response.py +++ b/src/cloudflare/types/spectrum/app_delete_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["AppDeleteResponse"] diff --git a/src/cloudflare/types/spectrum/app_get_response.py b/src/cloudflare/types/spectrum/app_get_response.py index a754b8eaa..de88107be 100644 --- a/src/cloudflare/types/spectrum/app_get_response.py +++ b/src/cloudflare/types/spectrum/app_get_response.py @@ -1,25 +1,15 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import List, Union, Optional from datetime import datetime - -from .dns import DNS - from typing_extensions import Literal, TypeAlias -from typing import Optional, List - +from .dns import DNS from .edge_ips import EdgeIPs - +from ..._models import BaseModel from .origin_dns import OriginDNS - from .origin_port import OriginPort -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AppGetResponse", "SpectrumConfigAppConfig", "SpectrumConfigPaygoAppConfig"] diff --git a/src/cloudflare/types/spectrum/app_list_params.py b/src/cloudflare/types/spectrum/app_list_params.py index 911e9e79a..84e587664 100644 --- a/src/cloudflare/types/spectrum/app_list_params.py +++ b/src/cloudflare/types/spectrum/app_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["AppListParams"] diff --git a/src/cloudflare/types/spectrum/app_list_response.py b/src/cloudflare/types/spectrum/app_list_response.py index b43730dac..b985557d3 100644 --- a/src/cloudflare/types/spectrum/app_list_response.py +++ b/src/cloudflare/types/spectrum/app_list_response.py @@ -1,25 +1,15 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional - -from ..._models import BaseModel - +from typing import List, Union, Optional from datetime import datetime - -from .dns import DNS - from typing_extensions import Literal, TypeAlias +from .dns import DNS from .edge_ips import EdgeIPs - +from ..._models import BaseModel from .origin_dns import OriginDNS - from .origin_port import OriginPort -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AppListResponse", "UnionMember0", "UnionMember1"] diff --git a/src/cloudflare/types/spectrum/app_update_params.py b/src/cloudflare/types/spectrum/app_update_params.py index 8eef07663..90905475e 100644 --- a/src/cloudflare/types/spectrum/app_update_params.py +++ b/src/cloudflare/types/spectrum/app_update_params.py @@ -2,23 +2,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias +from typing import List, Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict from .dns_param import DNSParam - from .edge_ips_param import EdgeIPsParam - -from typing import List - from .origin_dns_param import OriginDNSParam - from .origin_port_param import OriginPortParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["AppUpdateParams", "SpectrumConfigAppConfig", "SpectrumConfigPaygoAppConfig"] diff --git a/src/cloudflare/types/spectrum/app_update_response.py b/src/cloudflare/types/spectrum/app_update_response.py index b568a4bb8..8ee0649be 100644 --- a/src/cloudflare/types/spectrum/app_update_response.py +++ b/src/cloudflare/types/spectrum/app_update_response.py @@ -1,25 +1,15 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import List, Union, Optional from datetime import datetime - -from .dns import DNS - from typing_extensions import Literal, TypeAlias -from typing import Optional, List - +from .dns import DNS from .edge_ips import EdgeIPs - +from ..._models import BaseModel from .origin_dns import OriginDNS - from .origin_port import OriginPort -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AppUpdateResponse", "SpectrumConfigAppConfig", "SpectrumConfigPaygoAppConfig"] diff --git a/src/cloudflare/types/spectrum/dns.py b/src/cloudflare/types/spectrum/dns.py index d769b2163..6b21157c6 100644 --- a/src/cloudflare/types/spectrum/dns.py +++ b/src/cloudflare/types/spectrum/dns.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["DNS"] diff --git a/src/cloudflare/types/spectrum/edge_ips.py b/src/cloudflare/types/spectrum/edge_ips.py index 99bee0496..336cf5a04 100644 --- a/src/cloudflare/types/spectrum/edge_ips.py +++ b/src/cloudflare/types/spectrum/edge_ips.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Union, Optional from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["EdgeIPs", "UnionMember0", "UnionMember1"] diff --git a/src/cloudflare/types/spectrum/edge_ips_param.py b/src/cloudflare/types/spectrum/edge_ips_param.py index e6f064dff..ee07525ad 100644 --- a/src/cloudflare/types/spectrum/edge_ips_param.py +++ b/src/cloudflare/types/spectrum/edge_ips_param.py @@ -2,9 +2,8 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, TypeAlias - from typing import List, Union +from typing_extensions import Literal, TypeAlias, TypedDict __all__ = ["EdgeIPsParam", "UnionMember0", "UnionMember1"] diff --git a/src/cloudflare/types/spectrum/origin_dns.py b/src/cloudflare/types/spectrum/origin_dns.py index a290eecf5..09bb671ae 100644 --- a/src/cloudflare/types/spectrum/origin_dns.py +++ b/src/cloudflare/types/spectrum/origin_dns.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["OriginDNS"] diff --git a/src/cloudflare/types/spectrum/origin_port.py b/src/cloudflare/types/spectrum/origin_port.py index 64a92a802..774ceca5f 100644 --- a/src/cloudflare/types/spectrum/origin_port.py +++ b/src/cloudflare/types/spectrum/origin_port.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["OriginPort"] OriginPort: TypeAlias = Union[int, str] diff --git a/src/cloudflare/types/spectrum/origin_port_param.py b/src/cloudflare/types/spectrum/origin_port_param.py index 900d5919d..0573c681c 100644 --- a/src/cloudflare/types/spectrum/origin_port_param.py +++ b/src/cloudflare/types/spectrum/origin_port_param.py @@ -2,9 +2,8 @@ from __future__ import annotations -from typing_extensions import TypeAlias - from typing import Union +from typing_extensions import TypeAlias __all__ = ["OriginPortParam"] diff --git a/src/cloudflare/types/speed/__init__.py b/src/cloudflare/types/speed/__init__.py index 7213299f6..8ee5e2e88 100644 --- a/src/cloudflare/types/speed/__init__.py +++ b/src/cloudflare/types/speed/__init__.py @@ -2,15 +2,15 @@ from __future__ import annotations -from .labeled_region import LabeledRegion as LabeledRegion -from .lighthouse_report import LighthouseReport as LighthouseReport from .trend import Trend as Trend from .schedule import Schedule as Schedule -from .schedule_create_response import ScheduleCreateResponse as ScheduleCreateResponse -from .schedule_delete_response import ScheduleDeleteResponse as ScheduleDeleteResponse +from .availability import Availability as Availability +from .labeled_region import LabeledRegion as LabeledRegion +from .lighthouse_report import LighthouseReport as LighthouseReport +from .page_trend_params import PageTrendParams as PageTrendParams +from .page_list_response import PageListResponse as PageListResponse +from .schedule_get_params import ScheduleGetParams as ScheduleGetParams from .schedule_create_params import ScheduleCreateParams as ScheduleCreateParams from .schedule_delete_params import ScheduleDeleteParams as ScheduleDeleteParams -from .schedule_get_params import ScheduleGetParams as ScheduleGetParams -from .availability import Availability as Availability -from .page_list_response import PageListResponse as PageListResponse -from .page_trend_params import PageTrendParams as PageTrendParams +from .schedule_create_response import ScheduleCreateResponse as ScheduleCreateResponse +from .schedule_delete_response import ScheduleDeleteResponse as ScheduleDeleteResponse diff --git a/src/cloudflare/types/speed/availability.py b/src/cloudflare/types/speed/availability.py index 627e03aaf..6c641690a 100644 --- a/src/cloudflare/types/speed/availability.py +++ b/src/cloudflare/types/speed/availability.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel +from typing import List, Optional -from typing import Optional, List - -from .labeled_region import LabeledRegion - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .labeled_region import LabeledRegion + __all__ = [ "Availability", "Quota", diff --git a/src/cloudflare/types/speed/labeled_region.py b/src/cloudflare/types/speed/labeled_region.py index bf4fda5e4..a6d8ab6a7 100644 --- a/src/cloudflare/types/speed/labeled_region.py +++ b/src/cloudflare/types/speed/labeled_region.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["LabeledRegion"] diff --git a/src/cloudflare/types/speed/lighthouse_report.py b/src/cloudflare/types/speed/lighthouse_report.py index 57131d454..959484301 100644 --- a/src/cloudflare/types/speed/lighthouse_report.py +++ b/src/cloudflare/types/speed/lighthouse_report.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["LighthouseReport", "Error"] diff --git a/src/cloudflare/types/speed/page_list_response.py b/src/cloudflare/types/speed/page_list_response.py index f605f7890..a6a058277 100644 --- a/src/cloudflare/types/speed/page_list_response.py +++ b/src/cloudflare/types/speed/page_list_response.py @@ -1,19 +1,14 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from .labeled_region import LabeledRegion - +from typing import List, Optional from typing_extensions import Literal -from .pages.test import Test - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .pages.test import Test +from .labeled_region import LabeledRegion + __all__ = ["PageListResponse"] diff --git a/src/cloudflare/types/speed/page_trend_params.py b/src/cloudflare/types/speed/page_trend_params.py index e9c31bbc5..c3df698ca 100644 --- a/src/cloudflare/types/speed/page_trend_params.py +++ b/src/cloudflare/types/speed/page_trend_params.py @@ -2,17 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, Annotated - -from ..._utils import PropertyInfo - from typing import Union - from datetime import datetime +from typing_extensions import Literal, Required, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes from ..._utils import PropertyInfo __all__ = ["PageTrendParams"] diff --git a/src/cloudflare/types/speed/pages/__init__.py b/src/cloudflare/types/speed/pages/__init__.py index 848381db1..21be79f68 100644 --- a/src/cloudflare/types/speed/pages/__init__.py +++ b/src/cloudflare/types/speed/pages/__init__.py @@ -3,7 +3,7 @@ from __future__ import annotations from .test import Test as Test -from .test_delete_response import TestDeleteResponse as TestDeleteResponse -from .test_create_params import TestCreateParams as TestCreateParams from .test_list_params import TestListParams as TestListParams +from .test_create_params import TestCreateParams as TestCreateParams from .test_delete_params import TestDeleteParams as TestDeleteParams +from .test_delete_response import TestDeleteResponse as TestDeleteResponse diff --git a/src/cloudflare/types/speed/pages/test.py b/src/cloudflare/types/speed/pages/test.py index 2429d8e7e..11667f87e 100644 --- a/src/cloudflare/types/speed/pages/test.py +++ b/src/cloudflare/types/speed/pages/test.py @@ -1,21 +1,15 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime - -from ..lighthouse_report import LighthouseReport - -from ..labeled_region import LabeledRegion - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel +from ..labeled_region import LabeledRegion +from ..lighthouse_report import LighthouseReport + __all__ = ["Test"] diff --git a/src/cloudflare/types/speed/pages/test_create_params.py b/src/cloudflare/types/speed/pages/test_create_params.py index a99ab0ec2..c61cee932 100644 --- a/src/cloudflare/types/speed/pages/test_create_params.py +++ b/src/cloudflare/types/speed/pages/test_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["TestCreateParams"] diff --git a/src/cloudflare/types/speed/pages/test_delete_params.py b/src/cloudflare/types/speed/pages/test_delete_params.py index 46e21a788..2fbda2c48 100644 --- a/src/cloudflare/types/speed/pages/test_delete_params.py +++ b/src/cloudflare/types/speed/pages/test_delete_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["TestDeleteParams"] diff --git a/src/cloudflare/types/speed/pages/test_delete_response.py b/src/cloudflare/types/speed/pages/test_delete_response.py index f970cf2bc..728079ebc 100644 --- a/src/cloudflare/types/speed/pages/test_delete_response.py +++ b/src/cloudflare/types/speed/pages/test_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["TestDeleteResponse"] diff --git a/src/cloudflare/types/speed/pages/test_list_params.py b/src/cloudflare/types/speed/pages/test_list_params.py index af1b6dd4a..b26496e0b 100644 --- a/src/cloudflare/types/speed/pages/test_list_params.py +++ b/src/cloudflare/types/speed/pages/test_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["TestListParams"] diff --git a/src/cloudflare/types/speed/schedule.py b/src/cloudflare/types/speed/schedule.py index 4d6b16d72..42ae4c520 100644 --- a/src/cloudflare/types/speed/schedule.py +++ b/src/cloudflare/types/speed/schedule.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Schedule"] diff --git a/src/cloudflare/types/speed/schedule_create_params.py b/src/cloudflare/types/speed/schedule_create_params.py index 2baeaf92c..94102af37 100644 --- a/src/cloudflare/types/speed/schedule_create_params.py +++ b/src/cloudflare/types/speed/schedule_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["ScheduleCreateParams"] diff --git a/src/cloudflare/types/speed/schedule_create_response.py b/src/cloudflare/types/speed/schedule_create_response.py index 0c2f94d13..5fe02042e 100644 --- a/src/cloudflare/types/speed/schedule_create_response.py +++ b/src/cloudflare/types/speed/schedule_create_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional from .schedule import Schedule - +from ..._models import BaseModel from .pages.test import Test -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ScheduleCreateResponse"] diff --git a/src/cloudflare/types/speed/schedule_delete_params.py b/src/cloudflare/types/speed/schedule_delete_params.py index bff001d7d..4ac243958 100644 --- a/src/cloudflare/types/speed/schedule_delete_params.py +++ b/src/cloudflare/types/speed/schedule_delete_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["ScheduleDeleteParams"] diff --git a/src/cloudflare/types/speed/schedule_delete_response.py b/src/cloudflare/types/speed/schedule_delete_response.py index 9e56a4872..1449d7330 100644 --- a/src/cloudflare/types/speed/schedule_delete_response.py +++ b/src/cloudflare/types/speed/schedule_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ScheduleDeleteResponse"] diff --git a/src/cloudflare/types/speed/schedule_get_params.py b/src/cloudflare/types/speed/schedule_get_params.py index 19fbf3af7..e9c75fdf4 100644 --- a/src/cloudflare/types/speed/schedule_get_params.py +++ b/src/cloudflare/types/speed/schedule_get_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["ScheduleGetParams"] diff --git a/src/cloudflare/types/speed/trend.py b/src/cloudflare/types/speed/trend.py index 3e152436e..713aecd2e 100644 --- a/src/cloudflare/types/speed/trend.py +++ b/src/cloudflare/types/speed/trend.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel +from typing import List, Optional -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["Trend"] diff --git a/src/cloudflare/types/ssl/__init__.py b/src/cloudflare/types/ssl/__init__.py index c7c45a6cf..9852390ad 100644 --- a/src/cloudflare/types/ssl/__init__.py +++ b/src/cloudflare/types/ssl/__init__.py @@ -2,18 +2,18 @@ from __future__ import annotations -from .analyze_create_params import AnalyzeCreateParams as AnalyzeCreateParams from .host import Host as Host -from .request_validity import RequestValidity as RequestValidity from .status import Status as Status -from .validation_method import ValidationMethod as ValidationMethod -from .certificate_pack_delete_response import CertificatePackDeleteResponse as CertificatePackDeleteResponse -from .certificate_pack_edit_response import CertificatePackEditResponse as CertificatePackEditResponse -from .certificate_pack_list_params import CertificatePackListParams as CertificatePackListParams -from .certificate_pack_edit_params import CertificatePackEditParams as CertificatePackEditParams -from .recommendation_get_response import RecommendationGetResponse as RecommendationGetResponse from .verification import Verification as Verification -from .verification_edit_response import VerificationEditResponse as VerificationEditResponse -from .verification_get_response import VerificationGetResponse as VerificationGetResponse -from .verification_edit_params import VerificationEditParams as VerificationEditParams +from .request_validity import RequestValidity as RequestValidity +from .validation_method import ValidationMethod as ValidationMethod +from .analyze_create_params import AnalyzeCreateParams as AnalyzeCreateParams from .verification_get_params import VerificationGetParams as VerificationGetParams +from .verification_edit_params import VerificationEditParams as VerificationEditParams +from .verification_get_response import VerificationGetResponse as VerificationGetResponse +from .verification_edit_response import VerificationEditResponse as VerificationEditResponse +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_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 248a9091e..eb06d1357 100644 --- a/src/cloudflare/types/ssl/analyze_create_params.py +++ b/src/cloudflare/types/ssl/analyze_create_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict from ..custom_hostnames.bundle_method import BundleMethod -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["AnalyzeCreateParams"] diff --git a/src/cloudflare/types/ssl/certificate_pack_delete_response.py b/src/cloudflare/types/ssl/certificate_pack_delete_response.py index 425dd5b0d..20f9fa494 100644 --- a/src/cloudflare/types/ssl/certificate_pack_delete_response.py +++ b/src/cloudflare/types/ssl/certificate_pack_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["CertificatePackDeleteResponse"] diff --git a/src/cloudflare/types/ssl/certificate_pack_edit_params.py b/src/cloudflare/types/ssl/certificate_pack_edit_params.py index 7fcd427e4..3ca3b845d 100644 --- a/src/cloudflare/types/ssl/certificate_pack_edit_params.py +++ b/src/cloudflare/types/ssl/certificate_pack_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["CertificatePackEditParams"] diff --git a/src/cloudflare/types/ssl/certificate_pack_edit_response.py b/src/cloudflare/types/ssl/certificate_pack_edit_response.py index 8b92a24d1..a977f5613 100644 --- a/src/cloudflare/types/ssl/certificate_pack_edit_response.py +++ b/src/cloudflare/types/ssl/certificate_pack_edit_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from typing_extensions import Literal from .host import Host - from .status import Status - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["CertificatePackEditResponse"] diff --git a/src/cloudflare/types/ssl/certificate_pack_list_params.py b/src/cloudflare/types/ssl/certificate_pack_list_params.py index 117c9de1e..65532eead 100644 --- a/src/cloudflare/types/ssl/certificate_pack_list_params.py +++ b/src/cloudflare/types/ssl/certificate_pack_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["CertificatePackListParams"] diff --git a/src/cloudflare/types/ssl/certificate_packs/__init__.py b/src/cloudflare/types/ssl/certificate_packs/__init__.py index e0cadcd99..9251bdda1 100644 --- a/src/cloudflare/types/ssl/certificate_packs/__init__.py +++ b/src/cloudflare/types/ssl/certificate_packs/__init__.py @@ -2,6 +2,6 @@ from __future__ import annotations -from .order_create_response import OrderCreateResponse as OrderCreateResponse -from .order_create_params import OrderCreateParams as OrderCreateParams from .quota_get_response import QuotaGetResponse as QuotaGetResponse +from .order_create_params import OrderCreateParams as OrderCreateParams +from .order_create_response import OrderCreateResponse as OrderCreateResponse diff --git a/src/cloudflare/types/ssl/certificate_packs/order_create_params.py b/src/cloudflare/types/ssl/certificate_packs/order_create_params.py index 00950081d..2691ec58c 100644 --- a/src/cloudflare/types/ssl/certificate_packs/order_create_params.py +++ b/src/cloudflare/types/ssl/certificate_packs/order_create_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import List +from typing_extensions import Literal, Required, TypedDict from ..host import Host -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["OrderCreateParams"] diff --git a/src/cloudflare/types/ssl/certificate_packs/order_create_response.py b/src/cloudflare/types/ssl/certificate_packs/order_create_response.py index acbde1ba1..d147f36a0 100644 --- a/src/cloudflare/types/ssl/certificate_packs/order_create_response.py +++ b/src/cloudflare/types/ssl/certificate_packs/order_create_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from typing_extensions import Literal from ..host import Host - from ..status import Status - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["OrderCreateResponse"] diff --git a/src/cloudflare/types/ssl/certificate_packs/quota_get_response.py b/src/cloudflare/types/ssl/certificate_packs/quota_get_response.py index 158be1aa9..8882cbc29 100644 --- a/src/cloudflare/types/ssl/certificate_packs/quota_get_response.py +++ b/src/cloudflare/types/ssl/certificate_packs/quota_get_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["QuotaGetResponse", "Advanced"] diff --git a/src/cloudflare/types/ssl/host.py b/src/cloudflare/types/ssl/host.py index 1f61ddf97..c294bcb2e 100644 --- a/src/cloudflare/types/ssl/host.py +++ b/src/cloudflare/types/ssl/host.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Host"] Host: TypeAlias = str diff --git a/src/cloudflare/types/ssl/recommendation_get_response.py b/src/cloudflare/types/ssl/recommendation_get_response.py index e456001ba..1f7fa47d2 100644 --- a/src/cloudflare/types/ssl/recommendation_get_response.py +++ b/src/cloudflare/types/ssl/recommendation_get_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["RecommendationGetResponse"] diff --git a/src/cloudflare/types/ssl/request_validity.py b/src/cloudflare/types/ssl/request_validity.py index 718aced0c..03fcdbf3c 100644 --- a/src/cloudflare/types/ssl/request_validity.py +++ b/src/cloudflare/types/ssl/request_validity.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["RequestValidity"] RequestValidity: TypeAlias = Literal[7, 30, 90, 365, 730, 1095, 5475] diff --git a/src/cloudflare/types/ssl/status.py b/src/cloudflare/types/ssl/status.py index bcab77e95..5fa807b7b 100644 --- a/src/cloudflare/types/ssl/status.py +++ b/src/cloudflare/types/ssl/status.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Status"] Status: TypeAlias = Literal[ diff --git a/src/cloudflare/types/ssl/universal/__init__.py b/src/cloudflare/types/ssl/universal/__init__.py index d8eef24c8..5fd261ecd 100644 --- a/src/cloudflare/types/ssl/universal/__init__.py +++ b/src/cloudflare/types/ssl/universal/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .universal_ssl_settings import UniversalSSLSettings as UniversalSSLSettings from .setting_edit_params import SettingEditParams as SettingEditParams +from .universal_ssl_settings import UniversalSSLSettings as UniversalSSLSettings diff --git a/src/cloudflare/types/ssl/universal/setting_edit_params.py b/src/cloudflare/types/ssl/universal/setting_edit_params.py index 2b332d9cb..ab4f62f07 100644 --- a/src/cloudflare/types/ssl/universal/setting_edit_params.py +++ b/src/cloudflare/types/ssl/universal/setting_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["SettingEditParams"] diff --git a/src/cloudflare/types/ssl/universal/universal_ssl_settings.py b/src/cloudflare/types/ssl/universal/universal_ssl_settings.py index 755807a14..c75187758 100644 --- a/src/cloudflare/types/ssl/universal/universal_ssl_settings.py +++ b/src/cloudflare/types/ssl/universal/universal_ssl_settings.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["UniversalSSLSettings"] diff --git a/src/cloudflare/types/ssl/validation_method.py b/src/cloudflare/types/ssl/validation_method.py index 65f7a6083..27faa5fba 100644 --- a/src/cloudflare/types/ssl/validation_method.py +++ b/src/cloudflare/types/ssl/validation_method.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ValidationMethod"] ValidationMethod: TypeAlias = Literal["http", "cname", "txt"] diff --git a/src/cloudflare/types/ssl/verification.py b/src/cloudflare/types/ssl/verification.py index 5c38df7d6..3c917bd99 100644 --- a/src/cloudflare/types/ssl/verification.py +++ b/src/cloudflare/types/ssl/verification.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal +from ..._models import BaseModel from .validation_method import ValidationMethod -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Verification", "VerificationInfo"] diff --git a/src/cloudflare/types/ssl/verification_edit_params.py b/src/cloudflare/types/ssl/verification_edit_params.py index b6158509b..a561f45ca 100644 --- a/src/cloudflare/types/ssl/verification_edit_params.py +++ b/src/cloudflare/types/ssl/verification_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["VerificationEditParams"] diff --git a/src/cloudflare/types/ssl/verification_edit_response.py b/src/cloudflare/types/ssl/verification_edit_response.py index 70b369b2c..23608da93 100644 --- a/src/cloudflare/types/ssl/verification_edit_response.py +++ b/src/cloudflare/types/ssl/verification_edit_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["VerificationEditResponse"] diff --git a/src/cloudflare/types/ssl/verification_get_params.py b/src/cloudflare/types/ssl/verification_get_params.py index f819f027d..cf66987e4 100644 --- a/src/cloudflare/types/ssl/verification_get_params.py +++ b/src/cloudflare/types/ssl/verification_get_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["VerificationGetParams"] diff --git a/src/cloudflare/types/ssl/verification_get_response.py b/src/cloudflare/types/ssl/verification_get_response.py index 00e626a6d..b099ce4d0 100644 --- a/src/cloudflare/types/ssl/verification_get_response.py +++ b/src/cloudflare/types/ssl/verification_get_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .verification import Verification - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .verification import Verification __all__ = ["VerificationGetResponse"] diff --git a/src/cloudflare/types/storage/__init__.py b/src/cloudflare/types/storage/__init__.py index 36ebe5a5f..003dd49ba 100644 --- a/src/cloudflare/types/storage/__init__.py +++ b/src/cloudflare/types/storage/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations -from .components import Components as Components from .schema import Schema as Schema +from .components import Components as Components from .analytics_list_params import AnalyticsListParams as AnalyticsListParams from .analytics_stored_params import AnalyticsStoredParams as AnalyticsStoredParams diff --git a/src/cloudflare/types/storage/analytics_list_params.py b/src/cloudflare/types/storage/analytics_list_params.py index a292228d5..c53578770 100644 --- a/src/cloudflare/types/storage/analytics_list_params.py +++ b/src/cloudflare/types/storage/analytics_list_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, Annotated - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["AnalyticsListParams", "Query"] diff --git a/src/cloudflare/types/storage/analytics_stored_params.py b/src/cloudflare/types/storage/analytics_stored_params.py index 147c7dd32..269a0bbf3 100644 --- a/src/cloudflare/types/storage/analytics_stored_params.py +++ b/src/cloudflare/types/storage/analytics_stored_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, Annotated - from typing import List, Union - from datetime import datetime +from typing_extensions import Literal, Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["AnalyticsStoredParams", "Query"] diff --git a/src/cloudflare/types/storage/components.py b/src/cloudflare/types/storage/components.py index 19ee4bea7..f5b7c5a45 100644 --- a/src/cloudflare/types/storage/components.py +++ b/src/cloudflare/types/storage/components.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import List, Optional, Dict - +from typing import Dict, List, Optional from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Components", "Data", "Query"] diff --git a/src/cloudflare/types/storage/schema.py b/src/cloudflare/types/storage/schema.py index f7eaf409b..86d1d620d 100644 --- a/src/cloudflare/types/storage/schema.py +++ b/src/cloudflare/types/storage/schema.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import List, Optional, Dict - +from typing import Dict, List, Optional from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Schema", "Data", "Query"] diff --git a/src/cloudflare/types/stream/__init__.py b/src/cloudflare/types/stream/__init__.py index 2af6f61f1..a55628ac3 100644 --- a/src/cloudflare/types/stream/__init__.py +++ b/src/cloudflare/types/stream/__init__.py @@ -2,40 +2,40 @@ from __future__ import annotations -from .allowed_origins import AllowedOrigins as AllowedOrigins -from .video import Video as Video -from .stream_create_params import StreamCreateParams as StreamCreateParams -from .stream_list_params import StreamListParams as StreamListParams -from .audio import Audio as Audio -from .audio_track_delete_response import AudioTrackDeleteResponse as AudioTrackDeleteResponse -from .audio_track_get_response import AudioTrackGetResponse as AudioTrackGetResponse -from .audio_track_copy_params import AudioTrackCopyParams as AudioTrackCopyParams -from .audio_track_edit_params import AudioTrackEditParams as AudioTrackEditParams -from .video_storage_usage_response import VideoStorageUsageResponse as VideoStorageUsageResponse -from .video_storage_usage_params import VideoStorageUsageParams as VideoStorageUsageParams from .clip import Clip as Clip -from .clip_create_params import ClipCreateParams as ClipCreateParams -from .copy_create_params import CopyCreateParams as CopyCreateParams -from .direct_upload_create_response import DirectUploadCreateResponse as DirectUploadCreateResponse -from .direct_upload_create_params import DirectUploadCreateParams as DirectUploadCreateParams from .keys import Keys as Keys -from .key_delete_response import KeyDeleteResponse as KeyDeleteResponse +from .audio import Audio as Audio +from .video import Video as Video +from .caption import Caption as Caption +from .watermark import Watermark as Watermark +from .live_input import LiveInput as LiveInput +from .allowed_origins import AllowedOrigins as AllowedOrigins from .key_get_response import KeyGetResponse as KeyGetResponse from .key_create_params import KeyCreateParams as KeyCreateParams -from .live_input import LiveInput as LiveInput -from .live_input_list_response import LiveInputListResponse as LiveInputListResponse -from .live_input_create_params import LiveInputCreateParams as LiveInputCreateParams -from .live_input_update_params import LiveInputUpdateParams as LiveInputUpdateParams +from .clip_create_params import ClipCreateParams as ClipCreateParams +from .copy_create_params import CopyCreateParams as CopyCreateParams +from .embed_get_response import EmbedGetResponse as EmbedGetResponse +from .stream_list_params import StreamListParams as StreamListParams +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 .stream_create_params import StreamCreateParams as StreamCreateParams +from .token_create_response import TokenCreateResponse as TokenCreateResponse +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 import Watermark as Watermark -from .watermark_delete_response import WatermarkDeleteResponse as WatermarkDeleteResponse +from .audio_track_copy_params import AudioTrackCopyParams as AudioTrackCopyParams +from .audio_track_edit_params import AudioTrackEditParams as AudioTrackEditParams from .watermark_create_params import WatermarkCreateParams as WatermarkCreateParams from .webhook_delete_response import WebhookDeleteResponse as WebhookDeleteResponse -from .webhook_update_params import WebhookUpdateParams as WebhookUpdateParams -from .caption import Caption as Caption -from .caption_get_response import CaptionGetResponse as CaptionGetResponse +from .audio_track_get_response import AudioTrackGetResponse as AudioTrackGetResponse from .download_delete_response import DownloadDeleteResponse as DownloadDeleteResponse -from .download_create_params import DownloadCreateParams as DownloadCreateParams -from .embed_get_response import EmbedGetResponse as EmbedGetResponse -from .token_create_response import TokenCreateResponse as TokenCreateResponse -from .token_create_params import TokenCreateParams as TokenCreateParams +from .live_input_create_params import LiveInputCreateParams as LiveInputCreateParams +from .live_input_list_response import LiveInputListResponse as LiveInputListResponse +from .live_input_update_params import LiveInputUpdateParams as LiveInputUpdateParams +from .watermark_delete_response import WatermarkDeleteResponse as WatermarkDeleteResponse +from .video_storage_usage_params import VideoStorageUsageParams as VideoStorageUsageParams +from .audio_track_delete_response import AudioTrackDeleteResponse as AudioTrackDeleteResponse +from .direct_upload_create_params import DirectUploadCreateParams as DirectUploadCreateParams +from .video_storage_usage_response import VideoStorageUsageResponse as VideoStorageUsageResponse +from .direct_upload_create_response import DirectUploadCreateResponse as DirectUploadCreateResponse diff --git a/src/cloudflare/types/stream/allowed_origins.py b/src/cloudflare/types/stream/allowed_origins.py index 9df8f14b5..7976c73d9 100644 --- a/src/cloudflare/types/stream/allowed_origins.py +++ b/src/cloudflare/types/stream/allowed_origins.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AllowedOrigins"] AllowedOrigins: TypeAlias = str diff --git a/src/cloudflare/types/stream/audio.py b/src/cloudflare/types/stream/audio.py index 50b76c530..d3f241ce3 100644 --- a/src/cloudflare/types/stream/audio.py +++ b/src/cloudflare/types/stream/audio.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Audio"] diff --git a/src/cloudflare/types/stream/audio_track_copy_params.py b/src/cloudflare/types/stream/audio_track_copy_params.py index 2916b9fbd..599c1adb3 100644 --- a/src/cloudflare/types/stream/audio_track_copy_params.py +++ b/src/cloudflare/types/stream/audio_track_copy_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["AudioTrackCopyParams"] diff --git a/src/cloudflare/types/stream/audio_track_delete_response.py b/src/cloudflare/types/stream/audio_track_delete_response.py index 2dbb82798..62c62a89d 100644 --- a/src/cloudflare/types/stream/audio_track_delete_response.py +++ b/src/cloudflare/types/stream/audio_track_delete_response.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AudioTrackDeleteResponse"] AudioTrackDeleteResponse: TypeAlias = str diff --git a/src/cloudflare/types/stream/audio_track_edit_params.py b/src/cloudflare/types/stream/audio_track_edit_params.py index fa6732b98..6463f48b2 100644 --- a/src/cloudflare/types/stream/audio_track_edit_params.py +++ b/src/cloudflare/types/stream/audio_track_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["AudioTrackEditParams"] diff --git a/src/cloudflare/types/stream/audio_track_get_response.py b/src/cloudflare/types/stream/audio_track_get_response.py index 0bf6e39f6..b76edca83 100644 --- a/src/cloudflare/types/stream/audio_track_get_response.py +++ b/src/cloudflare/types/stream/audio_track_get_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .audio import Audio - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .audio import Audio __all__ = ["AudioTrackGetResponse"] diff --git a/src/cloudflare/types/stream/caption.py b/src/cloudflare/types/stream/caption.py index 197bb73e3..296ed927f 100644 --- a/src/cloudflare/types/stream/caption.py +++ b/src/cloudflare/types/stream/caption.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Caption"] diff --git a/src/cloudflare/types/stream/caption_get_response.py b/src/cloudflare/types/stream/caption_get_response.py index bbe0eedc4..e2f4f8b7d 100644 --- a/src/cloudflare/types/stream/caption_get_response.py +++ b/src/cloudflare/types/stream/caption_get_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .caption import Caption - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .caption import Caption __all__ = ["CaptionGetResponse"] diff --git a/src/cloudflare/types/stream/captions/__init__.py b/src/cloudflare/types/stream/captions/__init__.py index 7caca9a2c..412e8beb9 100644 --- a/src/cloudflare/types/stream/captions/__init__.py +++ b/src/cloudflare/types/stream/captions/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .language_delete_response import LanguageDeleteResponse as LanguageDeleteResponse from .language_update_params import LanguageUpdateParams as LanguageUpdateParams +from .language_delete_response import LanguageDeleteResponse as LanguageDeleteResponse diff --git a/src/cloudflare/types/stream/captions/language/vtt_get_response.py b/src/cloudflare/types/stream/captions/language/vtt_get_response.py index 387b863f7..af12da861 100644 --- a/src/cloudflare/types/stream/captions/language/vtt_get_response.py +++ b/src/cloudflare/types/stream/captions/language/vtt_get_response.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["VttGetResponse"] VttGetResponse: TypeAlias = str diff --git a/src/cloudflare/types/stream/captions/language_delete_response.py b/src/cloudflare/types/stream/captions/language_delete_response.py index 84ad6570c..72f283a44 100644 --- a/src/cloudflare/types/stream/captions/language_delete_response.py +++ b/src/cloudflare/types/stream/captions/language_delete_response.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["LanguageDeleteResponse"] LanguageDeleteResponse: TypeAlias = str diff --git a/src/cloudflare/types/stream/captions/language_update_params.py b/src/cloudflare/types/stream/captions/language_update_params.py index 948003562..66f85180b 100644 --- a/src/cloudflare/types/stream/captions/language_update_params.py +++ b/src/cloudflare/types/stream/captions/language_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["LanguageUpdateParams"] diff --git a/src/cloudflare/types/stream/clip.py b/src/cloudflare/types/stream/clip.py index 261871d9a..9c6197aec 100644 --- a/src/cloudflare/types/stream/clip.py +++ b/src/cloudflare/types/stream/clip.py @@ -1,19 +1,14 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from .allowed_origins import AllowedOrigins - +from typing import List, Optional from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .allowed_origins import AllowedOrigins + __all__ = ["Clip", "Playback", "Watermark"] diff --git a/src/cloudflare/types/stream/clip_create_params.py b/src/cloudflare/types/stream/clip_create_params.py index 4d22de4a4..b3a5e5d55 100644 --- a/src/cloudflare/types/stream/clip_create_params.py +++ b/src/cloudflare/types/stream/clip_create_params.py @@ -2,18 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - -from ..._utils import PropertyInfo - from typing import List +from typing_extensions import Required, Annotated, TypedDict -from .allowed_origins import AllowedOrigins - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes from ..._utils import PropertyInfo +from .allowed_origins import AllowedOrigins __all__ = ["ClipCreateParams", "Watermark"] diff --git a/src/cloudflare/types/stream/copy_create_params.py b/src/cloudflare/types/stream/copy_create_params.py index b0336203d..94338a1f1 100644 --- a/src/cloudflare/types/stream/copy_create_params.py +++ b/src/cloudflare/types/stream/copy_create_params.py @@ -2,20 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - from typing import List, Union - -from .allowed_origins import AllowedOrigins - -from ..._utils import PropertyInfo - from datetime import datetime +from typing_extensions import Required, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes from ..._utils import PropertyInfo +from .allowed_origins import AllowedOrigins __all__ = ["CopyCreateParams", "Watermark"] diff --git a/src/cloudflare/types/stream/direct_upload_create_params.py b/src/cloudflare/types/stream/direct_upload_create_params.py index df36a79e3..7b4354993 100644 --- a/src/cloudflare/types/stream/direct_upload_create_params.py +++ b/src/cloudflare/types/stream/direct_upload_create_params.py @@ -2,20 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - -from ..._utils import PropertyInfo - from typing import List, Union - -from .allowed_origins import AllowedOrigins - from datetime import datetime +from typing_extensions import Required, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes from ..._utils import PropertyInfo +from .allowed_origins import AllowedOrigins __all__ = ["DirectUploadCreateParams", "Watermark"] diff --git a/src/cloudflare/types/stream/direct_upload_create_response.py b/src/cloudflare/types/stream/direct_upload_create_response.py index 22dc2d0c4..241adb04c 100644 --- a/src/cloudflare/types/stream/direct_upload_create_response.py +++ b/src/cloudflare/types/stream/direct_upload_create_response.py @@ -1,17 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from .watermark import Watermark - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .watermark import Watermark + __all__ = ["DirectUploadCreateResponse"] diff --git a/src/cloudflare/types/stream/download_create_params.py b/src/cloudflare/types/stream/download_create_params.py index b46abb6df..ba0fb74b3 100644 --- a/src/cloudflare/types/stream/download_create_params.py +++ b/src/cloudflare/types/stream/download_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["DownloadCreateParams"] diff --git a/src/cloudflare/types/stream/download_delete_response.py b/src/cloudflare/types/stream/download_delete_response.py index a805e9082..0da50997b 100644 --- a/src/cloudflare/types/stream/download_delete_response.py +++ b/src/cloudflare/types/stream/download_delete_response.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["DownloadDeleteResponse"] DownloadDeleteResponse: TypeAlias = str diff --git a/src/cloudflare/types/stream/embed_get_response.py b/src/cloudflare/types/stream/embed_get_response.py index da9f384d1..9ef17b17e 100644 --- a/src/cloudflare/types/stream/embed_get_response.py +++ b/src/cloudflare/types/stream/embed_get_response.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["EmbedGetResponse"] EmbedGetResponse: TypeAlias = str diff --git a/src/cloudflare/types/stream/key_create_params.py b/src/cloudflare/types/stream/key_create_params.py index f36fa2c96..3f1891d27 100644 --- a/src/cloudflare/types/stream/key_create_params.py +++ b/src/cloudflare/types/stream/key_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["KeyCreateParams"] diff --git a/src/cloudflare/types/stream/key_delete_response.py b/src/cloudflare/types/stream/key_delete_response.py index 99afdd237..c22e3c78f 100644 --- a/src/cloudflare/types/stream/key_delete_response.py +++ b/src/cloudflare/types/stream/key_delete_response.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["KeyDeleteResponse"] KeyDeleteResponse: TypeAlias = str diff --git a/src/cloudflare/types/stream/key_get_response.py b/src/cloudflare/types/stream/key_get_response.py index a849fe4e0..e417aca71 100644 --- a/src/cloudflare/types/stream/key_get_response.py +++ b/src/cloudflare/types/stream/key_get_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional - +from typing import List, Optional from datetime import datetime - from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["KeyGetResponse", "KeyGetResponseItem"] diff --git a/src/cloudflare/types/stream/keys.py b/src/cloudflare/types/stream/keys.py index 4a5b8a235..f638edbc2 100644 --- a/src/cloudflare/types/stream/keys.py +++ b/src/cloudflare/types/stream/keys.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Keys"] diff --git a/src/cloudflare/types/stream/live_input.py b/src/cloudflare/types/stream/live_input.py index 9f8de69cc..f92bd1c6b 100644 --- a/src/cloudflare/types/stream/live_input.py +++ b/src/cloudflare/types/stream/live_input.py @@ -1,17 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from typing_extensions import Literal - +from typing import List, Optional from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal + from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["LiveInput", "Recording", "Rtmps", "RtmpsPlayback", "Srt", "SrtPlayback", "WebRtc", "WebRtcPlayback"] diff --git a/src/cloudflare/types/stream/live_input_create_params.py b/src/cloudflare/types/stream/live_input_create_params.py index cff63bb59..3648eaa5d 100644 --- a/src/cloudflare/types/stream/live_input_create_params.py +++ b/src/cloudflare/types/stream/live_input_create_params.py @@ -2,15 +2,9 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal - -from ..._utils import PropertyInfo - from typing import List +from typing_extensions import Literal, Required, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes from ..._utils import PropertyInfo __all__ = ["LiveInputCreateParams", "Recording"] diff --git a/src/cloudflare/types/stream/live_input_list_params.py b/src/cloudflare/types/stream/live_input_list_params.py index 754a321a8..7bec34b8e 100644 --- a/src/cloudflare/types/stream/live_input_list_params.py +++ b/src/cloudflare/types/stream/live_input_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["LiveInputListParams"] diff --git a/src/cloudflare/types/stream/live_input_list_response.py b/src/cloudflare/types/stream/live_input_list_response.py index abbb0b559..89345d5d0 100644 --- a/src/cloudflare/types/stream/live_input_list_response.py +++ b/src/cloudflare/types/stream/live_input_list_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["LiveInputListResponse", "LiveInput"] diff --git a/src/cloudflare/types/stream/live_input_update_params.py b/src/cloudflare/types/stream/live_input_update_params.py index c022c28e6..b3b0bdac4 100644 --- a/src/cloudflare/types/stream/live_input_update_params.py +++ b/src/cloudflare/types/stream/live_input_update_params.py @@ -2,15 +2,9 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal - -from ..._utils import PropertyInfo - from typing import List +from typing_extensions import Literal, Required, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes from ..._utils import PropertyInfo __all__ = ["LiveInputUpdateParams", "Recording"] diff --git a/src/cloudflare/types/stream/live_inputs/output.py b/src/cloudflare/types/stream/live_inputs/output.py index 79c0e03df..bc47dd26d 100644 --- a/src/cloudflare/types/stream/live_inputs/output.py +++ b/src/cloudflare/types/stream/live_inputs/output.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["Output"] diff --git a/src/cloudflare/types/stream/live_inputs/output_create_params.py b/src/cloudflare/types/stream/live_inputs/output_create_params.py index 358c5c112..b90217b2b 100644 --- a/src/cloudflare/types/stream/live_inputs/output_create_params.py +++ b/src/cloudflare/types/stream/live_inputs/output_create_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated +from typing_extensions import Required, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["OutputCreateParams"] diff --git a/src/cloudflare/types/stream/live_inputs/output_update_params.py b/src/cloudflare/types/stream/live_inputs/output_update_params.py index add091fd9..e61e5779d 100644 --- a/src/cloudflare/types/stream/live_inputs/output_update_params.py +++ b/src/cloudflare/types/stream/live_inputs/output_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["OutputUpdateParams"] diff --git a/src/cloudflare/types/stream/stream_create_params.py b/src/cloudflare/types/stream/stream_create_params.py index 718c156ed..9585b05ec 100644 --- a/src/cloudflare/types/stream/stream_create_params.py +++ b/src/cloudflare/types/stream/stream_create_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, Annotated +from typing_extensions import Literal, Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["StreamCreateParams"] diff --git a/src/cloudflare/types/stream/stream_list_params.py b/src/cloudflare/types/stream/stream_list_params.py index 052ee1649..5d9ed5207 100644 --- a/src/cloudflare/types/stream/stream_list_params.py +++ b/src/cloudflare/types/stream/stream_list_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal - from typing import Union - from datetime import datetime +from typing_extensions import Literal, Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["StreamListParams"] diff --git a/src/cloudflare/types/stream/token_create_params.py b/src/cloudflare/types/stream/token_create_params.py index 687b02b77..40fce13ad 100644 --- a/src/cloudflare/types/stream/token_create_params.py +++ b/src/cloudflare/types/stream/token_create_params.py @@ -2,15 +2,9 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal +from typing import List, Iterable +from typing_extensions import Literal, Required, Annotated, TypedDict -from typing import Iterable, List - -from ..._utils import PropertyInfo - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes from ..._utils import PropertyInfo __all__ = ["TokenCreateParams", "AccessRule"] diff --git a/src/cloudflare/types/stream/token_create_response.py b/src/cloudflare/types/stream/token_create_response.py index 736d9c5cd..76d9f2df4 100644 --- a/src/cloudflare/types/stream/token_create_response.py +++ b/src/cloudflare/types/stream/token_create_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["TokenCreateResponse"] diff --git a/src/cloudflare/types/stream/video.py b/src/cloudflare/types/stream/video.py index 21defb1f2..d53fad738 100644 --- a/src/cloudflare/types/stream/video.py +++ b/src/cloudflare/types/stream/video.py @@ -1,21 +1,15 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from typing_extensions import Literal - -from .allowed_origins import AllowedOrigins - +from typing import List, Optional from datetime import datetime - -from .watermark import Watermark - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal + from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .watermark import Watermark +from .allowed_origins import AllowedOrigins + __all__ = ["Video", "Input", "Playback", "Status"] diff --git a/src/cloudflare/types/stream/video_storage_usage_params.py b/src/cloudflare/types/stream/video_storage_usage_params.py index 4616e52c0..a17cf902b 100644 --- a/src/cloudflare/types/stream/video_storage_usage_params.py +++ b/src/cloudflare/types/stream/video_storage_usage_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["VideoStorageUsageParams"] diff --git a/src/cloudflare/types/stream/video_storage_usage_response.py b/src/cloudflare/types/stream/video_storage_usage_response.py index 6a1af9834..06f5423d6 100644 --- a/src/cloudflare/types/stream/video_storage_usage_response.py +++ b/src/cloudflare/types/stream/video_storage_usage_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["VideoStorageUsageResponse"] diff --git a/src/cloudflare/types/stream/watermark.py b/src/cloudflare/types/stream/watermark.py index 2dc2cd133..e36de655a 100644 --- a/src/cloudflare/types/stream/watermark.py +++ b/src/cloudflare/types/stream/watermark.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["Watermark"] diff --git a/src/cloudflare/types/stream/watermark_create_params.py b/src/cloudflare/types/stream/watermark_create_params.py index 088b8e35c..000593a92 100644 --- a/src/cloudflare/types/stream/watermark_create_params.py +++ b/src/cloudflare/types/stream/watermark_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["WatermarkCreateParams"] diff --git a/src/cloudflare/types/stream/watermark_delete_response.py b/src/cloudflare/types/stream/watermark_delete_response.py index ed725d45c..77604cb36 100644 --- a/src/cloudflare/types/stream/watermark_delete_response.py +++ b/src/cloudflare/types/stream/watermark_delete_response.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["WatermarkDeleteResponse"] WatermarkDeleteResponse: TypeAlias = str diff --git a/src/cloudflare/types/stream/webhook_delete_response.py b/src/cloudflare/types/stream/webhook_delete_response.py index 87690930b..b152d31e5 100644 --- a/src/cloudflare/types/stream/webhook_delete_response.py +++ b/src/cloudflare/types/stream/webhook_delete_response.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["WebhookDeleteResponse"] WebhookDeleteResponse: TypeAlias = str diff --git a/src/cloudflare/types/stream/webhook_update_params.py b/src/cloudflare/types/stream/webhook_update_params.py index b541c0c73..ec681a438 100644 --- a/src/cloudflare/types/stream/webhook_update_params.py +++ b/src/cloudflare/types/stream/webhook_update_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated +from typing_extensions import Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["WebhookUpdateParams"] diff --git a/src/cloudflare/types/subscriptions/__init__.py b/src/cloudflare/types/subscriptions/__init__.py index 47aebc134..82a9f1efd 100644 --- a/src/cloudflare/types/subscriptions/__init__.py +++ b/src/cloudflare/types/subscriptions/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .subscription_create_response import SubscriptionCreateResponse as SubscriptionCreateResponse -from .subscription_update_response import SubscriptionUpdateResponse as SubscriptionUpdateResponse -from .subscription_delete_response import SubscriptionDeleteResponse as SubscriptionDeleteResponse from .subscription_get_response import SubscriptionGetResponse as SubscriptionGetResponse from .subscription_create_params import SubscriptionCreateParams as SubscriptionCreateParams from .subscription_update_params import SubscriptionUpdateParams as SubscriptionUpdateParams +from .subscription_create_response import SubscriptionCreateResponse as SubscriptionCreateResponse +from .subscription_delete_response import SubscriptionDeleteResponse as SubscriptionDeleteResponse +from .subscription_update_response import SubscriptionUpdateResponse as SubscriptionUpdateResponse diff --git a/src/cloudflare/types/subscriptions/subscription_create_params.py b/src/cloudflare/types/subscriptions/subscription_create_params.py index ac6458fe9..6414db145 100644 --- a/src/cloudflare/types/subscriptions/subscription_create_params.py +++ b/src/cloudflare/types/subscriptions/subscription_create_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal +from typing_extensions import Literal, TypedDict from ..user.rate_plan_param import RatePlanParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["SubscriptionCreateParams"] diff --git a/src/cloudflare/types/subscriptions/subscription_create_response.py b/src/cloudflare/types/subscriptions/subscription_create_response.py index 6d7ddf764..907605e38 100644 --- a/src/cloudflare/types/subscriptions/subscription_create_response.py +++ b/src/cloudflare/types/subscriptions/subscription_create_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - +from typing import Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SubscriptionCreateResponse"] SubscriptionCreateResponse: TypeAlias = Union[Optional[str], object] diff --git a/src/cloudflare/types/subscriptions/subscription_delete_response.py b/src/cloudflare/types/subscriptions/subscription_delete_response.py index c6ac3d62c..9afa5116d 100644 --- a/src/cloudflare/types/subscriptions/subscription_delete_response.py +++ b/src/cloudflare/types/subscriptions/subscription_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["SubscriptionDeleteResponse"] diff --git a/src/cloudflare/types/subscriptions/subscription_get_response.py b/src/cloudflare/types/subscriptions/subscription_get_response.py index fbe782f71..87b2b4295 100644 --- a/src/cloudflare/types/subscriptions/subscription_get_response.py +++ b/src/cloudflare/types/subscriptions/subscription_get_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - +from typing import Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SubscriptionGetResponse"] SubscriptionGetResponse: TypeAlias = Union[Optional[str], object] diff --git a/src/cloudflare/types/subscriptions/subscription_update_params.py b/src/cloudflare/types/subscriptions/subscription_update_params.py index 225dc3fbc..43f325ce2 100644 --- a/src/cloudflare/types/subscriptions/subscription_update_params.py +++ b/src/cloudflare/types/subscriptions/subscription_update_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal +from typing_extensions import Literal, Required, TypedDict from ..user.rate_plan_param import RatePlanParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["SubscriptionUpdateParams"] diff --git a/src/cloudflare/types/subscriptions/subscription_update_response.py b/src/cloudflare/types/subscriptions/subscription_update_response.py index db6bb57fc..2938ede2a 100644 --- a/src/cloudflare/types/subscriptions/subscription_update_response.py +++ b/src/cloudflare/types/subscriptions/subscription_update_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - +from typing import Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SubscriptionUpdateResponse"] SubscriptionUpdateResponse: TypeAlias = Union[Optional[str], object] diff --git a/src/cloudflare/types/url_normalization/__init__.py b/src/cloudflare/types/url_normalization/__init__.py index 69b5539cc..6016d4f78 100644 --- a/src/cloudflare/types/url_normalization/__init__.py +++ b/src/cloudflare/types/url_normalization/__init__.py @@ -2,6 +2,6 @@ from __future__ import annotations -from .url_normalization_update_response import URLNormalizationUpdateResponse as URLNormalizationUpdateResponse from .url_normalization_get_response import URLNormalizationGetResponse as URLNormalizationGetResponse from .url_normalization_update_params import URLNormalizationUpdateParams as URLNormalizationUpdateParams +from .url_normalization_update_response import URLNormalizationUpdateResponse as URLNormalizationUpdateResponse diff --git a/src/cloudflare/types/url_normalization/url_normalization_get_response.py b/src/cloudflare/types/url_normalization/url_normalization_get_response.py index 0b240b467..0bebaa441 100644 --- a/src/cloudflare/types/url_normalization/url_normalization_get_response.py +++ b/src/cloudflare/types/url_normalization/url_normalization_get_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["URLNormalizationGetResponse"] diff --git a/src/cloudflare/types/url_normalization/url_normalization_update_params.py b/src/cloudflare/types/url_normalization/url_normalization_update_params.py index 273c74a81..fb2b4551f 100644 --- a/src/cloudflare/types/url_normalization/url_normalization_update_params.py +++ b/src/cloudflare/types/url_normalization/url_normalization_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["URLNormalizationUpdateParams"] diff --git a/src/cloudflare/types/url_normalization/url_normalization_update_response.py b/src/cloudflare/types/url_normalization/url_normalization_update_response.py index ac2bc70fa..b7d70096c 100644 --- a/src/cloudflare/types/url_normalization/url_normalization_update_response.py +++ b/src/cloudflare/types/url_normalization/url_normalization_update_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["URLNormalizationUpdateResponse"] diff --git a/src/cloudflare/types/url_scanner/__init__.py b/src/cloudflare/types/url_scanner/__init__.py index fb6c942f4..a533b1cde 100644 --- a/src/cloudflare/types/url_scanner/__init__.py +++ b/src/cloudflare/types/url_scanner/__init__.py @@ -2,12 +2,12 @@ from __future__ import annotations -from .url_scanner_scan_response import URLScannerScanResponse as URLScannerScanResponse -from .url_scanner_scan_params import URLScannerScanParams as URLScannerScanParams -from .url_scanner_domain import URLScannerDomain as URLScannerDomain -from .scan_create_response import ScanCreateResponse as ScanCreateResponse +from .scan_get_params import ScanGetParams as ScanGetParams from .scan_get_response import ScanGetResponse as ScanGetResponse from .scan_har_response import ScanHarResponse as ScanHarResponse from .scan_create_params import ScanCreateParams as ScanCreateParams -from .scan_get_params import ScanGetParams as ScanGetParams +from .url_scanner_domain import URLScannerDomain as URLScannerDomain +from .scan_create_response import ScanCreateResponse as ScanCreateResponse from .scan_screenshot_params import ScanScreenshotParams as ScanScreenshotParams +from .url_scanner_scan_params import URLScannerScanParams as URLScannerScanParams +from .url_scanner_scan_response import URLScannerScanResponse as URLScannerScanResponse diff --git a/src/cloudflare/types/url_scanner/scan_create_params.py b/src/cloudflare/types/url_scanner/scan_create_params.py index aca84a2f0..f6268cebd 100644 --- a/src/cloudflare/types/url_scanner/scan_create_params.py +++ b/src/cloudflare/types/url_scanner/scan_create_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal - from typing import Dict, List +from typing_extensions import Literal, Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["ScanCreateParams"] diff --git a/src/cloudflare/types/url_scanner/scan_create_response.py b/src/cloudflare/types/url_scanner/scan_create_response.py index 69c8661bf..df5609b4e 100644 --- a/src/cloudflare/types/url_scanner/scan_create_response.py +++ b/src/cloudflare/types/url_scanner/scan_create_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ScanCreateResponse"] diff --git a/src/cloudflare/types/url_scanner/scan_get_params.py b/src/cloudflare/types/url_scanner/scan_get_params.py index cb10f85fd..3e19b2920 100644 --- a/src/cloudflare/types/url_scanner/scan_get_params.py +++ b/src/cloudflare/types/url_scanner/scan_get_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Required +from typing_extensions import Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["ScanGetParams"] diff --git a/src/cloudflare/types/url_scanner/scan_get_response.py b/src/cloudflare/types/url_scanner/scan_get_response.py index feabe6bd1..44c6ec574 100644 --- a/src/cloudflare/types/url_scanner/scan_get_response.py +++ b/src/cloudflare/types/url_scanner/scan_get_response.py @@ -1,17 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List, Optional - -from .url_scanner_domain import URLScannerDomain - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .url_scanner_domain import URLScannerDomain + __all__ = [ "ScanGetResponse", "Scan", diff --git a/src/cloudflare/types/url_scanner/scan_har_response.py b/src/cloudflare/types/url_scanner/scan_har_response.py index f9ce5c47a..9aeb2baa2 100644 --- a/src/cloudflare/types/url_scanner/scan_har_response.py +++ b/src/cloudflare/types/url_scanner/scan_har_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List, Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = [ "ScanHarResponse", "Har", diff --git a/src/cloudflare/types/url_scanner/scan_screenshot_params.py b/src/cloudflare/types/url_scanner/scan_screenshot_params.py index 9f1ba5013..d7be50aa8 100644 --- a/src/cloudflare/types/url_scanner/scan_screenshot_params.py +++ b/src/cloudflare/types/url_scanner/scan_screenshot_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Required, Literal +from typing_extensions import Literal, Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["ScanScreenshotParams"] diff --git a/src/cloudflare/types/url_scanner/url_scanner_domain.py b/src/cloudflare/types/url_scanner/url_scanner_domain.py index 225dc9c31..d9f0f7479 100644 --- a/src/cloudflare/types/url_scanner/url_scanner_domain.py +++ b/src/cloudflare/types/url_scanner/url_scanner_domain.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["URLScannerDomain"] diff --git a/src/cloudflare/types/url_scanner/url_scanner_scan_params.py b/src/cloudflare/types/url_scanner/url_scanner_scan_params.py index b74203a99..faa55bf90 100644 --- a/src/cloudflare/types/url_scanner/url_scanner_scan_params.py +++ b/src/cloudflare/types/url_scanner/url_scanner_scan_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated - from typing import Union - from datetime import datetime +from typing_extensions import Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["URLScannerScanParams"] diff --git a/src/cloudflare/types/url_scanner/url_scanner_scan_response.py b/src/cloudflare/types/url_scanner/url_scanner_scan_response.py index bd2253d6d..cf576f437 100644 --- a/src/cloudflare/types/url_scanner/url_scanner_scan_response.py +++ b/src/cloudflare/types/url_scanner/url_scanner_scan_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - +from typing import List from datetime import datetime -from typing import List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["URLScannerScanResponse", "Task"] diff --git a/src/cloudflare/types/user/__init__.py b/src/cloudflare/types/user/__init__.py index b6391948e..dc50a7f6a 100644 --- a/src/cloudflare/types/user/__init__.py +++ b/src/cloudflare/types/user/__init__.py @@ -2,29 +2,29 @@ from __future__ import annotations -from .user_edit_params import UserEditParams as UserEditParams -from .audit_log_list_params import AuditLogListParams as AuditLogListParams from .invite import Invite as Invite -from .invite_edit_params import InviteEditParams as InviteEditParams -from .organization import Organization as Organization -from .organization_delete_response import OrganizationDeleteResponse as OrganizationDeleteResponse -from .organization_list_params import OrganizationListParams as OrganizationListParams +from .policy import Policy as Policy +from .cidr_list import CIDRList as CIDRList from .rate_plan import RatePlan as RatePlan -from .rate_plan_param import RatePlanParam as RatePlanParam +from .organization import Organization as Organization +from .policy_param import PolicyParam as PolicyParam from .subscription import Subscription as Subscription -from .subscription_update_response import SubscriptionUpdateResponse as SubscriptionUpdateResponse -from .subscription_delete_response import SubscriptionDeleteResponse as SubscriptionDeleteResponse +from .rate_plan_param import RatePlanParam as RatePlanParam +from .user_edit_params import UserEditParams as UserEditParams +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 .token_create_params import TokenCreateParams as TokenCreateParams +from .token_list_response import TokenListResponse as TokenListResponse +from .token_update_params import TokenUpdateParams as TokenUpdateParams +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 .organization_list_params import OrganizationListParams as OrganizationListParams from .subscription_get_response import SubscriptionGetResponse as SubscriptionGetResponse from .subscription_update_params import SubscriptionUpdateParams as SubscriptionUpdateParams -from .cidr_list import CIDRList as CIDRList -from .policy import Policy as Policy -from .policy_param import PolicyParam as PolicyParam -from .token_create_response import TokenCreateResponse as TokenCreateResponse -from .token_update_response import TokenUpdateResponse as TokenUpdateResponse -from .token_list_response import TokenListResponse as TokenListResponse -from .token_delete_response import TokenDeleteResponse as TokenDeleteResponse -from .token_get_response import TokenGetResponse as TokenGetResponse -from .token_verify_response import TokenVerifyResponse as TokenVerifyResponse -from .token_create_params import TokenCreateParams as TokenCreateParams -from .token_update_params import TokenUpdateParams as TokenUpdateParams -from .token_list_params import TokenListParams as TokenListParams +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/audit_log_list_params.py b/src/cloudflare/types/user/audit_log_list_params.py index d80d8c940..4b8dc7548 100644 --- a/src/cloudflare/types/user/audit_log_list_params.py +++ b/src/cloudflare/types/user/audit_log_list_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["AuditLogListParams", "Action", "Actor", "Zone"] diff --git a/src/cloudflare/types/user/billing/billing_history.py b/src/cloudflare/types/user/billing/billing_history.py index c0936db92..a21c658a1 100644 --- a/src/cloudflare/types/user/billing/billing_history.py +++ b/src/cloudflare/types/user/billing/billing_history.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["BillingHistory", "Zone"] diff --git a/src/cloudflare/types/user/billing/history_list_params.py b/src/cloudflare/types/user/billing/history_list_params.py index 6c900b12e..04d1d0ba8 100644 --- a/src/cloudflare/types/user/billing/history_list_params.py +++ b/src/cloudflare/types/user/billing/history_list_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated, Literal - from typing import Union - from datetime import datetime +from typing_extensions import Literal, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["HistoryListParams"] diff --git a/src/cloudflare/types/user/billing/profile_get_response.py b/src/cloudflare/types/user/billing/profile_get_response.py index d10230d69..82189001b 100644 --- a/src/cloudflare/types/user/billing/profile_get_response.py +++ b/src/cloudflare/types/user/billing/profile_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ProfileGetResponse"] diff --git a/src/cloudflare/types/user/cidr_list.py b/src/cloudflare/types/user/cidr_list.py index aaebfb6e7..62839d01e 100644 --- a/src/cloudflare/types/user/cidr_list.py +++ b/src/cloudflare/types/user/cidr_list.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["CIDRList"] CIDRList: TypeAlias = str diff --git a/src/cloudflare/types/user/invite.py b/src/cloudflare/types/user/invite.py index 954d30487..00c7cf5ce 100644 --- a/src/cloudflare/types/user/invite.py +++ b/src/cloudflare/types/user/invite.py @@ -1,19 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime +from typing_extensions import Literal +from ..._models import BaseModel from ..shared.role import Role -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Invite"] diff --git a/src/cloudflare/types/user/invite_edit_params.py b/src/cloudflare/types/user/invite_edit_params.py index cf484affd..5e07552ce 100644 --- a/src/cloudflare/types/user/invite_edit_params.py +++ b/src/cloudflare/types/user/invite_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["InviteEditParams"] diff --git a/src/cloudflare/types/user/organization.py b/src/cloudflare/types/user/organization.py index a22480449..3a6903861 100644 --- a/src/cloudflare/types/user/organization.py +++ b/src/cloudflare/types/user/organization.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel - -from typing import Optional, List - -from ..shared.permission import Permission - from ..accounts.status import Status - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..shared.permission import Permission __all__ = ["Organization"] diff --git a/src/cloudflare/types/user/organization_delete_response.py b/src/cloudflare/types/user/organization_delete_response.py index 4b5e624de..7d9c13d0d 100644 --- a/src/cloudflare/types/user/organization_delete_response.py +++ b/src/cloudflare/types/user/organization_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["OrganizationDeleteResponse"] diff --git a/src/cloudflare/types/user/organization_list_params.py b/src/cloudflare/types/user/organization_list_params.py index 97d089418..a9fedf284 100644 --- a/src/cloudflare/types/user/organization_list_params.py +++ b/src/cloudflare/types/user/organization_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, TypedDict __all__ = ["OrganizationListParams"] diff --git a/src/cloudflare/types/user/policy.py b/src/cloudflare/types/user/policy.py index 57eadde12..aece00cff 100644 --- a/src/cloudflare/types/user/policy.py +++ b/src/cloudflare/types/user/policy.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel -from typing import Optional, List - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Policy", "PermissionGroup", "PermissionGroupMeta", "Resources"] diff --git a/src/cloudflare/types/user/policy_param.py b/src/cloudflare/types/user/policy_param.py index 538c1bf36..79460a41e 100644 --- a/src/cloudflare/types/user/policy_param.py +++ b/src/cloudflare/types/user/policy_param.py @@ -2,9 +2,8 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required - from typing import Iterable +from typing_extensions import Literal, Required, TypedDict __all__ = ["PolicyParam", "PermissionGroup", "PermissionGroupMeta", "Resources"] diff --git a/src/cloudflare/types/user/rate_plan.py b/src/cloudflare/types/user/rate_plan.py index 4cde30963..deab37dc6 100644 --- a/src/cloudflare/types/user/rate_plan.py +++ b/src/cloudflare/types/user/rate_plan.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["RatePlan"] diff --git a/src/cloudflare/types/user/rate_plan_param.py b/src/cloudflare/types/user/rate_plan_param.py index 28714ac60..a937bcdf0 100644 --- a/src/cloudflare/types/user/rate_plan_param.py +++ b/src/cloudflare/types/user/rate_plan_param.py @@ -3,7 +3,6 @@ from __future__ import annotations from typing import List - from typing_extensions import TypedDict __all__ = ["RatePlanParam"] diff --git a/src/cloudflare/types/user/subscription.py b/src/cloudflare/types/user/subscription.py index 458b1381b..fc77df03d 100644 --- a/src/cloudflare/types/user/subscription.py +++ b/src/cloudflare/types/user/subscription.py @@ -1,19 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime - from typing_extensions import Literal +from ..._models import BaseModel from .rate_plan import RatePlan -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Subscription"] diff --git a/src/cloudflare/types/user/subscription_delete_response.py b/src/cloudflare/types/user/subscription_delete_response.py index c6ac3d62c..9afa5116d 100644 --- a/src/cloudflare/types/user/subscription_delete_response.py +++ b/src/cloudflare/types/user/subscription_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["SubscriptionDeleteResponse"] diff --git a/src/cloudflare/types/user/subscription_get_response.py b/src/cloudflare/types/user/subscription_get_response.py index 9cd33f464..12f54ccad 100644 --- a/src/cloudflare/types/user/subscription_get_response.py +++ b/src/cloudflare/types/user/subscription_get_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .subscription import Subscription - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .subscription import Subscription __all__ = ["SubscriptionGetResponse"] diff --git a/src/cloudflare/types/user/subscription_update_params.py b/src/cloudflare/types/user/subscription_update_params.py index ee91b60a4..6085236f0 100644 --- a/src/cloudflare/types/user/subscription_update_params.py +++ b/src/cloudflare/types/user/subscription_update_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal +from typing_extensions import Literal, TypedDict from .rate_plan_param import RatePlanParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["SubscriptionUpdateParams"] diff --git a/src/cloudflare/types/user/subscription_update_response.py b/src/cloudflare/types/user/subscription_update_response.py index db6bb57fc..2938ede2a 100644 --- a/src/cloudflare/types/user/subscription_update_response.py +++ b/src/cloudflare/types/user/subscription_update_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - +from typing import Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SubscriptionUpdateResponse"] SubscriptionUpdateResponse: TypeAlias = Union[Optional[str], object] diff --git a/src/cloudflare/types/user/token_create_params.py b/src/cloudflare/types/user/token_create_params.py index 7c50baf0d..7a005d56d 100644 --- a/src/cloudflare/types/user/token_create_params.py +++ b/src/cloudflare/types/user/token_create_params.py @@ -2,22 +2,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - -from typing import Iterable, Union, List - -from .policy_param import PolicyParam - +from typing import List, Union, Iterable from datetime import datetime +from typing_extensions import Required, Annotated, TypedDict from ..._utils import PropertyInfo - from .cidr_list import CIDRList - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .policy_param import PolicyParam __all__ = ["TokenCreateParams", "Condition", "ConditionRequestIP"] diff --git a/src/cloudflare/types/user/token_create_response.py b/src/cloudflare/types/user/token_create_response.py index 887cf0516..9cff14c7d 100644 --- a/src/cloudflare/types/user/token_create_response.py +++ b/src/cloudflare/types/user/token_create_response.py @@ -1,23 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from .cidr_list import CIDRList - +from typing import List, Optional from datetime import datetime +from typing_extensions import Literal + +from pydantic import Field as FieldInfo from .policy import Policy - -from typing_extensions import Literal - +from ..._models import BaseModel +from .cidr_list import CIDRList from .tokens.value import Value -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["TokenCreateResponse", "Condition", "ConditionRequestIP"] diff --git a/src/cloudflare/types/user/token_delete_response.py b/src/cloudflare/types/user/token_delete_response.py index a1fbecba8..bcf86ebe1 100644 --- a/src/cloudflare/types/user/token_delete_response.py +++ b/src/cloudflare/types/user/token_delete_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["TokenDeleteResponse"] diff --git a/src/cloudflare/types/user/token_get_response.py b/src/cloudflare/types/user/token_get_response.py index 656a98ab7..d9fee42d1 100644 --- a/src/cloudflare/types/user/token_get_response.py +++ b/src/cloudflare/types/user/token_get_response.py @@ -1,20 +1,14 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from .cidr_list import CIDRList - +from typing import List, Optional from datetime import datetime +from typing_extensions import Literal + +from pydantic import Field as FieldInfo from .policy import Policy - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .cidr_list import CIDRList __all__ = ["TokenGetResponse", "Condition", "ConditionRequestIP"] diff --git a/src/cloudflare/types/user/token_list_params.py b/src/cloudflare/types/user/token_list_params.py index 208043a0a..5f735b48f 100644 --- a/src/cloudflare/types/user/token_list_params.py +++ b/src/cloudflare/types/user/token_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, TypedDict __all__ = ["TokenListParams"] diff --git a/src/cloudflare/types/user/token_list_response.py b/src/cloudflare/types/user/token_list_response.py index ea353133d..edda4230d 100644 --- a/src/cloudflare/types/user/token_list_response.py +++ b/src/cloudflare/types/user/token_list_response.py @@ -1,20 +1,14 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from .cidr_list import CIDRList - +from typing import List, Optional from datetime import datetime +from typing_extensions import Literal + +from pydantic import Field as FieldInfo from .policy import Policy - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .cidr_list import CIDRList __all__ = ["TokenListResponse", "Condition", "ConditionRequestIP"] diff --git a/src/cloudflare/types/user/token_update_params.py b/src/cloudflare/types/user/token_update_params.py index ab2379809..631e13004 100644 --- a/src/cloudflare/types/user/token_update_params.py +++ b/src/cloudflare/types/user/token_update_params.py @@ -2,22 +2,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, Annotated - -from typing import Iterable, Union, List - -from .policy_param import PolicyParam - +from typing import List, Union, Iterable from datetime import datetime +from typing_extensions import Literal, Required, Annotated, TypedDict from ..._utils import PropertyInfo - from .cidr_list import CIDRList - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .policy_param import PolicyParam __all__ = ["TokenUpdateParams", "Condition", "ConditionRequestIP"] diff --git a/src/cloudflare/types/user/token_update_response.py b/src/cloudflare/types/user/token_update_response.py index dcf20cba6..24b29ad2e 100644 --- a/src/cloudflare/types/user/token_update_response.py +++ b/src/cloudflare/types/user/token_update_response.py @@ -1,20 +1,14 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from .cidr_list import CIDRList - +from typing import List, Optional from datetime import datetime +from typing_extensions import Literal + +from pydantic import Field as FieldInfo from .policy import Policy - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .cidr_list import CIDRList __all__ = ["TokenUpdateResponse", "Condition", "ConditionRequestIP"] diff --git a/src/cloudflare/types/user/token_verify_response.py b/src/cloudflare/types/user/token_verify_response.py index 3be67ecaf..76a6a85ed 100644 --- a/src/cloudflare/types/user/token_verify_response.py +++ b/src/cloudflare/types/user/token_verify_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["TokenVerifyResponse"] diff --git a/src/cloudflare/types/user/tokens/value.py b/src/cloudflare/types/user/tokens/value.py index 011c9e886..0b594a779 100644 --- a/src/cloudflare/types/user/tokens/value.py +++ b/src/cloudflare/types/user/tokens/value.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Value"] Value: TypeAlias = str diff --git a/src/cloudflare/types/user/tokens/value_update_params.py b/src/cloudflare/types/user/tokens/value_update_params.py index 2ea2a8388..e2622e110 100644 --- a/src/cloudflare/types/user/tokens/value_update_params.py +++ b/src/cloudflare/types/user/tokens/value_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ValueUpdateParams"] diff --git a/src/cloudflare/types/user/user_edit_params.py b/src/cloudflare/types/user/user_edit_params.py index 1c2292d9d..dbb8912c7 100644 --- a/src/cloudflare/types/user/user_edit_params.py +++ b/src/cloudflare/types/user/user_edit_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict - from typing import Optional - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import TypedDict __all__ = ["UserEditParams"] diff --git a/src/cloudflare/types/vectorize/__init__.py b/src/cloudflare/types/vectorize/__init__.py index 3fd794638..492512fcb 100644 --- a/src/cloudflare/types/vectorize/__init__.py +++ b/src/cloudflare/types/vectorize/__init__.py @@ -3,17 +3,17 @@ from __future__ import annotations from .create_index import CreateIndex as CreateIndex +from .index_query_params import IndexQueryParams as IndexQueryParams +from .index_create_params import IndexCreateParams as IndexCreateParams +from .index_info_response import IndexInfoResponse as IndexInfoResponse +from .index_insert_params import IndexInsertParams as IndexInsertParams +from .index_upsert_params import IndexUpsertParams as IndexUpsertParams +from .index_query_response import IndexQueryResponse as IndexQueryResponse +from .index_delete_response import IndexDeleteResponse as IndexDeleteResponse +from .index_insert_response import IndexInsertResponse as IndexInsertResponse +from .index_upsert_response import IndexUpsertResponse as IndexUpsertResponse +from .index_get_by_ids_params import IndexGetByIDsParams as IndexGetByIDsParams +from .index_delete_by_ids_params import IndexDeleteByIDsParams as IndexDeleteByIDsParams +from .index_delete_by_ids_response import IndexDeleteByIDsResponse as IndexDeleteByIDsResponse from .index_dimension_configuration import IndexDimensionConfiguration as IndexDimensionConfiguration from .index_dimension_configuration_param import IndexDimensionConfigurationParam as IndexDimensionConfigurationParam -from .index_delete_response import IndexDeleteResponse as IndexDeleteResponse -from .index_delete_by_ids_response import IndexDeleteByIDsResponse as IndexDeleteByIDsResponse -from .index_info_response import IndexInfoResponse as IndexInfoResponse -from .index_insert_response import IndexInsertResponse as IndexInsertResponse -from .index_query_response import IndexQueryResponse as IndexQueryResponse -from .index_upsert_response import IndexUpsertResponse as IndexUpsertResponse -from .index_create_params import IndexCreateParams as IndexCreateParams -from .index_delete_by_ids_params import IndexDeleteByIDsParams as IndexDeleteByIDsParams -from .index_get_by_ids_params import IndexGetByIDsParams as IndexGetByIDsParams -from .index_insert_params import IndexInsertParams as IndexInsertParams -from .index_query_params import IndexQueryParams as IndexQueryParams -from .index_upsert_params import IndexUpsertParams as IndexUpsertParams diff --git a/src/cloudflare/types/vectorize/create_index.py b/src/cloudflare/types/vectorize/create_index.py index 78c03faca..a79a286e7 100644 --- a/src/cloudflare/types/vectorize/create_index.py +++ b/src/cloudflare/types/vectorize/create_index.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - -from .index_dimension_configuration import IndexDimensionConfiguration - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .index_dimension_configuration import IndexDimensionConfiguration __all__ = ["CreateIndex"] diff --git a/src/cloudflare/types/vectorize/index_create_params.py b/src/cloudflare/types/vectorize/index_create_params.py index dcfa72f82..1754ce05d 100644 --- a/src/cloudflare/types/vectorize/index_create_params.py +++ b/src/cloudflare/types/vectorize/index_create_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias +from typing import Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict from .index_dimension_configuration_param import IndexDimensionConfigurationParam -from typing import Union - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["IndexCreateParams", "Config", "ConfigVectorizeIndexPresetConfiguration"] diff --git a/src/cloudflare/types/vectorize/index_delete_by_ids_params.py b/src/cloudflare/types/vectorize/index_delete_by_ids_params.py index 7f5a50143..606c8b152 100644 --- a/src/cloudflare/types/vectorize/index_delete_by_ids_params.py +++ b/src/cloudflare/types/vectorize/index_delete_by_ids_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["IndexDeleteByIDsParams"] diff --git a/src/cloudflare/types/vectorize/index_delete_by_ids_response.py b/src/cloudflare/types/vectorize/index_delete_by_ids_response.py index df0a69a75..488b845a8 100644 --- a/src/cloudflare/types/vectorize/index_delete_by_ids_response.py +++ b/src/cloudflare/types/vectorize/index_delete_by_ids_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["IndexDeleteByIDsResponse"] diff --git a/src/cloudflare/types/vectorize/index_delete_response.py b/src/cloudflare/types/vectorize/index_delete_response.py index dde94c42d..04ceee6b5 100644 --- a/src/cloudflare/types/vectorize/index_delete_response.py +++ b/src/cloudflare/types/vectorize/index_delete_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["IndexDeleteResponse"] IndexDeleteResponse: TypeAlias = Union[str, object, None] diff --git a/src/cloudflare/types/vectorize/index_dimension_configuration.py b/src/cloudflare/types/vectorize/index_dimension_configuration.py index 0c9511bf5..f94506829 100644 --- a/src/cloudflare/types/vectorize/index_dimension_configuration.py +++ b/src/cloudflare/types/vectorize/index_dimension_configuration.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing_extensions import Literal + from ..._models import BaseModel -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["IndexDimensionConfiguration"] diff --git a/src/cloudflare/types/vectorize/index_dimension_configuration_param.py b/src/cloudflare/types/vectorize/index_dimension_configuration_param.py index dde149765..13c383d6d 100644 --- a/src/cloudflare/types/vectorize/index_dimension_configuration_param.py +++ b/src/cloudflare/types/vectorize/index_dimension_configuration_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["IndexDimensionConfigurationParam"] diff --git a/src/cloudflare/types/vectorize/index_get_by_ids_params.py b/src/cloudflare/types/vectorize/index_get_by_ids_params.py index bcd2732cb..89fdd2057 100644 --- a/src/cloudflare/types/vectorize/index_get_by_ids_params.py +++ b/src/cloudflare/types/vectorize/index_get_by_ids_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["IndexGetByIDsParams"] diff --git a/src/cloudflare/types/vectorize/index_info_response.py b/src/cloudflare/types/vectorize/index_info_response.py index 6a9861f13..b96008295 100644 --- a/src/cloudflare/types/vectorize/index_info_response.py +++ b/src/cloudflare/types/vectorize/index_info_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["IndexInfoResponse"] diff --git a/src/cloudflare/types/vectorize/index_insert_params.py b/src/cloudflare/types/vectorize/index_insert_params.py index db5b9f14d..2a7936670 100644 --- a/src/cloudflare/types/vectorize/index_insert_params.py +++ b/src/cloudflare/types/vectorize/index_insert_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, Annotated +from typing_extensions import Literal, Required, Annotated, TypedDict -from ..._types import FileTypes - -from ..._utils import PropertyInfo - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated from ..._types import FileTypes from ..._utils import PropertyInfo diff --git a/src/cloudflare/types/vectorize/index_insert_response.py b/src/cloudflare/types/vectorize/index_insert_response.py index 4824f07fa..8761ee87e 100644 --- a/src/cloudflare/types/vectorize/index_insert_response.py +++ b/src/cloudflare/types/vectorize/index_insert_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["IndexInsertResponse"] diff --git a/src/cloudflare/types/vectorize/index_query_params.py b/src/cloudflare/types/vectorize/index_query_params.py index b96a2084b..c0c488a2c 100644 --- a/src/cloudflare/types/vectorize/index_query_params.py +++ b/src/cloudflare/types/vectorize/index_query_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, Annotated - from typing import Iterable +from typing_extensions import Literal, Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["IndexQueryParams"] diff --git a/src/cloudflare/types/vectorize/index_query_response.py b/src/cloudflare/types/vectorize/index_query_response.py index f42046d53..95c4b0dd8 100644 --- a/src/cloudflare/types/vectorize/index_query_response.py +++ b/src/cloudflare/types/vectorize/index_query_response.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["IndexQueryResponse", "Match"] diff --git a/src/cloudflare/types/vectorize/index_upsert_params.py b/src/cloudflare/types/vectorize/index_upsert_params.py index ef78cedcb..5e7dc3f3b 100644 --- a/src/cloudflare/types/vectorize/index_upsert_params.py +++ b/src/cloudflare/types/vectorize/index_upsert_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, Annotated +from typing_extensions import Literal, Required, Annotated, TypedDict -from ..._types import FileTypes - -from ..._utils import PropertyInfo - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated from ..._types import FileTypes from ..._utils import PropertyInfo diff --git a/src/cloudflare/types/vectorize/index_upsert_response.py b/src/cloudflare/types/vectorize/index_upsert_response.py index 1547fdb94..dcbb266ae 100644 --- a/src/cloudflare/types/vectorize/index_upsert_response.py +++ b/src/cloudflare/types/vectorize/index_upsert_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["IndexUpsertResponse"] diff --git a/src/cloudflare/types/vectorize/indexes/__init__.py b/src/cloudflare/types/vectorize/indexes/__init__.py index bc414d400..fb8f20b48 100644 --- a/src/cloudflare/types/vectorize/indexes/__init__.py +++ b/src/cloudflare/types/vectorize/indexes/__init__.py @@ -2,8 +2,8 @@ from __future__ import annotations -from .metadata_index_create_response import MetadataIndexCreateResponse as MetadataIndexCreateResponse -from .metadata_index_list_response import MetadataIndexListResponse as MetadataIndexListResponse -from .metadata_index_delete_response import MetadataIndexDeleteResponse as MetadataIndexDeleteResponse from .metadata_index_create_params import MetadataIndexCreateParams as MetadataIndexCreateParams from .metadata_index_delete_params import MetadataIndexDeleteParams as MetadataIndexDeleteParams +from .metadata_index_list_response import MetadataIndexListResponse as MetadataIndexListResponse +from .metadata_index_create_response import MetadataIndexCreateResponse as MetadataIndexCreateResponse +from .metadata_index_delete_response import MetadataIndexDeleteResponse as MetadataIndexDeleteResponse diff --git a/src/cloudflare/types/vectorize/indexes/metadata_index_create_params.py b/src/cloudflare/types/vectorize/indexes/metadata_index_create_params.py index 6cfdff8ab..248cd1cec 100644 --- a/src/cloudflare/types/vectorize/indexes/metadata_index_create_params.py +++ b/src/cloudflare/types/vectorize/indexes/metadata_index_create_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, Annotated +from typing_extensions import Literal, Required, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["MetadataIndexCreateParams"] diff --git a/src/cloudflare/types/vectorize/indexes/metadata_index_create_response.py b/src/cloudflare/types/vectorize/indexes/metadata_index_create_response.py index 48f1d6c68..c4ae2f0eb 100644 --- a/src/cloudflare/types/vectorize/indexes/metadata_index_create_response.py +++ b/src/cloudflare/types/vectorize/indexes/metadata_index_create_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["MetadataIndexCreateResponse"] diff --git a/src/cloudflare/types/vectorize/indexes/metadata_index_delete_params.py b/src/cloudflare/types/vectorize/indexes/metadata_index_delete_params.py index 4527014c5..f9783b5a3 100644 --- a/src/cloudflare/types/vectorize/indexes/metadata_index_delete_params.py +++ b/src/cloudflare/types/vectorize/indexes/metadata_index_delete_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated +from typing_extensions import Required, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["MetadataIndexDeleteParams"] diff --git a/src/cloudflare/types/vectorize/indexes/metadata_index_delete_response.py b/src/cloudflare/types/vectorize/indexes/metadata_index_delete_response.py index f4ea178e1..3f8c9b78b 100644 --- a/src/cloudflare/types/vectorize/indexes/metadata_index_delete_response.py +++ b/src/cloudflare/types/vectorize/indexes/metadata_index_delete_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["MetadataIndexDeleteResponse"] diff --git a/src/cloudflare/types/vectorize/indexes/metadata_index_list_response.py b/src/cloudflare/types/vectorize/indexes/metadata_index_list_response.py index 99c9fd445..e5cc5e3e6 100644 --- a/src/cloudflare/types/vectorize/indexes/metadata_index_list_response.py +++ b/src/cloudflare/types/vectorize/indexes/metadata_index_list_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["MetadataIndexListResponse", "MetadataIndex"] diff --git a/src/cloudflare/types/waiting_rooms/__init__.py b/src/cloudflare/types/waiting_rooms/__init__.py index 0f21a1be2..f26368ae4 100644 --- a/src/cloudflare/types/waiting_rooms/__init__.py +++ b/src/cloudflare/types/waiting_rooms/__init__.py @@ -2,36 +2,36 @@ from __future__ import annotations -from .additional_routes import AdditionalRoutes as AdditionalRoutes -from .additional_routes_param import AdditionalRoutesParam as AdditionalRoutesParam -from .cookie_attributes import CookieAttributes as CookieAttributes -from .cookie_attributes_param import CookieAttributesParam as CookieAttributesParam -from .waiting_room import WaitingRoom as WaitingRoom -from .waiting_room_delete_response import WaitingRoomDeleteResponse as WaitingRoomDeleteResponse -from .waiting_room_create_params import WaitingRoomCreateParams as WaitingRoomCreateParams -from .waiting_room_update_params import WaitingRoomUpdateParams as WaitingRoomUpdateParams -from .waiting_room_list_params import WaitingRoomListParams as WaitingRoomListParams -from .waiting_room_edit_params import WaitingRoomEditParams as WaitingRoomEditParams -from .page_preview_response import PagePreviewResponse as PagePreviewResponse -from .page_preview_params import PagePreviewParams as PagePreviewParams from .event import Event as Event -from .event_delete_response import EventDeleteResponse as EventDeleteResponse +from .waiting_room import WaitingRoom as WaitingRoom +from .rule_edit_params import RuleEditParams as RuleEditParams +from .additional_routes import AdditionalRoutes as AdditionalRoutes +from .cookie_attributes import CookieAttributes as CookieAttributes +from .event_edit_params import EventEditParams as EventEditParams +from .event_list_params import EventListParams as EventListParams +from .rule_get_response import RuleGetResponse as RuleGetResponse +from .waiting_room_rule import WaitingRoomRule as WaitingRoomRule +from .rule_create_params import RuleCreateParams as RuleCreateParams +from .rule_edit_response import RuleEditResponse as RuleEditResponse +from .rule_update_params import RuleUpdateParams as RuleUpdateParams from .event_create_params import EventCreateParams as EventCreateParams from .event_update_params import EventUpdateParams as EventUpdateParams -from .event_list_params import EventListParams as EventListParams -from .event_edit_params import EventEditParams as EventEditParams -from .waiting_room_rule import WaitingRoomRule as WaitingRoomRule -from .rule_create_response import RuleCreateResponse as RuleCreateResponse -from .rule_update_response import RuleUpdateResponse as RuleUpdateResponse -from .rule_delete_response import RuleDeleteResponse as RuleDeleteResponse -from .rule_edit_response import RuleEditResponse as RuleEditResponse -from .rule_get_response import RuleGetResponse as RuleGetResponse -from .rule_create_params import RuleCreateParams as RuleCreateParams -from .rule_update_params import RuleUpdateParams as RuleUpdateParams -from .rule_edit_params import RuleEditParams as RuleEditParams -from .status_get_response import StatusGetResponse as StatusGetResponse -from .setting_update_response import SettingUpdateResponse as SettingUpdateResponse -from .setting_edit_response import SettingEditResponse as SettingEditResponse -from .setting_get_response import SettingGetResponse as SettingGetResponse -from .setting_update_params import SettingUpdateParams as SettingUpdateParams +from .page_preview_params import PagePreviewParams as PagePreviewParams from .setting_edit_params import SettingEditParams as SettingEditParams +from .status_get_response import StatusGetResponse as StatusGetResponse +from .rule_create_response import RuleCreateResponse as RuleCreateResponse +from .rule_delete_response import RuleDeleteResponse as RuleDeleteResponse +from .rule_update_response import RuleUpdateResponse as RuleUpdateResponse +from .setting_get_response import SettingGetResponse as SettingGetResponse +from .event_delete_response import EventDeleteResponse as EventDeleteResponse +from .page_preview_response import PagePreviewResponse as PagePreviewResponse +from .setting_edit_response import SettingEditResponse as SettingEditResponse +from .setting_update_params import SettingUpdateParams as SettingUpdateParams +from .additional_routes_param import AdditionalRoutesParam as AdditionalRoutesParam +from .cookie_attributes_param import CookieAttributesParam as CookieAttributesParam +from .setting_update_response import SettingUpdateResponse as SettingUpdateResponse +from .waiting_room_edit_params import WaitingRoomEditParams as WaitingRoomEditParams +from .waiting_room_list_params import WaitingRoomListParams as WaitingRoomListParams +from .waiting_room_create_params import WaitingRoomCreateParams as WaitingRoomCreateParams +from .waiting_room_update_params import WaitingRoomUpdateParams as WaitingRoomUpdateParams +from .waiting_room_delete_response import WaitingRoomDeleteResponse as WaitingRoomDeleteResponse diff --git a/src/cloudflare/types/waiting_rooms/additional_routes.py b/src/cloudflare/types/waiting_rooms/additional_routes.py index 50e9c8069..5f3d576b3 100644 --- a/src/cloudflare/types/waiting_rooms/additional_routes.py +++ b/src/cloudflare/types/waiting_rooms/additional_routes.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["AdditionalRoutes"] diff --git a/src/cloudflare/types/waiting_rooms/cookie_attributes.py b/src/cloudflare/types/waiting_rooms/cookie_attributes.py index dc95f12e0..d757eb262 100644 --- a/src/cloudflare/types/waiting_rooms/cookie_attributes.py +++ b/src/cloudflare/types/waiting_rooms/cookie_attributes.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["CookieAttributes"] diff --git a/src/cloudflare/types/waiting_rooms/event.py b/src/cloudflare/types/waiting_rooms/event.py index 3d6700d51..682983566 100644 --- a/src/cloudflare/types/waiting_rooms/event.py +++ b/src/cloudflare/types/waiting_rooms/event.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Event"] diff --git a/src/cloudflare/types/waiting_rooms/event_create_params.py b/src/cloudflare/types/waiting_rooms/event_create_params.py index e79bf8718..b4da24a3f 100644 --- a/src/cloudflare/types/waiting_rooms/event_create_params.py +++ b/src/cloudflare/types/waiting_rooms/event_create_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Optional - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["EventCreateParams"] diff --git a/src/cloudflare/types/waiting_rooms/event_delete_response.py b/src/cloudflare/types/waiting_rooms/event_delete_response.py index d1ea469f0..f9e72e340 100644 --- a/src/cloudflare/types/waiting_rooms/event_delete_response.py +++ b/src/cloudflare/types/waiting_rooms/event_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["EventDeleteResponse"] diff --git a/src/cloudflare/types/waiting_rooms/event_edit_params.py b/src/cloudflare/types/waiting_rooms/event_edit_params.py index 2d3257a58..3078d7cc9 100644 --- a/src/cloudflare/types/waiting_rooms/event_edit_params.py +++ b/src/cloudflare/types/waiting_rooms/event_edit_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Optional - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["EventEditParams"] diff --git a/src/cloudflare/types/waiting_rooms/event_list_params.py b/src/cloudflare/types/waiting_rooms/event_list_params.py index 4dffee4eb..c07db8cc9 100644 --- a/src/cloudflare/types/waiting_rooms/event_list_params.py +++ b/src/cloudflare/types/waiting_rooms/event_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["EventListParams"] diff --git a/src/cloudflare/types/waiting_rooms/event_update_params.py b/src/cloudflare/types/waiting_rooms/event_update_params.py index 8fe7b7518..50b5fda9b 100644 --- a/src/cloudflare/types/waiting_rooms/event_update_params.py +++ b/src/cloudflare/types/waiting_rooms/event_update_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Optional - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["EventUpdateParams"] diff --git a/src/cloudflare/types/waiting_rooms/events/detail_get_response.py b/src/cloudflare/types/waiting_rooms/events/detail_get_response.py index 315f0fc2d..bed7ae01e 100644 --- a/src/cloudflare/types/waiting_rooms/events/detail_get_response.py +++ b/src/cloudflare/types/waiting_rooms/events/detail_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["DetailGetResponse"] diff --git a/src/cloudflare/types/waiting_rooms/page_preview_params.py b/src/cloudflare/types/waiting_rooms/page_preview_params.py index e610a7497..79df9ba1d 100644 --- a/src/cloudflare/types/waiting_rooms/page_preview_params.py +++ b/src/cloudflare/types/waiting_rooms/page_preview_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["PagePreviewParams"] diff --git a/src/cloudflare/types/waiting_rooms/page_preview_response.py b/src/cloudflare/types/waiting_rooms/page_preview_response.py index bf20cbbcc..042794157 100644 --- a/src/cloudflare/types/waiting_rooms/page_preview_response.py +++ b/src/cloudflare/types/waiting_rooms/page_preview_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["PagePreviewResponse"] diff --git a/src/cloudflare/types/waiting_rooms/rule_create_params.py b/src/cloudflare/types/waiting_rooms/rule_create_params.py index 23e245747..d86f7db2a 100644 --- a/src/cloudflare/types/waiting_rooms/rule_create_params.py +++ b/src/cloudflare/types/waiting_rooms/rule_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["RuleCreateParams"] diff --git a/src/cloudflare/types/waiting_rooms/rule_create_response.py b/src/cloudflare/types/waiting_rooms/rule_create_response.py index 42fcd6dba..d4f77d64d 100644 --- a/src/cloudflare/types/waiting_rooms/rule_create_response.py +++ b/src/cloudflare/types/waiting_rooms/rule_create_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .waiting_room_rule import WaitingRoomRule - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .waiting_room_rule import WaitingRoomRule __all__ = ["RuleCreateResponse"] diff --git a/src/cloudflare/types/waiting_rooms/rule_delete_response.py b/src/cloudflare/types/waiting_rooms/rule_delete_response.py index 66c329ea1..b636e6a87 100644 --- a/src/cloudflare/types/waiting_rooms/rule_delete_response.py +++ b/src/cloudflare/types/waiting_rooms/rule_delete_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .waiting_room_rule import WaitingRoomRule - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .waiting_room_rule import WaitingRoomRule __all__ = ["RuleDeleteResponse"] diff --git a/src/cloudflare/types/waiting_rooms/rule_edit_params.py b/src/cloudflare/types/waiting_rooms/rule_edit_params.py index 4a216b432..7bbc18e93 100644 --- a/src/cloudflare/types/waiting_rooms/rule_edit_params.py +++ b/src/cloudflare/types/waiting_rooms/rule_edit_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias - from typing import Union - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypeAlias, TypedDict __all__ = ["RuleEditParams", "Position", "PositionIndex", "PositionBefore", "PositionAfter"] diff --git a/src/cloudflare/types/waiting_rooms/rule_edit_response.py b/src/cloudflare/types/waiting_rooms/rule_edit_response.py index 0cd8b148c..1667dc9ff 100644 --- a/src/cloudflare/types/waiting_rooms/rule_edit_response.py +++ b/src/cloudflare/types/waiting_rooms/rule_edit_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .waiting_room_rule import WaitingRoomRule - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .waiting_room_rule import WaitingRoomRule __all__ = ["RuleEditResponse"] diff --git a/src/cloudflare/types/waiting_rooms/rule_get_response.py b/src/cloudflare/types/waiting_rooms/rule_get_response.py index 43f8d0cf2..a92b1a45c 100644 --- a/src/cloudflare/types/waiting_rooms/rule_get_response.py +++ b/src/cloudflare/types/waiting_rooms/rule_get_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .waiting_room_rule import WaitingRoomRule - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .waiting_room_rule import WaitingRoomRule __all__ = ["RuleGetResponse"] diff --git a/src/cloudflare/types/waiting_rooms/rule_update_params.py b/src/cloudflare/types/waiting_rooms/rule_update_params.py index e2d083d83..57a22f8d8 100644 --- a/src/cloudflare/types/waiting_rooms/rule_update_params.py +++ b/src/cloudflare/types/waiting_rooms/rule_update_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Iterable - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["RuleUpdateParams", "Body"] diff --git a/src/cloudflare/types/waiting_rooms/rule_update_response.py b/src/cloudflare/types/waiting_rooms/rule_update_response.py index 6c1897533..037b9a7b7 100644 --- a/src/cloudflare/types/waiting_rooms/rule_update_response.py +++ b/src/cloudflare/types/waiting_rooms/rule_update_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .waiting_room_rule import WaitingRoomRule - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .waiting_room_rule import WaitingRoomRule __all__ = ["RuleUpdateResponse"] diff --git a/src/cloudflare/types/waiting_rooms/setting_edit_params.py b/src/cloudflare/types/waiting_rooms/setting_edit_params.py index 1c99f4668..e922cf94d 100644 --- a/src/cloudflare/types/waiting_rooms/setting_edit_params.py +++ b/src/cloudflare/types/waiting_rooms/setting_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["SettingEditParams"] diff --git a/src/cloudflare/types/waiting_rooms/setting_edit_response.py b/src/cloudflare/types/waiting_rooms/setting_edit_response.py index dfe82820e..bae5f32f4 100644 --- a/src/cloudflare/types/waiting_rooms/setting_edit_response.py +++ b/src/cloudflare/types/waiting_rooms/setting_edit_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["SettingEditResponse"] diff --git a/src/cloudflare/types/waiting_rooms/setting_get_response.py b/src/cloudflare/types/waiting_rooms/setting_get_response.py index 95fb61648..1f349caa0 100644 --- a/src/cloudflare/types/waiting_rooms/setting_get_response.py +++ b/src/cloudflare/types/waiting_rooms/setting_get_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["SettingGetResponse"] diff --git a/src/cloudflare/types/waiting_rooms/setting_update_params.py b/src/cloudflare/types/waiting_rooms/setting_update_params.py index 6243797c8..eab75ef9b 100644 --- a/src/cloudflare/types/waiting_rooms/setting_update_params.py +++ b/src/cloudflare/types/waiting_rooms/setting_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["SettingUpdateParams"] diff --git a/src/cloudflare/types/waiting_rooms/setting_update_response.py b/src/cloudflare/types/waiting_rooms/setting_update_response.py index 59d94fb6e..756f6b704 100644 --- a/src/cloudflare/types/waiting_rooms/setting_update_response.py +++ b/src/cloudflare/types/waiting_rooms/setting_update_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["SettingUpdateResponse"] diff --git a/src/cloudflare/types/waiting_rooms/status_get_response.py b/src/cloudflare/types/waiting_rooms/status_get_response.py index 963337790..6114ed2ca 100644 --- a/src/cloudflare/types/waiting_rooms/status_get_response.py +++ b/src/cloudflare/types/waiting_rooms/status_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["StatusGetResponse"] diff --git a/src/cloudflare/types/waiting_rooms/waiting_room.py b/src/cloudflare/types/waiting_rooms/waiting_room.py index 6d907533c..edea07cab 100644 --- a/src/cloudflare/types/waiting_rooms/waiting_room.py +++ b/src/cloudflare/types/waiting_rooms/waiting_room.py @@ -1,20 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - -from .additional_routes import AdditionalRoutes - -from .cookie_attributes import CookieAttributes - +from typing import List, Optional from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .additional_routes import AdditionalRoutes +from .cookie_attributes import CookieAttributes __all__ = ["WaitingRoom"] diff --git a/src/cloudflare/types/waiting_rooms/waiting_room_create_params.py b/src/cloudflare/types/waiting_rooms/waiting_room_create_params.py index 226a5c70f..b9e1db498 100644 --- a/src/cloudflare/types/waiting_rooms/waiting_room_create_params.py +++ b/src/cloudflare/types/waiting_rooms/waiting_room_create_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import Iterable, List +from typing import List, Iterable +from typing_extensions import Literal, Required, TypedDict from .additional_routes_param import AdditionalRoutesParam - from .cookie_attributes_param import CookieAttributesParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["WaitingRoomCreateParams"] diff --git a/src/cloudflare/types/waiting_rooms/waiting_room_delete_response.py b/src/cloudflare/types/waiting_rooms/waiting_room_delete_response.py index 8130dabdd..9ae3650b7 100644 --- a/src/cloudflare/types/waiting_rooms/waiting_room_delete_response.py +++ b/src/cloudflare/types/waiting_rooms/waiting_room_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["WaitingRoomDeleteResponse"] diff --git a/src/cloudflare/types/waiting_rooms/waiting_room_edit_params.py b/src/cloudflare/types/waiting_rooms/waiting_room_edit_params.py index f6545f727..057f81ff5 100644 --- a/src/cloudflare/types/waiting_rooms/waiting_room_edit_params.py +++ b/src/cloudflare/types/waiting_rooms/waiting_room_edit_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import Iterable, List +from typing import List, Iterable +from typing_extensions import Literal, Required, TypedDict from .additional_routes_param import AdditionalRoutesParam - from .cookie_attributes_param import CookieAttributesParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["WaitingRoomEditParams"] diff --git a/src/cloudflare/types/waiting_rooms/waiting_room_list_params.py b/src/cloudflare/types/waiting_rooms/waiting_room_list_params.py index 95921b192..bd1dc5f77 100644 --- a/src/cloudflare/types/waiting_rooms/waiting_room_list_params.py +++ b/src/cloudflare/types/waiting_rooms/waiting_room_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["WaitingRoomListParams"] diff --git a/src/cloudflare/types/waiting_rooms/waiting_room_rule.py b/src/cloudflare/types/waiting_rooms/waiting_room_rule.py index 093e512f0..1478deef0 100644 --- a/src/cloudflare/types/waiting_rooms/waiting_room_rule.py +++ b/src/cloudflare/types/waiting_rooms/waiting_room_rule.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - -from typing_extensions import Literal - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["WaitingRoomRule"] diff --git a/src/cloudflare/types/waiting_rooms/waiting_room_update_params.py b/src/cloudflare/types/waiting_rooms/waiting_room_update_params.py index d2887c4a7..9f1103904 100644 --- a/src/cloudflare/types/waiting_rooms/waiting_room_update_params.py +++ b/src/cloudflare/types/waiting_rooms/waiting_room_update_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import Iterable, List +from typing import List, Iterable +from typing_extensions import Literal, Required, TypedDict from .additional_routes_param import AdditionalRoutesParam - from .cookie_attributes_param import CookieAttributesParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["WaitingRoomUpdateParams"] diff --git a/src/cloudflare/types/warp_connector/__init__.py b/src/cloudflare/types/warp_connector/__init__.py index 83cd1df4e..26ce695db 100644 --- a/src/cloudflare/types/warp_connector/__init__.py +++ b/src/cloudflare/types/warp_connector/__init__.py @@ -2,12 +2,12 @@ from __future__ import annotations -from .warp_connector_create_response import WARPConnectorCreateResponse as WARPConnectorCreateResponse -from .warp_connector_list_response import WARPConnectorListResponse as WARPConnectorListResponse -from .warp_connector_delete_response import WARPConnectorDeleteResponse as WARPConnectorDeleteResponse -from .warp_connector_edit_response import WARPConnectorEditResponse as WARPConnectorEditResponse -from .warp_connector_get_response import WARPConnectorGetResponse as WARPConnectorGetResponse -from .warp_connector_token_response import WARPConnectorTokenResponse as WARPConnectorTokenResponse -from .warp_connector_create_params import WARPConnectorCreateParams as WARPConnectorCreateParams -from .warp_connector_list_params import WARPConnectorListParams as WARPConnectorListParams from .warp_connector_edit_params import WARPConnectorEditParams as WARPConnectorEditParams +from .warp_connector_list_params import WARPConnectorListParams as WARPConnectorListParams +from .warp_connector_get_response import WARPConnectorGetResponse as WARPConnectorGetResponse +from .warp_connector_create_params import WARPConnectorCreateParams as WARPConnectorCreateParams +from .warp_connector_edit_response import WARPConnectorEditResponse as WARPConnectorEditResponse +from .warp_connector_list_response import WARPConnectorListResponse as WARPConnectorListResponse +from .warp_connector_token_response import WARPConnectorTokenResponse as WARPConnectorTokenResponse +from .warp_connector_create_response import WARPConnectorCreateResponse as WARPConnectorCreateResponse +from .warp_connector_delete_response import WARPConnectorDeleteResponse as WARPConnectorDeleteResponse diff --git a/src/cloudflare/types/warp_connector/warp_connector_create_params.py b/src/cloudflare/types/warp_connector/warp_connector_create_params.py index 73a29efd0..79206222a 100644 --- a/src/cloudflare/types/warp_connector/warp_connector_create_params.py +++ b/src/cloudflare/types/warp_connector/warp_connector_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["WARPConnectorCreateParams"] diff --git a/src/cloudflare/types/warp_connector/warp_connector_create_response.py b/src/cloudflare/types/warp_connector/warp_connector_create_response.py index 45987d299..db47b7b97 100644 --- a/src/cloudflare/types/warp_connector/warp_connector_create_response.py +++ b/src/cloudflare/types/warp_connector/warp_connector_create_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..shared.cloudflare_tunnel import CloudflareTunnel - -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Union, Optional from datetime import datetime - from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ..shared.cloudflare_tunnel import CloudflareTunnel __all__ = ["WARPConnectorCreateResponse", "TunnelWARPConnectorTunnel", "TunnelWARPConnectorTunnelConnection"] diff --git a/src/cloudflare/types/warp_connector/warp_connector_delete_response.py b/src/cloudflare/types/warp_connector/warp_connector_delete_response.py index 4c631b12c..32af1719c 100644 --- a/src/cloudflare/types/warp_connector/warp_connector_delete_response.py +++ b/src/cloudflare/types/warp_connector/warp_connector_delete_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..shared.cloudflare_tunnel import CloudflareTunnel - -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Union, Optional from datetime import datetime - from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ..shared.cloudflare_tunnel import CloudflareTunnel __all__ = ["WARPConnectorDeleteResponse", "TunnelWARPConnectorTunnel", "TunnelWARPConnectorTunnelConnection"] diff --git a/src/cloudflare/types/warp_connector/warp_connector_edit_params.py b/src/cloudflare/types/warp_connector/warp_connector_edit_params.py index f8dd842e1..86d2f3b97 100644 --- a/src/cloudflare/types/warp_connector/warp_connector_edit_params.py +++ b/src/cloudflare/types/warp_connector/warp_connector_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["WARPConnectorEditParams"] diff --git a/src/cloudflare/types/warp_connector/warp_connector_edit_response.py b/src/cloudflare/types/warp_connector/warp_connector_edit_response.py index 765bd4c11..6608588d8 100644 --- a/src/cloudflare/types/warp_connector/warp_connector_edit_response.py +++ b/src/cloudflare/types/warp_connector/warp_connector_edit_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..shared.cloudflare_tunnel import CloudflareTunnel - -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Union, Optional from datetime import datetime - from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ..shared.cloudflare_tunnel import CloudflareTunnel __all__ = ["WARPConnectorEditResponse", "TunnelWARPConnectorTunnel", "TunnelWARPConnectorTunnelConnection"] diff --git a/src/cloudflare/types/warp_connector/warp_connector_get_response.py b/src/cloudflare/types/warp_connector/warp_connector_get_response.py index 0364d8f11..0cb1ce78d 100644 --- a/src/cloudflare/types/warp_connector/warp_connector_get_response.py +++ b/src/cloudflare/types/warp_connector/warp_connector_get_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..shared.cloudflare_tunnel import CloudflareTunnel - -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Union, Optional from datetime import datetime - from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ..shared.cloudflare_tunnel import CloudflareTunnel __all__ = ["WARPConnectorGetResponse", "TunnelWARPConnectorTunnel", "TunnelWARPConnectorTunnelConnection"] diff --git a/src/cloudflare/types/warp_connector/warp_connector_list_params.py b/src/cloudflare/types/warp_connector/warp_connector_list_params.py index feb546e14..e02da6d9b 100644 --- a/src/cloudflare/types/warp_connector/warp_connector_list_params.py +++ b/src/cloudflare/types/warp_connector/warp_connector_list_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal - from typing import Union - from datetime import datetime +from typing_extensions import Literal, Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["WARPConnectorListParams"] diff --git a/src/cloudflare/types/warp_connector/warp_connector_list_response.py b/src/cloudflare/types/warp_connector/warp_connector_list_response.py index 48f0bb540..1852aa96f 100644 --- a/src/cloudflare/types/warp_connector/warp_connector_list_response.py +++ b/src/cloudflare/types/warp_connector/warp_connector_list_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..shared.cloudflare_tunnel import CloudflareTunnel - -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Union, Optional from datetime import datetime - from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ..shared.cloudflare_tunnel import CloudflareTunnel __all__ = ["WARPConnectorListResponse", "TunnelWARPConnectorTunnel", "TunnelWARPConnectorTunnelConnection"] diff --git a/src/cloudflare/types/warp_connector/warp_connector_token_response.py b/src/cloudflare/types/warp_connector/warp_connector_token_response.py index 64e9d5fa2..571ffdcff 100644 --- a/src/cloudflare/types/warp_connector/warp_connector_token_response.py +++ b/src/cloudflare/types/warp_connector/warp_connector_token_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List - +from typing import List, Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["WARPConnectorTokenResponse"] WARPConnectorTokenResponse: TypeAlias = Union[List[object], str, object] diff --git a/src/cloudflare/types/web3/__init__.py b/src/cloudflare/types/web3/__init__.py index ba69080b7..020395070 100644 --- a/src/cloudflare/types/web3/__init__.py +++ b/src/cloudflare/types/web3/__init__.py @@ -3,6 +3,6 @@ from __future__ import annotations from .hostname import Hostname as Hostname -from .hostname_delete_response import HostnameDeleteResponse as HostnameDeleteResponse -from .hostname_create_params import HostnameCreateParams as HostnameCreateParams from .hostname_edit_params import HostnameEditParams as HostnameEditParams +from .hostname_create_params import HostnameCreateParams as HostnameCreateParams +from .hostname_delete_response import HostnameDeleteResponse as HostnameDeleteResponse diff --git a/src/cloudflare/types/web3/hostname.py b/src/cloudflare/types/web3/hostname.py index ab064f52e..befb6b79b 100644 --- a/src/cloudflare/types/web3/hostname.py +++ b/src/cloudflare/types/web3/hostname.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Hostname"] diff --git a/src/cloudflare/types/web3/hostname_create_params.py b/src/cloudflare/types/web3/hostname_create_params.py index 12b5528d4..12b06b90c 100644 --- a/src/cloudflare/types/web3/hostname_create_params.py +++ b/src/cloudflare/types/web3/hostname_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["HostnameCreateParams"] diff --git a/src/cloudflare/types/web3/hostname_delete_response.py b/src/cloudflare/types/web3/hostname_delete_response.py index 91b736037..44db180c1 100644 --- a/src/cloudflare/types/web3/hostname_delete_response.py +++ b/src/cloudflare/types/web3/hostname_delete_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["HostnameDeleteResponse"] diff --git a/src/cloudflare/types/web3/hostname_edit_params.py b/src/cloudflare/types/web3/hostname_edit_params.py index da05dd5da..5f5bed049 100644 --- a/src/cloudflare/types/web3/hostname_edit_params.py +++ b/src/cloudflare/types/web3/hostname_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["HostnameEditParams"] diff --git a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_list.py b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_list.py index a2d812d7a..3585768a6 100644 --- a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_list.py +++ b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_list.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["ContentList"] diff --git a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_list_update_params.py b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_list_update_params.py index 04a29aeca..a1e2286d9 100644 --- a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_list_update_params.py +++ b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_list_update_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Iterable - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["ContentListUpdateParams", "Entry"] diff --git a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/__init__.py b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/__init__.py index da8df4b46..af858392a 100644 --- a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/__init__.py +++ b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/__init__.py @@ -2,10 +2,10 @@ from __future__ import annotations -from .entry_create_response import EntryCreateResponse as EntryCreateResponse -from .entry_update_response import EntryUpdateResponse as EntryUpdateResponse -from .entry_list_response import EntryListResponse as EntryListResponse -from .entry_delete_response import EntryDeleteResponse as EntryDeleteResponse from .entry_get_response import EntryGetResponse as EntryGetResponse from .entry_create_params import EntryCreateParams as EntryCreateParams +from .entry_list_response import EntryListResponse as EntryListResponse from .entry_update_params import EntryUpdateParams as EntryUpdateParams +from .entry_create_response import EntryCreateResponse as EntryCreateResponse +from .entry_delete_response import EntryDeleteResponse as EntryDeleteResponse +from .entry_update_response import EntryUpdateResponse as EntryUpdateResponse diff --git a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_create_params.py b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_create_params.py index 1795c61f2..83f2b15cb 100644 --- a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_create_params.py +++ b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ......_types import FileTypes -from ......_utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["EntryCreateParams"] diff --git a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_create_response.py b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_create_response.py index c1a009831..429847809 100644 --- a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_create_response.py +++ b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_create_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ......_models import BaseModel - from typing import Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ......_models import BaseModel __all__ = ["EntryCreateResponse"] diff --git a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_delete_response.py b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_delete_response.py index be4d63b6a..12b157773 100644 --- a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_delete_response.py +++ b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_delete_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ......_models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ......_models import BaseModel __all__ = ["EntryDeleteResponse"] diff --git a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_get_response.py b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_get_response.py index 73887c2ea..90c70bb7c 100644 --- a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_get_response.py +++ b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_get_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ......_models import BaseModel - from typing import Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ......_models import BaseModel __all__ = ["EntryGetResponse"] diff --git a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_list_response.py b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_list_response.py index 32b165d2a..b1de50eaf 100644 --- a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_list_response.py +++ b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_list_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ......_models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ......_models import BaseModel __all__ = ["EntryListResponse", "Entry"] diff --git a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_update_params.py b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_update_params.py index 00c385ded..e4550cd6d 100644 --- a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_update_params.py +++ b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ......_types import FileTypes -from ......_utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["EntryUpdateParams"] diff --git a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_update_response.py b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_update_response.py index 07b48b26e..e61fc00ff 100644 --- a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_update_response.py +++ b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_update_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ......_models import BaseModel - from typing import Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ......_models import BaseModel __all__ = ["EntryUpdateResponse"] diff --git a/src/cloudflare/types/workers/__init__.py b/src/cloudflare/types/workers/__init__.py index 249a7f71d..57bde2d76 100644 --- a/src/cloudflare/types/workers/__init__.py +++ b/src/cloudflare/types/workers/__init__.py @@ -2,44 +2,44 @@ from __future__ import annotations +from .domain import Domain as Domain +from .script import Script as Script from .binding import Binding as Binding -from .binding_param import BindingParam as BindingParam from .d1_binding import D1Binding as D1Binding -from .d1_binding_param import D1BindingParam as D1BindingParam -from .dispatch_namespace_binding import DispatchNamespaceBinding as DispatchNamespaceBinding -from .dispatch_namespace_binding_param import DispatchNamespaceBindingParam as DispatchNamespaceBindingParam -from .durable_object_binding import DurableObjectBinding as DurableObjectBinding -from .durable_object_binding_param import DurableObjectBindingParam as DurableObjectBindingParam -from .kv_namespace_binding import KVNamespaceBinding as KVNamespaceBinding -from .kv_namespace_binding_param import KVNamespaceBindingParam as KVNamespaceBindingParam -from .migration_step import MigrationStep as MigrationStep -from .migration_step_param import MigrationStepParam as MigrationStepParam -from .mtls_cert_binding import MTLSCERTBinding as MTLSCERTBinding -from .mtls_cert_binding_param import MTLSCERTBindingParam as MTLSCERTBindingParam -from .placement_configuration import PlacementConfiguration as PlacementConfiguration -from .placement_configuration_param import PlacementConfigurationParam as PlacementConfigurationParam from .r2_binding import R2Binding as R2Binding -from .r2_binding_param import R2BindingParam as R2BindingParam +from .ai_run_params import AIRunParams as AIRunParams +from .binding_param import BindingParam as BindingParam +from .migration_step import MigrationStep as MigrationStep +from .script_setting import ScriptSetting as ScriptSetting +from .ai_run_response import AIRunResponse as AIRunResponse from .service_binding import ServiceBinding as ServiceBinding +from .d1_binding_param import D1BindingParam as D1BindingParam +from .r2_binding_param import R2BindingParam as R2BindingParam +from .mtls_cert_binding import MTLSCERTBinding as MTLSCERTBinding +from .stepped_migration import SteppedMigration as SteppedMigration +from .domain_list_params import DomainListParams as DomainListParams +from .domain_update_params import DomainUpdateParams as DomainUpdateParams +from .kv_namespace_binding import KVNamespaceBinding as KVNamespaceBinding +from .migration_step_param import MigrationStepParam as MigrationStepParam +from .script_delete_params import ScriptDeleteParams as ScriptDeleteParams +from .script_update_params import ScriptUpdateParams as ScriptUpdateParams from .service_binding_param import ServiceBindingParam as ServiceBindingParam from .single_step_migration import SingleStepMigration as SingleStepMigration -from .single_step_migration_param import SingleStepMigrationParam as SingleStepMigrationParam -from .stepped_migration import SteppedMigration as SteppedMigration -from .stepped_migration_param import SteppedMigrationParam as SteppedMigrationParam from .worker_metadata_param import WorkerMetadataParam as WorkerMetadataParam -from .ai_run_response import AIRunResponse as AIRunResponse -from .ai_run_params import AIRunParams as AIRunParams -from .script import Script as Script -from .script_setting import ScriptSetting as ScriptSetting +from .durable_object_binding import DurableObjectBinding as DurableObjectBinding from .script_update_response import ScriptUpdateResponse as ScriptUpdateResponse -from .script_update_params import ScriptUpdateParams as ScriptUpdateParams -from .script_delete_params import ScriptDeleteParams as ScriptDeleteParams -from .account_setting_update_response import AccountSettingUpdateResponse as AccountSettingUpdateResponse -from .account_setting_get_response import AccountSettingGetResponse as AccountSettingGetResponse -from .account_setting_update_params import AccountSettingUpdateParams as AccountSettingUpdateParams -from .domain import Domain as Domain -from .domain_update_params import DomainUpdateParams as DomainUpdateParams -from .domain_list_params import DomainListParams as DomainListParams -from .subdomain_update_response import SubdomainUpdateResponse as SubdomainUpdateResponse from .subdomain_get_response import SubdomainGetResponse as SubdomainGetResponse +from .mtls_cert_binding_param import MTLSCERTBindingParam as MTLSCERTBindingParam +from .placement_configuration import PlacementConfiguration as PlacementConfiguration +from .stepped_migration_param import SteppedMigrationParam as SteppedMigrationParam from .subdomain_update_params import SubdomainUpdateParams as SubdomainUpdateParams +from .subdomain_update_response import SubdomainUpdateResponse as SubdomainUpdateResponse +from .dispatch_namespace_binding import DispatchNamespaceBinding as DispatchNamespaceBinding +from .kv_namespace_binding_param import KVNamespaceBindingParam as KVNamespaceBindingParam +from .single_step_migration_param import SingleStepMigrationParam as SingleStepMigrationParam +from .account_setting_get_response import AccountSettingGetResponse as AccountSettingGetResponse +from .durable_object_binding_param import DurableObjectBindingParam as DurableObjectBindingParam +from .account_setting_update_params import AccountSettingUpdateParams as AccountSettingUpdateParams +from .placement_configuration_param import PlacementConfigurationParam as PlacementConfigurationParam +from .account_setting_update_response import AccountSettingUpdateResponse as AccountSettingUpdateResponse +from .dispatch_namespace_binding_param import DispatchNamespaceBindingParam as DispatchNamespaceBindingParam diff --git a/src/cloudflare/types/workers/account_setting_get_response.py b/src/cloudflare/types/workers/account_setting_get_response.py index 8d5458125..66029dc4e 100644 --- a/src/cloudflare/types/workers/account_setting_get_response.py +++ b/src/cloudflare/types/workers/account_setting_get_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["AccountSettingGetResponse"] diff --git a/src/cloudflare/types/workers/account_setting_update_params.py b/src/cloudflare/types/workers/account_setting_update_params.py index f33e5eb07..618e45e7d 100644 --- a/src/cloudflare/types/workers/account_setting_update_params.py +++ b/src/cloudflare/types/workers/account_setting_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["AccountSettingUpdateParams"] diff --git a/src/cloudflare/types/workers/account_setting_update_response.py b/src/cloudflare/types/workers/account_setting_update_response.py index 871bcde27..f9f93fa56 100644 --- a/src/cloudflare/types/workers/account_setting_update_response.py +++ b/src/cloudflare/types/workers/account_setting_update_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["AccountSettingUpdateResponse"] diff --git a/src/cloudflare/types/workers/ai/models/schema_get_params.py b/src/cloudflare/types/workers/ai/models/schema_get_params.py index 7d0582ca4..92d676194 100644 --- a/src/cloudflare/types/workers/ai/models/schema_get_params.py +++ b/src/cloudflare/types/workers/ai/models/schema_get_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["SchemaGetParams"] diff --git a/src/cloudflare/types/workers/ai_run_params.py b/src/cloudflare/types/workers/ai_run_params.py index 0af0c66e0..8ecb33ed9 100644 --- a/src/cloudflare/types/workers/ai_run_params.py +++ b/src/cloudflare/types/workers/ai_run_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, TypeAlias - -from typing import Iterable, Union, List, Dict - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing import Dict, List, Union, Iterable +from typing_extensions import Required, TypeAlias, TypedDict __all__ = [ "AIRunParams", diff --git a/src/cloudflare/types/workers/ai_run_response.py b/src/cloudflare/types/workers/ai_run_response.py index 4ef79c55e..832bd58c6 100644 --- a/src/cloudflare/types/workers/ai_run_response.py +++ b/src/cloudflare/types/workers/ai_run_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional - -from ..._models import BaseModel - +from typing import List, Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = [ "AIRunResponse", diff --git a/src/cloudflare/types/workers/binding.py b/src/cloudflare/types/workers/binding.py index 68b829e29..e5608eb79 100644 --- a/src/cloudflare/types/workers/binding.py +++ b/src/cloudflare/types/workers/binding.py @@ -1,26 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .kv_namespace_binding import KVNamespaceBinding - -from .service_binding import ServiceBinding - -from .durable_object_binding import DurableObjectBinding - -from .r2_binding import R2Binding - -from .d1_binding import D1Binding - -from .dispatch_namespace_binding import DispatchNamespaceBinding - -from .mtls_cert_binding import MTLSCERTBinding - -from ..._models import BaseModel - +from typing import Union from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .d1_binding import D1Binding +from .r2_binding import R2Binding +from .service_binding import ServiceBinding +from .mtls_cert_binding import MTLSCERTBinding +from .kv_namespace_binding import KVNamespaceBinding +from .durable_object_binding import DurableObjectBinding +from .dispatch_namespace_binding import DispatchNamespaceBinding __all__ = ["Binding", "WorkersQueueBinding"] diff --git a/src/cloudflare/types/workers/binding_param.py b/src/cloudflare/types/workers/binding_param.py index 017382f06..3ce126327 100644 --- a/src/cloudflare/types/workers/binding_param.py +++ b/src/cloudflare/types/workers/binding_param.py @@ -2,23 +2,16 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required, TypeAlias - -from .kv_namespace_binding_param import KVNamespaceBindingParam - -from .service_binding_param import ServiceBindingParam - -from .durable_object_binding_param import DurableObjectBindingParam - -from .r2_binding_param import R2BindingParam +from typing import Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict from .d1_binding_param import D1BindingParam - -from .dispatch_namespace_binding_param import DispatchNamespaceBindingParam - +from .r2_binding_param import R2BindingParam +from .service_binding_param import ServiceBindingParam from .mtls_cert_binding_param import MTLSCERTBindingParam - -from typing import Union +from .kv_namespace_binding_param import KVNamespaceBindingParam +from .durable_object_binding_param import DurableObjectBindingParam +from .dispatch_namespace_binding_param import DispatchNamespaceBindingParam __all__ = ["BindingParam", "WorkersQueueBinding"] diff --git a/src/cloudflare/types/workers/d1_binding.py b/src/cloudflare/types/workers/d1_binding.py index 7cfe9f047..7010fcfa0 100644 --- a/src/cloudflare/types/workers/d1_binding.py +++ b/src/cloudflare/types/workers/d1_binding.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing_extensions import Literal + from ..._models import BaseModel -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["D1Binding"] diff --git a/src/cloudflare/types/workers/d1_binding_param.py b/src/cloudflare/types/workers/d1_binding_param.py index df05a3242..74face162 100644 --- a/src/cloudflare/types/workers/d1_binding_param.py +++ b/src/cloudflare/types/workers/d1_binding_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["D1BindingParam"] diff --git a/src/cloudflare/types/workers/dispatch_namespace_binding.py b/src/cloudflare/types/workers/dispatch_namespace_binding.py index 4dfc9659d..7211e0a0d 100644 --- a/src/cloudflare/types/workers/dispatch_namespace_binding.py +++ b/src/cloudflare/types/workers/dispatch_namespace_binding.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel -from typing import Optional, List - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["DispatchNamespaceBinding", "Outbound", "OutboundWorker"] diff --git a/src/cloudflare/types/workers/dispatch_namespace_binding_param.py b/src/cloudflare/types/workers/dispatch_namespace_binding_param.py index d12c56db6..584c5d86e 100644 --- a/src/cloudflare/types/workers/dispatch_namespace_binding_param.py +++ b/src/cloudflare/types/workers/dispatch_namespace_binding_param.py @@ -2,9 +2,8 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required - from typing import List +from typing_extensions import Literal, Required, TypedDict __all__ = ["DispatchNamespaceBindingParam", "Outbound", "OutboundWorker"] diff --git a/src/cloudflare/types/workers/domain.py b/src/cloudflare/types/workers/domain.py index f7064034f..81b179962 100644 --- a/src/cloudflare/types/workers/domain.py +++ b/src/cloudflare/types/workers/domain.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Domain"] diff --git a/src/cloudflare/types/workers/domain_list_params.py b/src/cloudflare/types/workers/domain_list_params.py index 0bcfa06fc..651db09c1 100644 --- a/src/cloudflare/types/workers/domain_list_params.py +++ b/src/cloudflare/types/workers/domain_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["DomainListParams"] diff --git a/src/cloudflare/types/workers/domain_update_params.py b/src/cloudflare/types/workers/domain_update_params.py index 93d79c0d4..e0340bad6 100644 --- a/src/cloudflare/types/workers/domain_update_params.py +++ b/src/cloudflare/types/workers/domain_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["DomainUpdateParams"] diff --git a/src/cloudflare/types/workers/durable_object_binding.py b/src/cloudflare/types/workers/durable_object_binding.py index c21a70fe8..acef5a67a 100644 --- a/src/cloudflare/types/workers/durable_object_binding.py +++ b/src/cloudflare/types/workers/durable_object_binding.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["DurableObjectBinding"] diff --git a/src/cloudflare/types/workers/durable_object_binding_param.py b/src/cloudflare/types/workers/durable_object_binding_param.py index cdfd141fe..6c00bbd63 100644 --- a/src/cloudflare/types/workers/durable_object_binding_param.py +++ b/src/cloudflare/types/workers/durable_object_binding_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["DurableObjectBindingParam"] diff --git a/src/cloudflare/types/workers/kv_namespace_binding.py b/src/cloudflare/types/workers/kv_namespace_binding.py index fa62e96c1..bf28ce9ca 100644 --- a/src/cloudflare/types/workers/kv_namespace_binding.py +++ b/src/cloudflare/types/workers/kv_namespace_binding.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing_extensions import Literal + from ..._models import BaseModel -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["KVNamespaceBinding"] diff --git a/src/cloudflare/types/workers/kv_namespace_binding_param.py b/src/cloudflare/types/workers/kv_namespace_binding_param.py index 3cb7532ef..7dc97bab2 100644 --- a/src/cloudflare/types/workers/kv_namespace_binding_param.py +++ b/src/cloudflare/types/workers/kv_namespace_binding_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["KVNamespaceBindingParam"] diff --git a/src/cloudflare/types/workers/migration_step.py b/src/cloudflare/types/workers/migration_step.py index 0822bd3d6..c345d2027 100644 --- a/src/cloudflare/types/workers/migration_step.py +++ b/src/cloudflare/types/workers/migration_step.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel +from typing import List, Optional -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["MigrationStep", "RenamedClass", "TransferredClass"] diff --git a/src/cloudflare/types/workers/migration_step_param.py b/src/cloudflare/types/workers/migration_step_param.py index 41312db1d..87c80f048 100644 --- a/src/cloudflare/types/workers/migration_step_param.py +++ b/src/cloudflare/types/workers/migration_step_param.py @@ -3,7 +3,6 @@ from __future__ import annotations from typing import List, Iterable - from typing_extensions import TypedDict __all__ = ["MigrationStepParam", "RenamedClass", "TransferredClass"] diff --git a/src/cloudflare/types/workers/mtls_cert_binding.py b/src/cloudflare/types/workers/mtls_cert_binding.py index 3a31f22e0..cdc8618ce 100644 --- a/src/cloudflare/types/workers/mtls_cert_binding.py +++ b/src/cloudflare/types/workers/mtls_cert_binding.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["MTLSCERTBinding"] diff --git a/src/cloudflare/types/workers/mtls_cert_binding_param.py b/src/cloudflare/types/workers/mtls_cert_binding_param.py index 3fe1ccde8..945050492 100644 --- a/src/cloudflare/types/workers/mtls_cert_binding_param.py +++ b/src/cloudflare/types/workers/mtls_cert_binding_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["MTLSCERTBindingParam"] diff --git a/src/cloudflare/types/workers/placement_configuration.py b/src/cloudflare/types/workers/placement_configuration.py index 8ff47d3a5..0eb2b9eec 100644 --- a/src/cloudflare/types/workers/placement_configuration.py +++ b/src/cloudflare/types/workers/placement_configuration.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["PlacementConfiguration"] diff --git a/src/cloudflare/types/workers/r2_binding.py b/src/cloudflare/types/workers/r2_binding.py index eca048dce..523844ac2 100644 --- a/src/cloudflare/types/workers/r2_binding.py +++ b/src/cloudflare/types/workers/r2_binding.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing_extensions import Literal + from ..._models import BaseModel -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["R2Binding"] diff --git a/src/cloudflare/types/workers/r2_binding_param.py b/src/cloudflare/types/workers/r2_binding_param.py index d94437e54..559667ded 100644 --- a/src/cloudflare/types/workers/r2_binding_param.py +++ b/src/cloudflare/types/workers/r2_binding_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["R2BindingParam"] diff --git a/src/cloudflare/types/workers/script.py b/src/cloudflare/types/workers/script.py index 8bacd35d2..233187b23 100644 --- a/src/cloudflare/types/workers/script.py +++ b/src/cloudflare/types/workers/script.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime +from ..._models import BaseModel from .scripts.consumer_script import ConsumerScript -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Script"] diff --git a/src/cloudflare/types/workers/script_delete_params.py b/src/cloudflare/types/workers/script_delete_params.py index 7e4a29436..1d8d872fe 100644 --- a/src/cloudflare/types/workers/script_delete_params.py +++ b/src/cloudflare/types/workers/script_delete_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ScriptDeleteParams"] diff --git a/src/cloudflare/types/workers/script_setting.py b/src/cloudflare/types/workers/script_setting.py index 9cc491403..9b0b43d63 100644 --- a/src/cloudflare/types/workers/script_setting.py +++ b/src/cloudflare/types/workers/script_setting.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel - -from typing import Optional, List - from .scripts.consumer_script import ConsumerScript -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ScriptSetting"] diff --git a/src/cloudflare/types/workers/script_update_params.py b/src/cloudflare/types/workers/script_update_params.py index 1b8ad8c9b..1221c3917 100644 --- a/src/cloudflare/types/workers/script_update_params.py +++ b/src/cloudflare/types/workers/script_update_params.py @@ -2,26 +2,15 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal, TypeAlias - -from typing import List, Iterable, Dict, Union +from typing import Dict, List, Union, Iterable +from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict from ..._types import FileTypes - from ..._utils import PropertyInfo - -from .placement_configuration_param import PlacementConfigurationParam - -from .scripts.consumer_script_param import ConsumerScriptParam - -from .single_step_migration_param import SingleStepMigrationParam - from .stepped_migration_param import SteppedMigrationParam - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .single_step_migration_param import SingleStepMigrationParam +from .placement_configuration_param import PlacementConfigurationParam +from .scripts.consumer_script_param import ConsumerScriptParam __all__ = [ "ScriptUpdateParams", diff --git a/src/cloudflare/types/workers/script_update_response.py b/src/cloudflare/types/workers/script_update_response.py index 332205196..0bbea35c6 100644 --- a/src/cloudflare/types/workers/script_update_response.py +++ b/src/cloudflare/types/workers/script_update_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime +from ..._models import BaseModel from .scripts.consumer_script import ConsumerScript -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ScriptUpdateResponse"] diff --git a/src/cloudflare/types/workers/scripts/__init__.py b/src/cloudflare/types/workers/scripts/__init__.py index ad22463ba..73cb06a4d 100644 --- a/src/cloudflare/types/workers/scripts/__init__.py +++ b/src/cloudflare/types/workers/scripts/__init__.py @@ -3,25 +3,25 @@ from __future__ import annotations from .schedule import Schedule as Schedule +from .deployment import Deployment as Deployment from .schedule_param import ScheduleParam as ScheduleParam -from .schedule_update_response import ScheduleUpdateResponse as ScheduleUpdateResponse -from .schedule_get_response import ScheduleGetResponse as ScheduleGetResponse -from .schedule_update_params import ScheduleUpdateParams as ScheduleUpdateParams from .consumer_script import ConsumerScript as ConsumerScript -from .consumer_script_param import ConsumerScriptParam as ConsumerScriptParam -from .tail_create_response import TailCreateResponse as TailCreateResponse -from .tail_delete_response import TailDeleteResponse as TailDeleteResponse +from .deployment_param import DeploymentParam as DeploymentParam from .tail_get_response import TailGetResponse as TailGetResponse from .tail_create_params import TailCreateParams as TailCreateParams -from .content_update_params import ContentUpdateParams as ContentUpdateParams from .setting_edit_params import SettingEditParams as SettingEditParams -from .deployment import Deployment as Deployment -from .deployment_param import DeploymentParam as DeploymentParam -from .deployment_create_response import DeploymentCreateResponse as DeploymentCreateResponse -from .deployment_get_response import DeploymentGetResponse as DeploymentGetResponse -from .deployment_create_params import DeploymentCreateParams as DeploymentCreateParams -from .version_create_response import VersionCreateResponse as VersionCreateResponse -from .version_list_response import VersionListResponse as VersionListResponse -from .version_get_response import VersionGetResponse as VersionGetResponse -from .version_create_params import VersionCreateParams as VersionCreateParams from .version_list_params import VersionListParams as VersionListParams +from .tail_create_response import TailCreateResponse as TailCreateResponse +from .tail_delete_response import TailDeleteResponse as TailDeleteResponse +from .version_get_response import VersionGetResponse as VersionGetResponse +from .consumer_script_param import ConsumerScriptParam as ConsumerScriptParam +from .content_update_params import ContentUpdateParams as ContentUpdateParams +from .schedule_get_response import ScheduleGetResponse as ScheduleGetResponse +from .version_create_params import VersionCreateParams as VersionCreateParams +from .version_list_response import VersionListResponse as VersionListResponse +from .schedule_update_params import ScheduleUpdateParams as ScheduleUpdateParams +from .deployment_get_response import DeploymentGetResponse as DeploymentGetResponse +from .version_create_response import VersionCreateResponse as VersionCreateResponse +from .deployment_create_params import DeploymentCreateParams as DeploymentCreateParams +from .schedule_update_response import ScheduleUpdateResponse as ScheduleUpdateResponse +from .deployment_create_response import DeploymentCreateResponse as DeploymentCreateResponse diff --git a/src/cloudflare/types/workers/scripts/consumer_script.py b/src/cloudflare/types/workers/scripts/consumer_script.py index 5c6353f4e..6d933e952 100644 --- a/src/cloudflare/types/workers/scripts/consumer_script.py +++ b/src/cloudflare/types/workers/scripts/consumer_script.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ConsumerScript"] diff --git a/src/cloudflare/types/workers/scripts/consumer_script_param.py b/src/cloudflare/types/workers/scripts/consumer_script_param.py index ffcfbed36..2d7996c84 100644 --- a/src/cloudflare/types/workers/scripts/consumer_script_param.py +++ b/src/cloudflare/types/workers/scripts/consumer_script_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["ConsumerScriptParam"] diff --git a/src/cloudflare/types/workers/scripts/content_update_params.py b/src/cloudflare/types/workers/scripts/content_update_params.py index 6735b9c2c..f5c5e96e3 100644 --- a/src/cloudflare/types/workers/scripts/content_update_params.py +++ b/src/cloudflare/types/workers/scripts/content_update_params.py @@ -2,21 +2,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - from typing import List +from typing_extensions import Required, Annotated, TypedDict from ...._types import FileTypes - from ...._utils import PropertyInfo - from ..worker_metadata_param import WorkerMetadataParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["ContentUpdateParams"] diff --git a/src/cloudflare/types/workers/scripts/deployment.py b/src/cloudflare/types/workers/scripts/deployment.py index 6272cd0ca..a07f4231c 100644 --- a/src/cloudflare/types/workers/scripts/deployment.py +++ b/src/cloudflare/types/workers/scripts/deployment.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["Deployment"] diff --git a/src/cloudflare/types/workers/scripts/deployment_create_params.py b/src/cloudflare/types/workers/scripts/deployment_create_params.py index 115a85475..cb8530539 100644 --- a/src/cloudflare/types/workers/scripts/deployment_create_params.py +++ b/src/cloudflare/types/workers/scripts/deployment_create_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Iterable +from typing_extensions import Literal, Required, TypedDict from .deployment_param import DeploymentParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["DeploymentCreateParams", "Version"] diff --git a/src/cloudflare/types/workers/scripts/deployment_create_response.py b/src/cloudflare/types/workers/scripts/deployment_create_response.py index fd287ab3c..89f71d763 100644 --- a/src/cloudflare/types/workers/scripts/deployment_create_response.py +++ b/src/cloudflare/types/workers/scripts/deployment_create_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing_extensions import Literal - from typing import List, Optional - -from .deployment import Deployment - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel +from .deployment import Deployment __all__ = ["DeploymentCreateResponse", "Version"] diff --git a/src/cloudflare/types/workers/scripts/deployment_get_response.py b/src/cloudflare/types/workers/scripts/deployment_get_response.py index 897509d7a..ac49947bf 100644 --- a/src/cloudflare/types/workers/scripts/deployment_get_response.py +++ b/src/cloudflare/types/workers/scripts/deployment_get_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing_extensions import Literal - from typing import List, Optional +from typing_extensions import Literal from . import deployment - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["DeploymentGetResponse", "Deployment", "DeploymentVersion"] diff --git a/src/cloudflare/types/workers/scripts/deployment_param.py b/src/cloudflare/types/workers/scripts/deployment_param.py index 32bd9a1fe..c25292cba 100644 --- a/src/cloudflare/types/workers/scripts/deployment_param.py +++ b/src/cloudflare/types/workers/scripts/deployment_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Annotated +from typing_extensions import Annotated, TypedDict from ...._utils import PropertyInfo diff --git a/src/cloudflare/types/workers/scripts/schedule.py b/src/cloudflare/types/workers/scripts/schedule.py index 24ddb7888..08c504bdd 100644 --- a/src/cloudflare/types/workers/scripts/schedule.py +++ b/src/cloudflare/types/workers/scripts/schedule.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["Schedule"] diff --git a/src/cloudflare/types/workers/scripts/schedule_get_response.py b/src/cloudflare/types/workers/scripts/schedule_get_response.py index 7a24dcf12..5d430c7ce 100644 --- a/src/cloudflare/types/workers/scripts/schedule_get_response.py +++ b/src/cloudflare/types/workers/scripts/schedule_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List +from typing import List, Optional from .schedule import Schedule - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ScheduleGetResponse"] diff --git a/src/cloudflare/types/workers/scripts/schedule_update_params.py b/src/cloudflare/types/workers/scripts/schedule_update_params.py index 678f1af9a..a02d0be56 100644 --- a/src/cloudflare/types/workers/scripts/schedule_update_params.py +++ b/src/cloudflare/types/workers/scripts/schedule_update_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Iterable +from typing_extensions import Required, TypedDict from .schedule_param import ScheduleParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["ScheduleUpdateParams"] diff --git a/src/cloudflare/types/workers/scripts/schedule_update_response.py b/src/cloudflare/types/workers/scripts/schedule_update_response.py index 47a96c1cf..0024bf491 100644 --- a/src/cloudflare/types/workers/scripts/schedule_update_response.py +++ b/src/cloudflare/types/workers/scripts/schedule_update_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List +from typing import List, Optional from .schedule import Schedule - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ScheduleUpdateResponse"] diff --git a/src/cloudflare/types/workers/scripts/setting_edit_params.py b/src/cloudflare/types/workers/scripts/setting_edit_params.py index 8ce7f54b2..760ce3ac2 100644 --- a/src/cloudflare/types/workers/scripts/setting_edit_params.py +++ b/src/cloudflare/types/workers/scripts/setting_edit_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Iterable +from typing_extensions import Required, TypedDict from .consumer_script_param import ConsumerScriptParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["SettingEditParams"] diff --git a/src/cloudflare/types/workers/scripts/tail_create_params.py b/src/cloudflare/types/workers/scripts/tail_create_params.py index 16f2f7e5b..5fd1875c6 100644 --- a/src/cloudflare/types/workers/scripts/tail_create_params.py +++ b/src/cloudflare/types/workers/scripts/tail_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["TailCreateParams"] diff --git a/src/cloudflare/types/workers/scripts/tail_create_response.py b/src/cloudflare/types/workers/scripts/tail_create_response.py index 6dd42cc27..ad8de320f 100644 --- a/src/cloudflare/types/workers/scripts/tail_create_response.py +++ b/src/cloudflare/types/workers/scripts/tail_create_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["TailCreateResponse"] diff --git a/src/cloudflare/types/workers/scripts/tail_delete_response.py b/src/cloudflare/types/workers/scripts/tail_delete_response.py index 2c8b4f951..a1947aaa6 100644 --- a/src/cloudflare/types/workers/scripts/tail_delete_response.py +++ b/src/cloudflare/types/workers/scripts/tail_delete_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List +from typing_extensions import Literal +from ...._models import BaseModel from ...shared.response_info import ResponseInfo -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["TailDeleteResponse"] diff --git a/src/cloudflare/types/workers/scripts/tail_get_response.py b/src/cloudflare/types/workers/scripts/tail_get_response.py index d5d4e3fa6..4c78150ab 100644 --- a/src/cloudflare/types/workers/scripts/tail_get_response.py +++ b/src/cloudflare/types/workers/scripts/tail_get_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["TailGetResponse"] diff --git a/src/cloudflare/types/workers/scripts/version_create_params.py b/src/cloudflare/types/workers/scripts/version_create_params.py index 7abd12ab7..3a4887013 100644 --- a/src/cloudflare/types/workers/scripts/version_create_params.py +++ b/src/cloudflare/types/workers/scripts/version_create_params.py @@ -2,16 +2,9 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal - from typing import List, Iterable +from typing_extensions import Literal, Required, Annotated, TypedDict -from ...._types import FileTypes - -from ...._utils import PropertyInfo - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated from ...._types import FileTypes from ...._utils import PropertyInfo diff --git a/src/cloudflare/types/workers/scripts/version_create_response.py b/src/cloudflare/types/workers/scripts/version_create_response.py index 011692fe5..64ab09403 100644 --- a/src/cloudflare/types/workers/scripts/version_create_response.py +++ b/src/cloudflare/types/workers/scripts/version_create_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["VersionCreateResponse"] diff --git a/src/cloudflare/types/workers/scripts/version_get_response.py b/src/cloudflare/types/workers/scripts/version_get_response.py index b0d8513ec..9a0dbd121 100644 --- a/src/cloudflare/types/workers/scripts/version_get_response.py +++ b/src/cloudflare/types/workers/scripts/version_get_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["VersionGetResponse"] diff --git a/src/cloudflare/types/workers/scripts/version_list_params.py b/src/cloudflare/types/workers/scripts/version_list_params.py index 023487e9f..b5c0dd948 100644 --- a/src/cloudflare/types/workers/scripts/version_list_params.py +++ b/src/cloudflare/types/workers/scripts/version_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["VersionListParams"] diff --git a/src/cloudflare/types/workers/scripts/version_list_response.py b/src/cloudflare/types/workers/scripts/version_list_response.py index 606f06a80..b992e3fab 100644 --- a/src/cloudflare/types/workers/scripts/version_list_response.py +++ b/src/cloudflare/types/workers/scripts/version_list_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["VersionListResponse"] diff --git a/src/cloudflare/types/workers/service_binding.py b/src/cloudflare/types/workers/service_binding.py index e7d1c5bb7..ffd0c7b07 100644 --- a/src/cloudflare/types/workers/service_binding.py +++ b/src/cloudflare/types/workers/service_binding.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing_extensions import Literal + from ..._models import BaseModel -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ServiceBinding"] diff --git a/src/cloudflare/types/workers/service_binding_param.py b/src/cloudflare/types/workers/service_binding_param.py index 2ef4d97e4..52ecb3350 100644 --- a/src/cloudflare/types/workers/service_binding_param.py +++ b/src/cloudflare/types/workers/service_binding_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["ServiceBindingParam"] diff --git a/src/cloudflare/types/workers/single_step_migration.py b/src/cloudflare/types/workers/single_step_migration.py index 1191d6a07..2c07c2f4a 100644 --- a/src/cloudflare/types/workers/single_step_migration.py +++ b/src/cloudflare/types/workers/single_step_migration.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel +from typing import List, Optional -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["SingleStepMigration", "RenamedClass", "TransferredClass"] diff --git a/src/cloudflare/types/workers/single_step_migration_param.py b/src/cloudflare/types/workers/single_step_migration_param.py index de537fb55..0c831efe8 100644 --- a/src/cloudflare/types/workers/single_step_migration_param.py +++ b/src/cloudflare/types/workers/single_step_migration_param.py @@ -3,7 +3,6 @@ from __future__ import annotations from typing import List, Iterable - from typing_extensions import TypedDict __all__ = ["SingleStepMigrationParam", "RenamedClass", "TransferredClass"] diff --git a/src/cloudflare/types/workers/stepped_migration.py b/src/cloudflare/types/workers/stepped_migration.py index db5433735..3383a9a47 100644 --- a/src/cloudflare/types/workers/stepped_migration.py +++ b/src/cloudflare/types/workers/stepped_migration.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ..._models import BaseModel - -from typing import Optional, List - from .migration_step import MigrationStep -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SteppedMigration"] diff --git a/src/cloudflare/types/workers/stepped_migration_param.py b/src/cloudflare/types/workers/stepped_migration_param.py index f4eeb7fad..246504114 100644 --- a/src/cloudflare/types/workers/stepped_migration_param.py +++ b/src/cloudflare/types/workers/stepped_migration_param.py @@ -3,11 +3,10 @@ from __future__ import annotations from typing import Iterable +from typing_extensions import TypedDict from .migration_step_param import MigrationStepParam -from typing_extensions import TypedDict - __all__ = ["SteppedMigrationParam"] diff --git a/src/cloudflare/types/workers/subdomain_get_response.py b/src/cloudflare/types/workers/subdomain_get_response.py index 1624a716b..6ecaccf89 100644 --- a/src/cloudflare/types/workers/subdomain_get_response.py +++ b/src/cloudflare/types/workers/subdomain_get_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["SubdomainGetResponse"] diff --git a/src/cloudflare/types/workers/subdomain_update_params.py b/src/cloudflare/types/workers/subdomain_update_params.py index 239168cf6..15032a293 100644 --- a/src/cloudflare/types/workers/subdomain_update_params.py +++ b/src/cloudflare/types/workers/subdomain_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["SubdomainUpdateParams"] diff --git a/src/cloudflare/types/workers/subdomain_update_response.py b/src/cloudflare/types/workers/subdomain_update_response.py index c72fa1896..2297b7983 100644 --- a/src/cloudflare/types/workers/subdomain_update_response.py +++ b/src/cloudflare/types/workers/subdomain_update_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["SubdomainUpdateResponse"] diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/__init__.py b/src/cloudflare/types/workers_for_platforms/dispatch/__init__.py index 05b2d41a6..ab7c7bdf4 100644 --- a/src/cloudflare/types/workers_for_platforms/dispatch/__init__.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations -from .namespace_create_response import NamespaceCreateResponse as NamespaceCreateResponse -from .namespace_list_response import NamespaceListResponse as NamespaceListResponse from .namespace_get_response import NamespaceGetResponse as NamespaceGetResponse from .namespace_create_params import NamespaceCreateParams as NamespaceCreateParams +from .namespace_list_response import NamespaceListResponse as NamespaceListResponse +from .namespace_create_response import NamespaceCreateResponse as NamespaceCreateResponse diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespace_create_params.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespace_create_params.py index 3f6de40d1..77d7f35b5 100644 --- a/src/cloudflare/types/workers_for_platforms/dispatch/namespace_create_params.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespace_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["NamespaceCreateParams"] diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespace_create_response.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespace_create_response.py index a52cdcf5f..6c5fb1979 100644 --- a/src/cloudflare/types/workers_for_platforms/dispatch/namespace_create_response.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespace_create_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["NamespaceCreateResponse"] diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespace_get_response.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespace_get_response.py index a984928ab..504ece0a8 100644 --- a/src/cloudflare/types/workers_for_platforms/dispatch/namespace_get_response.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespace_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["NamespaceGetResponse"] diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespace_list_response.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespace_list_response.py index 3e35450e6..afd2b614d 100644 --- a/src/cloudflare/types/workers_for_platforms/dispatch/namespace_list_response.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespace_list_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["NamespaceListResponse"] diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/__init__.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/__init__.py index 521792530..6cb01babb 100644 --- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/__init__.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/__init__.py @@ -3,6 +3,6 @@ from __future__ import annotations from .script import Script as Script -from .script_update_response import ScriptUpdateResponse as ScriptUpdateResponse -from .script_update_params import ScriptUpdateParams as ScriptUpdateParams from .script_delete_params import ScriptDeleteParams as ScriptDeleteParams +from .script_update_params import ScriptUpdateParams as ScriptUpdateParams +from .script_update_response import ScriptUpdateResponse as ScriptUpdateResponse diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script.py index 9b60a2ac7..8cdabbbab 100644 --- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import Optional - from datetime import datetime from ....workers import script as _script - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["Script"] diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script_delete_params.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script_delete_params.py index fab9f755c..4ab2a41fd 100644 --- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script_delete_params.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script_delete_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ScriptDeleteParams"] diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script_update_params.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script_update_params.py index 4dd440db1..367a89663 100644 --- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script_update_params.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script_update_params.py @@ -2,26 +2,15 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal, TypeAlias - -from typing import List, Iterable, Dict, Union +from typing import Dict, List, Union, Iterable +from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict from ....._types import FileTypes - from ....._utils import PropertyInfo - -from ....workers.placement_configuration_param import PlacementConfigurationParam - -from ....workers.scripts.consumer_script_param import ConsumerScriptParam - -from ....workers.single_step_migration_param import SingleStepMigrationParam - from ....workers.stepped_migration_param import SteppedMigrationParam - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from ....workers.single_step_migration_param import SingleStepMigrationParam +from ....workers.placement_configuration_param import PlacementConfigurationParam +from ....workers.scripts.consumer_script_param import ConsumerScriptParam __all__ = [ "ScriptUpdateParams", diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script_update_response.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script_update_response.py index 081513621..41894aba7 100644 --- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script_update_response.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script_update_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime +from ....._models import BaseModel from ....workers.scripts.consumer_script import ConsumerScript -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ScriptUpdateResponse"] diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/__init__.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/__init__.py index 48043ea02..b1e6bf59e 100644 --- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/__init__.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/__init__.py @@ -2,15 +2,15 @@ from __future__ import annotations -from .content_update_params import ContentUpdateParams as ContentUpdateParams -from .setting_edit_response import SettingEditResponse as SettingEditResponse -from .setting_get_response import SettingGetResponse as SettingGetResponse -from .setting_edit_params import SettingEditParams as SettingEditParams -from .binding_get_response import BindingGetResponse as BindingGetResponse -from .secret_update_response import SecretUpdateResponse as SecretUpdateResponse -from .secret_list_response import SecretListResponse as SecretListResponse -from .secret_get_response import SecretGetResponse as SecretGetResponse -from .secret_update_params import SecretUpdateParams as SecretUpdateParams -from .tag_update_response import TagUpdateResponse as TagUpdateResponse from .tag_list_response import TagListResponse as TagListResponse from .tag_update_params import TagUpdateParams as TagUpdateParams +from .secret_get_response import SecretGetResponse as SecretGetResponse +from .setting_edit_params import SettingEditParams as SettingEditParams +from .tag_update_response import TagUpdateResponse as TagUpdateResponse +from .binding_get_response import BindingGetResponse as BindingGetResponse +from .secret_list_response import SecretListResponse as SecretListResponse +from .secret_update_params import SecretUpdateParams as SecretUpdateParams +from .setting_get_response import SettingGetResponse as SettingGetResponse +from .content_update_params import ContentUpdateParams as ContentUpdateParams +from .setting_edit_response import SettingEditResponse as SettingEditResponse +from .secret_update_response import SecretUpdateResponse as SecretUpdateResponse diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/binding_get_response.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/binding_get_response.py index d89caf811..b7a3d0c67 100644 --- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/binding_get_response.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/binding_get_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .....workers.binding import Binding - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .....workers.binding import Binding __all__ = ["BindingGetResponse"] 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 d0d3c9fc8..9f4d31184 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 @@ -2,21 +2,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - from typing import List +from typing_extensions import Required, Annotated, TypedDict from ......_types import FileTypes - from ......_utils import PropertyInfo - from .....workers.worker_metadata_param import WorkerMetadataParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ......_types import FileTypes -from ......_utils import PropertyInfo - __all__ = ["ContentUpdateParams"] diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/secret_get_response.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/secret_get_response.py index e08a8940e..77c151d5d 100755 --- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/secret_get_response.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/secret_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ......_models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ......_models import BaseModel __all__ = ["SecretGetResponse"] diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/secret_list_response.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/secret_list_response.py index 1b0178c29..8593105b2 100644 --- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/secret_list_response.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/secret_list_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ......_models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ......_models import BaseModel __all__ = ["SecretListResponse"] diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/secret_update_params.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/secret_update_params.py index c9cdb96f6..d573a8890 100644 --- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/secret_update_params.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/secret_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ......_types import FileTypes -from ......_utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["SecretUpdateParams"] diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/secret_update_response.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/secret_update_response.py index 1036f6cba..bc2b25afe 100644 --- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/secret_update_response.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/secret_update_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ......_models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ......_models import BaseModel __all__ = ["SecretUpdateResponse"] diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_edit_params.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_edit_params.py index 9d7ce13c5..4eac0764b 100644 --- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_edit_params.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_edit_params.py @@ -2,24 +2,14 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, TypeAlias - -from typing import Iterable, List, Union +from typing import List, Union, Iterable +from typing_extensions import Required, TypeAlias, TypedDict from .....workers.binding_param import BindingParam - -from .....workers.placement_configuration_param import PlacementConfigurationParam - -from .....workers.scripts.consumer_script_param import ConsumerScriptParam - -from .....workers.single_step_migration_param import SingleStepMigrationParam - from .....workers.stepped_migration_param import SteppedMigrationParam - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ......_types import FileTypes -from ......_utils import PropertyInfo +from .....workers.single_step_migration_param import SingleStepMigrationParam +from .....workers.placement_configuration_param import PlacementConfigurationParam +from .....workers.scripts.consumer_script_param import ConsumerScriptParam __all__ = ["SettingEditParams", "Settings", "SettingsLimits", "SettingsMigrations"] diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_edit_response.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_edit_response.py index f88164dd1..1e8b52424 100644 --- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_edit_response.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_edit_response.py @@ -1,25 +1,15 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ......_models import BaseModel - -from typing import Optional, List - -from .....workers.single_step_migration import SingleStepMigration - -from .....workers.stepped_migration import SteppedMigration - +from typing import List, Union, Optional from typing_extensions import TypeAlias +from ......_models import BaseModel from .....workers.binding import Binding - +from .....workers.stepped_migration import SteppedMigration +from .....workers.single_step_migration import SingleStepMigration from .....workers.placement_configuration import PlacementConfiguration - from .....workers.scripts.consumer_script import ConsumerScript -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SettingEditResponse", "Limits", "Migrations"] diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_get_response.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_get_response.py index 9e05c0293..04375f227 100644 --- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_get_response.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_get_response.py @@ -1,25 +1,15 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ......_models import BaseModel - -from typing import Optional, List - -from .....workers.single_step_migration import SingleStepMigration - -from .....workers.stepped_migration import SteppedMigration - +from typing import List, Union, Optional from typing_extensions import TypeAlias +from ......_models import BaseModel from .....workers.binding import Binding - +from .....workers.stepped_migration import SteppedMigration +from .....workers.single_step_migration import SingleStepMigration from .....workers.placement_configuration import PlacementConfiguration - from .....workers.scripts.consumer_script import ConsumerScript -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SettingGetResponse", "Limits", "Migrations"] diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/tag_list_response.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/tag_list_response.py index f57ccf22b..9ed0283b7 100644 --- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/tag_list_response.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/tag_list_response.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["TagListResponse"] TagListResponse: TypeAlias = str diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/tag_update_params.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/tag_update_params.py index b49efd731..e423cd844 100644 --- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/tag_update_params.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/tag_update_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ......_types import FileTypes -from ......_utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["TagUpdateParams"] diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/tag_update_response.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/tag_update_response.py index 92ef84789..66c916b41 100644 --- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/tag_update_response.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/tag_update_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["TagUpdateResponse"] TagUpdateResponse: TypeAlias = List[str] diff --git a/src/cloudflare/types/zero_trust/__init__.py b/src/cloudflare/types/zero_trust/__init__.py index 1cb5db736..29332df82 100644 --- a/src/cloudflare/types/zero_trust/__init__.py +++ b/src/cloudflare/types/zero_trust/__init__.py @@ -2,84 +2,84 @@ from __future__ import annotations -from .device import Device as Device -from .device_get_response import DeviceGetResponse as DeviceGetResponse -from .azure_ad import AzureAD as AzureAD -from .generic_oauth_config import GenericOAuthConfig as GenericOAuthConfig -from .generic_oauth_config_param import GenericOAuthConfigParam as GenericOAuthConfigParam -from .identity_provider import IdentityProvider as IdentityProvider -from .identity_provider_scim_config import IdentityProviderSCIMConfig as IdentityProviderSCIMConfig -from .identity_provider_scim_config_param import IdentityProviderSCIMConfigParam as IdentityProviderSCIMConfigParam -from .identity_provider_type import IdentityProviderType as IdentityProviderType -from .identity_provider_list_response import IdentityProviderListResponse as IdentityProviderListResponse -from .identity_provider_delete_response import IdentityProviderDeleteResponse as IdentityProviderDeleteResponse -from .identity_provider_create_params import IdentityProviderCreateParams as IdentityProviderCreateParams -from .identity_provider_update_params import IdentityProviderUpdateParams as IdentityProviderUpdateParams -from .login_design import LoginDesign as LoginDesign -from .login_design_param import LoginDesignParam as LoginDesignParam -from .organization import Organization as Organization -from .organization_revoke_users_response import OrganizationRevokeUsersResponse as OrganizationRevokeUsersResponse -from .organization_create_params import OrganizationCreateParams as OrganizationCreateParams -from .organization_update_params import OrganizationUpdateParams as OrganizationUpdateParams -from .organization_revoke_users_params import OrganizationRevokeUsersParams as OrganizationRevokeUsersParams from .seat import Seat as Seat -from .seat_edit_response import SeatEditResponse as SeatEditResponse -from .seat_edit_params import SeatEditParams as SeatEditParams -from .access_device_posture_rule import AccessDevicePostureRule as AccessDevicePostureRule -from .access_device_posture_rule_param import AccessDevicePostureRuleParam as AccessDevicePostureRuleParam -from .access_rule import AccessRule as AccessRule -from .access_rule_param import AccessRuleParam as AccessRuleParam -from .any_valid_service_token_rule import AnyValidServiceTokenRule as AnyValidServiceTokenRule -from .any_valid_service_token_rule_param import AnyValidServiceTokenRuleParam as AnyValidServiceTokenRuleParam -from .authentication_method_rule import AuthenticationMethodRule as AuthenticationMethodRule -from .authentication_method_rule_param import AuthenticationMethodRuleParam as AuthenticationMethodRuleParam -from .azure_group_rule import AzureGroupRule as AzureGroupRule -from .azure_group_rule_param import AzureGroupRuleParam as AzureGroupRuleParam -from .certificate_rule import CertificateRule as CertificateRule -from .certificate_rule_param import CertificateRuleParam as CertificateRuleParam -from .country_rule import CountryRule as CountryRule -from .country_rule_param import CountryRuleParam as CountryRuleParam -from .domain_rule import DomainRule as DomainRule -from .domain_rule_param import DomainRuleParam as DomainRuleParam -from .email_list_rule import EmailListRule as EmailListRule -from .email_list_rule_param import EmailListRuleParam as EmailListRuleParam -from .email_rule import EmailRule as EmailRule -from .email_rule_param import EmailRuleParam as EmailRuleParam -from .everyone_rule import EveryoneRule as EveryoneRule -from .everyone_rule_param import EveryoneRuleParam as EveryoneRuleParam -from .external_evaluation_rule import ExternalEvaluationRule as ExternalEvaluationRule -from .external_evaluation_rule_param import ExternalEvaluationRuleParam as ExternalEvaluationRuleParam -from .github_organization_rule import GitHubOrganizationRule as GitHubOrganizationRule -from .github_organization_rule_param import GitHubOrganizationRuleParam as GitHubOrganizationRuleParam -from .group_rule import GroupRule as GroupRule -from .group_rule_param import GroupRuleParam as GroupRuleParam -from .gsuite_group_rule import GSuiteGroupRule as GSuiteGroupRule -from .gsuite_group_rule_param import GSuiteGroupRuleParam as GSuiteGroupRuleParam -from .ip_list_rule import IPListRule as IPListRule -from .ip_list_rule_param import IPListRuleParam as IPListRuleParam +from .device import Device as Device from .ip_rule import IPRule as IPRule +from .azure_ad import AzureAD as AzureAD +from .email_rule import EmailRule as EmailRule +from .group_rule import GroupRule as GroupRule +from .access_rule import AccessRule as AccessRule +from .domain_rule import DomainRule as DomainRule +from .percentiles import Percentiles as Percentiles +from .country_rule import CountryRule as CountryRule +from .ip_list_rule import IPListRule as IPListRule +from .login_design import LoginDesign as LoginDesign +from .network_path import NetworkPath as NetworkPath +from .organization import Organization as Organization +from .everyone_rule import EveryoneRule as EveryoneRule from .ip_rule_param import IPRuleParam as IPRuleParam +from .email_list_rule import EmailListRule as EmailListRule from .okta_group_rule import OktaGroupRule as OktaGroupRule -from .okta_group_rule_param import OktaGroupRuleParam as OktaGroupRuleParam from .saml_group_rule import SAMLGroupRule as SAMLGroupRule -from .saml_group_rule_param import SAMLGroupRuleParam as SAMLGroupRuleParam +from .azure_group_rule import AzureGroupRule as AzureGroupRule +from .certificate_rule import CertificateRule as CertificateRule +from .email_rule_param import EmailRuleParam as EmailRuleParam +from .group_rule_param import GroupRuleParam as GroupRuleParam +from .seat_edit_params import SeatEditParams as SeatEditParams +from .access_rule_param import AccessRuleParam as AccessRuleParam +from .domain_rule_param import DomainRuleParam as DomainRuleParam +from .gsuite_group_rule import GSuiteGroupRule as GSuiteGroupRule +from .identity_provider import IdentityProvider as IdentityProvider +from .country_rule_param import CountryRuleParam as CountryRuleParam +from .ip_list_rule_param import IPListRuleParam as IPListRuleParam +from .login_design_param import LoginDesignParam as LoginDesignParam +from .seat_edit_response import SeatEditResponse as SeatEditResponse from .service_token_rule import ServiceTokenRule as ServiceTokenRule +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 .everyone_rule_param import EveryoneRuleParam as EveryoneRuleParam +from .tunnel_get_response import TunnelGetResponse as TunnelGetResponse +from .generic_oauth_config import GenericOAuthConfig as GenericOAuthConfig +from .tunnel_create_params import TunnelCreateParams as TunnelCreateParams +from .tunnel_edit_response import TunnelEditResponse as TunnelEditResponse +from .tunnel_list_response import TunnelListResponse as TunnelListResponse +from .email_list_rule_param import EmailListRuleParam as EmailListRuleParam +from .gateway_list_response import GatewayListResponse as GatewayListResponse +from .network_path_response import NetworkPathResponse as NetworkPathResponse +from .okta_group_rule_param import OktaGroupRuleParam as OktaGroupRuleParam +from .saml_group_rule_param import SAMLGroupRuleParam as SAMLGroupRuleParam +from .azure_group_rule_param import AzureGroupRuleParam as AzureGroupRuleParam +from .certificate_rule_param import CertificateRuleParam as CertificateRuleParam +from .identity_provider_type import IdentityProviderType as IdentityProviderType +from .tunnel_create_response import TunnelCreateResponse as TunnelCreateResponse +from .tunnel_delete_response import TunnelDeleteResponse as TunnelDeleteResponse +from .gateway_create_response import GatewayCreateResponse as GatewayCreateResponse +from .gsuite_group_rule_param import GSuiteGroupRuleParam as GSuiteGroupRuleParam +from .external_evaluation_rule import ExternalEvaluationRule as ExternalEvaluationRule +from .github_organization_rule import GitHubOrganizationRule as GitHubOrganizationRule from .service_token_rule_param import ServiceTokenRuleParam as ServiceTokenRuleParam from .device_experience_monitor import DeviceExperienceMonitor as DeviceExperienceMonitor -from .network_path import NetworkPath as NetworkPath -from .network_path_response import NetworkPathResponse as NetworkPathResponse -from .percentiles import Percentiles as Percentiles -from .tunnel_create_response import TunnelCreateResponse as TunnelCreateResponse -from .tunnel_list_response import TunnelListResponse as TunnelListResponse -from .tunnel_delete_response import TunnelDeleteResponse as TunnelDeleteResponse -from .tunnel_edit_response import TunnelEditResponse as TunnelEditResponse -from .tunnel_get_response import TunnelGetResponse as TunnelGetResponse -from .tunnel_create_params import TunnelCreateParams as TunnelCreateParams -from .tunnel_list_params import TunnelListParams as TunnelListParams -from .tunnel_edit_params import TunnelEditParams as TunnelEditParams -from .connectivity_setting_edit_response import ConnectivitySettingEditResponse as ConnectivitySettingEditResponse -from .connectivity_setting_get_response import ConnectivitySettingGetResponse as ConnectivitySettingGetResponse -from .connectivity_setting_edit_params import ConnectivitySettingEditParams as ConnectivitySettingEditParams -from .gateway_create_response import GatewayCreateResponse as GatewayCreateResponse -from .gateway_list_response import GatewayListResponse as GatewayListResponse from .risk_scoring_get_response import RiskScoringGetResponse as RiskScoringGetResponse +from .access_device_posture_rule import AccessDevicePostureRule as AccessDevicePostureRule +from .authentication_method_rule import AuthenticationMethodRule as AuthenticationMethodRule +from .generic_oauth_config_param import GenericOAuthConfigParam as GenericOAuthConfigParam +from .organization_create_params import OrganizationCreateParams as OrganizationCreateParams +from .organization_update_params import OrganizationUpdateParams as OrganizationUpdateParams +from .any_valid_service_token_rule import AnyValidServiceTokenRule as AnyValidServiceTokenRule +from .identity_provider_scim_config import IdentityProviderSCIMConfig as IdentityProviderSCIMConfig +from .external_evaluation_rule_param import ExternalEvaluationRuleParam as ExternalEvaluationRuleParam +from .github_organization_rule_param import GitHubOrganizationRuleParam as GitHubOrganizationRuleParam +from .identity_provider_create_params import IdentityProviderCreateParams as IdentityProviderCreateParams +from .identity_provider_list_response import IdentityProviderListResponse as IdentityProviderListResponse +from .identity_provider_update_params import IdentityProviderUpdateParams as IdentityProviderUpdateParams +from .access_device_posture_rule_param import AccessDevicePostureRuleParam as AccessDevicePostureRuleParam +from .authentication_method_rule_param import AuthenticationMethodRuleParam as AuthenticationMethodRuleParam +from .connectivity_setting_edit_params import ConnectivitySettingEditParams as ConnectivitySettingEditParams +from .organization_revoke_users_params import OrganizationRevokeUsersParams as OrganizationRevokeUsersParams +from .connectivity_setting_get_response import ConnectivitySettingGetResponse as ConnectivitySettingGetResponse +from .identity_provider_delete_response import IdentityProviderDeleteResponse as IdentityProviderDeleteResponse +from .any_valid_service_token_rule_param import AnyValidServiceTokenRuleParam as AnyValidServiceTokenRuleParam +from .connectivity_setting_edit_response import ConnectivitySettingEditResponse as ConnectivitySettingEditResponse +from .organization_revoke_users_response import OrganizationRevokeUsersResponse as OrganizationRevokeUsersResponse +from .identity_provider_scim_config_param import IdentityProviderSCIMConfigParam as IdentityProviderSCIMConfigParam diff --git a/src/cloudflare/types/zero_trust/access/__init__.py b/src/cloudflare/types/zero_trust/access/__init__.py index 5ad9752e6..14cb7dba5 100644 --- a/src/cloudflare/types/zero_trust/access/__init__.py +++ b/src/cloudflare/types/zero_trust/access/__init__.py @@ -2,27 +2,80 @@ from __future__ import annotations -from .allowed_headers import AllowedHeaders as AllowedHeaders +from .tag import Tag as Tag +from .app_id import AppID as AppID +from .bookmark import Bookmark as Bookmark +from .decision import Decision as Decision +from .access_user import AccessUser as AccessUser +from .certificate import Certificate as Certificate +from .custom_page import CustomPage as CustomPage from .allowed_idps import AllowedIdPs as AllowedIdPs +from .cors_headers import CORSHeaders as CORSHeaders +from .oidc_saas_app import OIDCSaaSApp as OIDCSaaSApp +from .saml_saas_app import SAMLSaaSApp as SAMLSaaSApp +from .service_token import ServiceToken as ServiceToken +from .allowed_headers import AllowedHeaders as AllowedHeaders from .allowed_methods import AllowedMethods as AllowedMethods from .allowed_origins import AllowedOrigins as AllowedOrigins -from .app_id import AppID as AppID -from .application_policy import ApplicationPolicy as ApplicationPolicy -from .application_type import ApplicationType as ApplicationType -from .cors_headers import CORSHeaders as CORSHeaders -from .cors_headers_param import CORSHeadersParam as CORSHeadersParam -from .decision import Decision as Decision -from .oidc_saas_app import OIDCSaaSApp as OIDCSaaSApp -from .oidc_saas_app_param import OIDCSaaSAppParam as OIDCSaaSAppParam -from .saas_app_name_format import SaaSAppNameFormat as SaaSAppNameFormat -from .saas_app_name_id_format import SaaSAppNameIDFormat as SaaSAppNameIDFormat from .saas_app_source import SaaSAppSource as SaaSAppSource -from .saas_app_source_param import SaaSAppSourceParam as SaaSAppSourceParam -from .saml_saas_app import SAMLSaaSApp as SAMLSaaSApp +from .application_type import ApplicationType as ApplicationType +from .key_get_response import KeyGetResponse as KeyGetResponse +from .zero_trust_group import ZeroTrustGroup as ZeroTrustGroup +from .key_update_params import KeyUpdateParams as KeyUpdateParams +from .tag_create_params import TagCreateParams as TagCreateParams +from .tag_update_params import TagUpdateParams as TagUpdateParams +from .application_policy import ApplicationPolicy as ApplicationPolicy +from .cors_headers_param import CORSHeadersParam as CORSHeadersParam +from .group_create_params import GroupCreateParams as GroupCreateParams +from .group_update_params import GroupUpdateParams as GroupUpdateParams +from .key_rotate_response import KeyRotateResponse as KeyRotateResponse +from .key_update_response import KeyUpdateResponse as KeyUpdateResponse +from .oidc_saas_app_param import OIDCSaaSAppParam as OIDCSaaSAppParam +from .policy_get_response import PolicyGetResponse as PolicyGetResponse from .saml_saas_app_param import SAMLSaaSAppParam as SAMLSaaSAppParam +from .scim_config_mapping import SCIMConfigMapping as SCIMConfigMapping +from .self_hosted_domains import SelfHostedDomains as SelfHostedDomains +from .tag_delete_response import TagDeleteResponse as TagDeleteResponse +from .associated_hostnames import AssociatedHostnames as AssociatedHostnames +from .policy_create_params import PolicyCreateParams as PolicyCreateParams +from .policy_list_response import PolicyListResponse as PolicyListResponse +from .policy_update_params import PolicyUpdateParams as PolicyUpdateParams +from .saas_app_name_format import SaaSAppNameFormat as SaaSAppNameFormat +from .group_delete_response import GroupDeleteResponse as GroupDeleteResponse +from .saas_app_source_param import SaaSAppSourceParam as SaaSAppSourceParam +from .bookmark_create_params import BookmarkCreateParams as BookmarkCreateParams +from .bookmark_update_params import BookmarkUpdateParams as BookmarkUpdateParams +from .policy_create_response import PolicyCreateResponse as PolicyCreateResponse +from .policy_delete_response import PolicyDeleteResponse as PolicyDeleteResponse +from .policy_update_response import PolicyUpdateResponse as PolicyUpdateResponse +from .saas_app_name_id_format import SaaSAppNameIDFormat as SaaSAppNameIDFormat +from .application_get_response import ApplicationGetResponse as ApplicationGetResponse +from .bookmark_delete_response import BookmarkDeleteResponse as BookmarkDeleteResponse +from .custom_page_without_html import CustomPageWithoutHTML as CustomPageWithoutHTML +from .application_create_params import ApplicationCreateParams as ApplicationCreateParams +from .application_list_response import ApplicationListResponse as ApplicationListResponse +from .application_update_params import ApplicationUpdateParams as ApplicationUpdateParams +from .certificate_create_params import CertificateCreateParams as CertificateCreateParams +from .certificate_update_params import CertificateUpdateParams as CertificateUpdateParams +from .custom_page_create_params import CustomPageCreateParams as CustomPageCreateParams +from .custom_page_update_params import CustomPageUpdateParams as CustomPageUpdateParams +from .scim_config_mapping_param import SCIMConfigMappingParam as SCIMConfigMappingParam +from .application_create_response import ApplicationCreateResponse as ApplicationCreateResponse +from .application_delete_response import ApplicationDeleteResponse as ApplicationDeleteResponse +from .application_update_response import ApplicationUpdateResponse as ApplicationUpdateResponse +from .certificate_delete_response import CertificateDeleteResponse as CertificateDeleteResponse +from .custom_page_delete_response import CustomPageDeleteResponse as CustomPageDeleteResponse +from .service_token_create_params import ServiceTokenCreateParams as ServiceTokenCreateParams +from .service_token_update_params import ServiceTokenUpdateParams as ServiceTokenUpdateParams +from .service_token_create_response import ServiceTokenCreateResponse as ServiceTokenCreateResponse +from .service_token_rotate_response import ServiceTokenRotateResponse as ServiceTokenRotateResponse +from .scim_config_authentication_oauth2 import SCIMConfigAuthenticationOauth2 as SCIMConfigAuthenticationOauth2 from .scim_config_authentication_http_basic import ( SCIMConfigAuthenticationHTTPBasic as SCIMConfigAuthenticationHTTPBasic, ) +from .scim_config_authentication_oauth2_param import ( + SCIMConfigAuthenticationOauth2Param as SCIMConfigAuthenticationOauth2Param, +) from .scim_config_authentication_http_basic_param import ( SCIMConfigAuthenticationHTTPBasicParam as SCIMConfigAuthenticationHTTPBasicParam, ) @@ -32,56 +85,3 @@ from .scim_config_authentication_oauth_bearer_token import ( from .scim_config_authentication_oauth_bearer_token_param import ( SCIMConfigAuthenticationOAuthBearerTokenParam as SCIMConfigAuthenticationOAuthBearerTokenParam, ) -from .scim_config_authentication_oauth2 import SCIMConfigAuthenticationOauth2 as SCIMConfigAuthenticationOauth2 -from .scim_config_authentication_oauth2_param import ( - SCIMConfigAuthenticationOauth2Param as SCIMConfigAuthenticationOauth2Param, -) -from .scim_config_mapping import SCIMConfigMapping as SCIMConfigMapping -from .scim_config_mapping_param import SCIMConfigMappingParam as SCIMConfigMappingParam -from .self_hosted_domains import SelfHostedDomains as SelfHostedDomains -from .application_create_response import ApplicationCreateResponse as ApplicationCreateResponse -from .application_update_response import ApplicationUpdateResponse as ApplicationUpdateResponse -from .application_list_response import ApplicationListResponse as ApplicationListResponse -from .application_delete_response import ApplicationDeleteResponse as ApplicationDeleteResponse -from .application_get_response import ApplicationGetResponse as ApplicationGetResponse -from .application_create_params import ApplicationCreateParams as ApplicationCreateParams -from .application_update_params import ApplicationUpdateParams as ApplicationUpdateParams -from .associated_hostnames import AssociatedHostnames as AssociatedHostnames -from .certificate import Certificate as Certificate -from .certificate_delete_response import CertificateDeleteResponse as CertificateDeleteResponse -from .certificate_create_params import CertificateCreateParams as CertificateCreateParams -from .certificate_update_params import CertificateUpdateParams as CertificateUpdateParams -from .zero_trust_group import ZeroTrustGroup as ZeroTrustGroup -from .group_delete_response import GroupDeleteResponse as GroupDeleteResponse -from .group_create_params import GroupCreateParams as GroupCreateParams -from .group_update_params import GroupUpdateParams as GroupUpdateParams -from .service_token import ServiceToken as ServiceToken -from .service_token_create_response import ServiceTokenCreateResponse as ServiceTokenCreateResponse -from .service_token_rotate_response import ServiceTokenRotateResponse as ServiceTokenRotateResponse -from .service_token_create_params import ServiceTokenCreateParams as ServiceTokenCreateParams -from .service_token_update_params import ServiceTokenUpdateParams as ServiceTokenUpdateParams -from .bookmark import Bookmark as Bookmark -from .bookmark_delete_response import BookmarkDeleteResponse as BookmarkDeleteResponse -from .bookmark_create_params import BookmarkCreateParams as BookmarkCreateParams -from .bookmark_update_params import BookmarkUpdateParams as BookmarkUpdateParams -from .key_update_response import KeyUpdateResponse as KeyUpdateResponse -from .key_get_response import KeyGetResponse as KeyGetResponse -from .key_rotate_response import KeyRotateResponse as KeyRotateResponse -from .key_update_params import KeyUpdateParams as KeyUpdateParams -from .access_user import AccessUser as AccessUser -from .custom_page import CustomPage as CustomPage -from .custom_page_without_html import CustomPageWithoutHTML as CustomPageWithoutHTML -from .custom_page_delete_response import CustomPageDeleteResponse as CustomPageDeleteResponse -from .custom_page_create_params import CustomPageCreateParams as CustomPageCreateParams -from .custom_page_update_params import CustomPageUpdateParams as CustomPageUpdateParams -from .tag import Tag as Tag -from .tag_delete_response import TagDeleteResponse as TagDeleteResponse -from .tag_create_params import TagCreateParams as TagCreateParams -from .tag_update_params import TagUpdateParams as TagUpdateParams -from .policy_create_response import PolicyCreateResponse as PolicyCreateResponse -from .policy_update_response import PolicyUpdateResponse as PolicyUpdateResponse -from .policy_list_response import PolicyListResponse as PolicyListResponse -from .policy_delete_response import PolicyDeleteResponse as PolicyDeleteResponse -from .policy_get_response import PolicyGetResponse as PolicyGetResponse -from .policy_create_params import PolicyCreateParams as PolicyCreateParams -from .policy_update_params import PolicyUpdateParams as PolicyUpdateParams diff --git a/src/cloudflare/types/zero_trust/access/access_user.py b/src/cloudflare/types/zero_trust/access/access_user.py index f351ed0a5..2430d721c 100644 --- a/src/cloudflare/types/zero_trust/access/access_user.py +++ b/src/cloudflare/types/zero_trust/access/access_user.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["AccessUser"] diff --git a/src/cloudflare/types/zero_trust/access/allowed_headers.py b/src/cloudflare/types/zero_trust/access/allowed_headers.py index c3810018c..b01102b16 100644 --- a/src/cloudflare/types/zero_trust/access/allowed_headers.py +++ b/src/cloudflare/types/zero_trust/access/allowed_headers.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AllowedHeaders"] AllowedHeaders: TypeAlias = str diff --git a/src/cloudflare/types/zero_trust/access/allowed_idps.py b/src/cloudflare/types/zero_trust/access/allowed_idps.py index 9b251c893..4c562183e 100644 --- a/src/cloudflare/types/zero_trust/access/allowed_idps.py +++ b/src/cloudflare/types/zero_trust/access/allowed_idps.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AllowedIdPs"] AllowedIdPs: TypeAlias = str diff --git a/src/cloudflare/types/zero_trust/access/allowed_methods.py b/src/cloudflare/types/zero_trust/access/allowed_methods.py index 4f631da47..89801a33a 100644 --- a/src/cloudflare/types/zero_trust/access/allowed_methods.py +++ b/src/cloudflare/types/zero_trust/access/allowed_methods.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AllowedMethods"] AllowedMethods: TypeAlias = Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"] diff --git a/src/cloudflare/types/zero_trust/access/allowed_origins.py b/src/cloudflare/types/zero_trust/access/allowed_origins.py index 9df8f14b5..7976c73d9 100644 --- a/src/cloudflare/types/zero_trust/access/allowed_origins.py +++ b/src/cloudflare/types/zero_trust/access/allowed_origins.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AllowedOrigins"] AllowedOrigins: TypeAlias = str diff --git a/src/cloudflare/types/zero_trust/access/app_id.py b/src/cloudflare/types/zero_trust/access/app_id.py index d76c5aaf1..e2392cbb6 100644 --- a/src/cloudflare/types/zero_trust/access/app_id.py +++ b/src/cloudflare/types/zero_trust/access/app_id.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AppID"] AppID: TypeAlias = str diff --git a/src/cloudflare/types/zero_trust/access/application_create_params.py b/src/cloudflare/types/zero_trust/access/application_create_params.py index ab48550d1..1c56c5b8c 100644 --- a/src/cloudflare/types/zero_trust/access/application_create_params.py +++ b/src/cloudflare/types/zero_trust/access/application_create_params.py @@ -2,40 +2,22 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, TypeAlias - -from typing import List, Iterable, Union - -from .allowed_idps import AllowedIdPs - -from .cors_headers_param import CORSHeadersParam - -from .self_hosted_domains import SelfHostedDomains +from typing import List, Union, Iterable +from typing_extensions import Required, TypeAlias, TypedDict from .decision import Decision - -from ..access_rule_param import AccessRuleParam - -from .applications.approval_group_param import ApprovalGroupParam - -from .scim_config_mapping_param import SCIMConfigMappingParam - -from .scim_config_authentication_http_basic_param import SCIMConfigAuthenticationHTTPBasicParam - -from .scim_config_authentication_oauth_bearer_token_param import SCIMConfigAuthenticationOAuthBearerTokenParam - -from .scim_config_authentication_oauth2_param import SCIMConfigAuthenticationOauth2Param - -from .saml_saas_app_param import SAMLSaaSAppParam - -from .oidc_saas_app_param import OIDCSaaSAppParam - +from .allowed_idps import AllowedIdPs from .application_type import ApplicationType - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from ..access_rule_param import AccessRuleParam +from .cors_headers_param import CORSHeadersParam +from .oidc_saas_app_param import OIDCSaaSAppParam +from .saml_saas_app_param import SAMLSaaSAppParam +from .self_hosted_domains import SelfHostedDomains +from .scim_config_mapping_param import SCIMConfigMappingParam +from .applications.approval_group_param import ApprovalGroupParam +from .scim_config_authentication_oauth2_param import SCIMConfigAuthenticationOauth2Param +from .scim_config_authentication_http_basic_param import SCIMConfigAuthenticationHTTPBasicParam +from .scim_config_authentication_oauth_bearer_token_param import SCIMConfigAuthenticationOAuthBearerTokenParam __all__ = [ "ApplicationCreateParams", diff --git a/src/cloudflare/types/zero_trust/access/application_create_response.py b/src/cloudflare/types/zero_trust/access/application_create_response.py index e140862d9..c51ce15e5 100644 --- a/src/cloudflare/types/zero_trust/access/application_create_response.py +++ b/src/cloudflare/types/zero_trust/access/application_create_response.py @@ -1,38 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .scim_config_authentication_http_basic import SCIMConfigAuthenticationHTTPBasic - -from .scim_config_authentication_oauth_bearer_token import SCIMConfigAuthenticationOAuthBearerToken - -from .scim_config_authentication_oauth2 import SCIMConfigAuthenticationOauth2 - +from typing import List, Union, Optional +from datetime import datetime from typing_extensions import TypeAlias from ...._models import BaseModel - -from typing import Optional, List - -from .scim_config_mapping import SCIMConfigMapping - from .allowed_idps import AllowedIdPs - from .cors_headers import CORSHeaders - -from datetime import datetime - -from .application_policy import ApplicationPolicy - -from .self_hosted_domains import SelfHostedDomains - -from .saml_saas_app import SAMLSaaSApp - from .oidc_saas_app import OIDCSaaSApp - +from .saml_saas_app import SAMLSaaSApp from .application_type import ApplicationType - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .application_policy import ApplicationPolicy +from .scim_config_mapping import SCIMConfigMapping +from .self_hosted_domains import SelfHostedDomains +from .scim_config_authentication_oauth2 import SCIMConfigAuthenticationOauth2 +from .scim_config_authentication_http_basic import SCIMConfigAuthenticationHTTPBasic +from .scim_config_authentication_oauth_bearer_token import SCIMConfigAuthenticationOAuthBearerToken __all__ = [ "ApplicationCreateResponse", diff --git a/src/cloudflare/types/zero_trust/access/application_delete_response.py b/src/cloudflare/types/zero_trust/access/application_delete_response.py index d0ee5add0..002b0bf6b 100644 --- a/src/cloudflare/types/zero_trust/access/application_delete_response.py +++ b/src/cloudflare/types/zero_trust/access/application_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ApplicationDeleteResponse"] diff --git a/src/cloudflare/types/zero_trust/access/application_get_response.py b/src/cloudflare/types/zero_trust/access/application_get_response.py index 1cf9bd67b..5212d4a50 100644 --- a/src/cloudflare/types/zero_trust/access/application_get_response.py +++ b/src/cloudflare/types/zero_trust/access/application_get_response.py @@ -1,38 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .scim_config_authentication_http_basic import SCIMConfigAuthenticationHTTPBasic - -from .scim_config_authentication_oauth_bearer_token import SCIMConfigAuthenticationOAuthBearerToken - -from .scim_config_authentication_oauth2 import SCIMConfigAuthenticationOauth2 - +from typing import List, Union, Optional +from datetime import datetime from typing_extensions import TypeAlias from ...._models import BaseModel - -from typing import Optional, List - -from .scim_config_mapping import SCIMConfigMapping - from .allowed_idps import AllowedIdPs - from .cors_headers import CORSHeaders - -from datetime import datetime - -from .application_policy import ApplicationPolicy - -from .self_hosted_domains import SelfHostedDomains - -from .saml_saas_app import SAMLSaaSApp - from .oidc_saas_app import OIDCSaaSApp - +from .saml_saas_app import SAMLSaaSApp from .application_type import ApplicationType - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .application_policy import ApplicationPolicy +from .scim_config_mapping import SCIMConfigMapping +from .self_hosted_domains import SelfHostedDomains +from .scim_config_authentication_oauth2 import SCIMConfigAuthenticationOauth2 +from .scim_config_authentication_http_basic import SCIMConfigAuthenticationHTTPBasic +from .scim_config_authentication_oauth_bearer_token import SCIMConfigAuthenticationOAuthBearerToken __all__ = [ "ApplicationGetResponse", diff --git a/src/cloudflare/types/zero_trust/access/application_list_response.py b/src/cloudflare/types/zero_trust/access/application_list_response.py index 96494eb4f..fef2602cc 100644 --- a/src/cloudflare/types/zero_trust/access/application_list_response.py +++ b/src/cloudflare/types/zero_trust/access/application_list_response.py @@ -1,38 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .scim_config_authentication_http_basic import SCIMConfigAuthenticationHTTPBasic - -from .scim_config_authentication_oauth_bearer_token import SCIMConfigAuthenticationOAuthBearerToken - -from .scim_config_authentication_oauth2 import SCIMConfigAuthenticationOauth2 - +from typing import List, Union, Optional +from datetime import datetime from typing_extensions import TypeAlias from ...._models import BaseModel - -from typing import Optional, List - -from .scim_config_mapping import SCIMConfigMapping - from .allowed_idps import AllowedIdPs - from .cors_headers import CORSHeaders - -from datetime import datetime - -from .application_policy import ApplicationPolicy - -from .self_hosted_domains import SelfHostedDomains - -from .saml_saas_app import SAMLSaaSApp - from .oidc_saas_app import OIDCSaaSApp - +from .saml_saas_app import SAMLSaaSApp from .application_type import ApplicationType - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .application_policy import ApplicationPolicy +from .scim_config_mapping import SCIMConfigMapping +from .self_hosted_domains import SelfHostedDomains +from .scim_config_authentication_oauth2 import SCIMConfigAuthenticationOauth2 +from .scim_config_authentication_http_basic import SCIMConfigAuthenticationHTTPBasic +from .scim_config_authentication_oauth_bearer_token import SCIMConfigAuthenticationOAuthBearerToken __all__ = [ "ApplicationListResponse", diff --git a/src/cloudflare/types/zero_trust/access/application_policy.py b/src/cloudflare/types/zero_trust/access/application_policy.py index 2dcd48e94..66ce2ee07 100644 --- a/src/cloudflare/types/zero_trust/access/application_policy.py +++ b/src/cloudflare/types/zero_trust/access/application_policy.py @@ -1,20 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List - -from .applications.approval_group import ApprovalGroup - +from typing import List, Optional from datetime import datetime from .decision import Decision - +from ...._models import BaseModel from ..access_rule import AccessRule - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .applications.approval_group import ApprovalGroup __all__ = ["ApplicationPolicy"] diff --git a/src/cloudflare/types/zero_trust/access/application_type.py b/src/cloudflare/types/zero_trust/access/application_type.py index 46e4d728d..135d57451 100644 --- a/src/cloudflare/types/zero_trust/access/application_type.py +++ b/src/cloudflare/types/zero_trust/access/application_type.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ApplicationType"] ApplicationType: TypeAlias = Literal[ diff --git a/src/cloudflare/types/zero_trust/access/application_update_params.py b/src/cloudflare/types/zero_trust/access/application_update_params.py index d31cd065f..43b50e807 100644 --- a/src/cloudflare/types/zero_trust/access/application_update_params.py +++ b/src/cloudflare/types/zero_trust/access/application_update_params.py @@ -2,40 +2,22 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, TypeAlias - -from typing import List, Iterable, Union - -from .allowed_idps import AllowedIdPs - -from .cors_headers_param import CORSHeadersParam - -from .self_hosted_domains import SelfHostedDomains +from typing import List, Union, Iterable +from typing_extensions import Required, TypeAlias, TypedDict from .decision import Decision - -from ..access_rule_param import AccessRuleParam - -from .applications.approval_group_param import ApprovalGroupParam - -from .scim_config_mapping_param import SCIMConfigMappingParam - -from .scim_config_authentication_http_basic_param import SCIMConfigAuthenticationHTTPBasicParam - -from .scim_config_authentication_oauth_bearer_token_param import SCIMConfigAuthenticationOAuthBearerTokenParam - -from .scim_config_authentication_oauth2_param import SCIMConfigAuthenticationOauth2Param - -from .saml_saas_app_param import SAMLSaaSAppParam - -from .oidc_saas_app_param import OIDCSaaSAppParam - +from .allowed_idps import AllowedIdPs from .application_type import ApplicationType - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from ..access_rule_param import AccessRuleParam +from .cors_headers_param import CORSHeadersParam +from .oidc_saas_app_param import OIDCSaaSAppParam +from .saml_saas_app_param import SAMLSaaSAppParam +from .self_hosted_domains import SelfHostedDomains +from .scim_config_mapping_param import SCIMConfigMappingParam +from .applications.approval_group_param import ApprovalGroupParam +from .scim_config_authentication_oauth2_param import SCIMConfigAuthenticationOauth2Param +from .scim_config_authentication_http_basic_param import SCIMConfigAuthenticationHTTPBasicParam +from .scim_config_authentication_oauth_bearer_token_param import SCIMConfigAuthenticationOAuthBearerTokenParam __all__ = [ "ApplicationUpdateParams", diff --git a/src/cloudflare/types/zero_trust/access/application_update_response.py b/src/cloudflare/types/zero_trust/access/application_update_response.py index c7b70adf9..d010083ab 100644 --- a/src/cloudflare/types/zero_trust/access/application_update_response.py +++ b/src/cloudflare/types/zero_trust/access/application_update_response.py @@ -1,38 +1,21 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .scim_config_authentication_http_basic import SCIMConfigAuthenticationHTTPBasic - -from .scim_config_authentication_oauth_bearer_token import SCIMConfigAuthenticationOAuthBearerToken - -from .scim_config_authentication_oauth2 import SCIMConfigAuthenticationOauth2 - +from typing import List, Union, Optional +from datetime import datetime from typing_extensions import TypeAlias from ...._models import BaseModel - -from typing import Optional, List - -from .scim_config_mapping import SCIMConfigMapping - from .allowed_idps import AllowedIdPs - from .cors_headers import CORSHeaders - -from datetime import datetime - -from .application_policy import ApplicationPolicy - -from .self_hosted_domains import SelfHostedDomains - -from .saml_saas_app import SAMLSaaSApp - from .oidc_saas_app import OIDCSaaSApp - +from .saml_saas_app import SAMLSaaSApp from .application_type import ApplicationType - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .application_policy import ApplicationPolicy +from .scim_config_mapping import SCIMConfigMapping +from .self_hosted_domains import SelfHostedDomains +from .scim_config_authentication_oauth2 import SCIMConfigAuthenticationOauth2 +from .scim_config_authentication_http_basic import SCIMConfigAuthenticationHTTPBasic +from .scim_config_authentication_oauth_bearer_token import SCIMConfigAuthenticationOAuthBearerToken __all__ = [ "ApplicationUpdateResponse", diff --git a/src/cloudflare/types/zero_trust/access/applications/__init__.py b/src/cloudflare/types/zero_trust/access/applications/__init__.py index 6ba151327..a3af535bf 100644 --- a/src/cloudflare/types/zero_trust/access/applications/__init__.py +++ b/src/cloudflare/types/zero_trust/access/applications/__init__.py @@ -3,14 +3,14 @@ from __future__ import annotations from .ca import CA as CA -from .ca_delete_response import CADeleteResponse as CADeleteResponse -from .user_policy_check_geo import UserPolicyCheckGeo as UserPolicyCheckGeo -from .user_policy_check_list_response import UserPolicyCheckListResponse as UserPolicyCheckListResponse from .approval_group import ApprovalGroup as ApprovalGroup +from .ca_delete_response import CADeleteResponse as CADeleteResponse from .approval_group_param import ApprovalGroupParam as ApprovalGroupParam -from .policy_delete_response import PolicyDeleteResponse as PolicyDeleteResponse from .policy_create_params import PolicyCreateParams as PolicyCreateParams from .policy_update_params import PolicyUpdateParams as PolicyUpdateParams -from .policy_test_create_response import PolicyTestCreateResponse as PolicyTestCreateResponse +from .user_policy_check_geo import UserPolicyCheckGeo as UserPolicyCheckGeo +from .policy_delete_response import PolicyDeleteResponse as PolicyDeleteResponse from .policy_test_get_response import PolicyTestGetResponse as PolicyTestGetResponse from .policy_test_create_params import PolicyTestCreateParams as PolicyTestCreateParams +from .policy_test_create_response import PolicyTestCreateResponse as PolicyTestCreateResponse +from .user_policy_check_list_response import UserPolicyCheckListResponse as UserPolicyCheckListResponse diff --git a/src/cloudflare/types/zero_trust/access/applications/approval_group.py b/src/cloudflare/types/zero_trust/access/applications/approval_group.py index 62332162c..d9f57327b 100644 --- a/src/cloudflare/types/zero_trust/access/applications/approval_group.py +++ b/src/cloudflare/types/zero_trust/access/applications/approval_group.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ....._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ApprovalGroup"] diff --git a/src/cloudflare/types/zero_trust/access/applications/approval_group_param.py b/src/cloudflare/types/zero_trust/access/applications/approval_group_param.py index 5c588bf7f..8428aad88 100644 --- a/src/cloudflare/types/zero_trust/access/applications/approval_group_param.py +++ b/src/cloudflare/types/zero_trust/access/applications/approval_group_param.py @@ -3,8 +3,7 @@ from __future__ import annotations from typing import List - -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["ApprovalGroupParam"] diff --git a/src/cloudflare/types/zero_trust/access/applications/ca.py b/src/cloudflare/types/zero_trust/access/applications/ca.py index 06dcee445..423af7ae0 100644 --- a/src/cloudflare/types/zero_trust/access/applications/ca.py +++ b/src/cloudflare/types/zero_trust/access/applications/ca.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["CA"] diff --git a/src/cloudflare/types/zero_trust/access/applications/ca_delete_response.py b/src/cloudflare/types/zero_trust/access/applications/ca_delete_response.py index efed12bcb..1067f82cd 100644 --- a/src/cloudflare/types/zero_trust/access/applications/ca_delete_response.py +++ b/src/cloudflare/types/zero_trust/access/applications/ca_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["CADeleteResponse"] diff --git a/src/cloudflare/types/zero_trust/access/applications/policy_create_params.py b/src/cloudflare/types/zero_trust/access/applications/policy_create_params.py index 25d1eb091..358425ac3 100644 --- a/src/cloudflare/types/zero_trust/access/applications/policy_create_params.py +++ b/src/cloudflare/types/zero_trust/access/applications/policy_create_params.py @@ -2,21 +2,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing import Iterable +from typing_extensions import Required, TypedDict from ..decision import Decision - -from typing import Iterable - from ...access_rule_param import AccessRuleParam - from .approval_group_param import ApprovalGroupParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["PolicyCreateParams"] diff --git a/src/cloudflare/types/zero_trust/access/applications/policy_delete_response.py b/src/cloudflare/types/zero_trust/access/applications/policy_delete_response.py index d0c06ddbd..1d70dce65 100644 --- a/src/cloudflare/types/zero_trust/access/applications/policy_delete_response.py +++ b/src/cloudflare/types/zero_trust/access/applications/policy_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["PolicyDeleteResponse"] diff --git a/src/cloudflare/types/zero_trust/access/applications/policy_test_create_params.py b/src/cloudflare/types/zero_trust/access/applications/policy_test_create_params.py index e2e3de50f..584752134 100755 --- a/src/cloudflare/types/zero_trust/access/applications/policy_test_create_params.py +++ b/src/cloudflare/types/zero_trust/access/applications/policy_test_create_params.py @@ -2,20 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Iterable - -from .approval_group_param import ApprovalGroupParam +from typing_extensions import Required, TypedDict from ..decision import Decision - from ...access_rule_param import AccessRuleParam - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from .approval_group_param import ApprovalGroupParam __all__ = ["PolicyTestCreateParams"] diff --git a/src/cloudflare/types/zero_trust/access/applications/policy_test_create_response.py b/src/cloudflare/types/zero_trust/access/applications/policy_test_create_response.py index 0c97e23e1..0adf47d6c 100755 --- a/src/cloudflare/types/zero_trust/access/applications/policy_test_create_response.py +++ b/src/cloudflare/types/zero_trust/access/applications/policy_test_create_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["PolicyTestCreateResponse"] diff --git a/src/cloudflare/types/zero_trust/access/applications/policy_test_get_response.py b/src/cloudflare/types/zero_trust/access/applications/policy_test_get_response.py index 26bf38d00..e3afa5bca 100755 --- a/src/cloudflare/types/zero_trust/access/applications/policy_test_get_response.py +++ b/src/cloudflare/types/zero_trust/access/applications/policy_test_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["PolicyTestGetResponse"] diff --git a/src/cloudflare/types/zero_trust/access/applications/policy_tests/user_list_response.py b/src/cloudflare/types/zero_trust/access/applications/policy_tests/user_list_response.py index 346a5fec3..eb1fd3409 100755 --- a/src/cloudflare/types/zero_trust/access/applications/policy_tests/user_list_response.py +++ b/src/cloudflare/types/zero_trust/access/applications/policy_tests/user_list_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ......_models import BaseModel - -from typing import Optional - +from typing import List, Optional from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ......_models import BaseModel __all__ = ["UserListResponse", "UserListResponseItem"] diff --git a/src/cloudflare/types/zero_trust/access/applications/policy_update_params.py b/src/cloudflare/types/zero_trust/access/applications/policy_update_params.py index 618c92fd0..88019eb67 100644 --- a/src/cloudflare/types/zero_trust/access/applications/policy_update_params.py +++ b/src/cloudflare/types/zero_trust/access/applications/policy_update_params.py @@ -2,21 +2,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing import Iterable +from typing_extensions import Required, TypedDict from ..decision import Decision - -from typing import Iterable - from ...access_rule_param import AccessRuleParam - from .approval_group_param import ApprovalGroupParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["PolicyUpdateParams"] diff --git a/src/cloudflare/types/zero_trust/access/applications/user_policy_check_geo.py b/src/cloudflare/types/zero_trust/access/applications/user_policy_check_geo.py index 7901e0c61..b99d468ab 100644 --- a/src/cloudflare/types/zero_trust/access/applications/user_policy_check_geo.py +++ b/src/cloudflare/types/zero_trust/access/applications/user_policy_check_geo.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["UserPolicyCheckGeo"] diff --git a/src/cloudflare/types/zero_trust/access/applications/user_policy_check_list_response.py b/src/cloudflare/types/zero_trust/access/applications/user_policy_check_list_response.py index 77d957d33..3622477b9 100644 --- a/src/cloudflare/types/zero_trust/access/applications/user_policy_check_list_response.py +++ b/src/cloudflare/types/zero_trust/access/applications/user_policy_check_list_response.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ....._models import BaseModel - -from typing import Optional, List - from .user_policy_check_geo import UserPolicyCheckGeo -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["UserPolicyCheckListResponse", "AppState", "UserIdentity"] diff --git a/src/cloudflare/types/zero_trust/access/associated_hostnames.py b/src/cloudflare/types/zero_trust/access/associated_hostnames.py index 86dae119a..1ca7f0c28 100644 --- a/src/cloudflare/types/zero_trust/access/associated_hostnames.py +++ b/src/cloudflare/types/zero_trust/access/associated_hostnames.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AssociatedHostnames"] AssociatedHostnames: TypeAlias = str diff --git a/src/cloudflare/types/zero_trust/access/bookmark.py b/src/cloudflare/types/zero_trust/access/bookmark.py index 0773453fc..5d20f8b96 100644 --- a/src/cloudflare/types/zero_trust/access/bookmark.py +++ b/src/cloudflare/types/zero_trust/access/bookmark.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["Bookmark"] diff --git a/src/cloudflare/types/zero_trust/access/bookmark_create_params.py b/src/cloudflare/types/zero_trust/access/bookmark_create_params.py index 471e51c03..a0278f281 100644 --- a/src/cloudflare/types/zero_trust/access/bookmark_create_params.py +++ b/src/cloudflare/types/zero_trust/access/bookmark_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["BookmarkCreateParams"] diff --git a/src/cloudflare/types/zero_trust/access/bookmark_delete_response.py b/src/cloudflare/types/zero_trust/access/bookmark_delete_response.py index 6ed1c999c..93d03aba0 100644 --- a/src/cloudflare/types/zero_trust/access/bookmark_delete_response.py +++ b/src/cloudflare/types/zero_trust/access/bookmark_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["BookmarkDeleteResponse"] diff --git a/src/cloudflare/types/zero_trust/access/bookmark_update_params.py b/src/cloudflare/types/zero_trust/access/bookmark_update_params.py index e9b8e54c8..82a32f4b5 100644 --- a/src/cloudflare/types/zero_trust/access/bookmark_update_params.py +++ b/src/cloudflare/types/zero_trust/access/bookmark_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["BookmarkUpdateParams"] diff --git a/src/cloudflare/types/zero_trust/access/certificate.py b/src/cloudflare/types/zero_trust/access/certificate.py index a1cdb542d..6c05b85be 100644 --- a/src/cloudflare/types/zero_trust/access/certificate.py +++ b/src/cloudflare/types/zero_trust/access/certificate.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List - -from .associated_hostnames import AssociatedHostnames - +from typing import List, Optional from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel +from .associated_hostnames import AssociatedHostnames __all__ = ["Certificate"] diff --git a/src/cloudflare/types/zero_trust/access/certificate_create_params.py b/src/cloudflare/types/zero_trust/access/certificate_create_params.py index 82cf9a537..d98ff4df9 100644 --- a/src/cloudflare/types/zero_trust/access/certificate_create_params.py +++ b/src/cloudflare/types/zero_trust/access/certificate_create_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import List +from typing_extensions import Required, TypedDict from .associated_hostnames import AssociatedHostnames -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["CertificateCreateParams"] diff --git a/src/cloudflare/types/zero_trust/access/certificate_delete_response.py b/src/cloudflare/types/zero_trust/access/certificate_delete_response.py index 617af1a19..011772666 100644 --- a/src/cloudflare/types/zero_trust/access/certificate_delete_response.py +++ b/src/cloudflare/types/zero_trust/access/certificate_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["CertificateDeleteResponse"] diff --git a/src/cloudflare/types/zero_trust/access/certificate_update_params.py b/src/cloudflare/types/zero_trust/access/certificate_update_params.py index b61b14efc..e546c333f 100644 --- a/src/cloudflare/types/zero_trust/access/certificate_update_params.py +++ b/src/cloudflare/types/zero_trust/access/certificate_update_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import List +from typing_extensions import Required, TypedDict from .associated_hostnames import AssociatedHostnames -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["CertificateUpdateParams"] diff --git a/src/cloudflare/types/zero_trust/access/certificates/__init__.py b/src/cloudflare/types/zero_trust/access/certificates/__init__.py index 8c3c321b1..2a8e492f5 100644 --- a/src/cloudflare/types/zero_trust/access/certificates/__init__.py +++ b/src/cloudflare/types/zero_trust/access/certificates/__init__.py @@ -3,7 +3,7 @@ from __future__ import annotations from .certificate_settings import CertificateSettings as CertificateSettings -from .certificate_settings_param import CertificateSettingsParam as CertificateSettingsParam -from .setting_update_response import SettingUpdateResponse as SettingUpdateResponse from .setting_get_response import SettingGetResponse as SettingGetResponse from .setting_update_params import SettingUpdateParams as SettingUpdateParams +from .setting_update_response import SettingUpdateResponse as SettingUpdateResponse +from .certificate_settings_param import CertificateSettingsParam as CertificateSettingsParam diff --git a/src/cloudflare/types/zero_trust/access/certificates/certificate_settings.py b/src/cloudflare/types/zero_trust/access/certificates/certificate_settings.py index c84af28c4..d120c65c6 100644 --- a/src/cloudflare/types/zero_trust/access/certificates/certificate_settings.py +++ b/src/cloudflare/types/zero_trust/access/certificates/certificate_settings.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ....._models import BaseModel __all__ = ["CertificateSettings"] diff --git a/src/cloudflare/types/zero_trust/access/certificates/certificate_settings_param.py b/src/cloudflare/types/zero_trust/access/certificates/certificate_settings_param.py index e7f1e2686..f80bcb094 100644 --- a/src/cloudflare/types/zero_trust/access/certificates/certificate_settings_param.py +++ b/src/cloudflare/types/zero_trust/access/certificates/certificate_settings_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["CertificateSettingsParam"] diff --git a/src/cloudflare/types/zero_trust/access/certificates/setting_get_response.py b/src/cloudflare/types/zero_trust/access/certificates/setting_get_response.py index bdab707fc..43fcfdc5c 100644 --- a/src/cloudflare/types/zero_trust/access/certificates/setting_get_response.py +++ b/src/cloudflare/types/zero_trust/access/certificates/setting_get_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .certificate_settings import CertificateSettings - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .certificate_settings import CertificateSettings __all__ = ["SettingGetResponse"] diff --git a/src/cloudflare/types/zero_trust/access/certificates/setting_update_params.py b/src/cloudflare/types/zero_trust/access/certificates/setting_update_params.py index f2cdbbcb7..80d05fa2e 100644 --- a/src/cloudflare/types/zero_trust/access/certificates/setting_update_params.py +++ b/src/cloudflare/types/zero_trust/access/certificates/setting_update_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Iterable +from typing_extensions import Required, TypedDict from .certificate_settings_param import CertificateSettingsParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["SettingUpdateParams"] diff --git a/src/cloudflare/types/zero_trust/access/certificates/setting_update_response.py b/src/cloudflare/types/zero_trust/access/certificates/setting_update_response.py index 2c8f3a345..1c3e2637f 100644 --- a/src/cloudflare/types/zero_trust/access/certificates/setting_update_response.py +++ b/src/cloudflare/types/zero_trust/access/certificates/setting_update_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .certificate_settings import CertificateSettings - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .certificate_settings import CertificateSettings __all__ = ["SettingUpdateResponse"] diff --git a/src/cloudflare/types/zero_trust/access/cors_headers.py b/src/cloudflare/types/zero_trust/access/cors_headers.py index 48f288abc..36337dcbc 100644 --- a/src/cloudflare/types/zero_trust/access/cors_headers.py +++ b/src/cloudflare/types/zero_trust/access/cors_headers.py @@ -1,19 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ...._models import BaseModel - -from typing import Optional, List - from .allowed_headers import AllowedHeaders - from .allowed_methods import AllowedMethods - from .allowed_origins import AllowedOrigins -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["CORSHeaders"] diff --git a/src/cloudflare/types/zero_trust/access/cors_headers_param.py b/src/cloudflare/types/zero_trust/access/cors_headers_param.py index 9139a90c5..2ddd6c8de 100644 --- a/src/cloudflare/types/zero_trust/access/cors_headers_param.py +++ b/src/cloudflare/types/zero_trust/access/cors_headers_param.py @@ -3,15 +3,12 @@ from __future__ import annotations from typing import List +from typing_extensions import TypedDict from .allowed_headers import AllowedHeaders - from .allowed_methods import AllowedMethods - from .allowed_origins import AllowedOrigins -from typing_extensions import TypedDict - __all__ = ["CORSHeadersParam"] diff --git a/src/cloudflare/types/zero_trust/access/custom_page.py b/src/cloudflare/types/zero_trust/access/custom_page.py index 392bb4bdd..4593071d3 100644 --- a/src/cloudflare/types/zero_trust/access/custom_page.py +++ b/src/cloudflare/types/zero_trust/access/custom_page.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["CustomPage"] diff --git a/src/cloudflare/types/zero_trust/access/custom_page_create_params.py b/src/cloudflare/types/zero_trust/access/custom_page_create_params.py index 7ec6aea7d..585692c65 100644 --- a/src/cloudflare/types/zero_trust/access/custom_page_create_params.py +++ b/src/cloudflare/types/zero_trust/access/custom_page_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["CustomPageCreateParams"] diff --git a/src/cloudflare/types/zero_trust/access/custom_page_delete_response.py b/src/cloudflare/types/zero_trust/access/custom_page_delete_response.py index e1a1d75d2..bb6e38bee 100644 --- a/src/cloudflare/types/zero_trust/access/custom_page_delete_response.py +++ b/src/cloudflare/types/zero_trust/access/custom_page_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["CustomPageDeleteResponse"] diff --git a/src/cloudflare/types/zero_trust/access/custom_page_update_params.py b/src/cloudflare/types/zero_trust/access/custom_page_update_params.py index 6aa32a703..14d5ec2ca 100644 --- a/src/cloudflare/types/zero_trust/access/custom_page_update_params.py +++ b/src/cloudflare/types/zero_trust/access/custom_page_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["CustomPageUpdateParams"] diff --git a/src/cloudflare/types/zero_trust/access/custom_page_without_html.py b/src/cloudflare/types/zero_trust/access/custom_page_without_html.py index 15cf63a58..d0aecfa61 100644 --- a/src/cloudflare/types/zero_trust/access/custom_page_without_html.py +++ b/src/cloudflare/types/zero_trust/access/custom_page_without_html.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["CustomPageWithoutHTML"] diff --git a/src/cloudflare/types/zero_trust/access/decision.py b/src/cloudflare/types/zero_trust/access/decision.py index 0d596fbfb..9a994691d 100644 --- a/src/cloudflare/types/zero_trust/access/decision.py +++ b/src/cloudflare/types/zero_trust/access/decision.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Decision"] Decision: TypeAlias = Literal["allow", "deny", "non_identity", "bypass"] diff --git a/src/cloudflare/types/zero_trust/access/group_create_params.py b/src/cloudflare/types/zero_trust/access/group_create_params.py index 526283fb8..04c7006d8 100644 --- a/src/cloudflare/types/zero_trust/access/group_create_params.py +++ b/src/cloudflare/types/zero_trust/access/group_create_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Iterable +from typing_extensions import Required, TypedDict from ..access_rule_param import AccessRuleParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["GroupCreateParams"] diff --git a/src/cloudflare/types/zero_trust/access/group_delete_response.py b/src/cloudflare/types/zero_trust/access/group_delete_response.py index 73d88d087..4f17b96b7 100644 --- a/src/cloudflare/types/zero_trust/access/group_delete_response.py +++ b/src/cloudflare/types/zero_trust/access/group_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["GroupDeleteResponse"] diff --git a/src/cloudflare/types/zero_trust/access/group_update_params.py b/src/cloudflare/types/zero_trust/access/group_update_params.py index 6b8283aa3..68672edb4 100644 --- a/src/cloudflare/types/zero_trust/access/group_update_params.py +++ b/src/cloudflare/types/zero_trust/access/group_update_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Iterable +from typing_extensions import Required, TypedDict from ..access_rule_param import AccessRuleParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["GroupUpdateParams"] diff --git a/src/cloudflare/types/zero_trust/access/key_get_response.py b/src/cloudflare/types/zero_trust/access/key_get_response.py index 8f9208f43..920d59e1d 100644 --- a/src/cloudflare/types/zero_trust/access/key_get_response.py +++ b/src/cloudflare/types/zero_trust/access/key_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["KeyGetResponse"] diff --git a/src/cloudflare/types/zero_trust/access/key_rotate_response.py b/src/cloudflare/types/zero_trust/access/key_rotate_response.py index 8c676deef..0797cb2d0 100644 --- a/src/cloudflare/types/zero_trust/access/key_rotate_response.py +++ b/src/cloudflare/types/zero_trust/access/key_rotate_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["KeyRotateResponse"] diff --git a/src/cloudflare/types/zero_trust/access/key_update_params.py b/src/cloudflare/types/zero_trust/access/key_update_params.py index 9103e8452..b42e91964 100644 --- a/src/cloudflare/types/zero_trust/access/key_update_params.py +++ b/src/cloudflare/types/zero_trust/access/key_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["KeyUpdateParams"] diff --git a/src/cloudflare/types/zero_trust/access/key_update_response.py b/src/cloudflare/types/zero_trust/access/key_update_response.py index 153a24795..e3112c707 100644 --- a/src/cloudflare/types/zero_trust/access/key_update_response.py +++ b/src/cloudflare/types/zero_trust/access/key_update_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["KeyUpdateResponse"] diff --git a/src/cloudflare/types/zero_trust/access/logs/__init__.py b/src/cloudflare/types/zero_trust/access/logs/__init__.py index 05b59a4b1..6054daa92 100644 --- a/src/cloudflare/types/zero_trust/access/logs/__init__.py +++ b/src/cloudflare/types/zero_trust/access/logs/__init__.py @@ -3,5 +3,5 @@ from __future__ import annotations from .access_requests import AccessRequests as AccessRequests -from .access_request_list_response import AccessRequestListResponse as AccessRequestListResponse from .access_request_list_params import AccessRequestListParams as AccessRequestListParams +from .access_request_list_response import AccessRequestListResponse as AccessRequestListResponse diff --git a/src/cloudflare/types/zero_trust/access/logs/access_request_list_params.py b/src/cloudflare/types/zero_trust/access/logs/access_request_list_params.py index ccae15c87..13be0a7d4 100644 --- a/src/cloudflare/types/zero_trust/access/logs/access_request_list_params.py +++ b/src/cloudflare/types/zero_trust/access/logs/access_request_list_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, Annotated - from typing import Union - from datetime import datetime +from typing_extensions import Literal, Required, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["AccessRequestListParams"] diff --git a/src/cloudflare/types/zero_trust/access/logs/access_request_list_response.py b/src/cloudflare/types/zero_trust/access/logs/access_request_list_response.py index 13f647c98..953cd228f 100644 --- a/src/cloudflare/types/zero_trust/access/logs/access_request_list_response.py +++ b/src/cloudflare/types/zero_trust/access/logs/access_request_list_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .access_requests import AccessRequests - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .access_requests import AccessRequests __all__ = ["AccessRequestListResponse"] diff --git a/src/cloudflare/types/zero_trust/access/logs/access_requests.py b/src/cloudflare/types/zero_trust/access/logs/access_requests.py index d81087f69..7baca33ef 100644 --- a/src/cloudflare/types/zero_trust/access/logs/access_requests.py +++ b/src/cloudflare/types/zero_trust/access/logs/access_requests.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["AccessRequests"] diff --git a/src/cloudflare/types/zero_trust/access/oidc_saas_app.py b/src/cloudflare/types/zero_trust/access/oidc_saas_app.py index 2e6c2ba17..b3e45b6e1 100644 --- a/src/cloudflare/types/zero_trust/access/oidc_saas_app.py +++ b/src/cloudflare/types/zero_trust/access/oidc_saas_app.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, Dict, List - -from typing_extensions import Literal - +from typing import Dict, List, Optional from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["OIDCSaaSApp", "CustomClaims", "CustomClaimsSource", "HybridAndImplicitOptions", "RefreshTokenOptions"] diff --git a/src/cloudflare/types/zero_trust/access/oidc_saas_app_param.py b/src/cloudflare/types/zero_trust/access/oidc_saas_app_param.py index a32db5b24..22418735d 100644 --- a/src/cloudflare/types/zero_trust/access/oidc_saas_app_param.py +++ b/src/cloudflare/types/zero_trust/access/oidc_saas_app_param.py @@ -2,10 +2,9 @@ from __future__ import annotations +from typing import Dict, List from typing_extensions import Literal, TypedDict -from typing import List, Dict - __all__ = ["OIDCSaaSAppParam", "CustomClaims", "CustomClaimsSource", "HybridAndImplicitOptions", "RefreshTokenOptions"] diff --git a/src/cloudflare/types/zero_trust/access/policy_create_params.py b/src/cloudflare/types/zero_trust/access/policy_create_params.py index 19b6329c9..a575b5e16 100644 --- a/src/cloudflare/types/zero_trust/access/policy_create_params.py +++ b/src/cloudflare/types/zero_trust/access/policy_create_params.py @@ -2,21 +2,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing import Iterable +from typing_extensions import Required, TypedDict from .decision import Decision - -from typing import Iterable - from ..access_rule_param import AccessRuleParam - from .applications.approval_group_param import ApprovalGroupParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["PolicyCreateParams"] diff --git a/src/cloudflare/types/zero_trust/access/policy_create_response.py b/src/cloudflare/types/zero_trust/access/policy_create_response.py index ac25dfe8c..767b4f9bc 100644 --- a/src/cloudflare/types/zero_trust/access/policy_create_response.py +++ b/src/cloudflare/types/zero_trust/access/policy_create_response.py @@ -1,22 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List - -from .applications.approval_group import ApprovalGroup - +from typing import List, Optional from datetime import datetime +from typing_extensions import Literal from .decision import Decision - +from ...._models import BaseModel from ..access_rule import AccessRule - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .applications.approval_group import ApprovalGroup __all__ = ["PolicyCreateResponse"] diff --git a/src/cloudflare/types/zero_trust/access/policy_delete_response.py b/src/cloudflare/types/zero_trust/access/policy_delete_response.py index 8338c5aa2..638056e64 100644 --- a/src/cloudflare/types/zero_trust/access/policy_delete_response.py +++ b/src/cloudflare/types/zero_trust/access/policy_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["PolicyDeleteResponse"] diff --git a/src/cloudflare/types/zero_trust/access/policy_get_response.py b/src/cloudflare/types/zero_trust/access/policy_get_response.py index 5711b1afc..b4476baf1 100644 --- a/src/cloudflare/types/zero_trust/access/policy_get_response.py +++ b/src/cloudflare/types/zero_trust/access/policy_get_response.py @@ -1,22 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List - -from .applications.approval_group import ApprovalGroup - +from typing import List, Optional from datetime import datetime +from typing_extensions import Literal from .decision import Decision - +from ...._models import BaseModel from ..access_rule import AccessRule - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .applications.approval_group import ApprovalGroup __all__ = ["PolicyGetResponse"] diff --git a/src/cloudflare/types/zero_trust/access/policy_list_response.py b/src/cloudflare/types/zero_trust/access/policy_list_response.py index 2274bc9c5..2a2272663 100644 --- a/src/cloudflare/types/zero_trust/access/policy_list_response.py +++ b/src/cloudflare/types/zero_trust/access/policy_list_response.py @@ -1,22 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List - -from .applications.approval_group import ApprovalGroup - +from typing import List, Optional from datetime import datetime +from typing_extensions import Literal from .decision import Decision - +from ...._models import BaseModel from ..access_rule import AccessRule - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .applications.approval_group import ApprovalGroup __all__ = ["PolicyListResponse"] diff --git a/src/cloudflare/types/zero_trust/access/policy_update_params.py b/src/cloudflare/types/zero_trust/access/policy_update_params.py index 642da22f9..7ac64eebe 100644 --- a/src/cloudflare/types/zero_trust/access/policy_update_params.py +++ b/src/cloudflare/types/zero_trust/access/policy_update_params.py @@ -2,21 +2,13 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing import Iterable +from typing_extensions import Required, TypedDict from .decision import Decision - -from typing import Iterable - from ..access_rule_param import AccessRuleParam - from .applications.approval_group_param import ApprovalGroupParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["PolicyUpdateParams"] diff --git a/src/cloudflare/types/zero_trust/access/policy_update_response.py b/src/cloudflare/types/zero_trust/access/policy_update_response.py index 96f1c4562..8582785d4 100644 --- a/src/cloudflare/types/zero_trust/access/policy_update_response.py +++ b/src/cloudflare/types/zero_trust/access/policy_update_response.py @@ -1,22 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List - -from .applications.approval_group import ApprovalGroup - +from typing import List, Optional from datetime import datetime +from typing_extensions import Literal from .decision import Decision - +from ...._models import BaseModel from ..access_rule import AccessRule - -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .applications.approval_group import ApprovalGroup __all__ = ["PolicyUpdateResponse"] diff --git a/src/cloudflare/types/zero_trust/access/saas_app_name_format.py b/src/cloudflare/types/zero_trust/access/saas_app_name_format.py index f6549d153..d16a7495a 100644 --- a/src/cloudflare/types/zero_trust/access/saas_app_name_format.py +++ b/src/cloudflare/types/zero_trust/access/saas_app_name_format.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SaaSAppNameFormat"] SaaSAppNameFormat: TypeAlias = Literal[ diff --git a/src/cloudflare/types/zero_trust/access/saas_app_name_id_format.py b/src/cloudflare/types/zero_trust/access/saas_app_name_id_format.py index c695e1f3d..e527a9d8c 100644 --- a/src/cloudflare/types/zero_trust/access/saas_app_name_id_format.py +++ b/src/cloudflare/types/zero_trust/access/saas_app_name_id_format.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SaaSAppNameIDFormat"] SaaSAppNameIDFormat: TypeAlias = Literal["id", "email"] diff --git a/src/cloudflare/types/zero_trust/access/saas_app_source.py b/src/cloudflare/types/zero_trust/access/saas_app_source.py index bca5ba7ee..5a4e157c1 100644 --- a/src/cloudflare/types/zero_trust/access/saas_app_source.py +++ b/src/cloudflare/types/zero_trust/access/saas_app_source.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Dict, Optional + from ...._models import BaseModel -from typing import Optional, Dict - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SaaSAppSource"] diff --git a/src/cloudflare/types/zero_trust/access/saas_app_source_param.py b/src/cloudflare/types/zero_trust/access/saas_app_source_param.py index 70c17cdad..12b4abc2d 100644 --- a/src/cloudflare/types/zero_trust/access/saas_app_source_param.py +++ b/src/cloudflare/types/zero_trust/access/saas_app_source_param.py @@ -3,7 +3,6 @@ from __future__ import annotations from typing import Dict - from typing_extensions import TypedDict __all__ = ["SaaSAppSourceParam"] diff --git a/src/cloudflare/types/zero_trust/access/saml_saas_app.py b/src/cloudflare/types/zero_trust/access/saml_saas_app.py index 69540f853..495e76604 100644 --- a/src/cloudflare/types/zero_trust/access/saml_saas_app.py +++ b/src/cloudflare/types/zero_trust/access/saml_saas_app.py @@ -1,22 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - -from .saas_app_name_format import SaaSAppNameFormat - -from .saas_app_source import SaaSAppSource - -from typing_extensions import Literal - from datetime import datetime - -from .saas_app_name_id_format import SaaSAppNameIDFormat - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel +from .saas_app_source import SaaSAppSource +from .saas_app_name_format import SaaSAppNameFormat +from .saas_app_name_id_format import SaaSAppNameIDFormat __all__ = ["SAMLSaaSApp", "CustomAttributes"] diff --git a/src/cloudflare/types/zero_trust/access/saml_saas_app_param.py b/src/cloudflare/types/zero_trust/access/saml_saas_app_param.py index 996f9095b..8eace9c06 100644 --- a/src/cloudflare/types/zero_trust/access/saml_saas_app_param.py +++ b/src/cloudflare/types/zero_trust/access/saml_saas_app_param.py @@ -4,11 +4,9 @@ from __future__ import annotations from typing_extensions import Literal, TypedDict -from .saas_app_name_id_format import SaaSAppNameIDFormat - from .saas_app_name_format import SaaSAppNameFormat - from .saas_app_source_param import SaaSAppSourceParam +from .saas_app_name_id_format import SaaSAppNameIDFormat __all__ = ["SAMLSaaSAppParam", "CustomAttributes"] diff --git a/src/cloudflare/types/zero_trust/access/scim_config_authentication_http_basic.py b/src/cloudflare/types/zero_trust/access/scim_config_authentication_http_basic.py index 062ae8a6b..48fe4e1f4 100644 --- a/src/cloudflare/types/zero_trust/access/scim_config_authentication_http_basic.py +++ b/src/cloudflare/types/zero_trust/access/scim_config_authentication_http_basic.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing_extensions import Literal + from ...._models import BaseModel -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SCIMConfigAuthenticationHTTPBasic"] diff --git a/src/cloudflare/types/zero_trust/access/scim_config_authentication_http_basic_param.py b/src/cloudflare/types/zero_trust/access/scim_config_authentication_http_basic_param.py index 76116faa2..bf4422287 100644 --- a/src/cloudflare/types/zero_trust/access/scim_config_authentication_http_basic_param.py +++ b/src/cloudflare/types/zero_trust/access/scim_config_authentication_http_basic_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["SCIMConfigAuthenticationHTTPBasicParam"] diff --git a/src/cloudflare/types/zero_trust/access/scim_config_authentication_oauth2.py b/src/cloudflare/types/zero_trust/access/scim_config_authentication_oauth2.py index 6a92bb156..407d8011b 100644 --- a/src/cloudflare/types/zero_trust/access/scim_config_authentication_oauth2.py +++ b/src/cloudflare/types/zero_trust/access/scim_config_authentication_oauth2.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ...._models import BaseModel -from typing_extensions import Literal - -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SCIMConfigAuthenticationOauth2"] diff --git a/src/cloudflare/types/zero_trust/access/scim_config_authentication_oauth2_param.py b/src/cloudflare/types/zero_trust/access/scim_config_authentication_oauth2_param.py index b2c09cb9a..aa5dc1492 100644 --- a/src/cloudflare/types/zero_trust/access/scim_config_authentication_oauth2_param.py +++ b/src/cloudflare/types/zero_trust/access/scim_config_authentication_oauth2_param.py @@ -2,9 +2,8 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required - from typing import List +from typing_extensions import Literal, Required, TypedDict __all__ = ["SCIMConfigAuthenticationOauth2Param"] diff --git a/src/cloudflare/types/zero_trust/access/scim_config_authentication_oauth_bearer_token.py b/src/cloudflare/types/zero_trust/access/scim_config_authentication_oauth_bearer_token.py index e77e1458c..473d47c4a 100644 --- a/src/cloudflare/types/zero_trust/access/scim_config_authentication_oauth_bearer_token.py +++ b/src/cloudflare/types/zero_trust/access/scim_config_authentication_oauth_bearer_token.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing_extensions import Literal + from ...._models import BaseModel -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SCIMConfigAuthenticationOAuthBearerToken"] diff --git a/src/cloudflare/types/zero_trust/access/scim_config_authentication_oauth_bearer_token_param.py b/src/cloudflare/types/zero_trust/access/scim_config_authentication_oauth_bearer_token_param.py index f79d22cf1..9bcc7d92e 100644 --- a/src/cloudflare/types/zero_trust/access/scim_config_authentication_oauth_bearer_token_param.py +++ b/src/cloudflare/types/zero_trust/access/scim_config_authentication_oauth_bearer_token_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["SCIMConfigAuthenticationOAuthBearerTokenParam"] diff --git a/src/cloudflare/types/zero_trust/access/scim_config_mapping.py b/src/cloudflare/types/zero_trust/access/scim_config_mapping.py index 275dd156c..4770953e1 100644 --- a/src/cloudflare/types/zero_trust/access/scim_config_mapping.py +++ b/src/cloudflare/types/zero_trust/access/scim_config_mapping.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["SCIMConfigMapping", "Operations"] diff --git a/src/cloudflare/types/zero_trust/access/scim_config_mapping_param.py b/src/cloudflare/types/zero_trust/access/scim_config_mapping_param.py index 453d9749c..668352178 100644 --- a/src/cloudflare/types/zero_trust/access/scim_config_mapping_param.py +++ b/src/cloudflare/types/zero_trust/access/scim_config_mapping_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["SCIMConfigMappingParam", "Operations"] diff --git a/src/cloudflare/types/zero_trust/access/self_hosted_domains.py b/src/cloudflare/types/zero_trust/access/self_hosted_domains.py index 23391dea2..196ba968b 100644 --- a/src/cloudflare/types/zero_trust/access/self_hosted_domains.py +++ b/src/cloudflare/types/zero_trust/access/self_hosted_domains.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SelfHostedDomains"] SelfHostedDomains: TypeAlias = str diff --git a/src/cloudflare/types/zero_trust/access/service_token.py b/src/cloudflare/types/zero_trust/access/service_token.py index ef5aa9655..d67695749 100644 --- a/src/cloudflare/types/zero_trust/access/service_token.py +++ b/src/cloudflare/types/zero_trust/access/service_token.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ServiceToken"] diff --git a/src/cloudflare/types/zero_trust/access/service_token_create_params.py b/src/cloudflare/types/zero_trust/access/service_token_create_params.py index db20da7f2..873816432 100644 --- a/src/cloudflare/types/zero_trust/access/service_token_create_params.py +++ b/src/cloudflare/types/zero_trust/access/service_token_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ServiceTokenCreateParams"] diff --git a/src/cloudflare/types/zero_trust/access/service_token_create_response.py b/src/cloudflare/types/zero_trust/access/service_token_create_response.py index b2fcade7e..e74b74cd8 100644 --- a/src/cloudflare/types/zero_trust/access/service_token_create_response.py +++ b/src/cloudflare/types/zero_trust/access/service_token_create_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ServiceTokenCreateResponse"] diff --git a/src/cloudflare/types/zero_trust/access/service_token_rotate_response.py b/src/cloudflare/types/zero_trust/access/service_token_rotate_response.py index 1e8e7abaa..b4a74bcfc 100644 --- a/src/cloudflare/types/zero_trust/access/service_token_rotate_response.py +++ b/src/cloudflare/types/zero_trust/access/service_token_rotate_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ServiceTokenRotateResponse"] diff --git a/src/cloudflare/types/zero_trust/access/service_token_update_params.py b/src/cloudflare/types/zero_trust/access/service_token_update_params.py index 75e89c923..93dc5d1c5 100644 --- a/src/cloudflare/types/zero_trust/access/service_token_update_params.py +++ b/src/cloudflare/types/zero_trust/access/service_token_update_params.py @@ -4,11 +4,6 @@ from __future__ import annotations from typing_extensions import TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["ServiceTokenUpdateParams"] diff --git a/src/cloudflare/types/zero_trust/access/tag.py b/src/cloudflare/types/zero_trust/access/tag.py index a1ed2f227..bf3860155 100644 --- a/src/cloudflare/types/zero_trust/access/tag.py +++ b/src/cloudflare/types/zero_trust/access/tag.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["Tag"] diff --git a/src/cloudflare/types/zero_trust/access/tag_create_params.py b/src/cloudflare/types/zero_trust/access/tag_create_params.py index 797edaded..6b88e56c7 100644 --- a/src/cloudflare/types/zero_trust/access/tag_create_params.py +++ b/src/cloudflare/types/zero_trust/access/tag_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["TagCreateParams"] diff --git a/src/cloudflare/types/zero_trust/access/tag_delete_response.py b/src/cloudflare/types/zero_trust/access/tag_delete_response.py index 3efd0c1ed..8ffb88e56 100644 --- a/src/cloudflare/types/zero_trust/access/tag_delete_response.py +++ b/src/cloudflare/types/zero_trust/access/tag_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["TagDeleteResponse"] diff --git a/src/cloudflare/types/zero_trust/access/tag_update_params.py b/src/cloudflare/types/zero_trust/access/tag_update_params.py index 393bd75bb..594920024 100644 --- a/src/cloudflare/types/zero_trust/access/tag_update_params.py +++ b/src/cloudflare/types/zero_trust/access/tag_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["TagUpdateParams"] diff --git a/src/cloudflare/types/zero_trust/access/users/__init__.py b/src/cloudflare/types/zero_trust/access/users/__init__.py index d94da980b..5f23decf1 100644 --- a/src/cloudflare/types/zero_trust/access/users/__init__.py +++ b/src/cloudflare/types/zero_trust/access/users/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations -from .active_session_list_response import ActiveSessionListResponse as ActiveSessionListResponse -from .active_session_get_response import ActiveSessionGetResponse as ActiveSessionGetResponse from .identity import Identity as Identity from .failed_login_list_response import FailedLoginListResponse as FailedLoginListResponse +from .active_session_get_response import ActiveSessionGetResponse as ActiveSessionGetResponse +from .active_session_list_response import ActiveSessionListResponse as ActiveSessionListResponse diff --git a/src/cloudflare/types/zero_trust/access/users/active_session_get_response.py b/src/cloudflare/types/zero_trust/access/users/active_session_get_response.py index 8708036cd..2414f09a5 100644 --- a/src/cloudflare/types/zero_trust/access/users/active_session_get_response.py +++ b/src/cloudflare/types/zero_trust/access/users/active_session_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel +from typing import Dict, Optional -from typing import Optional, Dict - -from ..applications.user_policy_check_geo import UserPolicyCheckGeo - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel +from ..applications.user_policy_check_geo import UserPolicyCheckGeo + __all__ = ["ActiveSessionGetResponse", "DeviceSessions", "DevicePosture", "DevicePostureCheck", "IdP", "MTLSAuth"] diff --git a/src/cloudflare/types/zero_trust/access/users/active_session_list_response.py b/src/cloudflare/types/zero_trust/access/users/active_session_list_response.py index 775e76fd5..ac0f4059a 100644 --- a/src/cloudflare/types/zero_trust/access/users/active_session_list_response.py +++ b/src/cloudflare/types/zero_trust/access/users/active_session_list_response.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Dict, Optional + from ....._models import BaseModel -from typing import Optional, Dict - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ActiveSessionListResponse", "Metadata", "MetadataApps"] diff --git a/src/cloudflare/types/zero_trust/access/users/failed_login_list_response.py b/src/cloudflare/types/zero_trust/access/users/failed_login_list_response.py index 157d7df59..358f7afc4 100644 --- a/src/cloudflare/types/zero_trust/access/users/failed_login_list_response.py +++ b/src/cloudflare/types/zero_trust/access/users/failed_login_list_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["FailedLoginListResponse"] diff --git a/src/cloudflare/types/zero_trust/access/users/identity.py b/src/cloudflare/types/zero_trust/access/users/identity.py index 77bf15d8f..52f27fee6 100644 --- a/src/cloudflare/types/zero_trust/access/users/identity.py +++ b/src/cloudflare/types/zero_trust/access/users/identity.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel +from typing import Dict, Optional -from typing import Optional, Dict - -from ..applications.user_policy_check_geo import UserPolicyCheckGeo - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel +from ..applications.user_policy_check_geo import UserPolicyCheckGeo + __all__ = ["Identity", "DeviceSessions", "DevicePosture", "DevicePostureCheck", "IdP", "MTLSAuth"] diff --git a/src/cloudflare/types/zero_trust/access/zero_trust_group.py b/src/cloudflare/types/zero_trust/access/zero_trust_group.py index 81ea5ae91..eae4f03b8 100644 --- a/src/cloudflare/types/zero_trust/access/zero_trust_group.py +++ b/src/cloudflare/types/zero_trust/access/zero_trust_group.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime +from ...._models import BaseModel from ..access_rule import AccessRule -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ZeroTrustGroup"] diff --git a/src/cloudflare/types/zero_trust/access_device_posture_rule.py b/src/cloudflare/types/zero_trust/access_device_posture_rule.py index 0d28654cb..d4eb80631 100644 --- a/src/cloudflare/types/zero_trust/access_device_posture_rule.py +++ b/src/cloudflare/types/zero_trust/access_device_posture_rule.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["AccessDevicePostureRule", "DevicePosture"] diff --git a/src/cloudflare/types/zero_trust/access_device_posture_rule_param.py b/src/cloudflare/types/zero_trust/access_device_posture_rule_param.py index 717a08885..d67cc39b2 100644 --- a/src/cloudflare/types/zero_trust/access_device_posture_rule_param.py +++ b/src/cloudflare/types/zero_trust/access_device_posture_rule_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["AccessDevicePostureRuleParam", "DevicePosture"] diff --git a/src/cloudflare/types/zero_trust/access_rule.py b/src/cloudflare/types/zero_trust/access_rule.py index 655f8ab92..0b38dc8b6 100644 --- a/src/cloudflare/types/zero_trust/access_rule.py +++ b/src/cloudflare/types/zero_trust/access_rule.py @@ -1,48 +1,27 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .email_rule import EmailRule - -from .email_list_rule import EmailListRule - -from .domain_rule import DomainRule - -from .everyone_rule import EveryoneRule - -from .ip_rule import IPRule - -from .ip_list_rule import IPListRule - -from .certificate_rule import CertificateRule - -from .group_rule import GroupRule - -from .azure_group_rule import AzureGroupRule - -from .github_organization_rule import GitHubOrganizationRule - -from .gsuite_group_rule import GSuiteGroupRule - -from .okta_group_rule import OktaGroupRule - -from .saml_group_rule import SAMLGroupRule - -from .service_token_rule import ServiceTokenRule - -from .any_valid_service_token_rule import AnyValidServiceTokenRule - -from .external_evaluation_rule import ExternalEvaluationRule - -from .country_rule import CountryRule - -from .authentication_method_rule import AuthenticationMethodRule - -from .access_device_posture_rule import AccessDevicePostureRule - +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .ip_rule import IPRule +from .email_rule import EmailRule +from .group_rule import GroupRule +from .domain_rule import DomainRule +from .country_rule import CountryRule +from .ip_list_rule import IPListRule +from .everyone_rule import EveryoneRule +from .email_list_rule import EmailListRule +from .okta_group_rule import OktaGroupRule +from .saml_group_rule import SAMLGroupRule +from .azure_group_rule import AzureGroupRule +from .certificate_rule import CertificateRule +from .gsuite_group_rule import GSuiteGroupRule +from .service_token_rule import ServiceTokenRule +from .external_evaluation_rule import ExternalEvaluationRule +from .github_organization_rule import GitHubOrganizationRule +from .access_device_posture_rule import AccessDevicePostureRule +from .authentication_method_rule import AuthenticationMethodRule +from .any_valid_service_token_rule import AnyValidServiceTokenRule __all__ = ["AccessRule"] diff --git a/src/cloudflare/types/zero_trust/access_rule_param.py b/src/cloudflare/types/zero_trust/access_rule_param.py index 3ee53cd7c..258173533 100644 --- a/src/cloudflare/types/zero_trust/access_rule_param.py +++ b/src/cloudflare/types/zero_trust/access_rule_param.py @@ -2,47 +2,28 @@ from __future__ import annotations -from .email_rule_param import EmailRuleParam - -from .email_list_rule_param import EmailListRuleParam - -from .domain_rule_param import DomainRuleParam - -from .everyone_rule_param import EveryoneRuleParam - -from .ip_rule_param import IPRuleParam - -from .ip_list_rule_param import IPListRuleParam - -from .certificate_rule_param import CertificateRuleParam - -from .group_rule_param import GroupRuleParam - -from .azure_group_rule_param import AzureGroupRuleParam - -from .github_organization_rule_param import GitHubOrganizationRuleParam - -from .gsuite_group_rule_param import GSuiteGroupRuleParam - -from .okta_group_rule_param import OktaGroupRuleParam - -from .saml_group_rule_param import SAMLGroupRuleParam - -from .service_token_rule_param import ServiceTokenRuleParam - -from .any_valid_service_token_rule_param import AnyValidServiceTokenRuleParam - -from .external_evaluation_rule_param import ExternalEvaluationRuleParam - -from .country_rule_param import CountryRuleParam - -from .authentication_method_rule_param import AuthenticationMethodRuleParam - -from .access_device_posture_rule_param import AccessDevicePostureRuleParam - +from typing import Union from typing_extensions import TypeAlias -from typing import Union +from .ip_rule_param import IPRuleParam +from .email_rule_param import EmailRuleParam +from .group_rule_param import GroupRuleParam +from .domain_rule_param import DomainRuleParam +from .country_rule_param import CountryRuleParam +from .ip_list_rule_param import IPListRuleParam +from .everyone_rule_param import EveryoneRuleParam +from .email_list_rule_param import EmailListRuleParam +from .okta_group_rule_param import OktaGroupRuleParam +from .saml_group_rule_param import SAMLGroupRuleParam +from .azure_group_rule_param import AzureGroupRuleParam +from .certificate_rule_param import CertificateRuleParam +from .gsuite_group_rule_param import GSuiteGroupRuleParam +from .service_token_rule_param import ServiceTokenRuleParam +from .external_evaluation_rule_param import ExternalEvaluationRuleParam +from .github_organization_rule_param import GitHubOrganizationRuleParam +from .access_device_posture_rule_param import AccessDevicePostureRuleParam +from .authentication_method_rule_param import AuthenticationMethodRuleParam +from .any_valid_service_token_rule_param import AnyValidServiceTokenRuleParam __all__ = ["AccessRuleParam"] diff --git a/src/cloudflare/types/zero_trust/any_valid_service_token_rule.py b/src/cloudflare/types/zero_trust/any_valid_service_token_rule.py index 4a6d281e7..9ab0ef01a 100644 --- a/src/cloudflare/types/zero_trust/any_valid_service_token_rule.py +++ b/src/cloudflare/types/zero_trust/any_valid_service_token_rule.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["AnyValidServiceTokenRule"] diff --git a/src/cloudflare/types/zero_trust/any_valid_service_token_rule_param.py b/src/cloudflare/types/zero_trust/any_valid_service_token_rule_param.py index da2376e2b..462d4957f 100644 --- a/src/cloudflare/types/zero_trust/any_valid_service_token_rule_param.py +++ b/src/cloudflare/types/zero_trust/any_valid_service_token_rule_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["AnyValidServiceTokenRuleParam"] diff --git a/src/cloudflare/types/zero_trust/authentication_method_rule.py b/src/cloudflare/types/zero_trust/authentication_method_rule.py index cb3ee313f..ab9bdced2 100644 --- a/src/cloudflare/types/zero_trust/authentication_method_rule.py +++ b/src/cloudflare/types/zero_trust/authentication_method_rule.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["AuthenticationMethodRule", "AuthMethod"] diff --git a/src/cloudflare/types/zero_trust/authentication_method_rule_param.py b/src/cloudflare/types/zero_trust/authentication_method_rule_param.py index ed5668485..369c85cbe 100644 --- a/src/cloudflare/types/zero_trust/authentication_method_rule_param.py +++ b/src/cloudflare/types/zero_trust/authentication_method_rule_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["AuthenticationMethodRuleParam", "AuthMethod"] diff --git a/src/cloudflare/types/zero_trust/azure_ad.py b/src/cloudflare/types/zero_trust/azure_ad.py index 2ec98ae10..359f85641 100644 --- a/src/cloudflare/types/zero_trust/azure_ad.py +++ b/src/cloudflare/types/zero_trust/azure_ad.py @@ -1,19 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ..._models import BaseModel - -from typing import Optional, List - -from typing_extensions import Literal - from .identity_provider_type import IdentityProviderType - from .identity_provider_scim_config import IdentityProviderSCIMConfig -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AzureAD", "Config"] diff --git a/src/cloudflare/types/zero_trust/azure_group_rule.py b/src/cloudflare/types/zero_trust/azure_group_rule.py index 11ce5e332..6df84aaf2 100644 --- a/src/cloudflare/types/zero_trust/azure_group_rule.py +++ b/src/cloudflare/types/zero_trust/azure_group_rule.py @@ -1,11 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["AzureGroupRule", "AzureAD"] diff --git a/src/cloudflare/types/zero_trust/azure_group_rule_param.py b/src/cloudflare/types/zero_trust/azure_group_rule_param.py index 8b06744f7..93a64fab9 100644 --- a/src/cloudflare/types/zero_trust/azure_group_rule_param.py +++ b/src/cloudflare/types/zero_trust/azure_group_rule_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated +from typing_extensions import Required, Annotated, TypedDict from ..._utils import PropertyInfo diff --git a/src/cloudflare/types/zero_trust/certificate_rule.py b/src/cloudflare/types/zero_trust/certificate_rule.py index c62dd56d2..fb7606060 100644 --- a/src/cloudflare/types/zero_trust/certificate_rule.py +++ b/src/cloudflare/types/zero_trust/certificate_rule.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["CertificateRule"] diff --git a/src/cloudflare/types/zero_trust/certificate_rule_param.py b/src/cloudflare/types/zero_trust/certificate_rule_param.py index 45de309d8..a93d12ae1 100644 --- a/src/cloudflare/types/zero_trust/certificate_rule_param.py +++ b/src/cloudflare/types/zero_trust/certificate_rule_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["CertificateRuleParam"] diff --git a/src/cloudflare/types/zero_trust/connectivity_setting_edit_params.py b/src/cloudflare/types/zero_trust/connectivity_setting_edit_params.py index e3cfd5b1e..22aee0433 100644 --- a/src/cloudflare/types/zero_trust/connectivity_setting_edit_params.py +++ b/src/cloudflare/types/zero_trust/connectivity_setting_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ConnectivitySettingEditParams"] diff --git a/src/cloudflare/types/zero_trust/connectivity_setting_edit_response.py b/src/cloudflare/types/zero_trust/connectivity_setting_edit_response.py index a40dd52d7..4ccf481bb 100644 --- a/src/cloudflare/types/zero_trust/connectivity_setting_edit_response.py +++ b/src/cloudflare/types/zero_trust/connectivity_setting_edit_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ConnectivitySettingEditResponse"] diff --git a/src/cloudflare/types/zero_trust/connectivity_setting_get_response.py b/src/cloudflare/types/zero_trust/connectivity_setting_get_response.py index 2a62e9bd6..11c0634e5 100644 --- a/src/cloudflare/types/zero_trust/connectivity_setting_get_response.py +++ b/src/cloudflare/types/zero_trust/connectivity_setting_get_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ConnectivitySettingGetResponse"] diff --git a/src/cloudflare/types/zero_trust/country_rule.py b/src/cloudflare/types/zero_trust/country_rule.py index ee6c168b7..0d84bda70 100644 --- a/src/cloudflare/types/zero_trust/country_rule.py +++ b/src/cloudflare/types/zero_trust/country_rule.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["CountryRule", "Geo"] diff --git a/src/cloudflare/types/zero_trust/country_rule_param.py b/src/cloudflare/types/zero_trust/country_rule_param.py index b57523e19..f6cc5b280 100644 --- a/src/cloudflare/types/zero_trust/country_rule_param.py +++ b/src/cloudflare/types/zero_trust/country_rule_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["CountryRuleParam", "Geo"] diff --git a/src/cloudflare/types/zero_trust/device.py b/src/cloudflare/types/zero_trust/device.py index 5c130f7de..41c7eba97 100644 --- a/src/cloudflare/types/zero_trust/device.py +++ b/src/cloudflare/types/zero_trust/device.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Device", "User"] diff --git a/src/cloudflare/types/zero_trust/device_experience_monitor.py b/src/cloudflare/types/zero_trust/device_experience_monitor.py index cf17c608d..cb84b45bf 100644 --- a/src/cloudflare/types/zero_trust/device_experience_monitor.py +++ b/src/cloudflare/types/zero_trust/device_experience_monitor.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["DeviceExperienceMonitor"] diff --git a/src/cloudflare/types/zero_trust/device_get_response.py b/src/cloudflare/types/zero_trust/device_get_response.py index 4d7f3001a..ba79380b7 100644 --- a/src/cloudflare/types/zero_trust/device_get_response.py +++ b/src/cloudflare/types/zero_trust/device_get_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["DeviceGetResponse"] DeviceGetResponse: TypeAlias = Union[str, object, None] diff --git a/src/cloudflare/types/zero_trust/devices/__init__.py b/src/cloudflare/types/zero_trust/devices/__init__.py index 8304cdce7..2ff931fdc 100644 --- a/src/cloudflare/types/zero_trust/devices/__init__.py +++ b/src/cloudflare/types/zero_trust/devices/__init__.py @@ -2,62 +2,62 @@ from __future__ import annotations +from .file_input import FileInput as FileInput from .schema_data import SchemaData as SchemaData -from .schema_data_param import SchemaDataParam as SchemaDataParam from .schema_http import SchemaHTTP as SchemaHTTP -from .dex_test_delete_response import DEXTestDeleteResponse as DEXTestDeleteResponse -from .dex_test_create_params import DEXTestCreateParams as DEXTestCreateParams -from .dex_test_update_params import DEXTestUpdateParams as DEXTestUpdateParams +from .device_input import DeviceInput as DeviceInput +from .device_match import DeviceMatch as DeviceMatch +from .intune_input import IntuneInput as IntuneInput +from .kolide_input import KolideInput as KolideInput +from .tanium_input import TaniumInput as TaniumInput from .device_network import DeviceNetwork as DeviceNetwork -from .network_delete_response import NetworkDeleteResponse as NetworkDeleteResponse +from .firewall_input import FirewallInput as FirewallInput +from .device_settings import DeviceSettings as DeviceSettings +from .settings_policy import SettingsPolicy as SettingsPolicy +from .file_input_param import FileInputParam as FileInputParam +from .os_version_input import OSVersionInput as OSVersionInput +from .carbonblack_input import CarbonblackInput as CarbonblackInput +from .crowdstrike_input import CrowdstrikeInput as CrowdstrikeInput +from .schema_data_param import SchemaDataParam as SchemaDataParam +from .sentinelone_input import SentineloneInput as SentineloneInput +from .device_input_param import DeviceInputParam as DeviceInputParam +from .device_match_param import DeviceMatchParam as DeviceMatchParam +from .intune_input_param import IntuneInputParam as IntuneInputParam +from .kolide_input_param import KolideInputParam as KolideInputParam +from .policy_edit_params import PolicyEditParams as PolicyEditParams +from .tanium_input_param import TaniumInputParam as TaniumInputParam +from .device_posture_rule import DevicePostureRule as DevicePostureRule +from .domain_joined_input import DomainJoinedInput as DomainJoinedInput +from .setting_edit_params import SettingEditParams as SettingEditParams +from .workspace_one_input import WorkspaceOneInput as WorkspaceOneInput +from .firewall_input_param import FirewallInputParam as FirewallInputParam +from .policy_create_params import PolicyCreateParams as PolicyCreateParams +from .revoke_create_params import RevokeCreateParams as RevokeCreateParams +from .disk_encryption_input import DiskEncryptionInput as DiskEncryptionInput from .network_create_params import NetworkCreateParams as NetworkCreateParams from .network_update_params import NetworkUpdateParams as NetworkUpdateParams -from .settings_policy import SettingsPolicy as SettingsPolicy -from .policy_delete_response import PolicyDeleteResponse as PolicyDeleteResponse -from .policy_create_params import PolicyCreateParams as PolicyCreateParams -from .policy_edit_params import PolicyEditParams as PolicyEditParams -from .carbonblack_input import CarbonblackInput as CarbonblackInput -from .client_certificate_input import ClientCertificateInput as ClientCertificateInput -from .client_certificate_input_param import ClientCertificateInputParam as ClientCertificateInputParam -from .crowdstrike_input import CrowdstrikeInput as CrowdstrikeInput -from .crowdstrike_input_param import CrowdstrikeInputParam as CrowdstrikeInputParam -from .device_input import DeviceInput as DeviceInput -from .device_input_param import DeviceInputParam as DeviceInputParam -from .device_match import DeviceMatch as DeviceMatch -from .device_match_param import DeviceMatchParam as DeviceMatchParam -from .device_posture_rule import DevicePostureRule as DevicePostureRule -from .disk_encryption_input import DiskEncryptionInput as DiskEncryptionInput -from .disk_encryption_input_param import DiskEncryptionInputParam as DiskEncryptionInputParam -from .domain_joined_input import DomainJoinedInput as DomainJoinedInput -from .domain_joined_input_param import DomainJoinedInputParam as DomainJoinedInputParam -from .file_input import FileInput as FileInput -from .file_input_param import FileInputParam as FileInputParam -from .firewall_input import FirewallInput as FirewallInput -from .firewall_input_param import FirewallInputParam as FirewallInputParam -from .intune_input import IntuneInput as IntuneInput -from .intune_input_param import IntuneInputParam as IntuneInputParam -from .kolide_input import KolideInput as KolideInput -from .kolide_input_param import KolideInputParam as KolideInputParam -from .os_version_input import OSVersionInput as OSVersionInput -from .os_version_input_param import OSVersionInputParam as OSVersionInputParam -from .sentinelone_input import SentineloneInput as SentineloneInput -from .sentinelone_input_param import SentineloneInputParam as SentineloneInputParam -from .sentinelone_s2s_input import SentineloneS2sInput as SentineloneS2sInput -from .sentinelone_s2s_input_param import SentineloneS2sInputParam as SentineloneS2sInputParam -from .tanium_input import TaniumInput as TaniumInput -from .tanium_input_param import TaniumInputParam as TaniumInputParam -from .unique_client_id_input import UniqueClientIDInput as UniqueClientIDInput -from .unique_client_id_input_param import UniqueClientIDInputParam as UniqueClientIDInputParam -from .workspace_one_input import WorkspaceOneInput as WorkspaceOneInput -from .workspace_one_input_param import WorkspaceOneInputParam as WorkspaceOneInputParam -from .posture_delete_response import PostureDeleteResponse as PostureDeleteResponse from .posture_create_params import PostureCreateParams as PostureCreateParams from .posture_update_params import PostureUpdateParams as PostureUpdateParams -from .revoke_create_response import RevokeCreateResponse as RevokeCreateResponse -from .revoke_create_params import RevokeCreateParams as RevokeCreateParams -from .device_settings import DeviceSettings as DeviceSettings +from .sentinelone_s2s_input import SentineloneS2sInput as SentineloneS2sInput from .setting_update_params import SettingUpdateParams as SettingUpdateParams -from .setting_edit_params import SettingEditParams as SettingEditParams -from .unrevoke_create_response import UnrevokeCreateResponse as UnrevokeCreateResponse +from .dex_test_create_params import DEXTestCreateParams as DEXTestCreateParams +from .dex_test_update_params import DEXTestUpdateParams as DEXTestUpdateParams +from .os_version_input_param import OSVersionInputParam as OSVersionInputParam +from .policy_delete_response import PolicyDeleteResponse as PolicyDeleteResponse +from .revoke_create_response import RevokeCreateResponse as RevokeCreateResponse +from .unique_client_id_input import UniqueClientIDInput as UniqueClientIDInput from .unrevoke_create_params import UnrevokeCreateParams as UnrevokeCreateParams +from .crowdstrike_input_param import CrowdstrikeInputParam as CrowdstrikeInputParam +from .network_delete_response import NetworkDeleteResponse as NetworkDeleteResponse +from .posture_delete_response import PostureDeleteResponse as PostureDeleteResponse +from .sentinelone_input_param import SentineloneInputParam as SentineloneInputParam +from .client_certificate_input import ClientCertificateInput as ClientCertificateInput +from .dex_test_delete_response import DEXTestDeleteResponse as DEXTestDeleteResponse +from .unrevoke_create_response import UnrevokeCreateResponse as UnrevokeCreateResponse +from .domain_joined_input_param import DomainJoinedInputParam as DomainJoinedInputParam +from .workspace_one_input_param import WorkspaceOneInputParam as WorkspaceOneInputParam +from .disk_encryption_input_param import DiskEncryptionInputParam as DiskEncryptionInputParam from .override_code_list_response import OverrideCodeListResponse as OverrideCodeListResponse +from .sentinelone_s2s_input_param import SentineloneS2sInputParam as SentineloneS2sInputParam +from .unique_client_id_input_param import UniqueClientIDInputParam as UniqueClientIDInputParam +from .client_certificate_input_param import ClientCertificateInputParam as ClientCertificateInputParam diff --git a/src/cloudflare/types/zero_trust/devices/carbonblack_input.py b/src/cloudflare/types/zero_trust/devices/carbonblack_input.py index ee0175773..5872f0e21 100644 --- a/src/cloudflare/types/zero_trust/devices/carbonblack_input.py +++ b/src/cloudflare/types/zero_trust/devices/carbonblack_input.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["CarbonblackInput"] CarbonblackInput: TypeAlias = str diff --git a/src/cloudflare/types/zero_trust/devices/client_certificate_input.py b/src/cloudflare/types/zero_trust/devices/client_certificate_input.py index 6f56573ac..e8dc8dc8b 100644 --- a/src/cloudflare/types/zero_trust/devices/client_certificate_input.py +++ b/src/cloudflare/types/zero_trust/devices/client_certificate_input.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["ClientCertificateInput"] diff --git a/src/cloudflare/types/zero_trust/devices/client_certificate_input_param.py b/src/cloudflare/types/zero_trust/devices/client_certificate_input_param.py index 09499c089..626f69e4a 100644 --- a/src/cloudflare/types/zero_trust/devices/client_certificate_input_param.py +++ b/src/cloudflare/types/zero_trust/devices/client_certificate_input_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["ClientCertificateInputParam"] diff --git a/src/cloudflare/types/zero_trust/devices/crowdstrike_input.py b/src/cloudflare/types/zero_trust/devices/crowdstrike_input.py index 8144ebb40..b46afbf41 100644 --- a/src/cloudflare/types/zero_trust/devices/crowdstrike_input.py +++ b/src/cloudflare/types/zero_trust/devices/crowdstrike_input.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["CrowdstrikeInput"] diff --git a/src/cloudflare/types/zero_trust/devices/crowdstrike_input_param.py b/src/cloudflare/types/zero_trust/devices/crowdstrike_input_param.py index 5aa288c47..7cc4fc7e5 100644 --- a/src/cloudflare/types/zero_trust/devices/crowdstrike_input_param.py +++ b/src/cloudflare/types/zero_trust/devices/crowdstrike_input_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required, Annotated +from typing_extensions import Literal, Required, Annotated, TypedDict from ...._utils import PropertyInfo diff --git a/src/cloudflare/types/zero_trust/devices/device_input.py b/src/cloudflare/types/zero_trust/devices/device_input.py index 28594a48d..f1fa5b203 100644 --- a/src/cloudflare/types/zero_trust/devices/device_input.py +++ b/src/cloudflare/types/zero_trust/devices/device_input.py @@ -1,42 +1,23 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .file_input import FileInput - -from .unique_client_id_input import UniqueClientIDInput - -from .domain_joined_input import DomainJoinedInput - -from .os_version_input import OSVersionInput - -from .firewall_input import FirewallInput - -from .sentinelone_input import SentineloneInput - -from .disk_encryption_input import DiskEncryptionInput - -from .client_certificate_input import ClientCertificateInput - -from .workspace_one_input import WorkspaceOneInput - -from .crowdstrike_input import CrowdstrikeInput - -from .intune_input import IntuneInput - -from .kolide_input import KolideInput - -from .tanium_input import TaniumInput - -from .sentinelone_s2s_input import SentineloneS2sInput - -from ...._models import BaseModel - +from typing import List, Union, Optional from typing_extensions import Literal, TypeAlias -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel +from .file_input import FileInput +from .intune_input import IntuneInput +from .kolide_input import KolideInput +from .tanium_input import TaniumInput +from .firewall_input import FirewallInput +from .os_version_input import OSVersionInput +from .crowdstrike_input import CrowdstrikeInput +from .sentinelone_input import SentineloneInput +from .domain_joined_input import DomainJoinedInput +from .workspace_one_input import WorkspaceOneInput +from .disk_encryption_input import DiskEncryptionInput +from .sentinelone_s2s_input import SentineloneS2sInput +from .unique_client_id_input import UniqueClientIDInput +from .client_certificate_input import ClientCertificateInput __all__ = [ "DeviceInput", diff --git a/src/cloudflare/types/zero_trust/devices/device_input_param.py b/src/cloudflare/types/zero_trust/devices/device_input_param.py index e35a0d779..bc87aba93 100644 --- a/src/cloudflare/types/zero_trust/devices/device_input_param.py +++ b/src/cloudflare/types/zero_trust/devices/device_input_param.py @@ -2,37 +2,23 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required, TypeAlias - from typing import List, Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict from .file_input_param import FileInputParam - -from .unique_client_id_input_param import UniqueClientIDInputParam - -from .domain_joined_input_param import DomainJoinedInputParam - -from .os_version_input_param import OSVersionInputParam - -from .firewall_input_param import FirewallInputParam - -from .sentinelone_input_param import SentineloneInputParam - -from .disk_encryption_input_param import DiskEncryptionInputParam - -from .client_certificate_input_param import ClientCertificateInputParam - -from .workspace_one_input_param import WorkspaceOneInputParam - -from .crowdstrike_input_param import CrowdstrikeInputParam - from .intune_input_param import IntuneInputParam - from .kolide_input_param import KolideInputParam - from .tanium_input_param import TaniumInputParam - +from .firewall_input_param import FirewallInputParam +from .os_version_input_param import OSVersionInputParam +from .crowdstrike_input_param import CrowdstrikeInputParam +from .sentinelone_input_param import SentineloneInputParam +from .domain_joined_input_param import DomainJoinedInputParam +from .workspace_one_input_param import WorkspaceOneInputParam +from .disk_encryption_input_param import DiskEncryptionInputParam from .sentinelone_s2s_input_param import SentineloneS2sInputParam +from .unique_client_id_input_param import UniqueClientIDInputParam +from .client_certificate_input_param import ClientCertificateInputParam __all__ = [ "DeviceInputParam", diff --git a/src/cloudflare/types/zero_trust/devices/device_match.py b/src/cloudflare/types/zero_trust/devices/device_match.py index 47b79d2ae..719a707d6 100644 --- a/src/cloudflare/types/zero_trust/devices/device_match.py +++ b/src/cloudflare/types/zero_trust/devices/device_match.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["DeviceMatch"] diff --git a/src/cloudflare/types/zero_trust/devices/device_network.py b/src/cloudflare/types/zero_trust/devices/device_network.py index c3834812a..db1542137 100644 --- a/src/cloudflare/types/zero_trust/devices/device_network.py +++ b/src/cloudflare/types/zero_trust/devices/device_network.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["DeviceNetwork", "Config"] diff --git a/src/cloudflare/types/zero_trust/devices/device_posture_rule.py b/src/cloudflare/types/zero_trust/devices/device_posture_rule.py index 2208e938c..74fca99ff 100644 --- a/src/cloudflare/types/zero_trust/devices/device_posture_rule.py +++ b/src/cloudflare/types/zero_trust/devices/device_posture_rule.py @@ -1,19 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ...._models import BaseModel - -from typing import Optional, List - from .device_input import DeviceInput - from .device_match import DeviceMatch -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["DevicePostureRule"] diff --git a/src/cloudflare/types/zero_trust/devices/device_settings.py b/src/cloudflare/types/zero_trust/devices/device_settings.py index f8f6a9ad9..0ebfe2db7 100644 --- a/src/cloudflare/types/zero_trust/devices/device_settings.py +++ b/src/cloudflare/types/zero_trust/devices/device_settings.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["DeviceSettings"] diff --git a/src/cloudflare/types/zero_trust/devices/dex_test_create_params.py b/src/cloudflare/types/zero_trust/devices/dex_test_create_params.py index dc57ef3a8..340d9d179 100644 --- a/src/cloudflare/types/zero_trust/devices/dex_test_create_params.py +++ b/src/cloudflare/types/zero_trust/devices/dex_test_create_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing import Iterable +from typing_extensions import Required, TypedDict from .schema_data_param import SchemaDataParam -from typing import Iterable - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["DEXTestCreateParams", "TargetPolicy"] diff --git a/src/cloudflare/types/zero_trust/devices/dex_test_delete_response.py b/src/cloudflare/types/zero_trust/devices/dex_test_delete_response.py index 3b6c18be0..326bd8902 100644 --- a/src/cloudflare/types/zero_trust/devices/dex_test_delete_response.py +++ b/src/cloudflare/types/zero_trust/devices/dex_test_delete_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .schema_http import SchemaHTTP - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .schema_http import SchemaHTTP __all__ = ["DEXTestDeleteResponse"] diff --git a/src/cloudflare/types/zero_trust/devices/dex_test_update_params.py b/src/cloudflare/types/zero_trust/devices/dex_test_update_params.py index 1fe634d3f..1e09ce4d5 100644 --- a/src/cloudflare/types/zero_trust/devices/dex_test_update_params.py +++ b/src/cloudflare/types/zero_trust/devices/dex_test_update_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing import Iterable +from typing_extensions import Required, TypedDict from .schema_data_param import SchemaDataParam -from typing import Iterable - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["DEXTestUpdateParams", "TargetPolicy"] diff --git a/src/cloudflare/types/zero_trust/devices/disk_encryption_input.py b/src/cloudflare/types/zero_trust/devices/disk_encryption_input.py index f40d76843..d43109748 100644 --- a/src/cloudflare/types/zero_trust/devices/disk_encryption_input.py +++ b/src/cloudflare/types/zero_trust/devices/disk_encryption_input.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel +from typing import List, Optional -from typing import Optional, List - -from .carbonblack_input import CarbonblackInput - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel +from .carbonblack_input import CarbonblackInput + __all__ = ["DiskEncryptionInput"] diff --git a/src/cloudflare/types/zero_trust/devices/disk_encryption_input_param.py b/src/cloudflare/types/zero_trust/devices/disk_encryption_input_param.py index 7bfa60daa..2bd2097cc 100644 --- a/src/cloudflare/types/zero_trust/devices/disk_encryption_input_param.py +++ b/src/cloudflare/types/zero_trust/devices/disk_encryption_input_param.py @@ -3,12 +3,10 @@ from __future__ import annotations from typing import List - -from .carbonblack_input import CarbonblackInput - -from typing_extensions import TypedDict, Annotated +from typing_extensions import Annotated, TypedDict from ...._utils import PropertyInfo +from .carbonblack_input import CarbonblackInput __all__ = ["DiskEncryptionInputParam"] diff --git a/src/cloudflare/types/zero_trust/devices/domain_joined_input.py b/src/cloudflare/types/zero_trust/devices/domain_joined_input.py index 7604b84e4..4788e81e6 100644 --- a/src/cloudflare/types/zero_trust/devices/domain_joined_input.py +++ b/src/cloudflare/types/zero_trust/devices/domain_joined_input.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["DomainJoinedInput"] diff --git a/src/cloudflare/types/zero_trust/devices/domain_joined_input_param.py b/src/cloudflare/types/zero_trust/devices/domain_joined_input_param.py index ba9017fb1..e105b5843 100644 --- a/src/cloudflare/types/zero_trust/devices/domain_joined_input_param.py +++ b/src/cloudflare/types/zero_trust/devices/domain_joined_input_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["DomainJoinedInputParam"] diff --git a/src/cloudflare/types/zero_trust/devices/file_input.py b/src/cloudflare/types/zero_trust/devices/file_input.py index e9e947f7e..214bf876e 100644 --- a/src/cloudflare/types/zero_trust/devices/file_input.py +++ b/src/cloudflare/types/zero_trust/devices/file_input.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["FileInput"] diff --git a/src/cloudflare/types/zero_trust/devices/file_input_param.py b/src/cloudflare/types/zero_trust/devices/file_input_param.py index 350d4a2d4..d50a8f505 100644 --- a/src/cloudflare/types/zero_trust/devices/file_input_param.py +++ b/src/cloudflare/types/zero_trust/devices/file_input_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["FileInputParam"] diff --git a/src/cloudflare/types/zero_trust/devices/firewall_input.py b/src/cloudflare/types/zero_trust/devices/firewall_input.py index 1ff0fd8dc..022d78c05 100644 --- a/src/cloudflare/types/zero_trust/devices/firewall_input.py +++ b/src/cloudflare/types/zero_trust/devices/firewall_input.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing_extensions import Literal + from ...._models import BaseModel -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["FirewallInput"] diff --git a/src/cloudflare/types/zero_trust/devices/firewall_input_param.py b/src/cloudflare/types/zero_trust/devices/firewall_input_param.py index 7b90affdc..aa4f2edd3 100644 --- a/src/cloudflare/types/zero_trust/devices/firewall_input_param.py +++ b/src/cloudflare/types/zero_trust/devices/firewall_input_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["FirewallInputParam"] diff --git a/src/cloudflare/types/zero_trust/devices/intune_input.py b/src/cloudflare/types/zero_trust/devices/intune_input.py index 78c769b5a..881e02ae0 100644 --- a/src/cloudflare/types/zero_trust/devices/intune_input.py +++ b/src/cloudflare/types/zero_trust/devices/intune_input.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing_extensions import Literal + from ...._models import BaseModel -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["IntuneInput"] diff --git a/src/cloudflare/types/zero_trust/devices/intune_input_param.py b/src/cloudflare/types/zero_trust/devices/intune_input_param.py index f5e6a93ac..938f5fdfe 100644 --- a/src/cloudflare/types/zero_trust/devices/intune_input_param.py +++ b/src/cloudflare/types/zero_trust/devices/intune_input_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["IntuneInputParam"] diff --git a/src/cloudflare/types/zero_trust/devices/kolide_input.py b/src/cloudflare/types/zero_trust/devices/kolide_input.py index 86c2553b6..c61481d2b 100644 --- a/src/cloudflare/types/zero_trust/devices/kolide_input.py +++ b/src/cloudflare/types/zero_trust/devices/kolide_input.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["KolideInput"] diff --git a/src/cloudflare/types/zero_trust/devices/kolide_input_param.py b/src/cloudflare/types/zero_trust/devices/kolide_input_param.py index 9a840e6c3..134335be3 100644 --- a/src/cloudflare/types/zero_trust/devices/kolide_input_param.py +++ b/src/cloudflare/types/zero_trust/devices/kolide_input_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required, Annotated +from typing_extensions import Literal, Required, Annotated, TypedDict from ...._utils import PropertyInfo diff --git a/src/cloudflare/types/zero_trust/devices/network_create_params.py b/src/cloudflare/types/zero_trust/devices/network_create_params.py index 20720bed5..66c61f32f 100644 --- a/src/cloudflare/types/zero_trust/devices/network_create_params.py +++ b/src/cloudflare/types/zero_trust/devices/network_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["NetworkCreateParams", "Config"] diff --git a/src/cloudflare/types/zero_trust/devices/network_delete_response.py b/src/cloudflare/types/zero_trust/devices/network_delete_response.py index a6aa5478e..a17d11769 100644 --- a/src/cloudflare/types/zero_trust/devices/network_delete_response.py +++ b/src/cloudflare/types/zero_trust/devices/network_delete_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .device_network import DeviceNetwork - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .device_network import DeviceNetwork __all__ = ["NetworkDeleteResponse"] diff --git a/src/cloudflare/types/zero_trust/devices/network_update_params.py b/src/cloudflare/types/zero_trust/devices/network_update_params.py index 152583c70..ff00a95df 100644 --- a/src/cloudflare/types/zero_trust/devices/network_update_params.py +++ b/src/cloudflare/types/zero_trust/devices/network_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["NetworkUpdateParams", "Config"] diff --git a/src/cloudflare/types/zero_trust/devices/os_version_input.py b/src/cloudflare/types/zero_trust/devices/os_version_input.py index e9b16c5ea..ae5e20194 100644 --- a/src/cloudflare/types/zero_trust/devices/os_version_input.py +++ b/src/cloudflare/types/zero_trust/devices/os_version_input.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["OSVersionInput"] diff --git a/src/cloudflare/types/zero_trust/devices/os_version_input_param.py b/src/cloudflare/types/zero_trust/devices/os_version_input_param.py index 96d9bcf7f..6bc8122e3 100644 --- a/src/cloudflare/types/zero_trust/devices/os_version_input_param.py +++ b/src/cloudflare/types/zero_trust/devices/os_version_input_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["OSVersionInputParam"] diff --git a/src/cloudflare/types/zero_trust/devices/override_code_list_response.py b/src/cloudflare/types/zero_trust/devices/override_code_list_response.py index 78233c779..fe8d8e215 100644 --- a/src/cloudflare/types/zero_trust/devices/override_code_list_response.py +++ b/src/cloudflare/types/zero_trust/devices/override_code_list_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["OverrideCodeListResponse", "DisableForTime"] diff --git a/src/cloudflare/types/zero_trust/devices/policies/__init__.py b/src/cloudflare/types/zero_trust/devices/policies/__init__.py index 49aeb24cd..ef7fe7d51 100644 --- a/src/cloudflare/types/zero_trust/devices/policies/__init__.py +++ b/src/cloudflare/types/zero_trust/devices/policies/__init__.py @@ -2,22 +2,22 @@ from __future__ import annotations -from .certificate_update_response import CertificateUpdateResponse as CertificateUpdateResponse +from .fallback_domain import FallbackDomain as FallbackDomain +from .exclude_get_response import ExcludeGetResponse as ExcludeGetResponse +from .include_get_response import IncludeGetResponse as IncludeGetResponse +from .split_tunnel_exclude import SplitTunnelExclude as SplitTunnelExclude +from .split_tunnel_include import SplitTunnelInclude as SplitTunnelInclude +from .exclude_update_params import ExcludeUpdateParams as ExcludeUpdateParams +from .fallback_domain_param import FallbackDomainParam as FallbackDomainParam +from .include_update_params import IncludeUpdateParams as IncludeUpdateParams +from .exclude_update_response import ExcludeUpdateResponse as ExcludeUpdateResponse +from .include_update_response import IncludeUpdateResponse as IncludeUpdateResponse from .certificate_get_response import CertificateGetResponse as CertificateGetResponse from .certificate_update_params import CertificateUpdateParams as CertificateUpdateParams -from .default_policy_get_response import DefaultPolicyGetResponse as DefaultPolicyGetResponse -from .split_tunnel_exclude import SplitTunnelExclude as SplitTunnelExclude from .split_tunnel_exclude_param import SplitTunnelExcludeParam as SplitTunnelExcludeParam -from .exclude_update_response import ExcludeUpdateResponse as ExcludeUpdateResponse -from .exclude_get_response import ExcludeGetResponse as ExcludeGetResponse -from .exclude_update_params import ExcludeUpdateParams as ExcludeUpdateParams -from .fallback_domain import FallbackDomain as FallbackDomain -from .fallback_domain_param import FallbackDomainParam as FallbackDomainParam -from .fallback_domain_update_response import FallbackDomainUpdateResponse as FallbackDomainUpdateResponse +from .split_tunnel_include_param import SplitTunnelIncludeParam as SplitTunnelIncludeParam +from .certificate_update_response import CertificateUpdateResponse as CertificateUpdateResponse +from .default_policy_get_response import DefaultPolicyGetResponse as DefaultPolicyGetResponse from .fallback_domain_get_response import FallbackDomainGetResponse as FallbackDomainGetResponse from .fallback_domain_update_params import FallbackDomainUpdateParams as FallbackDomainUpdateParams -from .split_tunnel_include import SplitTunnelInclude as SplitTunnelInclude -from .split_tunnel_include_param import SplitTunnelIncludeParam as SplitTunnelIncludeParam -from .include_update_response import IncludeUpdateResponse as IncludeUpdateResponse -from .include_get_response import IncludeGetResponse as IncludeGetResponse -from .include_update_params import IncludeUpdateParams as IncludeUpdateParams +from .fallback_domain_update_response import FallbackDomainUpdateResponse as FallbackDomainUpdateResponse diff --git a/src/cloudflare/types/zero_trust/devices/policies/certificate_get_response.py b/src/cloudflare/types/zero_trust/devices/policies/certificate_get_response.py index 24b9cc3ee..47253a71d 100755 --- a/src/cloudflare/types/zero_trust/devices/policies/certificate_get_response.py +++ b/src/cloudflare/types/zero_trust/devices/policies/certificate_get_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["CertificateGetResponse"] CertificateGetResponse: TypeAlias = Union[str, object, None] diff --git a/src/cloudflare/types/zero_trust/devices/policies/certificate_update_params.py b/src/cloudflare/types/zero_trust/devices/policies/certificate_update_params.py index a34738a8d..8f17fb358 100755 --- a/src/cloudflare/types/zero_trust/devices/policies/certificate_update_params.py +++ b/src/cloudflare/types/zero_trust/devices/policies/certificate_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["CertificateUpdateParams"] diff --git a/src/cloudflare/types/zero_trust/devices/policies/certificate_update_response.py b/src/cloudflare/types/zero_trust/devices/policies/certificate_update_response.py index 16a505902..19199b9c5 100755 --- a/src/cloudflare/types/zero_trust/devices/policies/certificate_update_response.py +++ b/src/cloudflare/types/zero_trust/devices/policies/certificate_update_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["CertificateUpdateResponse"] CertificateUpdateResponse: TypeAlias = Union[str, object, None] diff --git a/src/cloudflare/types/zero_trust/devices/policies/default_policy_get_response.py b/src/cloudflare/types/zero_trust/devices/policies/default_policy_get_response.py index 0ad62ba3b..d9a54220a 100644 --- a/src/cloudflare/types/zero_trust/devices/policies/default_policy_get_response.py +++ b/src/cloudflare/types/zero_trust/devices/policies/default_policy_get_response.py @@ -1,19 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ....._models import BaseModel - -from typing import Optional, List - -from .split_tunnel_exclude import SplitTunnelExclude - from .fallback_domain import FallbackDomain - +from .split_tunnel_exclude import SplitTunnelExclude from .split_tunnel_include import SplitTunnelInclude -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["DefaultPolicyGetResponse", "ServiceModeV2"] diff --git a/src/cloudflare/types/zero_trust/devices/policies/exclude_get_response.py b/src/cloudflare/types/zero_trust/devices/policies/exclude_get_response.py index b1381c6e6..e256e7735 100644 --- a/src/cloudflare/types/zero_trust/devices/policies/exclude_get_response.py +++ b/src/cloudflare/types/zero_trust/devices/policies/exclude_get_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .split_tunnel_exclude import SplitTunnelExclude - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .split_tunnel_exclude import SplitTunnelExclude __all__ = ["ExcludeGetResponse"] diff --git a/src/cloudflare/types/zero_trust/devices/policies/exclude_update_params.py b/src/cloudflare/types/zero_trust/devices/policies/exclude_update_params.py index 3d614a48a..21ac467a9 100644 --- a/src/cloudflare/types/zero_trust/devices/policies/exclude_update_params.py +++ b/src/cloudflare/types/zero_trust/devices/policies/exclude_update_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Iterable +from typing_extensions import Required, TypedDict from .split_tunnel_exclude_param import SplitTunnelExcludeParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["ExcludeUpdateParams"] diff --git a/src/cloudflare/types/zero_trust/devices/policies/exclude_update_response.py b/src/cloudflare/types/zero_trust/devices/policies/exclude_update_response.py index 353b86556..9559d9487 100644 --- a/src/cloudflare/types/zero_trust/devices/policies/exclude_update_response.py +++ b/src/cloudflare/types/zero_trust/devices/policies/exclude_update_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .split_tunnel_exclude import SplitTunnelExclude - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .split_tunnel_exclude import SplitTunnelExclude __all__ = ["ExcludeUpdateResponse"] diff --git a/src/cloudflare/types/zero_trust/devices/policies/fallback_domain.py b/src/cloudflare/types/zero_trust/devices/policies/fallback_domain.py index 36de93bbb..34d20ff9b 100644 --- a/src/cloudflare/types/zero_trust/devices/policies/fallback_domain.py +++ b/src/cloudflare/types/zero_trust/devices/policies/fallback_domain.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ....._models import BaseModel -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["FallbackDomain"] diff --git a/src/cloudflare/types/zero_trust/devices/policies/fallback_domain_get_response.py b/src/cloudflare/types/zero_trust/devices/policies/fallback_domain_get_response.py index e5d8db36c..9dbedd1d7 100644 --- a/src/cloudflare/types/zero_trust/devices/policies/fallback_domain_get_response.py +++ b/src/cloudflare/types/zero_trust/devices/policies/fallback_domain_get_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .fallback_domain import FallbackDomain - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .fallback_domain import FallbackDomain __all__ = ["FallbackDomainGetResponse"] diff --git a/src/cloudflare/types/zero_trust/devices/policies/fallback_domain_param.py b/src/cloudflare/types/zero_trust/devices/policies/fallback_domain_param.py index a6adc63f8..af2e80c57 100644 --- a/src/cloudflare/types/zero_trust/devices/policies/fallback_domain_param.py +++ b/src/cloudflare/types/zero_trust/devices/policies/fallback_domain_param.py @@ -3,8 +3,7 @@ from __future__ import annotations from typing import List - -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["FallbackDomainParam"] diff --git a/src/cloudflare/types/zero_trust/devices/policies/fallback_domain_update_params.py b/src/cloudflare/types/zero_trust/devices/policies/fallback_domain_update_params.py index d334f534e..d88155dca 100644 --- a/src/cloudflare/types/zero_trust/devices/policies/fallback_domain_update_params.py +++ b/src/cloudflare/types/zero_trust/devices/policies/fallback_domain_update_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Iterable +from typing_extensions import Required, TypedDict from .fallback_domain_param import FallbackDomainParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["FallbackDomainUpdateParams"] diff --git a/src/cloudflare/types/zero_trust/devices/policies/fallback_domain_update_response.py b/src/cloudflare/types/zero_trust/devices/policies/fallback_domain_update_response.py index 3cf89b348..c7e0b137e 100644 --- a/src/cloudflare/types/zero_trust/devices/policies/fallback_domain_update_response.py +++ b/src/cloudflare/types/zero_trust/devices/policies/fallback_domain_update_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .fallback_domain import FallbackDomain - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .fallback_domain import FallbackDomain __all__ = ["FallbackDomainUpdateResponse"] diff --git a/src/cloudflare/types/zero_trust/devices/policies/include_get_response.py b/src/cloudflare/types/zero_trust/devices/policies/include_get_response.py index 2e05af3b0..4cf962d2b 100644 --- a/src/cloudflare/types/zero_trust/devices/policies/include_get_response.py +++ b/src/cloudflare/types/zero_trust/devices/policies/include_get_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .split_tunnel_include import SplitTunnelInclude - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .split_tunnel_include import SplitTunnelInclude __all__ = ["IncludeGetResponse"] diff --git a/src/cloudflare/types/zero_trust/devices/policies/include_update_params.py b/src/cloudflare/types/zero_trust/devices/policies/include_update_params.py index b3473bd21..ac7f05b41 100644 --- a/src/cloudflare/types/zero_trust/devices/policies/include_update_params.py +++ b/src/cloudflare/types/zero_trust/devices/policies/include_update_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Iterable +from typing_extensions import Required, TypedDict from .split_tunnel_include_param import SplitTunnelIncludeParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["IncludeUpdateParams"] diff --git a/src/cloudflare/types/zero_trust/devices/policies/include_update_response.py b/src/cloudflare/types/zero_trust/devices/policies/include_update_response.py index 898a08a57..e0791aeed 100644 --- a/src/cloudflare/types/zero_trust/devices/policies/include_update_response.py +++ b/src/cloudflare/types/zero_trust/devices/policies/include_update_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .split_tunnel_include import SplitTunnelInclude - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .split_tunnel_include import SplitTunnelInclude __all__ = ["IncludeUpdateResponse"] diff --git a/src/cloudflare/types/zero_trust/devices/policies/split_tunnel_exclude.py b/src/cloudflare/types/zero_trust/devices/policies/split_tunnel_exclude.py index 2d4874c26..cd7877200 100644 --- a/src/cloudflare/types/zero_trust/devices/policies/split_tunnel_exclude.py +++ b/src/cloudflare/types/zero_trust/devices/policies/split_tunnel_exclude.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["SplitTunnelExclude"] diff --git a/src/cloudflare/types/zero_trust/devices/policies/split_tunnel_exclude_param.py b/src/cloudflare/types/zero_trust/devices/policies/split_tunnel_exclude_param.py index dce34188f..99998a523 100644 --- a/src/cloudflare/types/zero_trust/devices/policies/split_tunnel_exclude_param.py +++ b/src/cloudflare/types/zero_trust/devices/policies/split_tunnel_exclude_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["SplitTunnelExcludeParam"] diff --git a/src/cloudflare/types/zero_trust/devices/policies/split_tunnel_include.py b/src/cloudflare/types/zero_trust/devices/policies/split_tunnel_include.py index afce9b92f..0791d7c0e 100644 --- a/src/cloudflare/types/zero_trust/devices/policies/split_tunnel_include.py +++ b/src/cloudflare/types/zero_trust/devices/policies/split_tunnel_include.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["SplitTunnelInclude"] diff --git a/src/cloudflare/types/zero_trust/devices/policies/split_tunnel_include_param.py b/src/cloudflare/types/zero_trust/devices/policies/split_tunnel_include_param.py index 6e382bba8..70474cc5f 100644 --- a/src/cloudflare/types/zero_trust/devices/policies/split_tunnel_include_param.py +++ b/src/cloudflare/types/zero_trust/devices/policies/split_tunnel_include_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["SplitTunnelIncludeParam"] diff --git a/src/cloudflare/types/zero_trust/devices/policy_create_params.py b/src/cloudflare/types/zero_trust/devices/policy_create_params.py index a2e300777..2ea3c58bb 100644 --- a/src/cloudflare/types/zero_trust/devices/policy_create_params.py +++ b/src/cloudflare/types/zero_trust/devices/policy_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["PolicyCreateParams", "ServiceModeV2"] diff --git a/src/cloudflare/types/zero_trust/devices/policy_delete_response.py b/src/cloudflare/types/zero_trust/devices/policy_delete_response.py index b0e3a36ee..e782515d0 100644 --- a/src/cloudflare/types/zero_trust/devices/policy_delete_response.py +++ b/src/cloudflare/types/zero_trust/devices/policy_delete_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .settings_policy import SettingsPolicy - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .settings_policy import SettingsPolicy __all__ = ["PolicyDeleteResponse"] diff --git a/src/cloudflare/types/zero_trust/devices/policy_edit_params.py b/src/cloudflare/types/zero_trust/devices/policy_edit_params.py index 4ea9a67f3..d9cb742a4 100644 --- a/src/cloudflare/types/zero_trust/devices/policy_edit_params.py +++ b/src/cloudflare/types/zero_trust/devices/policy_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["PolicyEditParams", "ServiceModeV2"] diff --git a/src/cloudflare/types/zero_trust/devices/posture/__init__.py b/src/cloudflare/types/zero_trust/devices/posture/__init__.py index a5d285763..419d14791 100644 --- a/src/cloudflare/types/zero_trust/devices/posture/__init__.py +++ b/src/cloudflare/types/zero_trust/devices/posture/__init__.py @@ -3,6 +3,6 @@ from __future__ import annotations from .integration import Integration as Integration -from .integration_delete_response import IntegrationDeleteResponse as IntegrationDeleteResponse -from .integration_create_params import IntegrationCreateParams as IntegrationCreateParams from .integration_edit_params import IntegrationEditParams as IntegrationEditParams +from .integration_create_params import IntegrationCreateParams as IntegrationCreateParams +from .integration_delete_response import IntegrationDeleteResponse as IntegrationDeleteResponse diff --git a/src/cloudflare/types/zero_trust/devices/posture/integration.py b/src/cloudflare/types/zero_trust/devices/posture/integration.py index c2dfb357c..505d15103 100644 --- a/src/cloudflare/types/zero_trust/devices/posture/integration.py +++ b/src/cloudflare/types/zero_trust/devices/posture/integration.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["Integration", "Config"] diff --git a/src/cloudflare/types/zero_trust/devices/posture/integration_create_params.py b/src/cloudflare/types/zero_trust/devices/posture/integration_create_params.py index ca6e7324d..6729424c6 100644 --- a/src/cloudflare/types/zero_trust/devices/posture/integration_create_params.py +++ b/src/cloudflare/types/zero_trust/devices/posture/integration_create_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias - from typing import Union - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from typing_extensions import Literal, Required, TypeAlias, TypedDict __all__ = [ "IntegrationCreateParams", 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 index c44b38198..5ad6c5cee 100644 --- a/src/cloudflare/types/zero_trust/devices/posture/integration_delete_response.py +++ b/src/cloudflare/types/zero_trust/devices/posture/integration_delete_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["IntegrationDeleteResponse"] IntegrationDeleteResponse: TypeAlias = Union[str, object, None] diff --git a/src/cloudflare/types/zero_trust/devices/posture/integration_edit_params.py b/src/cloudflare/types/zero_trust/devices/posture/integration_edit_params.py index 24b17784b..614e1d9c0 100644 --- a/src/cloudflare/types/zero_trust/devices/posture/integration_edit_params.py +++ b/src/cloudflare/types/zero_trust/devices/posture/integration_edit_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias - from typing import Union - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from typing_extensions import Literal, Required, TypeAlias, TypedDict __all__ = [ "IntegrationEditParams", diff --git a/src/cloudflare/types/zero_trust/devices/posture_create_params.py b/src/cloudflare/types/zero_trust/devices/posture_create_params.py index 19989ddcb..691b19268 100644 --- a/src/cloudflare/types/zero_trust/devices/posture_create_params.py +++ b/src/cloudflare/types/zero_trust/devices/posture_create_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal +from typing import Iterable +from typing_extensions import Literal, Required, TypedDict from .device_input_param import DeviceInputParam - -from typing import Iterable - from .device_match_param import DeviceMatchParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["PostureCreateParams"] diff --git a/src/cloudflare/types/zero_trust/devices/posture_delete_response.py b/src/cloudflare/types/zero_trust/devices/posture_delete_response.py index 434719a81..4b35c65bd 100644 --- a/src/cloudflare/types/zero_trust/devices/posture_delete_response.py +++ b/src/cloudflare/types/zero_trust/devices/posture_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["PostureDeleteResponse"] diff --git a/src/cloudflare/types/zero_trust/devices/posture_update_params.py b/src/cloudflare/types/zero_trust/devices/posture_update_params.py index 880089202..b8a72a058 100644 --- a/src/cloudflare/types/zero_trust/devices/posture_update_params.py +++ b/src/cloudflare/types/zero_trust/devices/posture_update_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal +from typing import Iterable +from typing_extensions import Literal, Required, TypedDict from .device_input_param import DeviceInputParam - -from typing import Iterable - from .device_match_param import DeviceMatchParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["PostureUpdateParams"] diff --git a/src/cloudflare/types/zero_trust/devices/revoke_create_params.py b/src/cloudflare/types/zero_trust/devices/revoke_create_params.py index bbb5502d9..ec49fd979 100644 --- a/src/cloudflare/types/zero_trust/devices/revoke_create_params.py +++ b/src/cloudflare/types/zero_trust/devices/revoke_create_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["RevokeCreateParams"] diff --git a/src/cloudflare/types/zero_trust/devices/revoke_create_response.py b/src/cloudflare/types/zero_trust/devices/revoke_create_response.py index bad4556d4..428349807 100644 --- a/src/cloudflare/types/zero_trust/devices/revoke_create_response.py +++ b/src/cloudflare/types/zero_trust/devices/revoke_create_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["RevokeCreateResponse"] RevokeCreateResponse: TypeAlias = Union[str, object, None] diff --git a/src/cloudflare/types/zero_trust/devices/schema_data.py b/src/cloudflare/types/zero_trust/devices/schema_data.py index 223b0d015..8d57277eb 100644 --- a/src/cloudflare/types/zero_trust/devices/schema_data.py +++ b/src/cloudflare/types/zero_trust/devices/schema_data.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["SchemaData"] diff --git a/src/cloudflare/types/zero_trust/devices/schema_http.py b/src/cloudflare/types/zero_trust/devices/schema_http.py index 3d6ae4e03..43e763610 100644 --- a/src/cloudflare/types/zero_trust/devices/schema_http.py +++ b/src/cloudflare/types/zero_trust/devices/schema_http.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ...._models import BaseModel - -from typing import Optional, List - from .schema_data import SchemaData -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SchemaHTTP", "TargetPolicy"] diff --git a/src/cloudflare/types/zero_trust/devices/sentinelone_input.py b/src/cloudflare/types/zero_trust/devices/sentinelone_input.py index 3c2a6ce20..cfe6b020f 100644 --- a/src/cloudflare/types/zero_trust/devices/sentinelone_input.py +++ b/src/cloudflare/types/zero_trust/devices/sentinelone_input.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["SentineloneInput"] diff --git a/src/cloudflare/types/zero_trust/devices/sentinelone_input_param.py b/src/cloudflare/types/zero_trust/devices/sentinelone_input_param.py index f9b08e944..062c2a520 100644 --- a/src/cloudflare/types/zero_trust/devices/sentinelone_input_param.py +++ b/src/cloudflare/types/zero_trust/devices/sentinelone_input_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["SentineloneInputParam"] diff --git a/src/cloudflare/types/zero_trust/devices/sentinelone_s2s_input.py b/src/cloudflare/types/zero_trust/devices/sentinelone_s2s_input.py index 7a70f4f0e..fbd2d9ca1 100644 --- a/src/cloudflare/types/zero_trust/devices/sentinelone_s2s_input.py +++ b/src/cloudflare/types/zero_trust/devices/sentinelone_s2s_input.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["SentineloneS2sInput"] diff --git a/src/cloudflare/types/zero_trust/devices/sentinelone_s2s_input_param.py b/src/cloudflare/types/zero_trust/devices/sentinelone_s2s_input_param.py index cf0415b71..6b73f36f0 100644 --- a/src/cloudflare/types/zero_trust/devices/sentinelone_s2s_input_param.py +++ b/src/cloudflare/types/zero_trust/devices/sentinelone_s2s_input_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["SentineloneS2sInputParam"] diff --git a/src/cloudflare/types/zero_trust/devices/setting_edit_params.py b/src/cloudflare/types/zero_trust/devices/setting_edit_params.py index 02c6c6fcb..9fd931f0e 100755 --- a/src/cloudflare/types/zero_trust/devices/setting_edit_params.py +++ b/src/cloudflare/types/zero_trust/devices/setting_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["SettingEditParams"] diff --git a/src/cloudflare/types/zero_trust/devices/setting_update_params.py b/src/cloudflare/types/zero_trust/devices/setting_update_params.py index 7483fa5c6..f576d1eea 100644 --- a/src/cloudflare/types/zero_trust/devices/setting_update_params.py +++ b/src/cloudflare/types/zero_trust/devices/setting_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["SettingUpdateParams"] diff --git a/src/cloudflare/types/zero_trust/devices/settings_policy.py b/src/cloudflare/types/zero_trust/devices/settings_policy.py index 2974263b6..33b4e6c2e 100644 --- a/src/cloudflare/types/zero_trust/devices/settings_policy.py +++ b/src/cloudflare/types/zero_trust/devices/settings_policy.py @@ -1,19 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ...._models import BaseModel - -from typing import Optional, List - -from .policies.split_tunnel_exclude import SplitTunnelExclude - from .policies.fallback_domain import FallbackDomain - +from .policies.split_tunnel_exclude import SplitTunnelExclude from .policies.split_tunnel_include import SplitTunnelInclude -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SettingsPolicy", "ServiceModeV2", "TargetTest"] diff --git a/src/cloudflare/types/zero_trust/devices/tanium_input.py b/src/cloudflare/types/zero_trust/devices/tanium_input.py index 3710e5a55..80f623cf5 100644 --- a/src/cloudflare/types/zero_trust/devices/tanium_input.py +++ b/src/cloudflare/types/zero_trust/devices/tanium_input.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["TaniumInput"] diff --git a/src/cloudflare/types/zero_trust/devices/tanium_input_param.py b/src/cloudflare/types/zero_trust/devices/tanium_input_param.py index c662e4fea..e62ab115e 100644 --- a/src/cloudflare/types/zero_trust/devices/tanium_input_param.py +++ b/src/cloudflare/types/zero_trust/devices/tanium_input_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required, Annotated +from typing_extensions import Literal, Required, Annotated, TypedDict from ...._utils import PropertyInfo diff --git a/src/cloudflare/types/zero_trust/devices/unique_client_id_input.py b/src/cloudflare/types/zero_trust/devices/unique_client_id_input.py index 8cc20c481..524cfa7f3 100644 --- a/src/cloudflare/types/zero_trust/devices/unique_client_id_input.py +++ b/src/cloudflare/types/zero_trust/devices/unique_client_id_input.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing_extensions import Literal + from ...._models import BaseModel -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["UniqueClientIDInput"] diff --git a/src/cloudflare/types/zero_trust/devices/unique_client_id_input_param.py b/src/cloudflare/types/zero_trust/devices/unique_client_id_input_param.py index 691a0d962..d6245c49c 100644 --- a/src/cloudflare/types/zero_trust/devices/unique_client_id_input_param.py +++ b/src/cloudflare/types/zero_trust/devices/unique_client_id_input_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["UniqueClientIDInputParam"] diff --git a/src/cloudflare/types/zero_trust/devices/unrevoke_create_params.py b/src/cloudflare/types/zero_trust/devices/unrevoke_create_params.py index abb90d0d5..7a076ab0e 100644 --- a/src/cloudflare/types/zero_trust/devices/unrevoke_create_params.py +++ b/src/cloudflare/types/zero_trust/devices/unrevoke_create_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["UnrevokeCreateParams"] diff --git a/src/cloudflare/types/zero_trust/devices/unrevoke_create_response.py b/src/cloudflare/types/zero_trust/devices/unrevoke_create_response.py index cee95efec..80dd27e6b 100644 --- a/src/cloudflare/types/zero_trust/devices/unrevoke_create_response.py +++ b/src/cloudflare/types/zero_trust/devices/unrevoke_create_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["UnrevokeCreateResponse"] UnrevokeCreateResponse: TypeAlias = Union[str, object, None] diff --git a/src/cloudflare/types/zero_trust/devices/workspace_one_input.py b/src/cloudflare/types/zero_trust/devices/workspace_one_input.py index d18df51b2..4f532e33c 100644 --- a/src/cloudflare/types/zero_trust/devices/workspace_one_input.py +++ b/src/cloudflare/types/zero_trust/devices/workspace_one_input.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing_extensions import Literal + from ...._models import BaseModel -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["WorkspaceOneInput"] diff --git a/src/cloudflare/types/zero_trust/devices/workspace_one_input_param.py b/src/cloudflare/types/zero_trust/devices/workspace_one_input_param.py index 6cdfd9347..1c82dfaf5 100644 --- a/src/cloudflare/types/zero_trust/devices/workspace_one_input_param.py +++ b/src/cloudflare/types/zero_trust/devices/workspace_one_input_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["WorkspaceOneInputParam"] diff --git a/src/cloudflare/types/zero_trust/dex/__init__.py b/src/cloudflare/types/zero_trust/dex/__init__.py index b64093492..efa573e20 100644 --- a/src/cloudflare/types/zero_trust/dex/__init__.py +++ b/src/cloudflare/types/zero_trust/dex/__init__.py @@ -2,19 +2,19 @@ from __future__ import annotations -from .colo_list_params import ColoListParams as ColoListParams +from .tests import Tests as Tests from .live_stat import LiveStat as LiveStat -from .fleet_status_live_response import FleetStatusLiveResponse as FleetStatusLiveResponse -from .fleet_status_live_params import FleetStatusLiveParams as FleetStatusLiveParams -from .fleet_status_over_time_params import FleetStatusOverTimeParams as FleetStatusOverTimeParams +from .traceroute import Traceroute as Traceroute from .http_details import HTTPDetails as HTTPDetails +from .colo_list_params import ColoListParams as ColoListParams +from .test_list_params import TestListParams as TestListParams +from .test_list_response import TestListResponse as TestListResponse from .http_test_get_params import HTTPTestGetParams as HTTPTestGetParams from .aggregate_time_period import AggregateTimePeriod as AggregateTimePeriod -from .tests import Tests as Tests -from .test_list_response import TestListResponse as TestListResponse -from .test_list_params import TestListParams as TestListParams -from .traceroute import Traceroute as Traceroute -from .traceroute_test_percentiles_response import TracerouteTestPercentilesResponse as TracerouteTestPercentilesResponse +from .fleet_status_live_params import FleetStatusLiveParams as FleetStatusLiveParams +from .fleet_status_live_response import FleetStatusLiveResponse as FleetStatusLiveResponse from .traceroute_test_get_params import TracerouteTestGetParams as TracerouteTestGetParams -from .traceroute_test_network_path_params import TracerouteTestNetworkPathParams as TracerouteTestNetworkPathParams +from .fleet_status_over_time_params import FleetStatusOverTimeParams as FleetStatusOverTimeParams from .traceroute_test_percentiles_params import TracerouteTestPercentilesParams as TracerouteTestPercentilesParams +from .traceroute_test_network_path_params import TracerouteTestNetworkPathParams as TracerouteTestNetworkPathParams +from .traceroute_test_percentiles_response import TracerouteTestPercentilesResponse as TracerouteTestPercentilesResponse diff --git a/src/cloudflare/types/zero_trust/dex/aggregate_time_period.py b/src/cloudflare/types/zero_trust/dex/aggregate_time_period.py index 787c4e8c2..2a855a312 100644 --- a/src/cloudflare/types/zero_trust/dex/aggregate_time_period.py +++ b/src/cloudflare/types/zero_trust/dex/aggregate_time_period.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing_extensions import Literal + from ...._models import BaseModel -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AggregateTimePeriod"] diff --git a/src/cloudflare/types/zero_trust/dex/colo_list_params.py b/src/cloudflare/types/zero_trust/dex/colo_list_params.py index 7d24d18df..975e137ec 100644 --- a/src/cloudflare/types/zero_trust/dex/colo_list_params.py +++ b/src/cloudflare/types/zero_trust/dex/colo_list_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal +from typing_extensions import Literal, Required, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["ColoListParams"] diff --git a/src/cloudflare/types/zero_trust/dex/fleet_status/__init__.py b/src/cloudflare/types/zero_trust/dex/fleet_status/__init__.py index 4076fc681..62c9574d1 100644 --- a/src/cloudflare/types/zero_trust/dex/fleet_status/__init__.py +++ b/src/cloudflare/types/zero_trust/dex/fleet_status/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .device_list_response import DeviceListResponse as DeviceListResponse from .device_list_params import DeviceListParams as DeviceListParams +from .device_list_response import DeviceListResponse as DeviceListResponse diff --git a/src/cloudflare/types/zero_trust/dex/fleet_status/device_list_params.py b/src/cloudflare/types/zero_trust/dex/fleet_status/device_list_params.py index 4dba07cbb..8e8b07a34 100644 --- a/src/cloudflare/types/zero_trust/dex/fleet_status/device_list_params.py +++ b/src/cloudflare/types/zero_trust/dex/fleet_status/device_list_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal +from typing_extensions import Literal, Required, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["DeviceListParams"] diff --git a/src/cloudflare/types/zero_trust/dex/fleet_status/device_list_response.py b/src/cloudflare/types/zero_trust/dex/fleet_status/device_list_response.py index 588732f07..9d8697ade 100644 --- a/src/cloudflare/types/zero_trust/dex/fleet_status/device_list_response.py +++ b/src/cloudflare/types/zero_trust/dex/fleet_status/device_list_response.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["DeviceListResponse"] diff --git a/src/cloudflare/types/zero_trust/dex/fleet_status_live_params.py b/src/cloudflare/types/zero_trust/dex/fleet_status_live_params.py index 302dc61d1..3f30049cf 100644 --- a/src/cloudflare/types/zero_trust/dex/fleet_status_live_params.py +++ b/src/cloudflare/types/zero_trust/dex/fleet_status_live_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["FleetStatusLiveParams"] diff --git a/src/cloudflare/types/zero_trust/dex/fleet_status_live_response.py b/src/cloudflare/types/zero_trust/dex/fleet_status_live_response.py index 855235300..1ddb17c9f 100644 --- a/src/cloudflare/types/zero_trust/dex/fleet_status_live_response.py +++ b/src/cloudflare/types/zero_trust/dex/fleet_status_live_response.py @@ -1,14 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel +from typing import List, Optional -from typing import Optional, List +from pydantic import Field as FieldInfo from .live_stat import LiveStat - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["FleetStatusLiveResponse", "DeviceStats"] diff --git a/src/cloudflare/types/zero_trust/dex/fleet_status_over_time_params.py b/src/cloudflare/types/zero_trust/dex/fleet_status_over_time_params.py index 0e7e8eedf..662cf4e30 100644 --- a/src/cloudflare/types/zero_trust/dex/fleet_status_over_time_params.py +++ b/src/cloudflare/types/zero_trust/dex/fleet_status_over_time_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated +from typing_extensions import Required, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["FleetStatusOverTimeParams"] diff --git a/src/cloudflare/types/zero_trust/dex/http_details.py b/src/cloudflare/types/zero_trust/dex/http_details.py index 6c5df0bbb..a8f9463dd 100644 --- a/src/cloudflare/types/zero_trust/dex/http_details.py +++ b/src/cloudflare/types/zero_trust/dex/http_details.py @@ -1,19 +1,14 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List, Optional - -from .http_tests.test_stat_over_time import TestStatOverTime - from typing_extensions import Literal -from ..device_experience_monitor import DeviceExperienceMonitor - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel +from ..device_experience_monitor import DeviceExperienceMonitor +from .http_tests.test_stat_over_time import TestStatOverTime + __all__ = [ "HTTPDetails", "HTTPStats", diff --git a/src/cloudflare/types/zero_trust/dex/http_test_get_params.py b/src/cloudflare/types/zero_trust/dex/http_test_get_params.py index d0b8a1fc3..dd57bbf61 100644 --- a/src/cloudflare/types/zero_trust/dex/http_test_get_params.py +++ b/src/cloudflare/types/zero_trust/dex/http_test_get_params.py @@ -2,15 +2,9 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal - -from ...._utils import PropertyInfo - from typing import List +from typing_extensions import Literal, Required, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["HTTPTestGetParams"] diff --git a/src/cloudflare/types/zero_trust/dex/http_tests/__init__.py b/src/cloudflare/types/zero_trust/dex/http_tests/__init__.py index ffb630114..548d69697 100644 --- a/src/cloudflare/types/zero_trust/dex/http_tests/__init__.py +++ b/src/cloudflare/types/zero_trust/dex/http_tests/__init__.py @@ -2,6 +2,6 @@ from __future__ import annotations -from .http_details_percentiles import HTTPDetailsPercentiles as HTTPDetailsPercentiles from .test_stat_over_time import TestStatOverTime as TestStatOverTime from .percentile_get_params import PercentileGetParams as PercentileGetParams +from .http_details_percentiles import HTTPDetailsPercentiles as HTTPDetailsPercentiles diff --git a/src/cloudflare/types/zero_trust/dex/http_tests/http_details_percentiles.py b/src/cloudflare/types/zero_trust/dex/http_tests/http_details_percentiles.py index 56477821b..3c1210d08 100644 --- a/src/cloudflare/types/zero_trust/dex/http_tests/http_details_percentiles.py +++ b/src/cloudflare/types/zero_trust/dex/http_tests/http_details_percentiles.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import Optional -from ...percentiles import Percentiles - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel +from ...percentiles import Percentiles + __all__ = ["HTTPDetailsPercentiles"] diff --git a/src/cloudflare/types/zero_trust/dex/http_tests/percentile_get_params.py b/src/cloudflare/types/zero_trust/dex/http_tests/percentile_get_params.py index ac3f25a0a..78d100960 100644 --- a/src/cloudflare/types/zero_trust/dex/http_tests/percentile_get_params.py +++ b/src/cloudflare/types/zero_trust/dex/http_tests/percentile_get_params.py @@ -2,15 +2,9 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - -from ....._utils import PropertyInfo - from typing import List +from typing_extensions import Required, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes from ....._utils import PropertyInfo __all__ = ["PercentileGetParams"] diff --git a/src/cloudflare/types/zero_trust/dex/http_tests/test_stat_over_time.py b/src/cloudflare/types/zero_trust/dex/http_tests/test_stat_over_time.py index 40930ba36..6fd470656 100644 --- a/src/cloudflare/types/zero_trust/dex/http_tests/test_stat_over_time.py +++ b/src/cloudflare/types/zero_trust/dex/http_tests/test_stat_over_time.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import List, Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["TestStatOverTime", "Slot"] diff --git a/src/cloudflare/types/zero_trust/dex/live_stat.py b/src/cloudflare/types/zero_trust/dex/live_stat.py index 6cd8dd155..653520ff9 100644 --- a/src/cloudflare/types/zero_trust/dex/live_stat.py +++ b/src/cloudflare/types/zero_trust/dex/live_stat.py @@ -1,13 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["LiveStat"] diff --git a/src/cloudflare/types/zero_trust/dex/test_list_params.py b/src/cloudflare/types/zero_trust/dex/test_list_params.py index 53737d7db..73c1b9857 100644 --- a/src/cloudflare/types/zero_trust/dex/test_list_params.py +++ b/src/cloudflare/types/zero_trust/dex/test_list_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - from typing import List +from typing_extensions import Required, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["TestListParams"] diff --git a/src/cloudflare/types/zero_trust/dex/test_list_response.py b/src/cloudflare/types/zero_trust/dex/test_list_response.py index bddb6475f..140ad36e4 100644 --- a/src/cloudflare/types/zero_trust/dex/test_list_response.py +++ b/src/cloudflare/types/zero_trust/dex/test_list_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ...._models import BaseModel - -from typing import Optional, List - -from ...shared.response_info import ResponseInfo - -from typing_extensions import Literal - from .tests.tests import Tests - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...shared.response_info import ResponseInfo __all__ = ["TestListResponse", "ResultInfo"] diff --git a/src/cloudflare/types/zero_trust/dex/tests/tests.py b/src/cloudflare/types/zero_trust/dex/tests/tests.py index 68247f621..208a0f31c 100644 --- a/src/cloudflare/types/zero_trust/dex/tests/tests.py +++ b/src/cloudflare/types/zero_trust/dex/tests/tests.py @@ -1,19 +1,14 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - -from typing import Optional, List - -from ..aggregate_time_period import AggregateTimePeriod - +from typing import List, Optional from typing_extensions import Literal -from ...device_experience_monitor import DeviceExperienceMonitor - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel +from ..aggregate_time_period import AggregateTimePeriod +from ...device_experience_monitor import DeviceExperienceMonitor + __all__ = [ "Tests", "OverviewMetrics", diff --git a/src/cloudflare/types/zero_trust/dex/tests/unique_device_list_params.py b/src/cloudflare/types/zero_trust/dex/tests/unique_device_list_params.py index f442d2864..922fbb1d5 100644 --- a/src/cloudflare/types/zero_trust/dex/tests/unique_device_list_params.py +++ b/src/cloudflare/types/zero_trust/dex/tests/unique_device_list_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - from typing import List +from typing_extensions import Required, Annotated, TypedDict from ....._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["UniqueDeviceListParams"] diff --git a/src/cloudflare/types/zero_trust/dex/tests/unique_devices.py b/src/cloudflare/types/zero_trust/dex/tests/unique_devices.py index 4bdf84e8c..2b5472dbf 100644 --- a/src/cloudflare/types/zero_trust/dex/tests/unique_devices.py +++ b/src/cloudflare/types/zero_trust/dex/tests/unique_devices.py @@ -1,11 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["UniqueDevices"] diff --git a/src/cloudflare/types/zero_trust/dex/traceroute.py b/src/cloudflare/types/zero_trust/dex/traceroute.py index 0eff7bc5f..3faa4dbcb 100644 --- a/src/cloudflare/types/zero_trust/dex/traceroute.py +++ b/src/cloudflare/types/zero_trust/dex/traceroute.py @@ -1,19 +1,14 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List, Optional - -from .http_tests.test_stat_over_time import TestStatOverTime - from typing_extensions import Literal -from ..device_experience_monitor import DeviceExperienceMonitor - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel +from ..device_experience_monitor import DeviceExperienceMonitor +from .http_tests.test_stat_over_time import TestStatOverTime + __all__ = [ "Traceroute", "TracerouteStats", diff --git a/src/cloudflare/types/zero_trust/dex/traceroute_test_get_params.py b/src/cloudflare/types/zero_trust/dex/traceroute_test_get_params.py index 9fa3566fc..54b4a51b5 100644 --- a/src/cloudflare/types/zero_trust/dex/traceroute_test_get_params.py +++ b/src/cloudflare/types/zero_trust/dex/traceroute_test_get_params.py @@ -2,15 +2,9 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal - -from ...._utils import PropertyInfo - from typing import List +from typing_extensions import Literal, Required, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["TracerouteTestGetParams"] diff --git a/src/cloudflare/types/zero_trust/dex/traceroute_test_network_path_params.py b/src/cloudflare/types/zero_trust/dex/traceroute_test_network_path_params.py index e092c8995..b6ffc3f49 100644 --- a/src/cloudflare/types/zero_trust/dex/traceroute_test_network_path_params.py +++ b/src/cloudflare/types/zero_trust/dex/traceroute_test_network_path_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal +from typing_extensions import Literal, Required, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["TracerouteTestNetworkPathParams"] diff --git a/src/cloudflare/types/zero_trust/dex/traceroute_test_percentiles_params.py b/src/cloudflare/types/zero_trust/dex/traceroute_test_percentiles_params.py index 2ed7a2aab..d6ada52d1 100644 --- a/src/cloudflare/types/zero_trust/dex/traceroute_test_percentiles_params.py +++ b/src/cloudflare/types/zero_trust/dex/traceroute_test_percentiles_params.py @@ -2,15 +2,9 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - -from ...._utils import PropertyInfo - from typing import List +from typing_extensions import Required, Annotated, TypedDict -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = ["TracerouteTestPercentilesParams"] diff --git a/src/cloudflare/types/zero_trust/dex/traceroute_test_percentiles_response.py b/src/cloudflare/types/zero_trust/dex/traceroute_test_percentiles_response.py index 46e96b4ed..8644cb3fb 100644 --- a/src/cloudflare/types/zero_trust/dex/traceroute_test_percentiles_response.py +++ b/src/cloudflare/types/zero_trust/dex/traceroute_test_percentiles_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from ..percentiles import Percentiles - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel +from ..percentiles import Percentiles + __all__ = ["TracerouteTestPercentilesResponse"] diff --git a/src/cloudflare/types/zero_trust/dex/traceroute_test_results/network_path_get_response.py b/src/cloudflare/types/zero_trust/dex/traceroute_test_results/network_path_get_response.py index d38c6042b..8b14533ea 100644 --- a/src/cloudflare/types/zero_trust/dex/traceroute_test_results/network_path_get_response.py +++ b/src/cloudflare/types/zero_trust/dex/traceroute_test_results/network_path_get_response.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ....._models import BaseModel + __all__ = ["NetworkPathGetResponse", "Hop", "HopLocation"] diff --git a/src/cloudflare/types/zero_trust/dlp/__init__.py b/src/cloudflare/types/zero_trust/dlp/__init__.py index df6fe9908..b6c5ef3b7 100644 --- a/src/cloudflare/types/zero_trust/dlp/__init__.py +++ b/src/cloudflare/types/zero_trust/dlp/__init__.py @@ -3,19 +3,19 @@ from __future__ import annotations from .dataset import Dataset as Dataset +from .profile import Profile as Profile from .dataset_array import DatasetArray as DatasetArray from .dataset_creation import DatasetCreation as DatasetCreation +from .context_awareness import ContextAwareness as ContextAwareness +from .skip_configuration import SkipConfiguration as SkipConfiguration +from .limit_list_response import LimitListResponse as LimitListResponse +from .profile_list_params import ProfileListParams as ProfileListParams from .dataset_create_params import DatasetCreateParams as DatasetCreateParams from .dataset_update_params import DatasetUpdateParams as DatasetUpdateParams -from .pattern_validate_response import PatternValidateResponse as PatternValidateResponse -from .pattern_validate_params import PatternValidateParams as PatternValidateParams -from .payload_log_update_response import PayloadLogUpdateResponse as PayloadLogUpdateResponse -from .payload_log_get_response import PayloadLogGetResponse as PayloadLogGetResponse -from .payload_log_update_params import PayloadLogUpdateParams as PayloadLogUpdateParams -from .context_awareness import ContextAwareness as ContextAwareness from .context_awareness_param import ContextAwarenessParam as ContextAwarenessParam -from .profile import Profile as Profile -from .skip_configuration import SkipConfiguration as SkipConfiguration +from .pattern_validate_params import PatternValidateParams as PatternValidateParams +from .payload_log_get_response import PayloadLogGetResponse as PayloadLogGetResponse from .skip_configuration_param import SkipConfigurationParam as SkipConfigurationParam -from .profile_list_params import ProfileListParams as ProfileListParams -from .limit_list_response import LimitListResponse as LimitListResponse +from .pattern_validate_response import PatternValidateResponse as PatternValidateResponse +from .payload_log_update_params import PayloadLogUpdateParams as PayloadLogUpdateParams +from .payload_log_update_response import PayloadLogUpdateResponse as PayloadLogUpdateResponse diff --git a/src/cloudflare/types/zero_trust/dlp/context_awareness.py b/src/cloudflare/types/zero_trust/dlp/context_awareness.py index 19700aff3..fceb2c250 100644 --- a/src/cloudflare/types/zero_trust/dlp/context_awareness.py +++ b/src/cloudflare/types/zero_trust/dlp/context_awareness.py @@ -1,13 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ...._models import BaseModel - from .skip_configuration import SkipConfiguration -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ContextAwareness"] diff --git a/src/cloudflare/types/zero_trust/dlp/context_awareness_param.py b/src/cloudflare/types/zero_trust/dlp/context_awareness_param.py index 74e29fbdc..9f9d92b1c 100644 --- a/src/cloudflare/types/zero_trust/dlp/context_awareness_param.py +++ b/src/cloudflare/types/zero_trust/dlp/context_awareness_param.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .skip_configuration_param import SkipConfigurationParam +from typing_extensions import Required, TypedDict -from typing_extensions import TypedDict, Required +from .skip_configuration_param import SkipConfigurationParam __all__ = ["ContextAwarenessParam"] diff --git a/src/cloudflare/types/zero_trust/dlp/dataset.py b/src/cloudflare/types/zero_trust/dlp/dataset.py index a3964152d..a7f2b015e 100644 --- a/src/cloudflare/types/zero_trust/dlp/dataset.py +++ b/src/cloudflare/types/zero_trust/dlp/dataset.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing_extensions import Literal - from typing import List, Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["Dataset", "Column", "Upload"] diff --git a/src/cloudflare/types/zero_trust/dlp/dataset_array.py b/src/cloudflare/types/zero_trust/dlp/dataset_array.py index 1c0ee41a3..92e05fadd 100644 --- a/src/cloudflare/types/zero_trust/dlp/dataset_array.py +++ b/src/cloudflare/types/zero_trust/dlp/dataset_array.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .dataset import Dataset - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .dataset import Dataset __all__ = ["DatasetArray"] diff --git a/src/cloudflare/types/zero_trust/dlp/dataset_create_params.py b/src/cloudflare/types/zero_trust/dlp/dataset_create_params.py index df90c7142..92984fe0b 100644 --- a/src/cloudflare/types/zero_trust/dlp/dataset_create_params.py +++ b/src/cloudflare/types/zero_trust/dlp/dataset_create_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Optional - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["DatasetCreateParams"] diff --git a/src/cloudflare/types/zero_trust/dlp/dataset_creation.py b/src/cloudflare/types/zero_trust/dlp/dataset_creation.py index b5b12ea4e..8f47135be 100644 --- a/src/cloudflare/types/zero_trust/dlp/dataset_creation.py +++ b/src/cloudflare/types/zero_trust/dlp/dataset_creation.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from .dataset import Dataset - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .dataset import Dataset +from ...._models import BaseModel __all__ = ["DatasetCreation"] diff --git a/src/cloudflare/types/zero_trust/dlp/dataset_update_params.py b/src/cloudflare/types/zero_trust/dlp/dataset_update_params.py index 96f5e4309..2b43f4c60 100644 --- a/src/cloudflare/types/zero_trust/dlp/dataset_update_params.py +++ b/src/cloudflare/types/zero_trust/dlp/dataset_update_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Optional - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["DatasetUpdateParams"] diff --git a/src/cloudflare/types/zero_trust/dlp/datasets/__init__.py b/src/cloudflare/types/zero_trust/dlp/datasets/__init__.py index 9566e44f2..bfb205bba 100644 --- a/src/cloudflare/types/zero_trust/dlp/datasets/__init__.py +++ b/src/cloudflare/types/zero_trust/dlp/datasets/__init__.py @@ -4,5 +4,5 @@ from __future__ import annotations from .new_version import NewVersion as NewVersion from .upload_edit_params import UploadEditParams as UploadEditParams -from .version_create_response import VersionCreateResponse as VersionCreateResponse from .version_create_params import VersionCreateParams as VersionCreateParams +from .version_create_response import VersionCreateResponse as VersionCreateResponse diff --git a/src/cloudflare/types/zero_trust/dlp/datasets/new_version.py b/src/cloudflare/types/zero_trust/dlp/datasets/new_version.py index 698bf09a4..c93b1d6c4 100644 --- a/src/cloudflare/types/zero_trust/dlp/datasets/new_version.py +++ b/src/cloudflare/types/zero_trust/dlp/datasets/new_version.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional +from typing_extensions import Literal + from ....._models import BaseModel -from typing_extensions import Literal - -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["NewVersion", "Column"] diff --git a/src/cloudflare/types/zero_trust/dlp/datasets/upload_edit_params.py b/src/cloudflare/types/zero_trust/dlp/datasets/upload_edit_params.py index 72974e785..1a0500f09 100644 --- a/src/cloudflare/types/zero_trust/dlp/datasets/upload_edit_params.py +++ b/src/cloudflare/types/zero_trust/dlp/datasets/upload_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["UploadEditParams"] diff --git a/src/cloudflare/types/zero_trust/dlp/datasets/version_create_params.py b/src/cloudflare/types/zero_trust/dlp/datasets/version_create_params.py index 4efce79d3..dc3c07ea1 100755 --- a/src/cloudflare/types/zero_trust/dlp/datasets/version_create_params.py +++ b/src/cloudflare/types/zero_trust/dlp/datasets/version_create_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, TypeAlias - -from typing import Iterable, Union - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from typing import Union, Iterable +from typing_extensions import Required, TypeAlias, TypedDict __all__ = ["VersionCreateParams", "Body", "BodyExistingColumn", "BodyNewColumn"] diff --git a/src/cloudflare/types/zero_trust/dlp/datasets/version_create_response.py b/src/cloudflare/types/zero_trust/dlp/datasets/version_create_response.py index b71e4c6a3..d1980a52a 100755 --- a/src/cloudflare/types/zero_trust/dlp/datasets/version_create_response.py +++ b/src/cloudflare/types/zero_trust/dlp/datasets/version_create_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - +from typing import List from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["VersionCreateResponse", "VersionCreateResponseItem"] diff --git a/src/cloudflare/types/zero_trust/dlp/datasets/versions/__init__.py b/src/cloudflare/types/zero_trust/dlp/datasets/versions/__init__.py index b28bcd711..8e291f8ba 100755 --- a/src/cloudflare/types/zero_trust/dlp/datasets/versions/__init__.py +++ b/src/cloudflare/types/zero_trust/dlp/datasets/versions/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .entry_create_response import EntryCreateResponse as EntryCreateResponse from .entry_create_params import EntryCreateParams as EntryCreateParams +from .entry_create_response import EntryCreateResponse as EntryCreateResponse diff --git a/src/cloudflare/types/zero_trust/dlp/datasets/versions/entry_create_params.py b/src/cloudflare/types/zero_trust/dlp/datasets/versions/entry_create_params.py index 0aad6a835..9dbe58ba3 100755 --- a/src/cloudflare/types/zero_trust/dlp/datasets/versions/entry_create_params.py +++ b/src/cloudflare/types/zero_trust/dlp/datasets/versions/entry_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ......_types import FileTypes -from ......_utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["EntryCreateParams"] diff --git a/src/cloudflare/types/zero_trust/dlp/datasets/versions/entry_create_response.py b/src/cloudflare/types/zero_trust/dlp/datasets/versions/entry_create_response.py index 5453de496..9a830f807 100755 --- a/src/cloudflare/types/zero_trust/dlp/datasets/versions/entry_create_response.py +++ b/src/cloudflare/types/zero_trust/dlp/datasets/versions/entry_create_response.py @@ -1,13 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing_extensions import Literal + from ......_models import BaseModel -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["EntryCreateResponse"] diff --git a/src/cloudflare/types/zero_trust/dlp/limit_list_response.py b/src/cloudflare/types/zero_trust/dlp/limit_list_response.py index 4c14ccc9e..9404635bb 100755 --- a/src/cloudflare/types/zero_trust/dlp/limit_list_response.py +++ b/src/cloudflare/types/zero_trust/dlp/limit_list_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["LimitListResponse"] diff --git a/src/cloudflare/types/zero_trust/dlp/pattern_validate_params.py b/src/cloudflare/types/zero_trust/dlp/pattern_validate_params.py index 105eae0d8..534fb4af1 100644 --- a/src/cloudflare/types/zero_trust/dlp/pattern_validate_params.py +++ b/src/cloudflare/types/zero_trust/dlp/pattern_validate_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["PatternValidateParams"] diff --git a/src/cloudflare/types/zero_trust/dlp/pattern_validate_response.py b/src/cloudflare/types/zero_trust/dlp/pattern_validate_response.py index f5c926fbb..70bae89bd 100644 --- a/src/cloudflare/types/zero_trust/dlp/pattern_validate_response.py +++ b/src/cloudflare/types/zero_trust/dlp/pattern_validate_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["PatternValidateResponse"] diff --git a/src/cloudflare/types/zero_trust/dlp/payload_log_get_response.py b/src/cloudflare/types/zero_trust/dlp/payload_log_get_response.py index 401947f1c..648ba73dc 100644 --- a/src/cloudflare/types/zero_trust/dlp/payload_log_get_response.py +++ b/src/cloudflare/types/zero_trust/dlp/payload_log_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import Optional from datetime import datetime -from typing import Optional - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["PayloadLogGetResponse"] diff --git a/src/cloudflare/types/zero_trust/dlp/payload_log_update_params.py b/src/cloudflare/types/zero_trust/dlp/payload_log_update_params.py index 1ed9811f6..00ba11328 100644 --- a/src/cloudflare/types/zero_trust/dlp/payload_log_update_params.py +++ b/src/cloudflare/types/zero_trust/dlp/payload_log_update_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Optional - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["PayloadLogUpdateParams"] diff --git a/src/cloudflare/types/zero_trust/dlp/payload_log_update_response.py b/src/cloudflare/types/zero_trust/dlp/payload_log_update_response.py index a7779b4d2..1a4e55436 100644 --- a/src/cloudflare/types/zero_trust/dlp/payload_log_update_response.py +++ b/src/cloudflare/types/zero_trust/dlp/payload_log_update_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import Optional from datetime import datetime -from typing import Optional - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["PayloadLogUpdateResponse"] diff --git a/src/cloudflare/types/zero_trust/dlp/profile.py b/src/cloudflare/types/zero_trust/dlp/profile.py index 31262ccfc..a4ecaabe5 100644 --- a/src/cloudflare/types/zero_trust/dlp/profile.py +++ b/src/cloudflare/types/zero_trust/dlp/profile.py @@ -1,23 +1,14 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import List, Union, Optional from datetime import datetime - -from .profiles.pattern import Pattern - -from typing_extensions import Literal, TypeAlias, Annotated - -from typing import Optional, List +from typing_extensions import Literal, Annotated, TypeAlias from ...._utils import PropertyInfo - +from ...._models import BaseModel +from .profiles.pattern import Pattern from .context_awareness import ContextAwareness -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = [ "Profile", "Custom", diff --git a/src/cloudflare/types/zero_trust/dlp/profile_list_params.py b/src/cloudflare/types/zero_trust/dlp/profile_list_params.py index cdb24fdb8..861653b11 100755 --- a/src/cloudflare/types/zero_trust/dlp/profile_list_params.py +++ b/src/cloudflare/types/zero_trust/dlp/profile_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ProfileListParams"] diff --git a/src/cloudflare/types/zero_trust/dlp/profiles/__init__.py b/src/cloudflare/types/zero_trust/dlp/profiles/__init__.py index 2057c7a27..4929dee8c 100644 --- a/src/cloudflare/types/zero_trust/dlp/profiles/__init__.py +++ b/src/cloudflare/types/zero_trust/dlp/profiles/__init__.py @@ -4,7 +4,7 @@ from __future__ import annotations from .pattern import Pattern as Pattern from .pattern_param import PatternParam as PatternParam -from .custom_create_response import CustomCreateResponse as CustomCreateResponse from .custom_create_params import CustomCreateParams as CustomCreateParams from .custom_update_params import CustomUpdateParams as CustomUpdateParams +from .custom_create_response import CustomCreateResponse as CustomCreateResponse from .predefined_update_params import PredefinedUpdateParams as PredefinedUpdateParams diff --git a/src/cloudflare/types/zero_trust/dlp/profiles/custom_create_params.py b/src/cloudflare/types/zero_trust/dlp/profiles/custom_create_params.py index cf83c76f0..f521aaf0a 100644 --- a/src/cloudflare/types/zero_trust/dlp/profiles/custom_create_params.py +++ b/src/cloudflare/types/zero_trust/dlp/profiles/custom_create_params.py @@ -2,18 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, TypeAlias, Literal - -from typing import Iterable, Optional, List, Union - -from ..context_awareness_param import ContextAwarenessParam +from typing import List, Union, Iterable, Optional +from typing_extensions import Literal, Required, TypeAlias, TypedDict from .pattern_param import PatternParam - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from ..context_awareness_param import ContextAwarenessParam __all__ = [ "CustomCreateParams", diff --git a/src/cloudflare/types/zero_trust/dlp/profiles/custom_create_response.py b/src/cloudflare/types/zero_trust/dlp/profiles/custom_create_response.py index 9b2aa556e..32525a0ba 100644 --- a/src/cloudflare/types/zero_trust/dlp/profiles/custom_create_response.py +++ b/src/cloudflare/types/zero_trust/dlp/profiles/custom_create_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..profile import Profile - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..profile import Profile __all__ = ["CustomCreateResponse"] diff --git a/src/cloudflare/types/zero_trust/dlp/profiles/custom_update_params.py b/src/cloudflare/types/zero_trust/dlp/profiles/custom_update_params.py index f95072f4d..5c93d2df5 100644 --- a/src/cloudflare/types/zero_trust/dlp/profiles/custom_update_params.py +++ b/src/cloudflare/types/zero_trust/dlp/profiles/custom_update_params.py @@ -2,18 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, TypeAlias, Literal - -from typing import Iterable, Optional, Union - -from ..context_awareness_param import ContextAwarenessParam +from typing import Union, Iterable, Optional +from typing_extensions import Literal, Required, TypeAlias, TypedDict from .pattern_param import PatternParam - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from ..context_awareness_param import ContextAwarenessParam __all__ = [ "CustomUpdateParams", diff --git a/src/cloudflare/types/zero_trust/dlp/profiles/pattern.py b/src/cloudflare/types/zero_trust/dlp/profiles/pattern.py index ae358b5d0..29aaba37e 100644 --- a/src/cloudflare/types/zero_trust/dlp/profiles/pattern.py +++ b/src/cloudflare/types/zero_trust/dlp/profiles/pattern.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["Pattern"] diff --git a/src/cloudflare/types/zero_trust/dlp/profiles/pattern_param.py b/src/cloudflare/types/zero_trust/dlp/profiles/pattern_param.py index 5fb3ac611..6f085ff60 100644 --- a/src/cloudflare/types/zero_trust/dlp/profiles/pattern_param.py +++ b/src/cloudflare/types/zero_trust/dlp/profiles/pattern_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict, Required +from typing_extensions import Literal, Required, TypedDict __all__ = ["PatternParam"] diff --git a/src/cloudflare/types/zero_trust/dlp/profiles/predefined_update_params.py b/src/cloudflare/types/zero_trust/dlp/profiles/predefined_update_params.py index a94679061..cedf89df9 100644 --- a/src/cloudflare/types/zero_trust/dlp/profiles/predefined_update_params.py +++ b/src/cloudflare/types/zero_trust/dlp/profiles/predefined_update_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Iterable, Optional +from typing_extensions import Required, TypedDict from ..context_awareness_param import ContextAwarenessParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo - __all__ = ["PredefinedUpdateParams", "Entry"] diff --git a/src/cloudflare/types/zero_trust/dlp/skip_configuration.py b/src/cloudflare/types/zero_trust/dlp/skip_configuration.py index bccba8acd..5a5256081 100644 --- a/src/cloudflare/types/zero_trust/dlp/skip_configuration.py +++ b/src/cloudflare/types/zero_trust/dlp/skip_configuration.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["SkipConfiguration"] diff --git a/src/cloudflare/types/zero_trust/dlp/skip_configuration_param.py b/src/cloudflare/types/zero_trust/dlp/skip_configuration_param.py index fb24c90c5..e8d6c634e 100644 --- a/src/cloudflare/types/zero_trust/dlp/skip_configuration_param.py +++ b/src/cloudflare/types/zero_trust/dlp/skip_configuration_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["SkipConfigurationParam"] diff --git a/src/cloudflare/types/zero_trust/domain_rule.py b/src/cloudflare/types/zero_trust/domain_rule.py index afe912a84..7c469d7a2 100644 --- a/src/cloudflare/types/zero_trust/domain_rule.py +++ b/src/cloudflare/types/zero_trust/domain_rule.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["DomainRule", "EmailDomain"] diff --git a/src/cloudflare/types/zero_trust/domain_rule_param.py b/src/cloudflare/types/zero_trust/domain_rule_param.py index 4318f0850..e8bcab749 100644 --- a/src/cloudflare/types/zero_trust/domain_rule_param.py +++ b/src/cloudflare/types/zero_trust/domain_rule_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["DomainRuleParam", "EmailDomain"] diff --git a/src/cloudflare/types/zero_trust/email_list_rule.py b/src/cloudflare/types/zero_trust/email_list_rule.py index 5d62e95f9..4323cde05 100644 --- a/src/cloudflare/types/zero_trust/email_list_rule.py +++ b/src/cloudflare/types/zero_trust/email_list_rule.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["EmailListRule", "EmailList"] diff --git a/src/cloudflare/types/zero_trust/email_list_rule_param.py b/src/cloudflare/types/zero_trust/email_list_rule_param.py index 67e28f899..71b725e2f 100644 --- a/src/cloudflare/types/zero_trust/email_list_rule_param.py +++ b/src/cloudflare/types/zero_trust/email_list_rule_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["EmailListRuleParam", "EmailList"] diff --git a/src/cloudflare/types/zero_trust/email_rule.py b/src/cloudflare/types/zero_trust/email_rule.py index 1d4b3dd8d..4e56f9563 100644 --- a/src/cloudflare/types/zero_trust/email_rule.py +++ b/src/cloudflare/types/zero_trust/email_rule.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["EmailRule", "Email"] diff --git a/src/cloudflare/types/zero_trust/email_rule_param.py b/src/cloudflare/types/zero_trust/email_rule_param.py index 89daf63fe..b43061fe4 100644 --- a/src/cloudflare/types/zero_trust/email_rule_param.py +++ b/src/cloudflare/types/zero_trust/email_rule_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["EmailRuleParam", "Email"] diff --git a/src/cloudflare/types/zero_trust/everyone_rule.py b/src/cloudflare/types/zero_trust/everyone_rule.py index cadb4864c..3077a7b52 100644 --- a/src/cloudflare/types/zero_trust/everyone_rule.py +++ b/src/cloudflare/types/zero_trust/everyone_rule.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["EveryoneRule"] diff --git a/src/cloudflare/types/zero_trust/everyone_rule_param.py b/src/cloudflare/types/zero_trust/everyone_rule_param.py index 725881ada..b026c3d21 100644 --- a/src/cloudflare/types/zero_trust/everyone_rule_param.py +++ b/src/cloudflare/types/zero_trust/everyone_rule_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["EveryoneRuleParam"] diff --git a/src/cloudflare/types/zero_trust/external_evaluation_rule.py b/src/cloudflare/types/zero_trust/external_evaluation_rule.py index 8541959ea..c72a4dea2 100644 --- a/src/cloudflare/types/zero_trust/external_evaluation_rule.py +++ b/src/cloudflare/types/zero_trust/external_evaluation_rule.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["ExternalEvaluationRule", "ExternalEvaluation"] diff --git a/src/cloudflare/types/zero_trust/external_evaluation_rule_param.py b/src/cloudflare/types/zero_trust/external_evaluation_rule_param.py index ebd0bfac1..df598ab7c 100644 --- a/src/cloudflare/types/zero_trust/external_evaluation_rule_param.py +++ b/src/cloudflare/types/zero_trust/external_evaluation_rule_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["ExternalEvaluationRuleParam", "ExternalEvaluation"] diff --git a/src/cloudflare/types/zero_trust/gateway/__init__.py b/src/cloudflare/types/zero_trust/gateway/__init__.py index 532fd3f08..0be90d484 100644 --- a/src/cloudflare/types/zero_trust/gateway/__init__.py +++ b/src/cloudflare/types/zero_trust/gateway/__init__.py @@ -2,89 +2,89 @@ from __future__ import annotations -from .gateway_settings import GatewaySettings as GatewaySettings -from .audit_ssh_setting_update_params import AuditSSHSettingUpdateParams as AuditSSHSettingUpdateParams -from .category import Category as Category from .app_type import AppType as AppType -from .activity_log_settings import ActivityLogSettings as ActivityLogSettings -from .activity_log_settings_param import ActivityLogSettingsParam as ActivityLogSettingsParam -from .anti_virus_settings import AntiVirusSettings as AntiVirusSettings -from .anti_virus_settings_param import AntiVirusSettingsParam as AntiVirusSettingsParam -from .block_page_settings import BlockPageSettings as BlockPageSettings -from .block_page_settings_param import BlockPageSettingsParam as BlockPageSettingsParam -from .body_scanning_settings import BodyScanningSettings as BodyScanningSettings -from .body_scanning_settings_param import BodyScanningSettingsParam as BodyScanningSettingsParam -from .browser_isolation_settings import BrowserIsolationSettings as BrowserIsolationSettings -from .browser_isolation_settings_param import BrowserIsolationSettingsParam as BrowserIsolationSettingsParam -from .custom_certificate_settings import CustomCertificateSettings as CustomCertificateSettings -from .custom_certificate_settings_param import CustomCertificateSettingsParam as CustomCertificateSettingsParam -from .extended_email_matching import ExtendedEmailMatching as ExtendedEmailMatching -from .extended_email_matching_param import ExtendedEmailMatchingParam as ExtendedEmailMatchingParam -from .fips_settings import FipsSettings as FipsSettings -from .fips_settings_param import FipsSettingsParam as FipsSettingsParam -from .gateway_configuration_settings import GatewayConfigurationSettings as GatewayConfigurationSettings -from .gateway_configuration_settings_param import GatewayConfigurationSettingsParam as GatewayConfigurationSettingsParam -from .notification_settings import NotificationSettings as NotificationSettings -from .notification_settings_param import NotificationSettingsParam as NotificationSettingsParam -from .protocol_detection import ProtocolDetection as ProtocolDetection -from .protocol_detection_param import ProtocolDetectionParam as ProtocolDetectionParam -from .tls_settings import TLSSettings as TLSSettings -from .tls_settings_param import TLSSettingsParam as TLSSettingsParam -from .configuration_update_response import ConfigurationUpdateResponse as ConfigurationUpdateResponse -from .configuration_edit_response import ConfigurationEditResponse as ConfigurationEditResponse -from .configuration_get_response import ConfigurationGetResponse as ConfigurationGetResponse -from .configuration_update_params import ConfigurationUpdateParams as ConfigurationUpdateParams -from .configuration_edit_params import ConfigurationEditParams as ConfigurationEditParams +from .category import Category as Category +from .endpoint import Endpoint as Endpoint +from .location import Location as Location +from .schedule import Schedule as Schedule +from .ip_network import IPNetwork as IPNetwork +from .gateway_ips import GatewayIPs as GatewayIPs +from .doh_endpoint import DOHEndpoint as DOHEndpoint +from .dot_endpoint import DOTEndpoint as DOTEndpoint from .gateway_item import GatewayItem as GatewayItem -from .gateway_item_param import GatewayItemParam as GatewayItemParam from .gateway_list import GatewayList as GatewayList -from .list_create_response import ListCreateResponse as ListCreateResponse +from .gateway_rule import GatewayRule as GatewayRule +from .ipv6_network import IPV6Network as IPV6Network +from .rule_setting import RuleSetting as RuleSetting +from .tls_settings import TLSSettings as TLSSettings +from .fips_settings import FipsSettings as FipsSettings +from .ipv4_endpoint import IPV4Endpoint as IPV4Endpoint +from .ipv6_endpoint import IPV6Endpoint as IPV6Endpoint +from .endpoint_param import EndpointParam as EndpointParam +from .gateway_filter import GatewayFilter as GatewayFilter +from .proxy_endpoint import ProxyEndpoint as ProxyEndpoint +from .schedule_param import ScheduleParam as ScheduleParam +from .logging_setting import LoggingSetting as LoggingSetting +from .gateway_settings import GatewaySettings as GatewaySettings +from .ip_network_param import IPNetworkParam as IPNetworkParam +from .list_edit_params import ListEditParams as ListEditParams +from .list_list_params import ListListParams as ListListParams +from .doh_endpoint_param import DOHEndpointParam as DOHEndpointParam +from .dot_endpoint_param import DOTEndpointParam as DOTEndpointParam +from .gateway_item_param import GatewayItemParam as GatewayItemParam +from .ipv6_network_param import IPV6NetworkParam as IPV6NetworkParam from .list_create_params import ListCreateParams as ListCreateParams from .list_update_params import ListUpdateParams as ListUpdateParams -from .list_list_params import ListListParams as ListListParams -from .list_edit_params import ListEditParams as ListEditParams -from .doh_endpoint import DOHEndpoint as DOHEndpoint -from .doh_endpoint_param import DOHEndpointParam as DOHEndpointParam -from .dot_endpoint import DOTEndpoint as DOTEndpoint -from .dot_endpoint_param import DOTEndpointParam as DOTEndpointParam -from .endpoint import Endpoint as Endpoint -from .endpoint_param import EndpointParam as EndpointParam -from .ip_network import IPNetwork as IPNetwork -from .ip_network_param import IPNetworkParam as IPNetworkParam -from .ipv4_endpoint import IPV4Endpoint as IPV4Endpoint +from .protocol_detection import ProtocolDetection as ProtocolDetection +from .rule_create_params import RuleCreateParams as RuleCreateParams +from .rule_setting_param import RuleSettingParam as RuleSettingParam +from .rule_update_params import RuleUpdateParams as RuleUpdateParams +from .tls_settings_param import TLSSettingsParam as TLSSettingsParam +from .anti_virus_settings import AntiVirusSettings as AntiVirusSettings +from .block_page_settings import BlockPageSettings as BlockPageSettings +from .fips_settings_param import FipsSettingsParam as FipsSettingsParam from .ipv4_endpoint_param import IPV4EndpointParam as IPV4EndpointParam -from .ipv6_endpoint import IPV6Endpoint as IPV6Endpoint from .ipv6_endpoint_param import IPV6EndpointParam as IPV6EndpointParam -from .ipv6_network import IPV6Network as IPV6Network -from .ipv6_network_param import IPV6NetworkParam as IPV6NetworkParam -from .location import Location as Location +from .list_create_response import ListCreateResponse as ListCreateResponse +from .activity_log_settings import ActivityLogSettings as ActivityLogSettings +from .logging_update_params import LoggingUpdateParams as LoggingUpdateParams +from .notification_settings import NotificationSettings as NotificationSettings +from .body_scanning_settings import BodyScanningSettings as BodyScanningSettings from .location_create_params import LocationCreateParams as LocationCreateParams from .location_update_params import LocationUpdateParams as LocationUpdateParams -from .logging_setting import LoggingSetting as LoggingSetting -from .logging_update_params import LoggingUpdateParams as LoggingUpdateParams -from .gateway_ips import GatewayIPs as GatewayIPs -from .proxy_endpoint import ProxyEndpoint as ProxyEndpoint -from .proxy_endpoint_get_response import ProxyEndpointGetResponse as ProxyEndpointGetResponse -from .proxy_endpoint_create_params import ProxyEndpointCreateParams as ProxyEndpointCreateParams -from .proxy_endpoint_edit_params import ProxyEndpointEditParams as ProxyEndpointEditParams -from .dns_resolver_settings_v4 import DNSResolverSettingsV4 as DNSResolverSettingsV4 -from .dns_resolver_settings_v4_param import DNSResolverSettingsV4Param as DNSResolverSettingsV4Param -from .dns_resolver_settings_v6 import DNSResolverSettingsV6 as DNSResolverSettingsV6 -from .dns_resolver_settings_v6_param import DNSResolverSettingsV6Param as DNSResolverSettingsV6Param -from .gateway_filter import GatewayFilter as GatewayFilter -from .gateway_rule import GatewayRule as GatewayRule -from .rule_setting import RuleSetting as RuleSetting -from .rule_setting_param import RuleSettingParam as RuleSettingParam -from .schedule import Schedule as Schedule -from .schedule_param import ScheduleParam as ScheduleParam -from .rule_create_params import RuleCreateParams as RuleCreateParams -from .rule_update_params import RuleUpdateParams as RuleUpdateParams -from .certificate_create_response import CertificateCreateResponse as CertificateCreateResponse -from .certificate_list_response import CertificateListResponse as CertificateListResponse -from .certificate_delete_response import CertificateDeleteResponse as CertificateDeleteResponse -from .certificate_activate_response import CertificateActivateResponse as CertificateActivateResponse -from .certificate_deactivate_response import CertificateDeactivateResponse as CertificateDeactivateResponse +from .extended_email_matching import ExtendedEmailMatching as ExtendedEmailMatching from .certificate_get_response import CertificateGetResponse as CertificateGetResponse +from .dns_resolver_settings_v4 import DNSResolverSettingsV4 as DNSResolverSettingsV4 +from .dns_resolver_settings_v6 import DNSResolverSettingsV6 as DNSResolverSettingsV6 +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 from .certificate_create_params import CertificateCreateParams as CertificateCreateParams +from .certificate_list_response import CertificateListResponse as CertificateListResponse +from .configuration_edit_params import ConfigurationEditParams as ConfigurationEditParams +from .browser_isolation_settings import BrowserIsolationSettings as BrowserIsolationSettings +from .configuration_get_response import ConfigurationGetResponse as ConfigurationGetResponse +from .proxy_endpoint_edit_params import ProxyEndpointEditParams as ProxyEndpointEditParams +from .activity_log_settings_param import ActivityLogSettingsParam as ActivityLogSettingsParam from .certificate_activate_params import CertificateActivateParams as CertificateActivateParams +from .certificate_create_response import CertificateCreateResponse as CertificateCreateResponse +from .certificate_delete_response import CertificateDeleteResponse as CertificateDeleteResponse +from .configuration_edit_response import ConfigurationEditResponse as ConfigurationEditResponse +from .configuration_update_params import ConfigurationUpdateParams as ConfigurationUpdateParams +from .custom_certificate_settings import CustomCertificateSettings as CustomCertificateSettings +from .notification_settings_param import NotificationSettingsParam as NotificationSettingsParam +from .proxy_endpoint_get_response import ProxyEndpointGetResponse as ProxyEndpointGetResponse +from .body_scanning_settings_param import BodyScanningSettingsParam as BodyScanningSettingsParam +from .proxy_endpoint_create_params import ProxyEndpointCreateParams as ProxyEndpointCreateParams +from .certificate_activate_response import CertificateActivateResponse as CertificateActivateResponse from .certificate_deactivate_params import CertificateDeactivateParams as CertificateDeactivateParams +from .configuration_update_response import ConfigurationUpdateResponse as ConfigurationUpdateResponse +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 .gateway_configuration_settings import GatewayConfigurationSettings as GatewayConfigurationSettings +from .audit_ssh_setting_update_params import AuditSSHSettingUpdateParams as AuditSSHSettingUpdateParams +from .certificate_deactivate_response import CertificateDeactivateResponse as CertificateDeactivateResponse +from .browser_isolation_settings_param import BrowserIsolationSettingsParam as BrowserIsolationSettingsParam +from .custom_certificate_settings_param import CustomCertificateSettingsParam as CustomCertificateSettingsParam +from .gateway_configuration_settings_param import GatewayConfigurationSettingsParam as GatewayConfigurationSettingsParam diff --git a/src/cloudflare/types/zero_trust/gateway/activity_log_settings.py b/src/cloudflare/types/zero_trust/gateway/activity_log_settings.py index 7b59fcece..d17f765af 100644 --- a/src/cloudflare/types/zero_trust/gateway/activity_log_settings.py +++ b/src/cloudflare/types/zero_trust/gateway/activity_log_settings.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ActivityLogSettings"] diff --git a/src/cloudflare/types/zero_trust/gateway/anti_virus_settings.py b/src/cloudflare/types/zero_trust/gateway/anti_virus_settings.py index 915865bcd..85cf41948 100644 --- a/src/cloudflare/types/zero_trust/gateway/anti_virus_settings.py +++ b/src/cloudflare/types/zero_trust/gateway/anti_virus_settings.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional +from ...._models import BaseModel from .notification_settings import NotificationSettings -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["AntiVirusSettings"] diff --git a/src/cloudflare/types/zero_trust/gateway/anti_virus_settings_param.py b/src/cloudflare/types/zero_trust/gateway/anti_virus_settings_param.py index d6a64c4e5..ee88b2f89 100644 --- a/src/cloudflare/types/zero_trust/gateway/anti_virus_settings_param.py +++ b/src/cloudflare/types/zero_trust/gateway/anti_virus_settings_param.py @@ -2,10 +2,10 @@ from __future__ import annotations -from .notification_settings_param import NotificationSettingsParam - from typing_extensions import TypedDict +from .notification_settings_param import NotificationSettingsParam + __all__ = ["AntiVirusSettingsParam"] diff --git a/src/cloudflare/types/zero_trust/gateway/app_type.py b/src/cloudflare/types/zero_trust/gateway/app_type.py index 22995fe42..90d914863 100644 --- a/src/cloudflare/types/zero_trust/gateway/app_type.py +++ b/src/cloudflare/types/zero_trust/gateway/app_type.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional - +from typing import Union, Optional from datetime import datetime - from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["AppType", "ZeroTrustGatewayApplication", "ZeroTrustGatewayApplicationType"] diff --git a/src/cloudflare/types/zero_trust/gateway/audit_ssh_setting_update_params.py b/src/cloudflare/types/zero_trust/gateway/audit_ssh_setting_update_params.py index a420e1264..fc6ef9b9a 100644 --- a/src/cloudflare/types/zero_trust/gateway/audit_ssh_setting_update_params.py +++ b/src/cloudflare/types/zero_trust/gateway/audit_ssh_setting_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["AuditSSHSettingUpdateParams"] diff --git a/src/cloudflare/types/zero_trust/gateway/block_page_settings.py b/src/cloudflare/types/zero_trust/gateway/block_page_settings.py index 8dc82d502..403fbcbb7 100644 --- a/src/cloudflare/types/zero_trust/gateway/block_page_settings.py +++ b/src/cloudflare/types/zero_trust/gateway/block_page_settings.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["BlockPageSettings"] diff --git a/src/cloudflare/types/zero_trust/gateway/body_scanning_settings.py b/src/cloudflare/types/zero_trust/gateway/body_scanning_settings.py index 6400a786e..4d21ed246 100644 --- a/src/cloudflare/types/zero_trust/gateway/body_scanning_settings.py +++ b/src/cloudflare/types/zero_trust/gateway/body_scanning_settings.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["BodyScanningSettings"] diff --git a/src/cloudflare/types/zero_trust/gateway/browser_isolation_settings.py b/src/cloudflare/types/zero_trust/gateway/browser_isolation_settings.py index 4909163be..e55ca6ff7 100644 --- a/src/cloudflare/types/zero_trust/gateway/browser_isolation_settings.py +++ b/src/cloudflare/types/zero_trust/gateway/browser_isolation_settings.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["BrowserIsolationSettings"] diff --git a/src/cloudflare/types/zero_trust/gateway/category.py b/src/cloudflare/types/zero_trust/gateway/category.py index 8ef29f708..32ac136b1 100644 --- a/src/cloudflare/types/zero_trust/gateway/category.py +++ b/src/cloudflare/types/zero_trust/gateway/category.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = ["Category", "Subcategory"] diff --git a/src/cloudflare/types/zero_trust/gateway/certificate_activate_params.py b/src/cloudflare/types/zero_trust/gateway/certificate_activate_params.py index 3ec8cc702..a3b1cfe0f 100644 --- a/src/cloudflare/types/zero_trust/gateway/certificate_activate_params.py +++ b/src/cloudflare/types/zero_trust/gateway/certificate_activate_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["CertificateActivateParams"] diff --git a/src/cloudflare/types/zero_trust/gateway/certificate_activate_response.py b/src/cloudflare/types/zero_trust/gateway/certificate_activate_response.py index 90c1e84ad..42f2ba87a 100644 --- a/src/cloudflare/types/zero_trust/gateway/certificate_activate_response.py +++ b/src/cloudflare/types/zero_trust/gateway/certificate_activate_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - -from typing_extensions import Literal - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["CertificateActivateResponse"] diff --git a/src/cloudflare/types/zero_trust/gateway/certificate_create_params.py b/src/cloudflare/types/zero_trust/gateway/certificate_create_params.py index 88679571e..1de699e49 100644 --- a/src/cloudflare/types/zero_trust/gateway/certificate_create_params.py +++ b/src/cloudflare/types/zero_trust/gateway/certificate_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["CertificateCreateParams"] diff --git a/src/cloudflare/types/zero_trust/gateway/certificate_create_response.py b/src/cloudflare/types/zero_trust/gateway/certificate_create_response.py index 832958b64..6637e1a39 100644 --- a/src/cloudflare/types/zero_trust/gateway/certificate_create_response.py +++ b/src/cloudflare/types/zero_trust/gateway/certificate_create_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - -from typing_extensions import Literal - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["CertificateCreateResponse"] diff --git a/src/cloudflare/types/zero_trust/gateway/certificate_deactivate_params.py b/src/cloudflare/types/zero_trust/gateway/certificate_deactivate_params.py index 425c861be..c938aee6c 100644 --- a/src/cloudflare/types/zero_trust/gateway/certificate_deactivate_params.py +++ b/src/cloudflare/types/zero_trust/gateway/certificate_deactivate_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["CertificateDeactivateParams"] diff --git a/src/cloudflare/types/zero_trust/gateway/certificate_deactivate_response.py b/src/cloudflare/types/zero_trust/gateway/certificate_deactivate_response.py index b39025065..6b568ba63 100644 --- a/src/cloudflare/types/zero_trust/gateway/certificate_deactivate_response.py +++ b/src/cloudflare/types/zero_trust/gateway/certificate_deactivate_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - -from typing_extensions import Literal - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["CertificateDeactivateResponse"] diff --git a/src/cloudflare/types/zero_trust/gateway/certificate_delete_response.py b/src/cloudflare/types/zero_trust/gateway/certificate_delete_response.py index 652621c4d..7a54f766e 100644 --- a/src/cloudflare/types/zero_trust/gateway/certificate_delete_response.py +++ b/src/cloudflare/types/zero_trust/gateway/certificate_delete_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - -from typing_extensions import Literal - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["CertificateDeleteResponse"] diff --git a/src/cloudflare/types/zero_trust/gateway/certificate_get_response.py b/src/cloudflare/types/zero_trust/gateway/certificate_get_response.py index b4a56a3e4..009c5112c 100644 --- a/src/cloudflare/types/zero_trust/gateway/certificate_get_response.py +++ b/src/cloudflare/types/zero_trust/gateway/certificate_get_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - -from typing_extensions import Literal - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["CertificateGetResponse"] diff --git a/src/cloudflare/types/zero_trust/gateway/certificate_list_response.py b/src/cloudflare/types/zero_trust/gateway/certificate_list_response.py index 931061dd1..f3364339e 100644 --- a/src/cloudflare/types/zero_trust/gateway/certificate_list_response.py +++ b/src/cloudflare/types/zero_trust/gateway/certificate_list_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - -from typing_extensions import Literal - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["CertificateListResponse"] diff --git a/src/cloudflare/types/zero_trust/gateway/configuration_edit_params.py b/src/cloudflare/types/zero_trust/gateway/configuration_edit_params.py index 2b14ca4f3..9adb3f5ae 100644 --- a/src/cloudflare/types/zero_trust/gateway/configuration_edit_params.py +++ b/src/cloudflare/types/zero_trust/gateway/configuration_edit_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict from .gateway_configuration_settings_param import GatewayConfigurationSettingsParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["ConfigurationEditParams"] diff --git a/src/cloudflare/types/zero_trust/gateway/configuration_edit_response.py b/src/cloudflare/types/zero_trust/gateway/configuration_edit_response.py index 729ac1170..e7659cf26 100644 --- a/src/cloudflare/types/zero_trust/gateway/configuration_edit_response.py +++ b/src/cloudflare/types/zero_trust/gateway/configuration_edit_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime +from ...._models import BaseModel from .gateway_configuration_settings import GatewayConfigurationSettings -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ConfigurationEditResponse"] diff --git a/src/cloudflare/types/zero_trust/gateway/configuration_get_response.py b/src/cloudflare/types/zero_trust/gateway/configuration_get_response.py index 656d38a75..ab5d764c7 100644 --- a/src/cloudflare/types/zero_trust/gateway/configuration_get_response.py +++ b/src/cloudflare/types/zero_trust/gateway/configuration_get_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime +from ...._models import BaseModel from .gateway_configuration_settings import GatewayConfigurationSettings -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ConfigurationGetResponse"] diff --git a/src/cloudflare/types/zero_trust/gateway/configuration_update_params.py b/src/cloudflare/types/zero_trust/gateway/configuration_update_params.py index fa6a6d8db..7fcc1d003 100644 --- a/src/cloudflare/types/zero_trust/gateway/configuration_update_params.py +++ b/src/cloudflare/types/zero_trust/gateway/configuration_update_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict from .gateway_configuration_settings_param import GatewayConfigurationSettingsParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["ConfigurationUpdateParams"] diff --git a/src/cloudflare/types/zero_trust/gateway/configuration_update_response.py b/src/cloudflare/types/zero_trust/gateway/configuration_update_response.py index 416c65f76..f88c116ea 100644 --- a/src/cloudflare/types/zero_trust/gateway/configuration_update_response.py +++ b/src/cloudflare/types/zero_trust/gateway/configuration_update_response.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime +from ...._models import BaseModel from .gateway_configuration_settings import GatewayConfigurationSettings -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ConfigurationUpdateResponse"] diff --git a/src/cloudflare/types/zero_trust/gateway/custom_certificate_settings.py b/src/cloudflare/types/zero_trust/gateway/custom_certificate_settings.py index 4e461e00b..955402549 100644 --- a/src/cloudflare/types/zero_trust/gateway/custom_certificate_settings.py +++ b/src/cloudflare/types/zero_trust/gateway/custom_certificate_settings.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["CustomCertificateSettings"] diff --git a/src/cloudflare/types/zero_trust/gateway/custom_certificate_settings_param.py b/src/cloudflare/types/zero_trust/gateway/custom_certificate_settings_param.py index 64c35fb44..60627d471 100644 --- a/src/cloudflare/types/zero_trust/gateway/custom_certificate_settings_param.py +++ b/src/cloudflare/types/zero_trust/gateway/custom_certificate_settings_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["CustomCertificateSettingsParam"] diff --git a/src/cloudflare/types/zero_trust/gateway/dns_resolver_settings_v4.py b/src/cloudflare/types/zero_trust/gateway/dns_resolver_settings_v4.py index 09679180f..0d328be7c 100644 --- a/src/cloudflare/types/zero_trust/gateway/dns_resolver_settings_v4.py +++ b/src/cloudflare/types/zero_trust/gateway/dns_resolver_settings_v4.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["DNSResolverSettingsV4"] diff --git a/src/cloudflare/types/zero_trust/gateway/dns_resolver_settings_v4_param.py b/src/cloudflare/types/zero_trust/gateway/dns_resolver_settings_v4_param.py index 8e3e36527..4b6f3e062 100644 --- a/src/cloudflare/types/zero_trust/gateway/dns_resolver_settings_v4_param.py +++ b/src/cloudflare/types/zero_trust/gateway/dns_resolver_settings_v4_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["DNSResolverSettingsV4Param"] diff --git a/src/cloudflare/types/zero_trust/gateway/dns_resolver_settings_v6.py b/src/cloudflare/types/zero_trust/gateway/dns_resolver_settings_v6.py index 9dcc0e8b8..535616c4d 100644 --- a/src/cloudflare/types/zero_trust/gateway/dns_resolver_settings_v6.py +++ b/src/cloudflare/types/zero_trust/gateway/dns_resolver_settings_v6.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["DNSResolverSettingsV6"] diff --git a/src/cloudflare/types/zero_trust/gateway/dns_resolver_settings_v6_param.py b/src/cloudflare/types/zero_trust/gateway/dns_resolver_settings_v6_param.py index d7a8a8607..a1f47e369 100644 --- a/src/cloudflare/types/zero_trust/gateway/dns_resolver_settings_v6_param.py +++ b/src/cloudflare/types/zero_trust/gateway/dns_resolver_settings_v6_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["DNSResolverSettingsV6Param"] diff --git a/src/cloudflare/types/zero_trust/gateway/doh_endpoint.py b/src/cloudflare/types/zero_trust/gateway/doh_endpoint.py index 809ad4049..87f335ddd 100644 --- a/src/cloudflare/types/zero_trust/gateway/doh_endpoint.py +++ b/src/cloudflare/types/zero_trust/gateway/doh_endpoint.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ...._models import BaseModel - -from typing import Optional, List - from .ip_network import IPNetwork -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["DOHEndpoint"] diff --git a/src/cloudflare/types/zero_trust/gateway/doh_endpoint_param.py b/src/cloudflare/types/zero_trust/gateway/doh_endpoint_param.py index 6b0cfbb7b..b742fc65b 100644 --- a/src/cloudflare/types/zero_trust/gateway/doh_endpoint_param.py +++ b/src/cloudflare/types/zero_trust/gateway/doh_endpoint_param.py @@ -3,11 +3,10 @@ from __future__ import annotations from typing import Iterable +from typing_extensions import TypedDict from .ip_network_param import IPNetworkParam -from typing_extensions import TypedDict - __all__ = ["DOHEndpointParam"] diff --git a/src/cloudflare/types/zero_trust/gateway/dot_endpoint.py b/src/cloudflare/types/zero_trust/gateway/dot_endpoint.py index ce9258db2..0279ee0fe 100644 --- a/src/cloudflare/types/zero_trust/gateway/dot_endpoint.py +++ b/src/cloudflare/types/zero_trust/gateway/dot_endpoint.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ...._models import BaseModel - -from typing import Optional, List - from .ip_network import IPNetwork -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["DOTEndpoint"] diff --git a/src/cloudflare/types/zero_trust/gateway/dot_endpoint_param.py b/src/cloudflare/types/zero_trust/gateway/dot_endpoint_param.py index 75af4cf4f..f72b4c1ef 100644 --- a/src/cloudflare/types/zero_trust/gateway/dot_endpoint_param.py +++ b/src/cloudflare/types/zero_trust/gateway/dot_endpoint_param.py @@ -3,11 +3,10 @@ from __future__ import annotations from typing import Iterable +from typing_extensions import TypedDict from .ip_network_param import IPNetworkParam -from typing_extensions import TypedDict - __all__ = ["DOTEndpointParam"] diff --git a/src/cloudflare/types/zero_trust/gateway/endpoint.py b/src/cloudflare/types/zero_trust/gateway/endpoint.py index e4d419098..9afb20905 100644 --- a/src/cloudflare/types/zero_trust/gateway/endpoint.py +++ b/src/cloudflare/types/zero_trust/gateway/endpoint.py @@ -1,21 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional +from ...._models import BaseModel from .doh_endpoint import DOHEndpoint - from .dot_endpoint import DOTEndpoint - from .ipv4_endpoint import IPV4Endpoint - from .ipv6_endpoint import IPV6Endpoint -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Endpoint"] diff --git a/src/cloudflare/types/zero_trust/gateway/endpoint_param.py b/src/cloudflare/types/zero_trust/gateway/endpoint_param.py index fe1a98167..5494922cd 100644 --- a/src/cloudflare/types/zero_trust/gateway/endpoint_param.py +++ b/src/cloudflare/types/zero_trust/gateway/endpoint_param.py @@ -2,16 +2,13 @@ from __future__ import annotations -from .doh_endpoint_param import DOHEndpointParam - -from .dot_endpoint_param import DOTEndpointParam - -from .ipv4_endpoint_param import IPV4EndpointParam - -from .ipv6_endpoint_param import IPV6EndpointParam - from typing_extensions import TypedDict +from .doh_endpoint_param import DOHEndpointParam +from .dot_endpoint_param import DOTEndpointParam +from .ipv4_endpoint_param import IPV4EndpointParam +from .ipv6_endpoint_param import IPV6EndpointParam + __all__ = ["EndpointParam"] diff --git a/src/cloudflare/types/zero_trust/gateway/extended_email_matching.py b/src/cloudflare/types/zero_trust/gateway/extended_email_matching.py index b003a1638..ff3496223 100644 --- a/src/cloudflare/types/zero_trust/gateway/extended_email_matching.py +++ b/src/cloudflare/types/zero_trust/gateway/extended_email_matching.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ExtendedEmailMatching"] diff --git a/src/cloudflare/types/zero_trust/gateway/fips_settings.py b/src/cloudflare/types/zero_trust/gateway/fips_settings.py index ee7ea5a87..357e4b5c7 100644 --- a/src/cloudflare/types/zero_trust/gateway/fips_settings.py +++ b/src/cloudflare/types/zero_trust/gateway/fips_settings.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["FipsSettings"] diff --git a/src/cloudflare/types/zero_trust/gateway/gateway_configuration_settings.py b/src/cloudflare/types/zero_trust/gateway/gateway_configuration_settings.py index be548a044..20dcd7381 100644 --- a/src/cloudflare/types/zero_trust/gateway/gateway_configuration_settings.py +++ b/src/cloudflare/types/zero_trust/gateway/gateway_configuration_settings.py @@ -1,32 +1,18 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from .activity_log_settings import ActivityLogSettings - -from .anti_virus_settings import AntiVirusSettings - -from .block_page_settings import BlockPageSettings - -from .body_scanning_settings import BodyScanningSettings - -from .browser_isolation_settings import BrowserIsolationSettings - -from .custom_certificate_settings import CustomCertificateSettings - -from .extended_email_matching import ExtendedEmailMatching - -from .fips_settings import FipsSettings - -from .protocol_detection import ProtocolDetection - +from ...._models import BaseModel from .tls_settings import TLSSettings - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .fips_settings import FipsSettings +from .protocol_detection import ProtocolDetection +from .anti_virus_settings import AntiVirusSettings +from .block_page_settings import BlockPageSettings +from .activity_log_settings import ActivityLogSettings +from .body_scanning_settings import BodyScanningSettings +from .extended_email_matching import ExtendedEmailMatching +from .browser_isolation_settings import BrowserIsolationSettings +from .custom_certificate_settings import CustomCertificateSettings __all__ = ["GatewayConfigurationSettings", "Certificate"] diff --git a/src/cloudflare/types/zero_trust/gateway/gateway_configuration_settings_param.py b/src/cloudflare/types/zero_trust/gateway/gateway_configuration_settings_param.py index d3d3c893c..8992eee7f 100644 --- a/src/cloudflare/types/zero_trust/gateway/gateway_configuration_settings_param.py +++ b/src/cloudflare/types/zero_trust/gateway/gateway_configuration_settings_param.py @@ -2,27 +2,18 @@ from __future__ import annotations -from .activity_log_settings_param import ActivityLogSettingsParam - -from .anti_virus_settings_param import AntiVirusSettingsParam - -from .block_page_settings_param import BlockPageSettingsParam - -from .body_scanning_settings_param import BodyScanningSettingsParam - -from .browser_isolation_settings_param import BrowserIsolationSettingsParam - -from .custom_certificate_settings_param import CustomCertificateSettingsParam - -from .extended_email_matching_param import ExtendedEmailMatchingParam - -from .fips_settings_param import FipsSettingsParam - -from .protocol_detection_param import ProtocolDetectionParam +from typing_extensions import Required, TypedDict from .tls_settings_param import TLSSettingsParam - -from typing_extensions import TypedDict, Required +from .fips_settings_param import FipsSettingsParam +from .protocol_detection_param import ProtocolDetectionParam +from .anti_virus_settings_param import AntiVirusSettingsParam +from .block_page_settings_param import BlockPageSettingsParam +from .activity_log_settings_param import ActivityLogSettingsParam +from .body_scanning_settings_param import BodyScanningSettingsParam +from .extended_email_matching_param import ExtendedEmailMatchingParam +from .browser_isolation_settings_param import BrowserIsolationSettingsParam +from .custom_certificate_settings_param import CustomCertificateSettingsParam __all__ = ["GatewayConfigurationSettingsParam", "Certificate"] diff --git a/src/cloudflare/types/zero_trust/gateway/gateway_filter.py b/src/cloudflare/types/zero_trust/gateway/gateway_filter.py index c8b39441b..9ed55a146 100644 --- a/src/cloudflare/types/zero_trust/gateway/gateway_filter.py +++ b/src/cloudflare/types/zero_trust/gateway/gateway_filter.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["GatewayFilter"] GatewayFilter: TypeAlias = Literal["http", "dns", "l4", "egress"] diff --git a/src/cloudflare/types/zero_trust/gateway/gateway_ips.py b/src/cloudflare/types/zero_trust/gateway/gateway_ips.py index 57492dbf7..ef8280810 100644 --- a/src/cloudflare/types/zero_trust/gateway/gateway_ips.py +++ b/src/cloudflare/types/zero_trust/gateway/gateway_ips.py @@ -2,10 +2,6 @@ from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["GatewayIPs"] GatewayIPs: TypeAlias = str diff --git a/src/cloudflare/types/zero_trust/gateway/gateway_item.py b/src/cloudflare/types/zero_trust/gateway/gateway_item.py index 558047d04..7d6c7f3cd 100644 --- a/src/cloudflare/types/zero_trust/gateway/gateway_item.py +++ b/src/cloudflare/types/zero_trust/gateway/gateway_item.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["GatewayItem"] diff --git a/src/cloudflare/types/zero_trust/gateway/gateway_list.py b/src/cloudflare/types/zero_trust/gateway/gateway_list.py index 708e031bb..f24abb3c8 100644 --- a/src/cloudflare/types/zero_trust/gateway/gateway_list.py +++ b/src/cloudflare/types/zero_trust/gateway/gateway_list.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["GatewayList"] diff --git a/src/cloudflare/types/zero_trust/gateway/gateway_rule.py b/src/cloudflare/types/zero_trust/gateway/gateway_rule.py index cd072db3a..d0db3cbe8 100644 --- a/src/cloudflare/types/zero_trust/gateway/gateway_rule.py +++ b/src/cloudflare/types/zero_trust/gateway/gateway_rule.py @@ -1,22 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List - -from typing_extensions import Literal - +from typing import List, Optional from datetime import datetime - -from .gateway_filter import GatewayFilter - -from .rule_setting import RuleSetting +from typing_extensions import Literal from .schedule import Schedule - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel +from .rule_setting import RuleSetting +from .gateway_filter import GatewayFilter __all__ = ["GatewayRule"] diff --git a/src/cloudflare/types/zero_trust/gateway/gateway_settings.py b/src/cloudflare/types/zero_trust/gateway/gateway_settings.py index 5569e4b21..9b4982435 100644 --- a/src/cloudflare/types/zero_trust/gateway/gateway_settings.py +++ b/src/cloudflare/types/zero_trust/gateway/gateway_settings.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["GatewaySettings"] diff --git a/src/cloudflare/types/zero_trust/gateway/ip_network.py b/src/cloudflare/types/zero_trust/gateway/ip_network.py index 629dd1c13..2585654d8 100644 --- a/src/cloudflare/types/zero_trust/gateway/ip_network.py +++ b/src/cloudflare/types/zero_trust/gateway/ip_network.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["IPNetwork"] diff --git a/src/cloudflare/types/zero_trust/gateway/ip_network_param.py b/src/cloudflare/types/zero_trust/gateway/ip_network_param.py index ad628ae05..9c0f6f742 100644 --- a/src/cloudflare/types/zero_trust/gateway/ip_network_param.py +++ b/src/cloudflare/types/zero_trust/gateway/ip_network_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["IPNetworkParam"] diff --git a/src/cloudflare/types/zero_trust/gateway/ipv4_endpoint.py b/src/cloudflare/types/zero_trust/gateway/ipv4_endpoint.py index d0693f46d..a9f4505cd 100644 --- a/src/cloudflare/types/zero_trust/gateway/ipv4_endpoint.py +++ b/src/cloudflare/types/zero_trust/gateway/ipv4_endpoint.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["IPV4Endpoint"] diff --git a/src/cloudflare/types/zero_trust/gateway/ipv6_endpoint.py b/src/cloudflare/types/zero_trust/gateway/ipv6_endpoint.py index 37f02195c..1dd3b3b10 100644 --- a/src/cloudflare/types/zero_trust/gateway/ipv6_endpoint.py +++ b/src/cloudflare/types/zero_trust/gateway/ipv6_endpoint.py @@ -1,15 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List, Optional + from ...._models import BaseModel - -from typing import Optional, List - from .ipv6_network import IPV6Network -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["IPV6Endpoint"] diff --git a/src/cloudflare/types/zero_trust/gateway/ipv6_endpoint_param.py b/src/cloudflare/types/zero_trust/gateway/ipv6_endpoint_param.py index 3c86e1e8e..5c48a9dc3 100644 --- a/src/cloudflare/types/zero_trust/gateway/ipv6_endpoint_param.py +++ b/src/cloudflare/types/zero_trust/gateway/ipv6_endpoint_param.py @@ -3,11 +3,10 @@ from __future__ import annotations from typing import Iterable +from typing_extensions import TypedDict from .ipv6_network_param import IPV6NetworkParam -from typing_extensions import TypedDict - __all__ = ["IPV6EndpointParam"] diff --git a/src/cloudflare/types/zero_trust/gateway/ipv6_network.py b/src/cloudflare/types/zero_trust/gateway/ipv6_network.py index 03ce59076..666daff01 100644 --- a/src/cloudflare/types/zero_trust/gateway/ipv6_network.py +++ b/src/cloudflare/types/zero_trust/gateway/ipv6_network.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["IPV6Network"] diff --git a/src/cloudflare/types/zero_trust/gateway/ipv6_network_param.py b/src/cloudflare/types/zero_trust/gateway/ipv6_network_param.py index b59089998..ef6783786 100644 --- a/src/cloudflare/types/zero_trust/gateway/ipv6_network_param.py +++ b/src/cloudflare/types/zero_trust/gateway/ipv6_network_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["IPV6NetworkParam"] diff --git a/src/cloudflare/types/zero_trust/gateway/list_create_params.py b/src/cloudflare/types/zero_trust/gateway/list_create_params.py index c81f8831e..c1d48ff06 100644 --- a/src/cloudflare/types/zero_trust/gateway/list_create_params.py +++ b/src/cloudflare/types/zero_trust/gateway/list_create_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Iterable +from typing_extensions import Literal, Required, TypedDict from .gateway_item_param import GatewayItemParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["ListCreateParams"] diff --git a/src/cloudflare/types/zero_trust/gateway/list_create_response.py b/src/cloudflare/types/zero_trust/gateway/list_create_response.py index 60181ad17..5db7e9b6e 100644 --- a/src/cloudflare/types/zero_trust/gateway/list_create_response.py +++ b/src/cloudflare/types/zero_trust/gateway/list_create_response.py @@ -1,19 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime +from typing_extensions import Literal +from ...._models import BaseModel from .gateway_item import GatewayItem -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ListCreateResponse"] diff --git a/src/cloudflare/types/zero_trust/gateway/list_edit_params.py b/src/cloudflare/types/zero_trust/gateway/list_edit_params.py index a99a19666..bdc08db33 100644 --- a/src/cloudflare/types/zero_trust/gateway/list_edit_params.py +++ b/src/cloudflare/types/zero_trust/gateway/list_edit_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import Iterable, List +from typing import List, Iterable +from typing_extensions import Required, TypedDict from .gateway_item_param import GatewayItemParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["ListEditParams"] diff --git a/src/cloudflare/types/zero_trust/gateway/list_list_params.py b/src/cloudflare/types/zero_trust/gateway/list_list_params.py index 72244398d..30c9d6123 100644 --- a/src/cloudflare/types/zero_trust/gateway/list_list_params.py +++ b/src/cloudflare/types/zero_trust/gateway/list_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["ListListParams"] diff --git a/src/cloudflare/types/zero_trust/gateway/list_update_params.py b/src/cloudflare/types/zero_trust/gateway/list_update_params.py index 4fd99d5c6..0177452d0 100644 --- a/src/cloudflare/types/zero_trust/gateway/list_update_params.py +++ b/src/cloudflare/types/zero_trust/gateway/list_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ListUpdateParams"] diff --git a/src/cloudflare/types/zero_trust/gateway/lists/item_list_response.py b/src/cloudflare/types/zero_trust/gateway/lists/item_list_response.py index 692bdb349..4db5d15a5 100644 --- a/src/cloudflare/types/zero_trust/gateway/lists/item_list_response.py +++ b/src/cloudflare/types/zero_trust/gateway/lists/item_list_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..gateway_item import GatewayItem - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..gateway_item import GatewayItem __all__ = ["ItemListResponse"] diff --git a/src/cloudflare/types/zero_trust/gateway/location.py b/src/cloudflare/types/zero_trust/gateway/location.py index cb45db52a..b13ca1366 100644 --- a/src/cloudflare/types/zero_trust/gateway/location.py +++ b/src/cloudflare/types/zero_trust/gateway/location.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime from .endpoint import Endpoint - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["Location", "Network"] diff --git a/src/cloudflare/types/zero_trust/gateway/location_create_params.py b/src/cloudflare/types/zero_trust/gateway/location_create_params.py index 2672ad4cc..69898f162 100644 --- a/src/cloudflare/types/zero_trust/gateway/location_create_params.py +++ b/src/cloudflare/types/zero_trust/gateway/location_create_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing import Iterable +from typing_extensions import Required, TypedDict from .endpoint_param import EndpointParam -from typing import Iterable - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["LocationCreateParams", "Network"] diff --git a/src/cloudflare/types/zero_trust/gateway/location_update_params.py b/src/cloudflare/types/zero_trust/gateway/location_update_params.py index 36d72f9f8..530e5b17e 100644 --- a/src/cloudflare/types/zero_trust/gateway/location_update_params.py +++ b/src/cloudflare/types/zero_trust/gateway/location_update_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing import Iterable +from typing_extensions import Required, TypedDict from .endpoint_param import EndpointParam -from typing import Iterable - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["LocationUpdateParams", "Network"] diff --git a/src/cloudflare/types/zero_trust/gateway/logging_setting.py b/src/cloudflare/types/zero_trust/gateway/logging_setting.py index f56c49ca1..7fd32c437 100644 --- a/src/cloudflare/types/zero_trust/gateway/logging_setting.py +++ b/src/cloudflare/types/zero_trust/gateway/logging_setting.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["LoggingSetting", "SettingsByRuleType"] diff --git a/src/cloudflare/types/zero_trust/gateway/logging_update_params.py b/src/cloudflare/types/zero_trust/gateway/logging_update_params.py index df5e15744..de1cb4dfe 100644 --- a/src/cloudflare/types/zero_trust/gateway/logging_update_params.py +++ b/src/cloudflare/types/zero_trust/gateway/logging_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["LoggingUpdateParams", "SettingsByRuleType"] diff --git a/src/cloudflare/types/zero_trust/gateway/notification_settings.py b/src/cloudflare/types/zero_trust/gateway/notification_settings.py index eb169c37e..0a1be707f 100644 --- a/src/cloudflare/types/zero_trust/gateway/notification_settings.py +++ b/src/cloudflare/types/zero_trust/gateway/notification_settings.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["NotificationSettings"] diff --git a/src/cloudflare/types/zero_trust/gateway/protocol_detection.py b/src/cloudflare/types/zero_trust/gateway/protocol_detection.py index 2a47bae16..7d082eb6c 100644 --- a/src/cloudflare/types/zero_trust/gateway/protocol_detection.py +++ b/src/cloudflare/types/zero_trust/gateway/protocol_detection.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["ProtocolDetection"] diff --git a/src/cloudflare/types/zero_trust/gateway/proxy_endpoint.py b/src/cloudflare/types/zero_trust/gateway/proxy_endpoint.py index cb720e628..8366853ea 100644 --- a/src/cloudflare/types/zero_trust/gateway/proxy_endpoint.py +++ b/src/cloudflare/types/zero_trust/gateway/proxy_endpoint.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime +from ...._models import BaseModel from .gateway_ips import GatewayIPs -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ProxyEndpoint"] diff --git a/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_create_params.py b/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_create_params.py index d8b0c633e..d7c6c6674 100644 --- a/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_create_params.py +++ b/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_create_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import List +from typing_extensions import Required, TypedDict from .gateway_ips import GatewayIPs -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["ProxyEndpointCreateParams"] diff --git a/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_edit_params.py b/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_edit_params.py index 9799b0ab9..9110c0529 100644 --- a/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_edit_params.py +++ b/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_edit_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import List +from typing_extensions import Required, TypedDict from .gateway_ips import GatewayIPs -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["ProxyEndpointEditParams"] diff --git a/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_get_response.py b/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_get_response.py index c1b4f42b8..0f6670e85 100644 --- a/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_get_response.py +++ b/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_get_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .proxy_endpoint import ProxyEndpoint - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .proxy_endpoint import ProxyEndpoint __all__ = ["ProxyEndpointGetResponse"] diff --git a/src/cloudflare/types/zero_trust/gateway/rule_create_params.py b/src/cloudflare/types/zero_trust/gateway/rule_create_params.py index 6ec15b41c..72298b7f6 100644 --- a/src/cloudflare/types/zero_trust/gateway/rule_create_params.py +++ b/src/cloudflare/types/zero_trust/gateway/rule_create_params.py @@ -2,20 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import List +from typing_extensions import Literal, Required, TypedDict from .gateway_filter import GatewayFilter - -from .rule_setting_param import RuleSettingParam - from .schedule_param import ScheduleParam - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from .rule_setting_param import RuleSettingParam __all__ = ["RuleCreateParams"] diff --git a/src/cloudflare/types/zero_trust/gateway/rule_setting.py b/src/cloudflare/types/zero_trust/gateway/rule_setting.py index 75abb807e..5ff1fe96e 100644 --- a/src/cloudflare/types/zero_trust/gateway/rule_setting.py +++ b/src/cloudflare/types/zero_trust/gateway/rule_setting.py @@ -1,19 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import Dict, List, Optional +from typing_extensions import Literal + from ...._models import BaseModel - -from typing import Optional, List, Dict - from .dns_resolver_settings_v4 import DNSResolverSettingsV4 - from .dns_resolver_settings_v6 import DNSResolverSettingsV6 -from typing_extensions import Literal - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = [ "RuleSetting", "AuditSSH", diff --git a/src/cloudflare/types/zero_trust/gateway/rule_setting_param.py b/src/cloudflare/types/zero_trust/gateway/rule_setting_param.py index 76248638a..c5fb727bf 100644 --- a/src/cloudflare/types/zero_trust/gateway/rule_setting_param.py +++ b/src/cloudflare/types/zero_trust/gateway/rule_setting_param.py @@ -3,11 +3,9 @@ from __future__ import annotations from typing import Dict, List, Iterable - -from typing_extensions import TypedDict, Literal +from typing_extensions import Literal, TypedDict from .dns_resolver_settings_v4_param import DNSResolverSettingsV4Param - from .dns_resolver_settings_v6_param import DNSResolverSettingsV6Param __all__ = [ diff --git a/src/cloudflare/types/zero_trust/gateway/rule_update_params.py b/src/cloudflare/types/zero_trust/gateway/rule_update_params.py index 2fee8f511..eb1be8a66 100644 --- a/src/cloudflare/types/zero_trust/gateway/rule_update_params.py +++ b/src/cloudflare/types/zero_trust/gateway/rule_update_params.py @@ -2,20 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import List +from typing_extensions import Literal, Required, TypedDict from .gateway_filter import GatewayFilter - -from .rule_setting_param import RuleSettingParam - from .schedule_param import ScheduleParam - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from .rule_setting_param import RuleSettingParam __all__ = ["RuleUpdateParams"] diff --git a/src/cloudflare/types/zero_trust/gateway/schedule.py b/src/cloudflare/types/zero_trust/gateway/schedule.py index 8ac7d6023..2554002fa 100644 --- a/src/cloudflare/types/zero_trust/gateway/schedule.py +++ b/src/cloudflare/types/zero_trust/gateway/schedule.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["Schedule"] diff --git a/src/cloudflare/types/zero_trust/gateway/tls_settings.py b/src/cloudflare/types/zero_trust/gateway/tls_settings.py index 26c8a0310..e0a3fae4b 100644 --- a/src/cloudflare/types/zero_trust/gateway/tls_settings.py +++ b/src/cloudflare/types/zero_trust/gateway/tls_settings.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["TLSSettings"] diff --git a/src/cloudflare/types/zero_trust/gateway_create_response.py b/src/cloudflare/types/zero_trust/gateway_create_response.py index 6613fcbe1..9f0ec4a03 100644 --- a/src/cloudflare/types/zero_trust/gateway_create_response.py +++ b/src/cloudflare/types/zero_trust/gateway_create_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["GatewayCreateResponse"] diff --git a/src/cloudflare/types/zero_trust/gateway_list_response.py b/src/cloudflare/types/zero_trust/gateway_list_response.py index 8e5f551b0..94499db62 100644 --- a/src/cloudflare/types/zero_trust/gateway_list_response.py +++ b/src/cloudflare/types/zero_trust/gateway_list_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["GatewayListResponse"] diff --git a/src/cloudflare/types/zero_trust/generic_oauth_config.py b/src/cloudflare/types/zero_trust/generic_oauth_config.py index 486070674..372dfe9ac 100644 --- a/src/cloudflare/types/zero_trust/generic_oauth_config.py +++ b/src/cloudflare/types/zero_trust/generic_oauth_config.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["GenericOAuthConfig"] diff --git a/src/cloudflare/types/zero_trust/github_organization_rule.py b/src/cloudflare/types/zero_trust/github_organization_rule.py index 576236f62..b9b297ae0 100644 --- a/src/cloudflare/types/zero_trust/github_organization_rule.py +++ b/src/cloudflare/types/zero_trust/github_organization_rule.py @@ -1,11 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["GitHubOrganizationRule", "GitHubOrganization"] diff --git a/src/cloudflare/types/zero_trust/github_organization_rule_param.py b/src/cloudflare/types/zero_trust/github_organization_rule_param.py index 7ab264f5f..094533d51 100644 --- a/src/cloudflare/types/zero_trust/github_organization_rule_param.py +++ b/src/cloudflare/types/zero_trust/github_organization_rule_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated +from typing_extensions import Required, Annotated, TypedDict from ..._utils import PropertyInfo diff --git a/src/cloudflare/types/zero_trust/group_rule.py b/src/cloudflare/types/zero_trust/group_rule.py index 9011cce10..def8e7245 100644 --- a/src/cloudflare/types/zero_trust/group_rule.py +++ b/src/cloudflare/types/zero_trust/group_rule.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["GroupRule", "Group"] diff --git a/src/cloudflare/types/zero_trust/group_rule_param.py b/src/cloudflare/types/zero_trust/group_rule_param.py index f438f1372..54ce30e00 100644 --- a/src/cloudflare/types/zero_trust/group_rule_param.py +++ b/src/cloudflare/types/zero_trust/group_rule_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["GroupRuleParam", "Group"] diff --git a/src/cloudflare/types/zero_trust/gsuite_group_rule.py b/src/cloudflare/types/zero_trust/gsuite_group_rule.py index e95beb368..589bb8bae 100644 --- a/src/cloudflare/types/zero_trust/gsuite_group_rule.py +++ b/src/cloudflare/types/zero_trust/gsuite_group_rule.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["GSuiteGroupRule", "GSuite"] diff --git a/src/cloudflare/types/zero_trust/gsuite_group_rule_param.py b/src/cloudflare/types/zero_trust/gsuite_group_rule_param.py index 1073158b8..fc29c250b 100644 --- a/src/cloudflare/types/zero_trust/gsuite_group_rule_param.py +++ b/src/cloudflare/types/zero_trust/gsuite_group_rule_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["GSuiteGroupRuleParam", "GSuite"] diff --git a/src/cloudflare/types/zero_trust/identity_provider.py b/src/cloudflare/types/zero_trust/identity_provider.py index 12009aaa9..ef4b0b0a4 100644 --- a/src/cloudflare/types/zero_trust/identity_provider.py +++ b/src/cloudflare/types/zero_trust/identity_provider.py @@ -1,22 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .azure_ad import AzureAD - -from ..._models import BaseModel - -from typing import Optional, List - -from .identity_provider_type import IdentityProviderType - -from .identity_provider_scim_config import IdentityProviderSCIMConfig - -from .generic_oauth_config import GenericOAuthConfig - +from typing import List, Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .azure_ad import AzureAD +from ..._models import BaseModel +from .generic_oauth_config import GenericOAuthConfig +from .identity_provider_type import IdentityProviderType +from .identity_provider_scim_config import IdentityProviderSCIMConfig __all__ = [ "IdentityProvider", diff --git a/src/cloudflare/types/zero_trust/identity_provider_create_params.py b/src/cloudflare/types/zero_trust/identity_provider_create_params.py index 342706803..6048b198b 100644 --- a/src/cloudflare/types/zero_trust/identity_provider_create_params.py +++ b/src/cloudflare/types/zero_trust/identity_provider_create_params.py @@ -2,20 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias +from typing import List, Union, Iterable +from typing_extensions import Literal, Required, TypeAlias, TypedDict from .identity_provider_type import IdentityProviderType - -from .identity_provider_scim_config_param import IdentityProviderSCIMConfigParam - -from typing import List, Iterable - from .generic_oauth_config_param import GenericOAuthConfigParam - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .identity_provider_scim_config_param import IdentityProviderSCIMConfigParam __all__ = [ "IdentityProviderCreateParams", diff --git a/src/cloudflare/types/zero_trust/identity_provider_delete_response.py b/src/cloudflare/types/zero_trust/identity_provider_delete_response.py index 65fd7d409..4c84ce5d1 100644 --- a/src/cloudflare/types/zero_trust/identity_provider_delete_response.py +++ b/src/cloudflare/types/zero_trust/identity_provider_delete_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["IdentityProviderDeleteResponse"] diff --git a/src/cloudflare/types/zero_trust/identity_provider_list_response.py b/src/cloudflare/types/zero_trust/identity_provider_list_response.py index bfd88cf9a..f0cf2daa6 100644 --- a/src/cloudflare/types/zero_trust/identity_provider_list_response.py +++ b/src/cloudflare/types/zero_trust/identity_provider_list_response.py @@ -1,22 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .azure_ad import AzureAD - -from ..._models import BaseModel - -from typing import Optional, List - -from .identity_provider_type import IdentityProviderType - -from .identity_provider_scim_config import IdentityProviderSCIMConfig - -from .generic_oauth_config import GenericOAuthConfig - +from typing import List, Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .azure_ad import AzureAD +from ..._models import BaseModel +from .generic_oauth_config import GenericOAuthConfig +from .identity_provider_type import IdentityProviderType +from .identity_provider_scim_config import IdentityProviderSCIMConfig __all__ = [ "IdentityProviderListResponse", diff --git a/src/cloudflare/types/zero_trust/identity_provider_scim_config.py b/src/cloudflare/types/zero_trust/identity_provider_scim_config.py index 1cf3a74f4..a8eed9eae 100644 --- a/src/cloudflare/types/zero_trust/identity_provider_scim_config.py +++ b/src/cloudflare/types/zero_trust/identity_provider_scim_config.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["IdentityProviderSCIMConfig"] diff --git a/src/cloudflare/types/zero_trust/identity_provider_type.py b/src/cloudflare/types/zero_trust/identity_provider_type.py index 6c4048d2a..13dba5ce2 100644 --- a/src/cloudflare/types/zero_trust/identity_provider_type.py +++ b/src/cloudflare/types/zero_trust/identity_provider_type.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["IdentityProviderType"] IdentityProviderType: TypeAlias = Literal[ diff --git a/src/cloudflare/types/zero_trust/identity_provider_update_params.py b/src/cloudflare/types/zero_trust/identity_provider_update_params.py index 06dfe29d8..caa10840e 100644 --- a/src/cloudflare/types/zero_trust/identity_provider_update_params.py +++ b/src/cloudflare/types/zero_trust/identity_provider_update_params.py @@ -2,20 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias +from typing import List, Union, Iterable +from typing_extensions import Literal, Required, TypeAlias, TypedDict from .identity_provider_type import IdentityProviderType - -from .identity_provider_scim_config_param import IdentityProviderSCIMConfigParam - -from typing import List, Iterable - from .generic_oauth_config_param import GenericOAuthConfigParam - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from .identity_provider_scim_config_param import IdentityProviderSCIMConfigParam __all__ = [ "IdentityProviderUpdateParams", diff --git a/src/cloudflare/types/zero_trust/ip_list_rule.py b/src/cloudflare/types/zero_trust/ip_list_rule.py index eb3ab7862..44db2dcf6 100644 --- a/src/cloudflare/types/zero_trust/ip_list_rule.py +++ b/src/cloudflare/types/zero_trust/ip_list_rule.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["IPListRule", "IPList"] diff --git a/src/cloudflare/types/zero_trust/ip_list_rule_param.py b/src/cloudflare/types/zero_trust/ip_list_rule_param.py index 499c77bb0..af094a8b7 100644 --- a/src/cloudflare/types/zero_trust/ip_list_rule_param.py +++ b/src/cloudflare/types/zero_trust/ip_list_rule_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["IPListRuleParam", "IPList"] diff --git a/src/cloudflare/types/zero_trust/ip_rule.py b/src/cloudflare/types/zero_trust/ip_rule.py index 0889e85bf..9339b8519 100644 --- a/src/cloudflare/types/zero_trust/ip_rule.py +++ b/src/cloudflare/types/zero_trust/ip_rule.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["IPRule", "IP"] diff --git a/src/cloudflare/types/zero_trust/ip_rule_param.py b/src/cloudflare/types/zero_trust/ip_rule_param.py index 4a2cf7bfb..57ad07219 100644 --- a/src/cloudflare/types/zero_trust/ip_rule_param.py +++ b/src/cloudflare/types/zero_trust/ip_rule_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["IPRuleParam", "IP"] diff --git a/src/cloudflare/types/zero_trust/login_design.py b/src/cloudflare/types/zero_trust/login_design.py index 5f8a619c5..51a094698 100644 --- a/src/cloudflare/types/zero_trust/login_design.py +++ b/src/cloudflare/types/zero_trust/login_design.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["LoginDesign"] diff --git a/src/cloudflare/types/zero_trust/network_path.py b/src/cloudflare/types/zero_trust/network_path.py index e41d5b669..7eb7ac791 100644 --- a/src/cloudflare/types/zero_trust/network_path.py +++ b/src/cloudflare/types/zero_trust/network_path.py @@ -1,15 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel + __all__ = ["NetworkPath", "Slot", "Sampling"] diff --git a/src/cloudflare/types/zero_trust/network_path_response.py b/src/cloudflare/types/zero_trust/network_path_response.py index f53199bc6..c0c4f6728 100644 --- a/src/cloudflare/types/zero_trust/network_path_response.py +++ b/src/cloudflare/types/zero_trust/network_path_response.py @@ -1,17 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from .network_path import NetworkPath - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ..._models import BaseModel +from .network_path import NetworkPath + __all__ = ["NetworkPathResponse"] diff --git a/src/cloudflare/types/zero_trust/networks/__init__.py b/src/cloudflare/types/zero_trust/networks/__init__.py index 11d1e16a6..6765e5b61 100644 --- a/src/cloudflare/types/zero_trust/networks/__init__.py +++ b/src/cloudflare/types/zero_trust/networks/__init__.py @@ -4,10 +4,10 @@ from __future__ import annotations from .route import Route as Route from .teamnet import Teamnet as Teamnet -from .route_create_params import RouteCreateParams as RouteCreateParams -from .route_list_params import RouteListParams as RouteListParams -from .route_edit_params import RouteEditParams as RouteEditParams from .virtual_network import VirtualNetwork as VirtualNetwork -from .virtual_network_create_params import VirtualNetworkCreateParams as VirtualNetworkCreateParams -from .virtual_network_list_params import VirtualNetworkListParams as VirtualNetworkListParams +from .route_edit_params import RouteEditParams as RouteEditParams +from .route_list_params import RouteListParams as RouteListParams +from .route_create_params import RouteCreateParams as RouteCreateParams from .virtual_network_edit_params import VirtualNetworkEditParams as VirtualNetworkEditParams +from .virtual_network_list_params import VirtualNetworkListParams as VirtualNetworkListParams +from .virtual_network_create_params import VirtualNetworkCreateParams as VirtualNetworkCreateParams diff --git a/src/cloudflare/types/zero_trust/networks/route.py b/src/cloudflare/types/zero_trust/networks/route.py index 66888b04e..bbfa99946 100644 --- a/src/cloudflare/types/zero_trust/networks/route.py +++ b/src/cloudflare/types/zero_trust/networks/route.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["Route"] diff --git a/src/cloudflare/types/zero_trust/networks/route_create_params.py b/src/cloudflare/types/zero_trust/networks/route_create_params.py index 5f996d400..635da6369 100644 --- a/src/cloudflare/types/zero_trust/networks/route_create_params.py +++ b/src/cloudflare/types/zero_trust/networks/route_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["RouteCreateParams"] diff --git a/src/cloudflare/types/zero_trust/networks/route_edit_params.py b/src/cloudflare/types/zero_trust/networks/route_edit_params.py index 1ca12b9b3..5d0a383e5 100644 --- a/src/cloudflare/types/zero_trust/networks/route_edit_params.py +++ b/src/cloudflare/types/zero_trust/networks/route_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["RouteEditParams"] diff --git a/src/cloudflare/types/zero_trust/networks/route_list_params.py b/src/cloudflare/types/zero_trust/networks/route_list_params.py index 8ee7bc986..15a5e7bb4 100644 --- a/src/cloudflare/types/zero_trust/networks/route_list_params.py +++ b/src/cloudflare/types/zero_trust/networks/route_list_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated - from typing import Union - from datetime import datetime +from typing_extensions import Required, Annotated, TypedDict from ...._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo - __all__ = ["RouteListParams"] diff --git a/src/cloudflare/types/zero_trust/networks/routes/ip_get_params.py b/src/cloudflare/types/zero_trust/networks/routes/ip_get_params.py index 83c65c709..2e0092ae4 100644 --- a/src/cloudflare/types/zero_trust/networks/routes/ip_get_params.py +++ b/src/cloudflare/types/zero_trust/networks/routes/ip_get_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["IPGetParams"] diff --git a/src/cloudflare/types/zero_trust/networks/routes/network_create_params.py b/src/cloudflare/types/zero_trust/networks/routes/network_create_params.py index 63070f057..f33811b5e 100644 --- a/src/cloudflare/types/zero_trust/networks/routes/network_create_params.py +++ b/src/cloudflare/types/zero_trust/networks/routes/network_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["NetworkCreateParams"] diff --git a/src/cloudflare/types/zero_trust/networks/routes/network_delete_params.py b/src/cloudflare/types/zero_trust/networks/routes/network_delete_params.py index 223cad7ae..73d466c65 100644 --- a/src/cloudflare/types/zero_trust/networks/routes/network_delete_params.py +++ b/src/cloudflare/types/zero_trust/networks/routes/network_delete_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ....._types import FileTypes -from ....._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["NetworkDeleteParams"] diff --git a/src/cloudflare/types/zero_trust/networks/teamnet.py b/src/cloudflare/types/zero_trust/networks/teamnet.py index 1c13611b8..768b4564a 100644 --- a/src/cloudflare/types/zero_trust/networks/teamnet.py +++ b/src/cloudflare/types/zero_trust/networks/teamnet.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["Teamnet"] diff --git a/src/cloudflare/types/zero_trust/networks/virtual_network.py b/src/cloudflare/types/zero_trust/networks/virtual_network.py index 418cea0f3..f6b701521 100644 --- a/src/cloudflare/types/zero_trust/networks/virtual_network.py +++ b/src/cloudflare/types/zero_trust/networks/virtual_network.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - +from typing import Optional from datetime import datetime -from typing import Optional - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["VirtualNetwork"] diff --git a/src/cloudflare/types/zero_trust/networks/virtual_network_create_params.py b/src/cloudflare/types/zero_trust/networks/virtual_network_create_params.py index 8ec47f1f8..b4ddaed53 100644 --- a/src/cloudflare/types/zero_trust/networks/virtual_network_create_params.py +++ b/src/cloudflare/types/zero_trust/networks/virtual_network_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["VirtualNetworkCreateParams"] diff --git a/src/cloudflare/types/zero_trust/networks/virtual_network_edit_params.py b/src/cloudflare/types/zero_trust/networks/virtual_network_edit_params.py index 5f678ac86..920ec9b11 100644 --- a/src/cloudflare/types/zero_trust/networks/virtual_network_edit_params.py +++ b/src/cloudflare/types/zero_trust/networks/virtual_network_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["VirtualNetworkEditParams"] diff --git a/src/cloudflare/types/zero_trust/networks/virtual_network_list_params.py b/src/cloudflare/types/zero_trust/networks/virtual_network_list_params.py index ff326fb2a..3168639a9 100644 --- a/src/cloudflare/types/zero_trust/networks/virtual_network_list_params.py +++ b/src/cloudflare/types/zero_trust/networks/virtual_network_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["VirtualNetworkListParams"] diff --git a/src/cloudflare/types/zero_trust/okta_group_rule.py b/src/cloudflare/types/zero_trust/okta_group_rule.py index cf7ee0791..9f57c8671 100644 --- a/src/cloudflare/types/zero_trust/okta_group_rule.py +++ b/src/cloudflare/types/zero_trust/okta_group_rule.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["OktaGroupRule", "Okta"] diff --git a/src/cloudflare/types/zero_trust/okta_group_rule_param.py b/src/cloudflare/types/zero_trust/okta_group_rule_param.py index 495d89945..34d48a810 100644 --- a/src/cloudflare/types/zero_trust/okta_group_rule_param.py +++ b/src/cloudflare/types/zero_trust/okta_group_rule_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["OktaGroupRuleParam", "Okta"] diff --git a/src/cloudflare/types/zero_trust/organization.py b/src/cloudflare/types/zero_trust/organization.py index 2d5ad1b28..b22e84817 100644 --- a/src/cloudflare/types/zero_trust/organization.py +++ b/src/cloudflare/types/zero_trust/organization.py @@ -1,17 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime +from ..._models import BaseModel from .login_design import LoginDesign -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Organization", "CustomPages"] diff --git a/src/cloudflare/types/zero_trust/organization_create_params.py b/src/cloudflare/types/zero_trust/organization_create_params.py index 91ac9d739..e349def6c 100644 --- a/src/cloudflare/types/zero_trust/organization_create_params.py +++ b/src/cloudflare/types/zero_trust/organization_create_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict from .login_design_param import LoginDesignParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["OrganizationCreateParams"] diff --git a/src/cloudflare/types/zero_trust/organization_revoke_users_params.py b/src/cloudflare/types/zero_trust/organization_revoke_users_params.py index 98f299e83..e7b4d7251 100644 --- a/src/cloudflare/types/zero_trust/organization_revoke_users_params.py +++ b/src/cloudflare/types/zero_trust/organization_revoke_users_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["OrganizationRevokeUsersParams"] diff --git a/src/cloudflare/types/zero_trust/organization_revoke_users_response.py b/src/cloudflare/types/zero_trust/organization_revoke_users_response.py index 4780e343b..afa38e0b9 100644 --- a/src/cloudflare/types/zero_trust/organization_revoke_users_response.py +++ b/src/cloudflare/types/zero_trust/organization_revoke_users_response.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["OrganizationRevokeUsersResponse"] OrganizationRevokeUsersResponse: TypeAlias = Literal[True, False] diff --git a/src/cloudflare/types/zero_trust/organization_update_params.py b/src/cloudflare/types/zero_trust/organization_update_params.py index eaeca04cc..012e2cab5 100644 --- a/src/cloudflare/types/zero_trust/organization_update_params.py +++ b/src/cloudflare/types/zero_trust/organization_update_params.py @@ -6,11 +6,6 @@ from typing_extensions import TypedDict from .login_design_param import LoginDesignParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["OrganizationUpdateParams", "CustomPages"] diff --git a/src/cloudflare/types/zero_trust/percentiles.py b/src/cloudflare/types/zero_trust/percentiles.py index 09e93062f..fe27397ea 100644 --- a/src/cloudflare/types/zero_trust/percentiles.py +++ b/src/cloudflare/types/zero_trust/percentiles.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Percentiles"] diff --git a/src/cloudflare/types/zero_trust/risk_scoring/__init__.py b/src/cloudflare/types/zero_trust/risk_scoring/__init__.py index 46240695e..1be8fd0a1 100644 --- a/src/cloudflare/types/zero_trust/risk_scoring/__init__.py +++ b/src/cloudflare/types/zero_trust/risk_scoring/__init__.py @@ -2,13 +2,13 @@ from __future__ import annotations -from .behaviour_update_response import BehaviourUpdateResponse as BehaviourUpdateResponse +from .summary_get_response import SummaryGetResponse as SummaryGetResponse from .behaviour_get_response import BehaviourGetResponse as BehaviourGetResponse from .behaviour_update_params import BehaviourUpdateParams as BehaviourUpdateParams -from .summary_get_response import SummaryGetResponse as SummaryGetResponse +from .integration_get_response import IntegrationGetResponse as IntegrationGetResponse +from .behaviour_update_response import BehaviourUpdateResponse as BehaviourUpdateResponse +from .integration_create_params import IntegrationCreateParams as IntegrationCreateParams +from .integration_list_response import IntegrationListResponse as IntegrationListResponse +from .integration_update_params import IntegrationUpdateParams as IntegrationUpdateParams from .integration_create_response import IntegrationCreateResponse as IntegrationCreateResponse from .integration_update_response import IntegrationUpdateResponse as IntegrationUpdateResponse -from .integration_list_response import IntegrationListResponse as IntegrationListResponse -from .integration_get_response import IntegrationGetResponse as IntegrationGetResponse -from .integration_create_params import IntegrationCreateParams as IntegrationCreateParams -from .integration_update_params import IntegrationUpdateParams as IntegrationUpdateParams diff --git a/src/cloudflare/types/zero_trust/risk_scoring/behaviour_get_response.py b/src/cloudflare/types/zero_trust/risk_scoring/behaviour_get_response.py index e0cf60f33..b5689e108 100644 --- a/src/cloudflare/types/zero_trust/risk_scoring/behaviour_get_response.py +++ b/src/cloudflare/types/zero_trust/risk_scoring/behaviour_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing_extensions import Literal - from typing import Dict - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["BehaviourGetResponse", "Behaviors"] diff --git a/src/cloudflare/types/zero_trust/risk_scoring/behaviour_update_params.py b/src/cloudflare/types/zero_trust/risk_scoring/behaviour_update_params.py index 1afdb2d94..6caa1e312 100644 --- a/src/cloudflare/types/zero_trust/risk_scoring/behaviour_update_params.py +++ b/src/cloudflare/types/zero_trust/risk_scoring/behaviour_update_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Dict - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["BehaviourUpdateParams", "Behaviors"] diff --git a/src/cloudflare/types/zero_trust/risk_scoring/behaviour_update_response.py b/src/cloudflare/types/zero_trust/risk_scoring/behaviour_update_response.py index d31900518..bf4b13b32 100644 --- a/src/cloudflare/types/zero_trust/risk_scoring/behaviour_update_response.py +++ b/src/cloudflare/types/zero_trust/risk_scoring/behaviour_update_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing_extensions import Literal - from typing import Dict - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["BehaviourUpdateResponse", "Behaviors"] diff --git a/src/cloudflare/types/zero_trust/risk_scoring/integration_create_params.py b/src/cloudflare/types/zero_trust/risk_scoring/integration_create_params.py index b152282f3..06b74f560 100644 --- a/src/cloudflare/types/zero_trust/risk_scoring/integration_create_params.py +++ b/src/cloudflare/types/zero_trust/risk_scoring/integration_create_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import Optional - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["IntegrationCreateParams"] diff --git a/src/cloudflare/types/zero_trust/risk_scoring/integration_create_response.py b/src/cloudflare/types/zero_trust/risk_scoring/integration_create_response.py index 207799bda..a30b33a1d 100644 --- a/src/cloudflare/types/zero_trust/risk_scoring/integration_create_response.py +++ b/src/cloudflare/types/zero_trust/risk_scoring/integration_create_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["IntegrationCreateResponse"] diff --git a/src/cloudflare/types/zero_trust/risk_scoring/integration_get_response.py b/src/cloudflare/types/zero_trust/risk_scoring/integration_get_response.py index 06bab2a1c..1e4bd01fa 100644 --- a/src/cloudflare/types/zero_trust/risk_scoring/integration_get_response.py +++ b/src/cloudflare/types/zero_trust/risk_scoring/integration_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["IntegrationGetResponse"] diff --git a/src/cloudflare/types/zero_trust/risk_scoring/integration_list_response.py b/src/cloudflare/types/zero_trust/risk_scoring/integration_list_response.py index 2e6f782e9..870bce916 100644 --- a/src/cloudflare/types/zero_trust/risk_scoring/integration_list_response.py +++ b/src/cloudflare/types/zero_trust/risk_scoring/integration_list_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["IntegrationListResponse"] diff --git a/src/cloudflare/types/zero_trust/risk_scoring/integration_update_params.py b/src/cloudflare/types/zero_trust/risk_scoring/integration_update_params.py index d7a8a69f9..82ad2a12b 100644 --- a/src/cloudflare/types/zero_trust/risk_scoring/integration_update_params.py +++ b/src/cloudflare/types/zero_trust/risk_scoring/integration_update_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Optional - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["IntegrationUpdateParams"] diff --git a/src/cloudflare/types/zero_trust/risk_scoring/integration_update_response.py b/src/cloudflare/types/zero_trust/risk_scoring/integration_update_response.py index b38ef6986..5d084429b 100644 --- a/src/cloudflare/types/zero_trust/risk_scoring/integration_update_response.py +++ b/src/cloudflare/types/zero_trust/risk_scoring/integration_update_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["IntegrationUpdateResponse"] diff --git a/src/cloudflare/types/zero_trust/risk_scoring/integrations/reference_get_response.py b/src/cloudflare/types/zero_trust/risk_scoring/integrations/reference_get_response.py index 3a731d848..d0f79a48a 100644 --- a/src/cloudflare/types/zero_trust/risk_scoring/integrations/reference_get_response.py +++ b/src/cloudflare/types/zero_trust/risk_scoring/integrations/reference_get_response.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ....._models import BaseModel - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ....._models import BaseModel __all__ = ["ReferenceGetResponse"] diff --git a/src/cloudflare/types/zero_trust/risk_scoring/summary_get_response.py b/src/cloudflare/types/zero_trust/risk_scoring/summary_get_response.py index f054bb22a..d8140100e 100644 --- a/src/cloudflare/types/zero_trust/risk_scoring/summary_get_response.py +++ b/src/cloudflare/types/zero_trust/risk_scoring/summary_get_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from datetime import datetime - -from typing_extensions import Literal - from typing import List - -from typing import Optional, Union, List, Dict, Any +from datetime import datetime from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ...._models import BaseModel __all__ = ["SummaryGetResponse", "User"] diff --git a/src/cloudflare/types/zero_trust/risk_scoring_get_response.py b/src/cloudflare/types/zero_trust/risk_scoring_get_response.py index 85a074f1b..5fd473730 100644 --- a/src/cloudflare/types/zero_trust/risk_scoring_get_response.py +++ b/src/cloudflare/types/zero_trust/risk_scoring_get_response.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - +from typing import List, Optional from datetime import datetime - -from typing import Optional, List - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["RiskScoringGetResponse", "Event"] diff --git a/src/cloudflare/types/zero_trust/saml_group_rule.py b/src/cloudflare/types/zero_trust/saml_group_rule.py index 715ac88c1..c1bf9e033 100644 --- a/src/cloudflare/types/zero_trust/saml_group_rule.py +++ b/src/cloudflare/types/zero_trust/saml_group_rule.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["SAMLGroupRule", "SAML"] diff --git a/src/cloudflare/types/zero_trust/saml_group_rule_param.py b/src/cloudflare/types/zero_trust/saml_group_rule_param.py index 547c63b3f..78aa37ef3 100644 --- a/src/cloudflare/types/zero_trust/saml_group_rule_param.py +++ b/src/cloudflare/types/zero_trust/saml_group_rule_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["SAMLGroupRuleParam", "SAML"] diff --git a/src/cloudflare/types/zero_trust/seat.py b/src/cloudflare/types/zero_trust/seat.py index ab1977937..5d59613de 100644 --- a/src/cloudflare/types/zero_trust/seat.py +++ b/src/cloudflare/types/zero_trust/seat.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Seat"] diff --git a/src/cloudflare/types/zero_trust/seat_edit_params.py b/src/cloudflare/types/zero_trust/seat_edit_params.py index 0483a2db7..ace9d68ec 100644 --- a/src/cloudflare/types/zero_trust/seat_edit_params.py +++ b/src/cloudflare/types/zero_trust/seat_edit_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - from typing import Iterable - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["SeatEditParams", "Body"] diff --git a/src/cloudflare/types/zero_trust/seat_edit_response.py b/src/cloudflare/types/zero_trust/seat_edit_response.py index 3fbe41557..9989455c5 100644 --- a/src/cloudflare/types/zero_trust/seat_edit_response.py +++ b/src/cloudflare/types/zero_trust/seat_edit_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .seat import Seat - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .seat import Seat __all__ = ["SeatEditResponse"] diff --git a/src/cloudflare/types/zero_trust/service_token_rule.py b/src/cloudflare/types/zero_trust/service_token_rule.py index a063eba95..a40140c3a 100644 --- a/src/cloudflare/types/zero_trust/service_token_rule.py +++ b/src/cloudflare/types/zero_trust/service_token_rule.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["ServiceTokenRule", "ServiceToken"] diff --git a/src/cloudflare/types/zero_trust/service_token_rule_param.py b/src/cloudflare/types/zero_trust/service_token_rule_param.py index 9a0da4fd6..1c51cea41 100644 --- a/src/cloudflare/types/zero_trust/service_token_rule_param.py +++ b/src/cloudflare/types/zero_trust/service_token_rule_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["ServiceTokenRuleParam", "ServiceToken"] diff --git a/src/cloudflare/types/zero_trust/tunnel_create_params.py b/src/cloudflare/types/zero_trust/tunnel_create_params.py index 05141ca0c..d2534885e 100644 --- a/src/cloudflare/types/zero_trust/tunnel_create_params.py +++ b/src/cloudflare/types/zero_trust/tunnel_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["TunnelCreateParams"] diff --git a/src/cloudflare/types/zero_trust/tunnel_create_response.py b/src/cloudflare/types/zero_trust/tunnel_create_response.py index ee7a64d19..a67b3e1c9 100644 --- a/src/cloudflare/types/zero_trust/tunnel_create_response.py +++ b/src/cloudflare/types/zero_trust/tunnel_create_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..shared.cloudflare_tunnel import CloudflareTunnel - -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Union, Optional from datetime import datetime - from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ..shared.cloudflare_tunnel import CloudflareTunnel __all__ = ["TunnelCreateResponse", "TunnelWARPConnectorTunnel", "TunnelWARPConnectorTunnelConnection"] diff --git a/src/cloudflare/types/zero_trust/tunnel_delete_response.py b/src/cloudflare/types/zero_trust/tunnel_delete_response.py index fff2955c9..42932e259 100644 --- a/src/cloudflare/types/zero_trust/tunnel_delete_response.py +++ b/src/cloudflare/types/zero_trust/tunnel_delete_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..shared.cloudflare_tunnel import CloudflareTunnel - -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Union, Optional from datetime import datetime - from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ..shared.cloudflare_tunnel import CloudflareTunnel __all__ = ["TunnelDeleteResponse", "TunnelWARPConnectorTunnel", "TunnelWARPConnectorTunnelConnection"] diff --git a/src/cloudflare/types/zero_trust/tunnel_edit_params.py b/src/cloudflare/types/zero_trust/tunnel_edit_params.py index ad01b2bfd..b81748794 100644 --- a/src/cloudflare/types/zero_trust/tunnel_edit_params.py +++ b/src/cloudflare/types/zero_trust/tunnel_edit_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["TunnelEditParams"] diff --git a/src/cloudflare/types/zero_trust/tunnel_edit_response.py b/src/cloudflare/types/zero_trust/tunnel_edit_response.py index 03abdb957..7ca12ba39 100644 --- a/src/cloudflare/types/zero_trust/tunnel_edit_response.py +++ b/src/cloudflare/types/zero_trust/tunnel_edit_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..shared.cloudflare_tunnel import CloudflareTunnel - -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Union, Optional from datetime import datetime - from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ..shared.cloudflare_tunnel import CloudflareTunnel __all__ = ["TunnelEditResponse", "TunnelWARPConnectorTunnel", "TunnelWARPConnectorTunnelConnection"] diff --git a/src/cloudflare/types/zero_trust/tunnel_get_response.py b/src/cloudflare/types/zero_trust/tunnel_get_response.py index 90ea8ec58..be2db79f5 100644 --- a/src/cloudflare/types/zero_trust/tunnel_get_response.py +++ b/src/cloudflare/types/zero_trust/tunnel_get_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..shared.cloudflare_tunnel import CloudflareTunnel - -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Union, Optional from datetime import datetime - from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ..shared.cloudflare_tunnel import CloudflareTunnel __all__ = ["TunnelGetResponse", "TunnelWARPConnectorTunnel", "TunnelWARPConnectorTunnelConnection"] diff --git a/src/cloudflare/types/zero_trust/tunnel_list_params.py b/src/cloudflare/types/zero_trust/tunnel_list_params.py index 895d56ad2..85d5c357c 100644 --- a/src/cloudflare/types/zero_trust/tunnel_list_params.py +++ b/src/cloudflare/types/zero_trust/tunnel_list_params.py @@ -2,19 +2,12 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated, Literal - from typing import Union - from datetime import datetime +from typing_extensions import Literal, Required, Annotated, TypedDict from ..._utils import PropertyInfo -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["TunnelListParams"] diff --git a/src/cloudflare/types/zero_trust/tunnel_list_response.py b/src/cloudflare/types/zero_trust/tunnel_list_response.py index abea5b23c..63faf4500 100644 --- a/src/cloudflare/types/zero_trust/tunnel_list_response.py +++ b/src/cloudflare/types/zero_trust/tunnel_list_response.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..shared.cloudflare_tunnel import CloudflareTunnel - -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Union, Optional from datetime import datetime - from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ..shared.cloudflare_tunnel import CloudflareTunnel __all__ = ["TunnelListResponse", "TunnelWARPConnectorTunnel", "TunnelWARPConnectorTunnelConnection"] diff --git a/src/cloudflare/types/zero_trust/tunnels/__init__.py b/src/cloudflare/types/zero_trust/tunnels/__init__.py index 88a1fc50e..c11c30021 100644 --- a/src/cloudflare/types/zero_trust/tunnels/__init__.py +++ b/src/cloudflare/types/zero_trust/tunnels/__init__.py @@ -2,12 +2,12 @@ from __future__ import annotations -from .configuration_update_response import ConfigurationUpdateResponse as ConfigurationUpdateResponse -from .configuration_get_response import ConfigurationGetResponse as ConfigurationGetResponse -from .configuration_update_params import ConfigurationUpdateParams as ConfigurationUpdateParams from .client import Client as Client +from .token_get_response import TokenGetResponse as TokenGetResponse from .connection_get_response import ConnectionGetResponse as ConnectionGetResponse from .connection_delete_params import ConnectionDeleteParams as ConnectionDeleteParams -from .token_get_response import TokenGetResponse as TokenGetResponse -from .management_create_response import ManagementCreateResponse as ManagementCreateResponse from .management_create_params import ManagementCreateParams as ManagementCreateParams +from .configuration_get_response import ConfigurationGetResponse as ConfigurationGetResponse +from .management_create_response import ManagementCreateResponse as ManagementCreateResponse +from .configuration_update_params import ConfigurationUpdateParams as ConfigurationUpdateParams +from .configuration_update_response import ConfigurationUpdateResponse as ConfigurationUpdateResponse diff --git a/src/cloudflare/types/zero_trust/tunnels/client.py b/src/cloudflare/types/zero_trust/tunnels/client.py index c536c0f04..2e8e5b973 100644 --- a/src/cloudflare/types/zero_trust/tunnels/client.py +++ b/src/cloudflare/types/zero_trust/tunnels/client.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ...._models import BaseModel __all__ = ["Client", "Conn"] diff --git a/src/cloudflare/types/zero_trust/tunnels/configuration_get_response.py b/src/cloudflare/types/zero_trust/tunnels/configuration_get_response.py index 2d85144a1..6a0b7fa7a 100644 --- a/src/cloudflare/types/zero_trust/tunnels/configuration_get_response.py +++ b/src/cloudflare/types/zero_trust/tunnels/configuration_get_response.py @@ -1,17 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List, Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "ConfigurationGetResponse", "Config", diff --git a/src/cloudflare/types/zero_trust/tunnels/configuration_update_params.py b/src/cloudflare/types/zero_trust/tunnels/configuration_update_params.py index 2dd3a99fb..2268ca3e3 100644 --- a/src/cloudflare/types/zero_trust/tunnels/configuration_update_params.py +++ b/src/cloudflare/types/zero_trust/tunnels/configuration_update_params.py @@ -2,15 +2,9 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Annotated +from typing import List, Iterable +from typing_extensions import Required, Annotated, TypedDict -from typing import Iterable, List - -from ...._utils import PropertyInfo - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes from ...._utils import PropertyInfo __all__ = [ diff --git a/src/cloudflare/types/zero_trust/tunnels/configuration_update_response.py b/src/cloudflare/types/zero_trust/tunnels/configuration_update_response.py index 6d47d6c09..7b5174806 100644 --- a/src/cloudflare/types/zero_trust/tunnels/configuration_update_response.py +++ b/src/cloudflare/types/zero_trust/tunnels/configuration_update_response.py @@ -1,17 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ...._models import BaseModel - from typing import List, Optional - from datetime import datetime - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal from pydantic import Field as FieldInfo +from ...._models import BaseModel + __all__ = [ "ConfigurationUpdateResponse", "Config", diff --git a/src/cloudflare/types/zero_trust/tunnels/connection_delete_params.py b/src/cloudflare/types/zero_trust/tunnels/connection_delete_params.py index 04cd1cad9..b40d7b56a 100644 --- a/src/cloudflare/types/zero_trust/tunnels/connection_delete_params.py +++ b/src/cloudflare/types/zero_trust/tunnels/connection_delete_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["ConnectionDeleteParams"] diff --git a/src/cloudflare/types/zero_trust/tunnels/connection_get_response.py b/src/cloudflare/types/zero_trust/tunnels/connection_get_response.py index 6dc3f97a8..056580f18 100644 --- a/src/cloudflare/types/zero_trust/tunnels/connection_get_response.py +++ b/src/cloudflare/types/zero_trust/tunnels/connection_get_response.py @@ -1,12 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .client import Client - +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from .client import Client __all__ = ["ConnectionGetResponse"] diff --git a/src/cloudflare/types/zero_trust/tunnels/management_create_params.py b/src/cloudflare/types/zero_trust/tunnels/management_create_params.py index 92437009e..b151c2b86 100644 --- a/src/cloudflare/types/zero_trust/tunnels/management_create_params.py +++ b/src/cloudflare/types/zero_trust/tunnels/management_create_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ...._types import FileTypes -from ...._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["ManagementCreateParams"] diff --git a/src/cloudflare/types/zero_trust/tunnels/management_create_response.py b/src/cloudflare/types/zero_trust/tunnels/management_create_response.py index c997da580..98039717d 100644 --- a/src/cloudflare/types/zero_trust/tunnels/management_create_response.py +++ b/src/cloudflare/types/zero_trust/tunnels/management_create_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List - +from typing import List, Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["ManagementCreateResponse"] ManagementCreateResponse: TypeAlias = Union[List[object], str, object] diff --git a/src/cloudflare/types/zero_trust/tunnels/token_get_response.py b/src/cloudflare/types/zero_trust/tunnels/token_get_response.py index 4404054fb..9a1ec3110 100644 --- a/src/cloudflare/types/zero_trust/tunnels/token_get_response.py +++ b/src/cloudflare/types/zero_trust/tunnels/token_get_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List - +from typing import List, Union from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["TokenGetResponse"] TokenGetResponse: TypeAlias = Union[List[object], str, object] diff --git a/src/cloudflare/types/zones/__init__.py b/src/cloudflare/types/zones/__init__.py index e94ec160c..dd828a843 100644 --- a/src/cloudflare/types/zones/__init__.py +++ b/src/cloudflare/types/zones/__init__.py @@ -2,75 +2,75 @@ from __future__ import annotations +from .nel import NEL as NEL +from .ssl import SSL as SSL +from .waf import WAF as WAF +from .ipv6 import IPV6 as IPV6 from .type import Type as Type +from .webp import WebP as WebP from .zone import Zone as Zone -from .zone_delete_response import ZoneDeleteResponse as ZoneDeleteResponse -from .zone_create_params import ZoneCreateParams as ZoneCreateParams -from .zone_list_params import ZoneListParams as ZoneListParams -from .zone_edit_params import ZoneEditParams as ZoneEditParams -from .activation_check_trigger_response import ActivationCheckTriggerResponse as ActivationCheckTriggerResponse -from .advanced_ddos import AdvancedDDoS as AdvancedDDoS -from .always_online import AlwaysOnline as AlwaysOnline -from .always_use_https import AlwaysUseHTTPS as AlwaysUseHTTPS -from .automatic_https_rewrites import AutomaticHTTPSRewrites as AutomaticHTTPSRewrites -from .automatic_platform_optimization import AutomaticPlatformOptimization as AutomaticPlatformOptimization -from .automatic_platform_optimization_param import ( - AutomaticPlatformOptimizationParam as AutomaticPlatformOptimizationParam, -) -from .brotli import Brotli as Brotli -from .browser_cache_ttl import BrowserCacheTTL as BrowserCacheTTL -from .browser_check import BrowserCheck as BrowserCheck -from .cache_level import CacheLevel as CacheLevel -from .challenge_ttl import ChallengeTTL as ChallengeTTL -from .ciphers import Ciphers as Ciphers -from .development_mode import DevelopmentMode as DevelopmentMode -from .early_hints import EarlyHints as EarlyHints -from .email_obfuscation import EmailObfuscation as EmailObfuscation -from .h2_prioritization import H2Prioritization as H2Prioritization -from .hotlink_protection import HotlinkProtection as HotlinkProtection from .http2 import HTTP2 as HTTP2 from .http3 import HTTP3 as HTTP3 +from .brotli import Brotli as Brotli +from .mirage import Mirage as Mirage +from .polish import Polish as Polish +from .ciphers import Ciphers as Ciphers +from .tls_1_3 import TLS1_3 as TLS1_3 +from .zero_rtt import ZeroRTT as ZeroRTT +from .websocket import Websocket as Websocket +from .zone_hold import ZoneHold as ZoneHold +from .cache_level import CacheLevel as CacheLevel +from .early_hints import EarlyHints as EarlyHints +from .pseudo_ipv4 import PseudoIPV4 as PseudoIPV4 +from .advanced_ddos import AdvancedDDoS as AdvancedDDoS +from .always_online import AlwaysOnline as AlwaysOnline +from .browser_check import BrowserCheck as BrowserCheck +from .challenge_ttl import ChallengeTTL as ChallengeTTL +from .rocket_loader import RocketLoader as RocketLoader from .image_resizing import ImageResizing as ImageResizing from .ip_geolocation import IPGeolocation as IPGeolocation -from .ipv6 import IPV6 as IPV6 -from .min_tls_version import MinTLSVersion as MinTLSVersion -from .mirage import Mirage as Mirage -from .nel import NEL as NEL -from .opportunistic_encryption import OpportunisticEncryption as OpportunisticEncryption -from .opportunistic_onion import OpportunisticOnion as OpportunisticOnion -from .orange_to_orange import OrangeToOrange as OrangeToOrange -from .origin_error_page_pass_thru import OriginErrorPagePassThru as OriginErrorPagePassThru -from .origin_max_http_version import OriginMaxHTTPVersion as OriginMaxHTTPVersion -from .polish import Polish as Polish -from .prefetch_preload import PrefetchPreload as PrefetchPreload -from .proxy_read_timeout import ProxyReadTimeout as ProxyReadTimeout -from .pseudo_ipv4 import PseudoIPV4 as PseudoIPV4 -from .response_buffering import ResponseBuffering as ResponseBuffering -from .rocket_loader import RocketLoader as RocketLoader -from .security_headers import SecurityHeaders as SecurityHeaders from .security_level import SecurityLevel as SecurityLevel -from .server_side_excludes import ServerSideExcludes as ServerSideExcludes -from .sort_query_string_for_cache import SortQueryStringForCache as SortQueryStringForCache -from .ssl import SSL as SSL +from .min_tls_version import MinTLSVersion as MinTLSVersion from .ssl_recommender import SSLRecommender as SSLRecommender -from .tls_1_3 import TLS1_3 as TLS1_3 from .tls_client_auth import TLSClientAuth as TLSClientAuth -from .true_client_ip_header import TrueClientIPHeader as TrueClientIPHeader -from .waf import WAF as WAF -from .webp import WebP as WebP -from .websocket import Websocket as Websocket -from .zero_rtt import ZeroRTT as ZeroRTT -from .setting_edit_response import SettingEditResponse as SettingEditResponse -from .setting_get_response import SettingGetResponse as SettingGetResponse -from .setting_edit_params import SettingEditParams as SettingEditParams -from .custom_nameserver_update_response import CustomNameserverUpdateResponse as CustomNameserverUpdateResponse -from .custom_nameserver_get_response import CustomNameserverGetResponse as CustomNameserverGetResponse -from .custom_nameserver_update_params import CustomNameserverUpdateParams as CustomNameserverUpdateParams -from .zone_hold import ZoneHold as ZoneHold +from .always_use_https import AlwaysUseHTTPS as AlwaysUseHTTPS +from .development_mode import DevelopmentMode as DevelopmentMode +from .orange_to_orange import OrangeToOrange as OrangeToOrange +from .prefetch_preload import PrefetchPreload as PrefetchPreload +from .security_headers import SecurityHeaders as SecurityHeaders +from .zone_edit_params import ZoneEditParams as ZoneEditParams +from .zone_list_params import ZoneListParams as ZoneListParams +from .browser_cache_ttl import BrowserCacheTTL as BrowserCacheTTL +from .email_obfuscation import EmailObfuscation as EmailObfuscation +from .h2_prioritization import H2Prioritization as H2Prioritization from .hold_create_params import HoldCreateParams as HoldCreateParams from .hold_delete_params import HoldDeleteParams as HoldDeleteParams -from .subscription_create_response import SubscriptionCreateResponse as SubscriptionCreateResponse -from .subscription_update_response import SubscriptionUpdateResponse as SubscriptionUpdateResponse +from .hotlink_protection import HotlinkProtection as HotlinkProtection +from .proxy_read_timeout import ProxyReadTimeout as ProxyReadTimeout +from .response_buffering import ResponseBuffering as ResponseBuffering +from .zone_create_params import ZoneCreateParams as ZoneCreateParams +from .opportunistic_onion import OpportunisticOnion as OpportunisticOnion +from .setting_edit_params import SettingEditParams as SettingEditParams +from .server_side_excludes import ServerSideExcludes as ServerSideExcludes +from .setting_get_response import SettingGetResponse as SettingGetResponse +from .zone_delete_response import ZoneDeleteResponse as ZoneDeleteResponse +from .setting_edit_response import SettingEditResponse as SettingEditResponse +from .true_client_ip_header import TrueClientIPHeader as TrueClientIPHeader +from .origin_max_http_version import OriginMaxHTTPVersion as OriginMaxHTTPVersion +from .automatic_https_rewrites import AutomaticHTTPSRewrites as AutomaticHTTPSRewrites +from .opportunistic_encryption import OpportunisticEncryption as OpportunisticEncryption from .subscription_get_response import SubscriptionGetResponse as SubscriptionGetResponse from .subscription_create_params import SubscriptionCreateParams as SubscriptionCreateParams from .subscription_update_params import SubscriptionUpdateParams as SubscriptionUpdateParams +from .origin_error_page_pass_thru import OriginErrorPagePassThru as OriginErrorPagePassThru +from .sort_query_string_for_cache import SortQueryStringForCache as SortQueryStringForCache +from .subscription_create_response import SubscriptionCreateResponse as SubscriptionCreateResponse +from .subscription_update_response import SubscriptionUpdateResponse as SubscriptionUpdateResponse +from .custom_nameserver_get_response import CustomNameserverGetResponse as CustomNameserverGetResponse +from .automatic_platform_optimization import AutomaticPlatformOptimization as AutomaticPlatformOptimization +from .custom_nameserver_update_params import CustomNameserverUpdateParams as CustomNameserverUpdateParams +from .activation_check_trigger_response import ActivationCheckTriggerResponse as ActivationCheckTriggerResponse +from .custom_nameserver_update_response import CustomNameserverUpdateResponse as CustomNameserverUpdateResponse +from .automatic_platform_optimization_param import ( + AutomaticPlatformOptimizationParam as AutomaticPlatformOptimizationParam, +) diff --git a/src/cloudflare/types/zones/activation_check_trigger_response.py b/src/cloudflare/types/zones/activation_check_trigger_response.py index 0ba140eee..94713b92b 100644 --- a/src/cloudflare/types/zones/activation_check_trigger_response.py +++ b/src/cloudflare/types/zones/activation_check_trigger_response.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ActivationCheckTriggerResponse"] diff --git a/src/cloudflare/types/zones/advanced_ddos.py b/src/cloudflare/types/zones/advanced_ddos.py index 0fbdc84e6..f9fc9f46d 100644 --- a/src/cloudflare/types/zones/advanced_ddos.py +++ b/src/cloudflare/types/zones/advanced_ddos.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["AdvancedDDoS"] diff --git a/src/cloudflare/types/zones/always_online.py b/src/cloudflare/types/zones/always_online.py index f4aa89f92..d37202571 100644 --- a/src/cloudflare/types/zones/always_online.py +++ b/src/cloudflare/types/zones/always_online.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["AlwaysOnline"] diff --git a/src/cloudflare/types/zones/always_use_https.py b/src/cloudflare/types/zones/always_use_https.py index f0374dbf7..78f176711 100644 --- a/src/cloudflare/types/zones/always_use_https.py +++ b/src/cloudflare/types/zones/always_use_https.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["AlwaysUseHTTPS"] diff --git a/src/cloudflare/types/zones/automatic_https_rewrites.py b/src/cloudflare/types/zones/automatic_https_rewrites.py index 53a49b395..ced7a3e50 100644 --- a/src/cloudflare/types/zones/automatic_https_rewrites.py +++ b/src/cloudflare/types/zones/automatic_https_rewrites.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["AutomaticHTTPSRewrites"] diff --git a/src/cloudflare/types/zones/automatic_platform_optimization.py b/src/cloudflare/types/zones/automatic_platform_optimization.py index c019ce935..dbf8d1415 100644 --- a/src/cloudflare/types/zones/automatic_platform_optimization.py +++ b/src/cloudflare/types/zones/automatic_platform_optimization.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import List -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["AutomaticPlatformOptimization"] diff --git a/src/cloudflare/types/zones/automatic_platform_optimization_param.py b/src/cloudflare/types/zones/automatic_platform_optimization_param.py index 1f7832a60..b39664ca0 100644 --- a/src/cloudflare/types/zones/automatic_platform_optimization_param.py +++ b/src/cloudflare/types/zones/automatic_platform_optimization_param.py @@ -3,8 +3,7 @@ from __future__ import annotations from typing import List - -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict __all__ = ["AutomaticPlatformOptimizationParam"] diff --git a/src/cloudflare/types/zones/brotli.py b/src/cloudflare/types/zones/brotli.py index 8a35ca30b..74f62f42d 100644 --- a/src/cloudflare/types/zones/brotli.py +++ b/src/cloudflare/types/zones/brotli.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["Brotli"] diff --git a/src/cloudflare/types/zones/browser_cache_ttl.py b/src/cloudflare/types/zones/browser_cache_ttl.py index e5f2c8624..77393c400 100644 --- a/src/cloudflare/types/zones/browser_cache_ttl.py +++ b/src/cloudflare/types/zones/browser_cache_ttl.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["BrowserCacheTTL"] diff --git a/src/cloudflare/types/zones/browser_check.py b/src/cloudflare/types/zones/browser_check.py index 404b8de11..9de5013bc 100644 --- a/src/cloudflare/types/zones/browser_check.py +++ b/src/cloudflare/types/zones/browser_check.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["BrowserCheck"] diff --git a/src/cloudflare/types/zones/cache_level.py b/src/cloudflare/types/zones/cache_level.py index adfad7e82..7aaf44334 100644 --- a/src/cloudflare/types/zones/cache_level.py +++ b/src/cloudflare/types/zones/cache_level.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["CacheLevel"] diff --git a/src/cloudflare/types/zones/challenge_ttl.py b/src/cloudflare/types/zones/challenge_ttl.py index 8abfa22fb..c7f1057d6 100644 --- a/src/cloudflare/types/zones/challenge_ttl.py +++ b/src/cloudflare/types/zones/challenge_ttl.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["ChallengeTTL"] diff --git a/src/cloudflare/types/zones/ciphers.py b/src/cloudflare/types/zones/ciphers.py index 35f2d9ab1..90ac369b8 100644 --- a/src/cloudflare/types/zones/ciphers.py +++ b/src/cloudflare/types/zones/ciphers.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import List, Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["Ciphers"] diff --git a/src/cloudflare/types/zones/custom_nameserver_get_response.py b/src/cloudflare/types/zones/custom_nameserver_get_response.py index 999b371c2..8fbe225a5 100644 --- a/src/cloudflare/types/zones/custom_nameserver_get_response.py +++ b/src/cloudflare/types/zones/custom_nameserver_get_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["CustomNameserverGetResponse"] CustomNameserverGetResponse: TypeAlias = List[object] diff --git a/src/cloudflare/types/zones/custom_nameserver_update_params.py b/src/cloudflare/types/zones/custom_nameserver_update_params.py index 6335932ca..7a4a53f50 100644 --- a/src/cloudflare/types/zones/custom_nameserver_update_params.py +++ b/src/cloudflare/types/zones/custom_nameserver_update_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["CustomNameserverUpdateParams"] diff --git a/src/cloudflare/types/zones/custom_nameserver_update_response.py b/src/cloudflare/types/zones/custom_nameserver_update_response.py index 0f8d263af..11b4e3cad 100644 --- a/src/cloudflare/types/zones/custom_nameserver_update_response.py +++ b/src/cloudflare/types/zones/custom_nameserver_update_response.py @@ -1,11 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from typing import List from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["CustomNameserverUpdateResponse"] CustomNameserverUpdateResponse: TypeAlias = List[str] diff --git a/src/cloudflare/types/zones/development_mode.py b/src/cloudflare/types/zones/development_mode.py index 873842f72..06c81d58b 100644 --- a/src/cloudflare/types/zones/development_mode.py +++ b/src/cloudflare/types/zones/development_mode.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["DevelopmentMode"] diff --git a/src/cloudflare/types/zones/early_hints.py b/src/cloudflare/types/zones/early_hints.py index 199b34365..61b3e7421 100644 --- a/src/cloudflare/types/zones/early_hints.py +++ b/src/cloudflare/types/zones/early_hints.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["EarlyHints"] diff --git a/src/cloudflare/types/zones/email_obfuscation.py b/src/cloudflare/types/zones/email_obfuscation.py index 89c6923bc..37ecaca46 100644 --- a/src/cloudflare/types/zones/email_obfuscation.py +++ b/src/cloudflare/types/zones/email_obfuscation.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["EmailObfuscation"] diff --git a/src/cloudflare/types/zones/h2_prioritization.py b/src/cloudflare/types/zones/h2_prioritization.py index 88426720a..3efdb72b3 100644 --- a/src/cloudflare/types/zones/h2_prioritization.py +++ b/src/cloudflare/types/zones/h2_prioritization.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["H2Prioritization"] diff --git a/src/cloudflare/types/zones/hold_create_params.py b/src/cloudflare/types/zones/hold_create_params.py index 9c1d23abe..9a1f82cf7 100644 --- a/src/cloudflare/types/zones/hold_create_params.py +++ b/src/cloudflare/types/zones/hold_create_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["HoldCreateParams"] diff --git a/src/cloudflare/types/zones/hold_delete_params.py b/src/cloudflare/types/zones/hold_delete_params.py index 0b52ede85..eeb91db1b 100644 --- a/src/cloudflare/types/zones/hold_delete_params.py +++ b/src/cloudflare/types/zones/hold_delete_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["HoldDeleteParams"] diff --git a/src/cloudflare/types/zones/hotlink_protection.py b/src/cloudflare/types/zones/hotlink_protection.py index 8fd3f5fdc..45d990193 100644 --- a/src/cloudflare/types/zones/hotlink_protection.py +++ b/src/cloudflare/types/zones/hotlink_protection.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["HotlinkProtection"] diff --git a/src/cloudflare/types/zones/http2.py b/src/cloudflare/types/zones/http2.py index 15592cd44..2d959b286 100644 --- a/src/cloudflare/types/zones/http2.py +++ b/src/cloudflare/types/zones/http2.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["HTTP2"] diff --git a/src/cloudflare/types/zones/http3.py b/src/cloudflare/types/zones/http3.py index 91cbc2d31..bfca87867 100644 --- a/src/cloudflare/types/zones/http3.py +++ b/src/cloudflare/types/zones/http3.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["HTTP3"] diff --git a/src/cloudflare/types/zones/image_resizing.py b/src/cloudflare/types/zones/image_resizing.py index b9284107e..5f4d4e370 100644 --- a/src/cloudflare/types/zones/image_resizing.py +++ b/src/cloudflare/types/zones/image_resizing.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["ImageResizing"] diff --git a/src/cloudflare/types/zones/ip_geolocation.py b/src/cloudflare/types/zones/ip_geolocation.py index 32d09aae2..0c378a4ac 100644 --- a/src/cloudflare/types/zones/ip_geolocation.py +++ b/src/cloudflare/types/zones/ip_geolocation.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["IPGeolocation"] diff --git a/src/cloudflare/types/zones/ipv6.py b/src/cloudflare/types/zones/ipv6.py index df748c6e7..3ba1ce891 100644 --- a/src/cloudflare/types/zones/ipv6.py +++ b/src/cloudflare/types/zones/ipv6.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["IPV6"] diff --git a/src/cloudflare/types/zones/min_tls_version.py b/src/cloudflare/types/zones/min_tls_version.py index ed35eebb5..107999e78 100644 --- a/src/cloudflare/types/zones/min_tls_version.py +++ b/src/cloudflare/types/zones/min_tls_version.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["MinTLSVersion"] diff --git a/src/cloudflare/types/zones/mirage.py b/src/cloudflare/types/zones/mirage.py index 2ae32b667..4679cc48e 100644 --- a/src/cloudflare/types/zones/mirage.py +++ b/src/cloudflare/types/zones/mirage.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["Mirage"] diff --git a/src/cloudflare/types/zones/nel.py b/src/cloudflare/types/zones/nel.py index 9e2d303ce..bd87df59c 100644 --- a/src/cloudflare/types/zones/nel.py +++ b/src/cloudflare/types/zones/nel.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - -from typing_extensions import Literal - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["NEL", "Value"] diff --git a/src/cloudflare/types/zones/opportunistic_encryption.py b/src/cloudflare/types/zones/opportunistic_encryption.py index 1742635b6..7ab0d1e82 100644 --- a/src/cloudflare/types/zones/opportunistic_encryption.py +++ b/src/cloudflare/types/zones/opportunistic_encryption.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["OpportunisticEncryption"] diff --git a/src/cloudflare/types/zones/opportunistic_onion.py b/src/cloudflare/types/zones/opportunistic_onion.py index 7f4dd2dae..533f547d0 100644 --- a/src/cloudflare/types/zones/opportunistic_onion.py +++ b/src/cloudflare/types/zones/opportunistic_onion.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["OpportunisticOnion"] diff --git a/src/cloudflare/types/zones/orange_to_orange.py b/src/cloudflare/types/zones/orange_to_orange.py index 062d8593a..5605b38f0 100644 --- a/src/cloudflare/types/zones/orange_to_orange.py +++ b/src/cloudflare/types/zones/orange_to_orange.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["OrangeToOrange"] diff --git a/src/cloudflare/types/zones/origin_error_page_pass_thru.py b/src/cloudflare/types/zones/origin_error_page_pass_thru.py index 2463e699c..24cd47f54 100644 --- a/src/cloudflare/types/zones/origin_error_page_pass_thru.py +++ b/src/cloudflare/types/zones/origin_error_page_pass_thru.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["OriginErrorPagePassThru"] diff --git a/src/cloudflare/types/zones/origin_max_http_version.py b/src/cloudflare/types/zones/origin_max_http_version.py index 7101d5df3..4572b2892 100644 --- a/src/cloudflare/types/zones/origin_max_http_version.py +++ b/src/cloudflare/types/zones/origin_max_http_version.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["OriginMaxHTTPVersion"] OriginMaxHTTPVersion: TypeAlias = Literal["origin_max_http_version"] diff --git a/src/cloudflare/types/zones/polish.py b/src/cloudflare/types/zones/polish.py index 5c384e602..c75f4c9c1 100644 --- a/src/cloudflare/types/zones/polish.py +++ b/src/cloudflare/types/zones/polish.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["Polish"] diff --git a/src/cloudflare/types/zones/prefetch_preload.py b/src/cloudflare/types/zones/prefetch_preload.py index 07114f86d..38fba5db6 100644 --- a/src/cloudflare/types/zones/prefetch_preload.py +++ b/src/cloudflare/types/zones/prefetch_preload.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["PrefetchPreload"] diff --git a/src/cloudflare/types/zones/proxy_read_timeout.py b/src/cloudflare/types/zones/proxy_read_timeout.py index 5101b124a..4ebc5dc42 100644 --- a/src/cloudflare/types/zones/proxy_read_timeout.py +++ b/src/cloudflare/types/zones/proxy_read_timeout.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["ProxyReadTimeout"] diff --git a/src/cloudflare/types/zones/pseudo_ipv4.py b/src/cloudflare/types/zones/pseudo_ipv4.py index c9678e456..7e8c50777 100644 --- a/src/cloudflare/types/zones/pseudo_ipv4.py +++ b/src/cloudflare/types/zones/pseudo_ipv4.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["PseudoIPV4"] diff --git a/src/cloudflare/types/zones/response_buffering.py b/src/cloudflare/types/zones/response_buffering.py index f8ad316f6..cee36587e 100644 --- a/src/cloudflare/types/zones/response_buffering.py +++ b/src/cloudflare/types/zones/response_buffering.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["ResponseBuffering"] diff --git a/src/cloudflare/types/zones/rocket_loader.py b/src/cloudflare/types/zones/rocket_loader.py index b81620a27..1fcbbd08b 100644 --- a/src/cloudflare/types/zones/rocket_loader.py +++ b/src/cloudflare/types/zones/rocket_loader.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["RocketLoader"] diff --git a/src/cloudflare/types/zones/security_headers.py b/src/cloudflare/types/zones/security_headers.py index fc122d922..0054c5195 100644 --- a/src/cloudflare/types/zones/security_headers.py +++ b/src/cloudflare/types/zones/security_headers.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - -from typing_extensions import Literal - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["SecurityHeaders", "Value", "ValueStrictTransportSecurity"] diff --git a/src/cloudflare/types/zones/security_level.py b/src/cloudflare/types/zones/security_level.py index 840208d93..93dfddc12 100644 --- a/src/cloudflare/types/zones/security_level.py +++ b/src/cloudflare/types/zones/security_level.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["SecurityLevel"] diff --git a/src/cloudflare/types/zones/server_side_excludes.py b/src/cloudflare/types/zones/server_side_excludes.py index 08b73ec69..2630a01b6 100644 --- a/src/cloudflare/types/zones/server_side_excludes.py +++ b/src/cloudflare/types/zones/server_side_excludes.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["ServerSideExcludes"] diff --git a/src/cloudflare/types/zones/setting_edit_params.py b/src/cloudflare/types/zones/setting_edit_params.py index dda8b7158..d42008fcb 100644 --- a/src/cloudflare/types/zones/setting_edit_params.py +++ b/src/cloudflare/types/zones/setting_edit_params.py @@ -2,17 +2,11 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal, TypeAlias - -from typing import List +from typing import List, Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict from .automatic_platform_optimization_param import AutomaticPlatformOptimizationParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = [ "SettingEditParams", "ZeroRTT", diff --git a/src/cloudflare/types/zones/setting_edit_response.py b/src/cloudflare/types/zones/setting_edit_response.py index 38517bd1d..974838573 100644 --- a/src/cloudflare/types/zones/setting_edit_response.py +++ b/src/cloudflare/types/zones/setting_edit_response.py @@ -1,111 +1,58 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .zero_rtt import ZeroRTT - -from .advanced_ddos import AdvancedDDoS - -from .always_online import AlwaysOnline - -from .always_use_https import AlwaysUseHTTPS - -from .automatic_https_rewrites import AutomaticHTTPSRewrites - -from .brotli import Brotli - -from .browser_cache_ttl import BrowserCacheTTL - -from .browser_check import BrowserCheck - -from .cache_level import CacheLevel - -from .challenge_ttl import ChallengeTTL - -from .ciphers import Ciphers - -from .development_mode import DevelopmentMode - -from .early_hints import EarlyHints - -from .email_obfuscation import EmailObfuscation - -from .h2_prioritization import H2Prioritization - -from .hotlink_protection import HotlinkProtection - -from .http2 import HTTP2 - -from .http3 import HTTP3 - -from .image_resizing import ImageResizing - -from .ip_geolocation import IPGeolocation - -from .ipv6 import IPV6 - -from .min_tls_version import MinTLSVersion - -from .mirage import Mirage - -from .nel import NEL - -from .opportunistic_encryption import OpportunisticEncryption - -from .opportunistic_onion import OpportunisticOnion - -from .orange_to_orange import OrangeToOrange - -from .origin_error_page_pass_thru import OriginErrorPagePassThru - -from .polish import Polish - -from .prefetch_preload import PrefetchPreload - -from .proxy_read_timeout import ProxyReadTimeout - -from .pseudo_ipv4 import PseudoIPV4 - -from .response_buffering import ResponseBuffering - -from .rocket_loader import RocketLoader - -from .security_headers import SecurityHeaders - -from .security_level import SecurityLevel - -from .server_side_excludes import ServerSideExcludes - -from .sort_query_string_for_cache import SortQueryStringForCache - -from .ssl import SSL - -from .ssl_recommender import SSLRecommender - -from .tls_1_3 import TLS1_3 - -from .tls_client_auth import TLSClientAuth - -from .true_client_ip_header import TrueClientIPHeader - -from .waf import WAF - -from .webp import WebP - -from .websocket import Websocket - -from ..._models import BaseModel - +from typing import Union, Optional +from datetime import datetime from typing_extensions import Literal, TypeAlias -from typing import Optional - -from datetime import datetime - +from .nel import NEL +from .ssl import SSL +from .waf import WAF +from .ipv6 import IPV6 +from .webp import WebP +from .http2 import HTTP2 +from .http3 import HTTP3 +from .brotli import Brotli +from .mirage import Mirage +from .polish import Polish +from .ciphers import Ciphers +from .tls_1_3 import TLS1_3 +from .zero_rtt import ZeroRTT +from ..._models import BaseModel +from .websocket import Websocket +from .cache_level import CacheLevel +from .early_hints import EarlyHints +from .pseudo_ipv4 import PseudoIPV4 +from .advanced_ddos import AdvancedDDoS +from .always_online import AlwaysOnline +from .browser_check import BrowserCheck +from .challenge_ttl import ChallengeTTL +from .rocket_loader import RocketLoader +from .image_resizing import ImageResizing +from .ip_geolocation import IPGeolocation +from .security_level import SecurityLevel +from .min_tls_version import MinTLSVersion +from .ssl_recommender import SSLRecommender +from .tls_client_auth import TLSClientAuth +from .always_use_https import AlwaysUseHTTPS +from .development_mode import DevelopmentMode +from .orange_to_orange import OrangeToOrange +from .prefetch_preload import PrefetchPreload +from .security_headers import SecurityHeaders +from .browser_cache_ttl import BrowserCacheTTL +from .email_obfuscation import EmailObfuscation +from .h2_prioritization import H2Prioritization +from .hotlink_protection import HotlinkProtection +from .proxy_read_timeout import ProxyReadTimeout +from .response_buffering import ResponseBuffering +from .opportunistic_onion import OpportunisticOnion +from .server_side_excludes import ServerSideExcludes +from .true_client_ip_header import TrueClientIPHeader +from .automatic_https_rewrites import AutomaticHTTPSRewrites +from .opportunistic_encryption import OpportunisticEncryption +from .origin_error_page_pass_thru import OriginErrorPagePassThru +from .sort_query_string_for_cache import SortQueryStringForCache from .automatic_platform_optimization import AutomaticPlatformOptimization -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = [ "SettingEditResponse", "ZonesCNAMEFlattening", diff --git a/src/cloudflare/types/zones/setting_get_response.py b/src/cloudflare/types/zones/setting_get_response.py index a0b552372..f7550d15c 100644 --- a/src/cloudflare/types/zones/setting_get_response.py +++ b/src/cloudflare/types/zones/setting_get_response.py @@ -1,111 +1,58 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .zero_rtt import ZeroRTT - -from .advanced_ddos import AdvancedDDoS - -from .always_online import AlwaysOnline - -from .always_use_https import AlwaysUseHTTPS - -from .automatic_https_rewrites import AutomaticHTTPSRewrites - -from .brotli import Brotli - -from .browser_cache_ttl import BrowserCacheTTL - -from .browser_check import BrowserCheck - -from .cache_level import CacheLevel - -from .challenge_ttl import ChallengeTTL - -from .ciphers import Ciphers - -from .development_mode import DevelopmentMode - -from .early_hints import EarlyHints - -from .email_obfuscation import EmailObfuscation - -from .h2_prioritization import H2Prioritization - -from .hotlink_protection import HotlinkProtection - -from .http2 import HTTP2 - -from .http3 import HTTP3 - -from .image_resizing import ImageResizing - -from .ip_geolocation import IPGeolocation - -from .ipv6 import IPV6 - -from .min_tls_version import MinTLSVersion - -from .mirage import Mirage - -from .nel import NEL - -from .opportunistic_encryption import OpportunisticEncryption - -from .opportunistic_onion import OpportunisticOnion - -from .orange_to_orange import OrangeToOrange - -from .origin_error_page_pass_thru import OriginErrorPagePassThru - -from .polish import Polish - -from .prefetch_preload import PrefetchPreload - -from .proxy_read_timeout import ProxyReadTimeout - -from .pseudo_ipv4 import PseudoIPV4 - -from .response_buffering import ResponseBuffering - -from .rocket_loader import RocketLoader - -from .security_headers import SecurityHeaders - -from .security_level import SecurityLevel - -from .server_side_excludes import ServerSideExcludes - -from .sort_query_string_for_cache import SortQueryStringForCache - -from .ssl import SSL - -from .ssl_recommender import SSLRecommender - -from .tls_1_3 import TLS1_3 - -from .tls_client_auth import TLSClientAuth - -from .true_client_ip_header import TrueClientIPHeader - -from .waf import WAF - -from .webp import WebP - -from .websocket import Websocket - -from ..._models import BaseModel - +from typing import Union, Optional +from datetime import datetime from typing_extensions import Literal, TypeAlias -from typing import Optional - -from datetime import datetime - +from .nel import NEL +from .ssl import SSL +from .waf import WAF +from .ipv6 import IPV6 +from .webp import WebP +from .http2 import HTTP2 +from .http3 import HTTP3 +from .brotli import Brotli +from .mirage import Mirage +from .polish import Polish +from .ciphers import Ciphers +from .tls_1_3 import TLS1_3 +from .zero_rtt import ZeroRTT +from ..._models import BaseModel +from .websocket import Websocket +from .cache_level import CacheLevel +from .early_hints import EarlyHints +from .pseudo_ipv4 import PseudoIPV4 +from .advanced_ddos import AdvancedDDoS +from .always_online import AlwaysOnline +from .browser_check import BrowserCheck +from .challenge_ttl import ChallengeTTL +from .rocket_loader import RocketLoader +from .image_resizing import ImageResizing +from .ip_geolocation import IPGeolocation +from .security_level import SecurityLevel +from .min_tls_version import MinTLSVersion +from .ssl_recommender import SSLRecommender +from .tls_client_auth import TLSClientAuth +from .always_use_https import AlwaysUseHTTPS +from .development_mode import DevelopmentMode +from .orange_to_orange import OrangeToOrange +from .prefetch_preload import PrefetchPreload +from .security_headers import SecurityHeaders +from .browser_cache_ttl import BrowserCacheTTL +from .email_obfuscation import EmailObfuscation +from .h2_prioritization import H2Prioritization +from .hotlink_protection import HotlinkProtection +from .proxy_read_timeout import ProxyReadTimeout +from .response_buffering import ResponseBuffering +from .opportunistic_onion import OpportunisticOnion +from .server_side_excludes import ServerSideExcludes +from .true_client_ip_header import TrueClientIPHeader +from .automatic_https_rewrites import AutomaticHTTPSRewrites +from .opportunistic_encryption import OpportunisticEncryption +from .origin_error_page_pass_thru import OriginErrorPagePassThru +from .sort_query_string_for_cache import SortQueryStringForCache from .automatic_platform_optimization import AutomaticPlatformOptimization -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = [ "SettingGetResponse", "ZonesCNAMEFlattening", diff --git a/src/cloudflare/types/zones/sort_query_string_for_cache.py b/src/cloudflare/types/zones/sort_query_string_for_cache.py index de6b9824a..ca2fea8aa 100644 --- a/src/cloudflare/types/zones/sort_query_string_for_cache.py +++ b/src/cloudflare/types/zones/sort_query_string_for_cache.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["SortQueryStringForCache"] diff --git a/src/cloudflare/types/zones/ssl.py b/src/cloudflare/types/zones/ssl.py index b3d6cb2e6..720c4eaa0 100644 --- a/src/cloudflare/types/zones/ssl.py +++ b/src/cloudflare/types/zones/ssl.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["SSL"] diff --git a/src/cloudflare/types/zones/ssl_recommender.py b/src/cloudflare/types/zones/ssl_recommender.py index 5211d9289..3fd86d2b4 100644 --- a/src/cloudflare/types/zones/ssl_recommender.py +++ b/src/cloudflare/types/zones/ssl_recommender.py @@ -1,14 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional - from typing_extensions import Literal -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["SSLRecommender"] diff --git a/src/cloudflare/types/zones/subscription_create_params.py b/src/cloudflare/types/zones/subscription_create_params.py index ac6458fe9..6414db145 100644 --- a/src/cloudflare/types/zones/subscription_create_params.py +++ b/src/cloudflare/types/zones/subscription_create_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal +from typing_extensions import Literal, TypedDict from ..user.rate_plan_param import RatePlanParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["SubscriptionCreateParams"] diff --git a/src/cloudflare/types/zones/subscription_create_response.py b/src/cloudflare/types/zones/subscription_create_response.py index 6d7ddf764..907605e38 100644 --- a/src/cloudflare/types/zones/subscription_create_response.py +++ b/src/cloudflare/types/zones/subscription_create_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - +from typing import Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SubscriptionCreateResponse"] SubscriptionCreateResponse: TypeAlias = Union[Optional[str], object] diff --git a/src/cloudflare/types/zones/subscription_get_response.py b/src/cloudflare/types/zones/subscription_get_response.py index fbe782f71..87b2b4295 100644 --- a/src/cloudflare/types/zones/subscription_get_response.py +++ b/src/cloudflare/types/zones/subscription_get_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - +from typing import Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SubscriptionGetResponse"] SubscriptionGetResponse: TypeAlias = Union[Optional[str], object] diff --git a/src/cloudflare/types/zones/subscription_update_params.py b/src/cloudflare/types/zones/subscription_update_params.py index 00cd83d4e..d225bb8cc 100644 --- a/src/cloudflare/types/zones/subscription_update_params.py +++ b/src/cloudflare/types/zones/subscription_update_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal +from typing_extensions import Literal, TypedDict from ..user.rate_plan_param import RatePlanParam -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["SubscriptionUpdateParams"] diff --git a/src/cloudflare/types/zones/subscription_update_response.py b/src/cloudflare/types/zones/subscription_update_response.py index db6bb57fc..2938ede2a 100644 --- a/src/cloudflare/types/zones/subscription_update_response.py +++ b/src/cloudflare/types/zones/subscription_update_response.py @@ -1,13 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional - +from typing import Union, Optional from typing_extensions import TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["SubscriptionUpdateResponse"] SubscriptionUpdateResponse: TypeAlias = Union[Optional[str], object] diff --git a/src/cloudflare/types/zones/tls_1_3.py b/src/cloudflare/types/zones/tls_1_3.py index 551e5fae3..547b489f9 100644 --- a/src/cloudflare/types/zones/tls_1_3.py +++ b/src/cloudflare/types/zones/tls_1_3.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["TLS1_3"] diff --git a/src/cloudflare/types/zones/tls_client_auth.py b/src/cloudflare/types/zones/tls_client_auth.py index 430b04ba4..9d9a33649 100644 --- a/src/cloudflare/types/zones/tls_client_auth.py +++ b/src/cloudflare/types/zones/tls_client_auth.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["TLSClientAuth"] diff --git a/src/cloudflare/types/zones/true_client_ip_header.py b/src/cloudflare/types/zones/true_client_ip_header.py index c5cc38d28..c81c57535 100644 --- a/src/cloudflare/types/zones/true_client_ip_header.py +++ b/src/cloudflare/types/zones/true_client_ip_header.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["TrueClientIPHeader"] diff --git a/src/cloudflare/types/zones/type.py b/src/cloudflare/types/zones/type.py index d5dadc14c..c4add61b1 100644 --- a/src/cloudflare/types/zones/type.py +++ b/src/cloudflare/types/zones/type.py @@ -2,10 +2,6 @@ from typing_extensions import Literal, TypeAlias -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo - __all__ = ["Type"] Type: TypeAlias = Literal["full", "partial", "secondary"] diff --git a/src/cloudflare/types/zones/waf.py b/src/cloudflare/types/zones/waf.py index e66b5697a..d5f4c0d36 100644 --- a/src/cloudflare/types/zones/waf.py +++ b/src/cloudflare/types/zones/waf.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["WAF"] diff --git a/src/cloudflare/types/zones/webp.py b/src/cloudflare/types/zones/webp.py index c301b4b8b..874358394 100644 --- a/src/cloudflare/types/zones/webp.py +++ b/src/cloudflare/types/zones/webp.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["WebP"] diff --git a/src/cloudflare/types/zones/websocket.py b/src/cloudflare/types/zones/websocket.py index 62a91d547..02d38041e 100644 --- a/src/cloudflare/types/zones/websocket.py +++ b/src/cloudflare/types/zones/websocket.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["Websocket"] diff --git a/src/cloudflare/types/zones/zero_rtt.py b/src/cloudflare/types/zones/zero_rtt.py index 1dfd0a662..f47d0e91f 100644 --- a/src/cloudflare/types/zones/zero_rtt.py +++ b/src/cloudflare/types/zones/zero_rtt.py @@ -1,16 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing_extensions import Literal - from typing import Optional - from datetime import datetime - -from typing import Optional, Union, List, Dict, Any from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["ZeroRTT"] diff --git a/src/cloudflare/types/zones/zone.py b/src/cloudflare/types/zones/zone.py index 595c4a608..d05fb2cfa 100644 --- a/src/cloudflare/types/zones/zone.py +++ b/src/cloudflare/types/zones/zone.py @@ -1,18 +1,11 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - -from typing import Optional, List - +from typing import List, Optional from datetime import datetime - from typing_extensions import Literal from .type import Type - -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["Zone", "Account", "Meta", "Owner"] diff --git a/src/cloudflare/types/zones/zone_create_params.py b/src/cloudflare/types/zones/zone_create_params.py index f38ac31da..9500909dc 100644 --- a/src/cloudflare/types/zones/zone_create_params.py +++ b/src/cloudflare/types/zones/zone_create_params.py @@ -2,15 +2,10 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required +from typing_extensions import Required, TypedDict from .type import Type -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo - __all__ = ["ZoneCreateParams", "Account"] diff --git a/src/cloudflare/types/zones/zone_delete_response.py b/src/cloudflare/types/zones/zone_delete_response.py index 8e4e2902e..55ffb51fd 100644 --- a/src/cloudflare/types/zones/zone_delete_response.py +++ b/src/cloudflare/types/zones/zone_delete_response.py @@ -1,10 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo + +from ..._models import BaseModel __all__ = ["ZoneDeleteResponse"] diff --git a/src/cloudflare/types/zones/zone_edit_params.py b/src/cloudflare/types/zones/zone_edit_params.py index b5fb69ee6..c427c1493 100644 --- a/src/cloudflare/types/zones/zone_edit_params.py +++ b/src/cloudflare/types/zones/zone_edit_params.py @@ -2,14 +2,8 @@ from __future__ import annotations -from typing_extensions import TypedDict, Required, Literal - from typing import List - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, Required, TypedDict __all__ = ["ZoneEditParams"] diff --git a/src/cloudflare/types/zones/zone_hold.py b/src/cloudflare/types/zones/zone_hold.py index 166bf821c..d56375bbb 100644 --- a/src/cloudflare/types/zones/zone_hold.py +++ b/src/cloudflare/types/zones/zone_hold.py @@ -1,12 +1,8 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from ..._models import BaseModel - from typing import Optional -from typing import Optional, Union, List, Dict, Any -from typing_extensions import Literal -from pydantic import Field as FieldInfo +from ..._models import BaseModel __all__ = ["ZoneHold"] diff --git a/src/cloudflare/types/zones/zone_list_params.py b/src/cloudflare/types/zones/zone_list_params.py index 5f4985519..c61c3eb3c 100644 --- a/src/cloudflare/types/zones/zone_list_params.py +++ b/src/cloudflare/types/zones/zone_list_params.py @@ -2,12 +2,7 @@ from __future__ import annotations -from typing_extensions import TypedDict, Literal - -from typing import List, Union, Dict, Optional -from typing_extensions import Literal, TypedDict, Required, Annotated -from ..._types import FileTypes -from ..._utils import PropertyInfo +from typing_extensions import Literal, TypedDict __all__ = ["ZoneListParams", "Account"] diff --git a/tests/api_resources/accounts/test_members.py b/tests/api_resources/accounts/test_members.py index 5d8289c7c..b411cad99 100644 --- a/tests/api_resources/accounts/test_members.py +++ b/tests/api_resources/accounts/test_members.py @@ -2,31 +2,21 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.accounts import ( - MemberCreateResponse, - MemberUpdateResponse, - MemberListResponse, - MemberDeleteResponse, - MemberGetResponse, -) - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.accounts import member_create_params -from cloudflare.types.accounts import member_update_params -from cloudflare.types.accounts import member_list_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.accounts import ( + MemberGetResponse, + MemberListResponse, + MemberCreateResponse, + MemberDeleteResponse, + MemberUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/accounts/test_roles.py b/tests/api_resources/accounts/test_roles.py index 4c992064a..a835713c9 100644 --- a/tests/api_resources/accounts/test_roles.py +++ b/tests/api_resources/accounts/test_roles.py @@ -2,22 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.shared import Role - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -from typing import Any, cast, Optional - import os +from typing import Any, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.shared import Role base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/acm/test_total_tls.py b/tests/api_resources/acm/test_total_tls.py index 92c411f72..cf7af173e 100644 --- a/tests/api_resources/acm/test_total_tls.py +++ b/tests/api_resources/acm/test_total_tls.py @@ -2,22 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.acm import TotalTLSCreateResponse, TotalTLSGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.acm import total_tls_create_params -from cloudflare.types.acm import CertificateAuthority +from cloudflare.types.acm import ( + TotalTLSGetResponse, + TotalTLSCreateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/address_maps/test_accounts.py b/tests/api_resources/addressing/address_maps/test_accounts.py index ad1f95b96..b84e7ea91 100644 --- a/tests/api_resources/addressing/address_maps/test_accounts.py +++ b/tests/api_resources/addressing/address_maps/test_accounts.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.addressing.address_maps import AccountUpdateResponse, AccountDeleteResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.addressing.address_maps import account_update_params +from cloudflare.types.addressing.address_maps import AccountDeleteResponse, AccountUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/address_maps/test_ips.py b/tests/api_resources/addressing/address_maps/test_ips.py index 25e1e8ed6..8525eee07 100644 --- a/tests/api_resources/addressing/address_maps/test_ips.py +++ b/tests/api_resources/addressing/address_maps/test_ips.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.addressing.address_maps import IPUpdateResponse, IPDeleteResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.addressing.address_maps import ip_update_params +from cloudflare.types.addressing.address_maps import IPDeleteResponse, IPUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/address_maps/test_zones.py b/tests/api_resources/addressing/address_maps/test_zones.py index bf5633ca0..12786fdfd 100644 --- a/tests/api_resources/addressing/address_maps/test_zones.py +++ b/tests/api_resources/addressing/address_maps/test_zones.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.addressing.address_maps import ZoneUpdateResponse, ZoneDeleteResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.addressing.address_maps import zone_update_params +from cloudflare.types.addressing.address_maps import ZoneDeleteResponse, ZoneUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/loa_documents/test_downloads.py b/tests/api_resources/addressing/loa_documents/test_downloads.py index b87bfa4e4..b4ff36279 100644 --- a/tests/api_resources/addressing/loa_documents/test_downloads.py +++ b/tests/api_resources/addressing/loa_documents/test_downloads.py @@ -2,26 +2,21 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - +import os from typing import Any, cast +import httpx +import pytest +from respx import MockRouter + +from cloudflare import Cloudflare, AsyncCloudflare from cloudflare._response import ( BinaryAPIResponse, - StreamedBinaryAPIResponse, AsyncBinaryAPIResponse, + StreamedBinaryAPIResponse, AsyncStreamedBinaryAPIResponse, ) -import os -import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type - base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/prefixes/bgp/test_bindings.py b/tests/api_resources/addressing/prefixes/bgp/test_bindings.py index b39c13145..1fca628ca 100644 --- a/tests/api_resources/addressing/prefixes/bgp/test_bindings.py +++ b/tests/api_resources/addressing/prefixes/bgp/test_bindings.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.addressing.prefixes.bgp import ServiceBinding, BindingDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.addressing.prefixes.bgp import binding_create_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.addressing.prefixes.bgp import ServiceBinding, BindingDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/prefixes/bgp/test_prefixes.py b/tests/api_resources/addressing/prefixes/bgp/test_prefixes.py index ca6d95b33..c0486fa67 100644 --- a/tests/api_resources/addressing/prefixes/bgp/test_prefixes.py +++ b/tests/api_resources/addressing/prefixes/bgp/test_prefixes.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.addressing.prefixes.bgp import BGPPrefix - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -from typing import Any, cast, Optional - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.addressing.prefixes.bgp import prefix_edit_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.addressing.prefixes.bgp import BGPPrefix base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/prefixes/bgp/test_statuses.py b/tests/api_resources/addressing/prefixes/bgp/test_statuses.py index fa6420ea1..3a1bf7f4e 100644 --- a/tests/api_resources/addressing/prefixes/bgp/test_statuses.py +++ b/tests/api_resources/addressing/prefixes/bgp/test_statuses.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.addressing.prefixes.bgp import StatusEditResponse, StatusGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.addressing.prefixes.bgp import status_edit_params +from cloudflare.types.addressing.prefixes.bgp import StatusGetResponse, StatusEditResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/prefixes/test_delegations.py b/tests/api_resources/addressing/prefixes/test_delegations.py index f0af08c75..dd17a7ac4 100644 --- a/tests/api_resources/addressing/prefixes/test_delegations.py +++ b/tests/api_resources/addressing/prefixes/test_delegations.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.addressing.prefixes import Delegations, DelegationDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.addressing.prefixes import delegation_create_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.addressing.prefixes import Delegations, DelegationDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/regional_hostnames/test_regions.py b/tests/api_resources/addressing/regional_hostnames/test_regions.py index 6f9174466..5d23799e1 100644 --- a/tests/api_resources/addressing/regional_hostnames/test_regions.py +++ b/tests/api_resources/addressing/regional_hostnames/test_regions.py @@ -2,22 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.addressing.regional_hostnames import RegionListResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.addressing.regional_hostnames import RegionListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/test_address_maps.py b/tests/api_resources/addressing/test_address_maps.py index 0d494f50f..f6911519d 100644 --- a/tests/api_resources/addressing/test_address_maps.py +++ b/tests/api_resources/addressing/test_address_maps.py @@ -2,29 +2,20 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.addressing import ( - AddressMapCreateResponse, - AddressMap, - AddressMapDeleteResponse, - AddressMapGetResponse, -) - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.addressing import address_map_create_params -from cloudflare.types.addressing import address_map_edit_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.addressing import ( + AddressMap, + AddressMapGetResponse, + AddressMapCreateResponse, + AddressMapDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/test_loa_documents.py b/tests/api_resources/addressing/test_loa_documents.py index c85c01d25..b3bc8c3e8 100644 --- a/tests/api_resources/addressing/test_loa_documents.py +++ b/tests/api_resources/addressing/test_loa_documents.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.addressing import LOADocumentCreateResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.addressing import loa_document_create_params +from cloudflare.types.addressing import LOADocumentCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/test_prefixes.py b/tests/api_resources/addressing/test_prefixes.py index ba338da8b..bf75c6e7b 100644 --- a/tests/api_resources/addressing/test_prefixes.py +++ b/tests/api_resources/addressing/test_prefixes.py @@ -2,24 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.addressing import Prefix, PrefixDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.addressing import prefix_create_params -from cloudflare.types.addressing import prefix_edit_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.addressing import Prefix, PrefixDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/test_regional_hostnames.py b/tests/api_resources/addressing/test_regional_hostnames.py index ae745c34f..bb0cf8703 100644 --- a/tests/api_resources/addressing/test_regional_hostnames.py +++ b/tests/api_resources/addressing/test_regional_hostnames.py @@ -2,30 +2,21 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.addressing import ( - RegionalHostnameCreateResponse, - RegionalHostnameListResponse, - RegionalHostnameDeleteResponse, - RegionalHostnameEditResponse, - RegionalHostnameGetResponse, -) - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.addressing import regional_hostname_create_params -from cloudflare.types.addressing import regional_hostname_edit_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.addressing import ( + RegionalHostnameGetResponse, + RegionalHostnameEditResponse, + RegionalHostnameListResponse, + RegionalHostnameCreateResponse, + RegionalHostnameDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/test_services.py b/tests/api_resources/addressing/test_services.py index a95326bc5..e54cb33ec 100644 --- a/tests/api_resources/addressing/test_services.py +++ b/tests/api_resources/addressing/test_services.py @@ -2,22 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.addressing import ServiceListResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.addressing import ServiceListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ai_gateway/test_logs.py b/tests/api_resources/ai_gateway/test_logs.py index f28080922..2588a0ae2 100644 --- a/tests/api_resources/ai_gateway/test_logs.py +++ b/tests/api_resources/ai_gateway/test_logs.py @@ -2,27 +2,16 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.ai_gateway import LogListResponse - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.ai_gateway import log_list_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.ai_gateway import LogListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/alerting/destinations/test_eligible.py b/tests/api_resources/alerting/destinations/test_eligible.py index f23da21d7..ee7c9caff 100644 --- a/tests/api_resources/alerting/destinations/test_eligible.py +++ b/tests/api_resources/alerting/destinations/test_eligible.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.alerting.destinations import EligibleGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.alerting.destinations import EligibleGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/alerting/destinations/test_pagerduty.py b/tests/api_resources/alerting/destinations/test_pagerduty.py index 259fb09b0..052471870 100644 --- a/tests/api_resources/alerting/destinations/test_pagerduty.py +++ b/tests/api_resources/alerting/destinations/test_pagerduty.py @@ -2,25 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.alerting.destinations import ( - PagerdutyCreateResponse, - PagerdutyDeleteResponse, - PagerdutyGetResponse, - PagerdutyLinkResponse, -) - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.alerting.destinations import ( + PagerdutyGetResponse, + PagerdutyLinkResponse, + PagerdutyCreateResponse, + PagerdutyDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/alerting/destinations/test_webhooks.py b/tests/api_resources/alerting/destinations/test_webhooks.py index 81a52d716..ea816e0bd 100644 --- a/tests/api_resources/alerting/destinations/test_webhooks.py +++ b/tests/api_resources/alerting/destinations/test_webhooks.py @@ -2,29 +2,20 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.alerting.destinations import ( - WebhookCreateResponse, - WebhookUpdateResponse, - Webhooks, - WebhookDeleteResponse, -) - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.alerting.destinations import webhook_create_params -from cloudflare.types.alerting.destinations import webhook_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.alerting.destinations import ( + Webhooks, + WebhookCreateResponse, + WebhookDeleteResponse, + WebhookUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/alerting/test_available_alerts.py b/tests/api_resources/alerting/test_available_alerts.py index f9db26395..253ff803c 100644 --- a/tests/api_resources/alerting/test_available_alerts.py +++ b/tests/api_resources/alerting/test_available_alerts.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.alerting import AvailableAlertListResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.alerting import AvailableAlertListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/alerting/test_history.py b/tests/api_resources/alerting/test_history.py index 5ae58d3a2..43ef79ac5 100644 --- a/tests/api_resources/alerting/test_history.py +++ b/tests/api_resources/alerting/test_history.py @@ -2,27 +2,16 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.alerting import History - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.alerting import history_list_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.alerting import History base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/alerting/test_policies.py b/tests/api_resources/alerting/test_policies.py index 2312cb238..9eb95d259 100644 --- a/tests/api_resources/alerting/test_policies.py +++ b/tests/api_resources/alerting/test_policies.py @@ -2,28 +2,20 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.alerting import PolicyCreateResponse, PolicyUpdateResponse, Policy, PolicyDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.alerting import policy_create_params -from cloudflare.types.alerting import policy_update_params -from cloudflare.types.alerting import Mechanism -from cloudflare.types.alerting import PolicyFilter -from cloudflare.types.alerting import PolicyFilter -from cloudflare.types.alerting import Mechanism +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.alerting import ( + Policy, + PolicyCreateResponse, + PolicyDeleteResponse, + PolicyUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/api_gateway/discovery/test_operations.py b/tests/api_resources/api_gateway/discovery/test_operations.py index 835f45807..021c6643c 100644 --- a/tests/api_resources/api_gateway/discovery/test_operations.py +++ b/tests/api_resources/api_gateway/discovery/test_operations.py @@ -2,26 +2,16 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.api_gateway import DiscoveryOperation - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +import os from typing import Any, cast -from cloudflare.types.api_gateway.discovery import OperationEditResponse - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.api_gateway.discovery import operation_list_params -from cloudflare.types.api_gateway.discovery import operation_edit_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.api_gateway import DiscoveryOperation +from cloudflare.types.api_gateway.discovery import OperationEditResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/api_gateway/operations/test_schema_validation.py b/tests/api_resources/api_gateway/operations/test_schema_validation.py index 8010dc03c..564e42240 100644 --- a/tests/api_resources/api_gateway/operations/test_schema_validation.py +++ b/tests/api_resources/api_gateway/operations/test_schema_validation.py @@ -2,27 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.api_gateway.operations import ( - SchemaValidationUpdateResponse, - SettingsMultipleRequest, - SchemaValidationGetResponse, -) - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.api_gateway.operations import schema_validation_update_params -from cloudflare.types.api_gateway.operations import schema_validation_edit_params -from cloudflare.types.api_gateway.operations import SettingsMultipleRequest +from cloudflare.types.api_gateway.operations import ( + SettingsMultipleRequest, + SchemaValidationGetResponse, + SchemaValidationUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/api_gateway/settings/test_schema_validation.py b/tests/api_resources/api_gateway/settings/test_schema_validation.py index 609475326..55734d6ad 100644 --- a/tests/api_resources/api_gateway/settings/test_schema_validation.py +++ b/tests/api_resources/api_gateway/settings/test_schema_validation.py @@ -2,22 +2,16 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.api_gateway.settings import Settings - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.api_gateway.settings import schema_validation_update_params -from cloudflare.types.api_gateway.settings import schema_validation_edit_params +from cloudflare.types.api_gateway.settings import ( + Settings, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/api_gateway/test_configurations.py b/tests/api_resources/api_gateway/test_configurations.py index e57d55799..13bdbc854 100644 --- a/tests/api_resources/api_gateway/test_configurations.py +++ b/tests/api_resources/api_gateway/test_configurations.py @@ -2,22 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.api_gateway import ConfigurationUpdateResponse, Configuration - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.api_gateway import configuration_update_params -from cloudflare.types.api_gateway import configuration_get_params +from cloudflare.types.api_gateway import ( + Configuration, + ConfigurationUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/api_gateway/test_discovery.py b/tests/api_resources/api_gateway/test_discovery.py index ef92a3f59..f41ab5292 100644 --- a/tests/api_resources/api_gateway/test_discovery.py +++ b/tests/api_resources/api_gateway/test_discovery.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.api_gateway import DiscoveryGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.api_gateway import DiscoveryGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/api_gateway/test_operations.py b/tests/api_resources/api_gateway/test_operations.py index 1e73372cb..f0bc1a649 100644 --- a/tests/api_resources/api_gateway/test_operations.py +++ b/tests/api_resources/api_gateway/test_operations.py @@ -2,30 +2,20 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.api_gateway import ( - OperationCreateResponse, - OperationListResponse, - OperationDeleteResponse, - OperationGetResponse, -) - +import os from typing import Any, cast -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.api_gateway import operation_create_params -from cloudflare.types.api_gateway import operation_list_params -from cloudflare.types.api_gateway import operation_get_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.api_gateway import ( + OperationGetResponse, + OperationListResponse, + OperationCreateResponse, + OperationDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/api_gateway/test_schemas.py b/tests/api_resources/api_gateway/test_schemas.py index aba5ae041..5c2542b4c 100644 --- a/tests/api_resources/api_gateway/test_schemas.py +++ b/tests/api_resources/api_gateway/test_schemas.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.api_gateway import SchemaListResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.api_gateway import schema_list_params +from cloudflare.types.api_gateway import SchemaListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/api_gateway/test_user_schemas.py b/tests/api_resources/api_gateway/test_user_schemas.py index c2c113abd..9ebdf9e6b 100644 --- a/tests/api_resources/api_gateway/test_user_schemas.py +++ b/tests/api_resources/api_gateway/test_user_schemas.py @@ -2,26 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.api_gateway import SchemaUpload, PublicSchema, UserSchemaDeleteResponse - +import os from typing import Any, cast -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.api_gateway import user_schema_create_params -from cloudflare.types.api_gateway import user_schema_list_params -from cloudflare.types.api_gateway import user_schema_edit_params -from cloudflare.types.api_gateway import user_schema_get_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.api_gateway import ( + PublicSchema, + SchemaUpload, + UserSchemaDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/api_gateway/user_schemas/test_operations.py b/tests/api_resources/api_gateway/user_schemas/test_operations.py index f56a6acf2..642345078 100644 --- a/tests/api_resources/api_gateway/user_schemas/test_operations.py +++ b/tests/api_resources/api_gateway/user_schemas/test_operations.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.api_gateway.user_schemas import OperationListResponse - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.api_gateway.user_schemas import operation_list_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.api_gateway.user_schemas import OperationListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/argo/test_smart_routing.py b/tests/api_resources/argo/test_smart_routing.py index 9a69b33fc..862268904 100644 --- a/tests/api_resources/argo/test_smart_routing.py +++ b/tests/api_resources/argo/test_smart_routing.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.argo import SmartRoutingEditResponse, SmartRoutingGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.argo import smart_routing_edit_params +from cloudflare.types.argo import SmartRoutingGetResponse, SmartRoutingEditResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/argo/test_tiered_caching.py b/tests/api_resources/argo/test_tiered_caching.py index 02c9c0ef4..d91060caa 100644 --- a/tests/api_resources/argo/test_tiered_caching.py +++ b/tests/api_resources/argo/test_tiered_caching.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.argo import TieredCachingEditResponse, TieredCachingGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.argo import tiered_caching_edit_params +from cloudflare.types.argo import TieredCachingGetResponse, TieredCachingEditResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/billing/test_profiles.py b/tests/api_resources/billing/test_profiles.py index 031030fd4..4975c71cc 100644 --- a/tests/api_resources/billing/test_profiles.py +++ b/tests/api_resources/billing/test_profiles.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.billing import ProfileGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.billing import ProfileGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/botnet_feed/configs/test_asn.py b/tests/api_resources/botnet_feed/configs/test_asn.py index 45b812eb8..98199e322 100755 --- a/tests/api_resources/botnet_feed/configs/test_asn.py +++ b/tests/api_resources/botnet_feed/configs/test_asn.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.botnet_feed.configs import ASNDeleteResponse, ASNGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.botnet_feed.configs import ASNGetResponse, ASNDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/botnet_feed/test_asn.py b/tests/api_resources/botnet_feed/test_asn.py index 7300b1903..14b998cdf 100755 --- a/tests/api_resources/botnet_feed/test_asn.py +++ b/tests/api_resources/botnet_feed/test_asn.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.botnet_feed import ASNDayReportResponse, ASNFullReportResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.botnet_feed import asn_day_report_params -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.botnet_feed import ASNDayReportResponse, ASNFullReportResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/cache/test_cache_reserve.py b/tests/api_resources/cache/test_cache_reserve.py index ac784dd88..b1e3ec59f 100644 --- a/tests/api_resources/cache/test_cache_reserve.py +++ b/tests/api_resources/cache/test_cache_reserve.py @@ -2,27 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.cache import ( - CacheReserveClearResponse, - CacheReserveEditResponse, - CacheReserveGetResponse, - CacheReserveStatusResponse, -) - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.cache import cache_reserve_clear_params -from cloudflare.types.cache import cache_reserve_edit_params +from cloudflare.types.cache import ( + CacheReserveGetResponse, + CacheReserveEditResponse, + CacheReserveClearResponse, + CacheReserveStatusResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/cache/test_regional_tiered_cache.py b/tests/api_resources/cache/test_regional_tiered_cache.py index 11f631bda..98deff2ad 100644 --- a/tests/api_resources/cache/test_regional_tiered_cache.py +++ b/tests/api_resources/cache/test_regional_tiered_cache.py @@ -2,21 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.cache import RegionalTieredCacheEditResponse, RegionalTieredCacheGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.cache import regional_tiered_cache_edit_params +from cloudflare.types.cache import ( + RegionalTieredCacheGetResponse, + RegionalTieredCacheEditResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/cache/test_smart_tiered_cache.py b/tests/api_resources/cache/test_smart_tiered_cache.py index 3705e287b..4502fff10 100644 --- a/tests/api_resources/cache/test_smart_tiered_cache.py +++ b/tests/api_resources/cache/test_smart_tiered_cache.py @@ -2,25 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.cache import ( - SmartTieredCacheDeleteResponse, - SmartTieredCacheEditResponse, - SmartTieredCacheGetResponse, -) - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.cache import smart_tiered_cache_edit_params +from cloudflare.types.cache import ( + SmartTieredCacheGetResponse, + SmartTieredCacheEditResponse, + SmartTieredCacheDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/cache/test_variants.py b/tests/api_resources/cache/test_variants.py index afe8e0f44..d274611a7 100644 --- a/tests/api_resources/cache/test_variants.py +++ b/tests/api_resources/cache/test_variants.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.cache import CacheVariant, VariantEditResponse, VariantGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.cache import variant_edit_params +from cloudflare.types.cache import CacheVariant, VariantGetResponse, VariantEditResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/calls/turn/test_keys.py b/tests/api_resources/calls/turn/test_keys.py index 3e51f7dff..c0359f2da 100644 --- a/tests/api_resources/calls/turn/test_keys.py +++ b/tests/api_resources/calls/turn/test_keys.py @@ -2,30 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.calls.turn import ( - KeyCreateResponse, - KeyUpdateResponse, - KeyListResponse, - KeyDeleteResponse, - KeyGetResponse, -) - -from typing import Any, cast, Optional - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.calls.turn import key_create_params -from cloudflare.types.calls.turn import key_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.calls.turn import ( + KeyListResponse, + KeyCreateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/certificate_authorities/test_hostname_associations.py b/tests/api_resources/certificate_authorities/test_hostname_associations.py index fb3792c9d..799d89cd8 100644 --- a/tests/api_resources/certificate_authorities/test_hostname_associations.py +++ b/tests/api_resources/certificate_authorities/test_hostname_associations.py @@ -2,22 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.certificate_authorities import HostnameAssociationUpdateResponse, HostnameAssociationGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.certificate_authorities import hostname_association_update_params -from cloudflare.types.certificate_authorities import hostname_association_get_params +from cloudflare.types.certificate_authorities import ( + HostnameAssociationGetResponse, + HostnameAssociationUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/challenges/test_widgets.py b/tests/api_resources/challenges/test_widgets.py index a6589597a..c78f9a13c 100644 --- a/tests/api_resources/challenges/test_widgets.py +++ b/tests/api_resources/challenges/test_widgets.py @@ -2,26 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.challenges import Widget, WidgetListResponse - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.challenges import widget_create_params -from cloudflare.types.challenges import widget_update_params -from cloudflare.types.challenges import widget_list_params -from cloudflare.types.challenges import widget_rotate_secret_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.challenges import ( + Widget, + WidgetListResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/cloud_connector/test_rules.py b/tests/api_resources/cloud_connector/test_rules.py index 09710434d..8506196e9 100644 --- a/tests/api_resources/cloud_connector/test_rules.py +++ b/tests/api_resources/cloud_connector/test_rules.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.cloud_connector import RuleUpdateResponse, RuleListResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.cloud_connector import rule_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.cloud_connector import RuleListResponse, RuleUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/cloudforce_one/requests/test_message.py b/tests/api_resources/cloudforce_one/requests/test_message.py index eb2c86d80..af281c7eb 100644 --- a/tests/api_resources/cloudforce_one/requests/test_message.py +++ b/tests/api_resources/cloudforce_one/requests/test_message.py @@ -2,27 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.cloudforce_one.requests import Message, MessageDeleteResponse, MessageGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.cloudforce_one.requests import message_create_params -from cloudflare.types.cloudforce_one.requests import message_update_params -from cloudflare.types.cloudforce_one.requests import message_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.cloudforce_one.requests import ( + Message, + MessageGetResponse, + MessageDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/cloudforce_one/requests/test_priority.py b/tests/api_resources/cloudforce_one/requests/test_priority.py index 0830910e8..a30788466 100644 --- a/tests/api_resources/cloudforce_one/requests/test_priority.py +++ b/tests/api_resources/cloudforce_one/requests/test_priority.py @@ -2,24 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.cloudforce_one.requests import Priority, PriorityDeleteResponse - -from cloudflare.types.cloudforce_one import Item, Quota - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.cloudforce_one.requests import priority_create_params -from cloudflare.types.cloudforce_one.requests import priority_update_params +from cloudflare.types.cloudforce_one import Item, Quota +from cloudflare.types.cloudforce_one.requests import ( + Priority, + PriorityDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/cloudforce_one/test_requests.py b/tests/api_resources/cloudforce_one/test_requests.py index 4f3eaabc6..53ea792ef 100644 --- a/tests/api_resources/cloudforce_one/test_requests.py +++ b/tests/api_resources/cloudforce_one/test_requests.py @@ -2,33 +2,23 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.cloudforce_one import Item, ListItem, RequestDeleteResponse, RequestConstants, Quota, RequestTypes - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.cloudforce_one import request_create_params -from cloudflare.types.cloudforce_one import request_update_params -from cloudflare.types.cloudforce_one import request_list_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.cloudforce_one import ( + Item, + Quota, + ListItem, + RequestTypes, + RequestConstants, + RequestDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/custom_certificates/test_prioritize.py b/tests/api_resources/custom_certificates/test_prioritize.py index 6cc8fed5b..25accbd83 100644 --- a/tests/api_resources/custom_certificates/test_prioritize.py +++ b/tests/api_resources/custom_certificates/test_prioritize.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.custom_certificates import PrioritizeUpdateResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.custom_certificates import prioritize_update_params +from cloudflare.types.custom_certificates import PrioritizeUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/custom_hostnames/test_fallback_origin.py b/tests/api_resources/custom_hostnames/test_fallback_origin.py index 01fcba826..06e7260f8 100644 --- a/tests/api_resources/custom_hostnames/test_fallback_origin.py +++ b/tests/api_resources/custom_hostnames/test_fallback_origin.py @@ -2,25 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.custom_hostnames import ( - FallbackOriginUpdateResponse, - FallbackOriginDeleteResponse, - FallbackOriginGetResponse, -) - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.custom_hostnames import fallback_origin_update_params +from cloudflare.types.custom_hostnames import ( + FallbackOriginGetResponse, + FallbackOriginDeleteResponse, + FallbackOriginUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/d1/test_database.py b/tests/api_resources/d1/test_database.py index f100cf3b1..3f6684fa8 100644 --- a/tests/api_resources/d1/test_database.py +++ b/tests/api_resources/d1/test_database.py @@ -2,35 +2,22 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.d1 import ( - D1, - DatabaseListResponse, - DatabaseExportResponse, - DatabaseImportResponse, - DatabaseQueryResponse, - DatabaseRawResponse, -) - -from typing import Any, cast, Optional - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - import os +from typing import Any, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.d1 import database_create_params -from cloudflare.types.d1 import database_list_params -from cloudflare.types.d1 import database_export_params -from cloudflare.types.d1 import database_import_params -from cloudflare.types.d1 import database_query_params -from cloudflare.types.d1 import database_raw_params +from cloudflare.types.d1 import ( + D1, + DatabaseRawResponse, + DatabaseListResponse, + DatabaseQueryResponse, + DatabaseExportResponse, + DatabaseImportResponse, +) +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/diagnostics/test_traceroutes.py b/tests/api_resources/diagnostics/test_traceroutes.py index b8a749009..930de4972 100644 --- a/tests/api_resources/diagnostics/test_traceroutes.py +++ b/tests/api_resources/diagnostics/test_traceroutes.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.diagnostics import TracerouteCreateResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.diagnostics import traceroute_create_params +from cloudflare.types.diagnostics import TracerouteCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dns/analytics/reports/test_bytimes.py b/tests/api_resources/dns/analytics/reports/test_bytimes.py index 89f9417c5..2279b99ef 100644 --- a/tests/api_resources/dns/analytics/reports/test_bytimes.py +++ b/tests/api_resources/dns/analytics/reports/test_bytimes.py @@ -2,26 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.dns.analytics.reports import ByTime - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.dns.analytics.reports import bytime_get_params -from cloudflare.types.dns.firewall import Delta -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.dns.analytics.reports import ByTime base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dns/analytics/test_reports.py b/tests/api_resources/dns/analytics/test_reports.py index 0a081cbcd..89dae9795 100644 --- a/tests/api_resources/dns/analytics/test_reports.py +++ b/tests/api_resources/dns/analytics/test_reports.py @@ -2,25 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.dns.analytics import Report - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.dns.analytics import report_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.dns.analytics import Report base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dns/firewall/analytics/reports/test_bytimes.py b/tests/api_resources/dns/firewall/analytics/reports/test_bytimes.py index 41b3eb904..8adc297b8 100644 --- a/tests/api_resources/dns/firewall/analytics/reports/test_bytimes.py +++ b/tests/api_resources/dns/firewall/analytics/reports/test_bytimes.py @@ -2,26 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.dns.analytics.reports import ByTime - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.dns.firewall.analytics.reports import bytime_get_params -from cloudflare.types.dns.firewall import Delta -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.dns.analytics.reports import ByTime base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dns/firewall/analytics/test_reports.py b/tests/api_resources/dns/firewall/analytics/test_reports.py index 85f20de88..ebdb5cad0 100644 --- a/tests/api_resources/dns/firewall/analytics/test_reports.py +++ b/tests/api_resources/dns/firewall/analytics/test_reports.py @@ -2,25 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.dns.analytics import Report - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.dns.firewall.analytics import report_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.dns.analytics import Report base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dns/test_firewall.py b/tests/api_resources/dns/test_firewall.py index a5254c749..bdd4c4ba0 100644 --- a/tests/api_resources/dns/test_firewall.py +++ b/tests/api_resources/dns/test_firewall.py @@ -2,33 +2,21 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.dns import ( - FirewallCreateResponse, - FirewallListResponse, - FirewallDeleteResponse, - FirewallEditResponse, - FirewallGetResponse, -) - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.dns import firewall_create_params -from cloudflare.types.dns import firewall_list_params -from cloudflare.types.dns import firewall_edit_params -from cloudflare.types.dns import AttackMitigation -from cloudflare.types.dns import AttackMitigation +from cloudflare.types.dns import ( + FirewallGetResponse, + FirewallEditResponse, + FirewallListResponse, + FirewallCreateResponse, + FirewallDeleteResponse, +) +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dns/test_records.py b/tests/api_resources/dns/test_records.py index 82829c007..d0196436e 100644 --- a/tests/api_resources/dns/test_records.py +++ b/tests/api_resources/dns/test_records.py @@ -2,39 +2,24 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.dns import ( - RecordCreateResponse, - RecordUpdateResponse, - RecordListResponse, - RecordDeleteResponse, - RecordEditResponse, - RecordExportResponse, - RecordGetResponse, - RecordImportResponse, - RecordScanResponse, -) - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.dns import record_create_params -from cloudflare.types.dns import record_update_params -from cloudflare.types.dns import record_list_params -from cloudflare.types.dns import record_edit_params -from cloudflare.types.dns import record_import_params -from cloudflare.types.dns import record_scan_params -from cloudflare.types import shared +from cloudflare.types.dns import ( + RecordGetResponse, + RecordEditResponse, + RecordListResponse, + RecordScanResponse, + RecordCreateResponse, + RecordDeleteResponse, + RecordImportResponse, + RecordUpdateResponse, +) +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dns/test_settings.py b/tests/api_resources/dns/test_settings.py index 06c9e042f..2c204b237 100644 --- a/tests/api_resources/dns/test_settings.py +++ b/tests/api_resources/dns/test_settings.py @@ -2,22 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.dns import SettingEditResponse, SettingGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.dns import setting_edit_params -from cloudflare.types.dns import DNSSetting +from cloudflare.types.dns import SettingGetResponse, SettingEditResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/durable_objects/namespaces/test_objects.py b/tests/api_resources/durable_objects/namespaces/test_objects.py index a84f4aa3c..9e703603f 100644 --- a/tests/api_resources/durable_objects/namespaces/test_objects.py +++ b/tests/api_resources/durable_objects/namespaces/test_objects.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.durable_objects.namespaces import DurableObject - -from cloudflare.pagination import SyncCursorLimitPagination, AsyncCursorLimitPagination - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.durable_objects.namespaces import object_list_params +from cloudflare.pagination import SyncCursorLimitPagination, AsyncCursorLimitPagination +from cloudflare.types.durable_objects.namespaces import DurableObject base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/durable_objects/test_namespaces.py b/tests/api_resources/durable_objects/test_namespaces.py index 5d67a68f2..db836e379 100644 --- a/tests/api_resources/durable_objects/test_namespaces.py +++ b/tests/api_resources/durable_objects/test_namespaces.py @@ -2,22 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.durable_objects import Namespace - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.durable_objects import Namespace base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/email_routing/rules/test_catch_alls.py b/tests/api_resources/email_routing/rules/test_catch_alls.py index 0d6f313d5..26f9156e6 100644 --- a/tests/api_resources/email_routing/rules/test_catch_alls.py +++ b/tests/api_resources/email_routing/rules/test_catch_alls.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.email_routing.rules import CatchAllUpdateResponse, CatchAllGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.email_routing.rules import catch_all_update_params +from cloudflare.types.email_routing.rules import CatchAllGetResponse, CatchAllUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/email_routing/test_addresses.py b/tests/api_resources/email_routing/test_addresses.py index 79f400c2d..1530cf79f 100644 --- a/tests/api_resources/email_routing/test_addresses.py +++ b/tests/api_resources/email_routing/test_addresses.py @@ -2,24 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.email_routing import Address - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.email_routing import address_create_params -from cloudflare.types.email_routing import address_list_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.email_routing import Address base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/email_routing/test_dns.py b/tests/api_resources/email_routing/test_dns.py index 3ccba0353..f600b5fa0 100644 --- a/tests/api_resources/email_routing/test_dns.py +++ b/tests/api_resources/email_routing/test_dns.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.email_routing import Settings, DNSGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.email_routing import Settings, DNSGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/email_routing/test_rules.py b/tests/api_resources/email_routing/test_rules.py index cad5bc53e..22e793359 100644 --- a/tests/api_resources/email_routing/test_rules.py +++ b/tests/api_resources/email_routing/test_rules.py @@ -2,25 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.email_routing import EmailRoutingRule - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.email_routing import rule_create_params -from cloudflare.types.email_routing import rule_update_params -from cloudflare.types.email_routing import rule_list_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.email_routing import EmailRoutingRule base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/email_security/settings/test_allow_patterns.py b/tests/api_resources/email_security/settings/test_allow_patterns.py index 7b93fe640..82c54bfed 100644 --- a/tests/api_resources/email_security/settings/test_allow_patterns.py +++ b/tests/api_resources/email_security/settings/test_allow_patterns.py @@ -2,31 +2,21 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.email_security.settings import ( - AllowPatternCreateResponse, - AllowPatternListResponse, - AllowPatternDeleteResponse, - AllowPatternEditResponse, - AllowPatternGetResponse, -) - +import os from typing import Any, cast -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.email_security.settings import allow_pattern_create_params -from cloudflare.types.email_security.settings import allow_pattern_list_params -from cloudflare.types.email_security.settings import allow_pattern_edit_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.email_security.settings import ( + AllowPatternGetResponse, + AllowPatternEditResponse, + AllowPatternListResponse, + AllowPatternCreateResponse, + AllowPatternDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/email_security/settings/test_block_senders.py b/tests/api_resources/email_security/settings/test_block_senders.py index c9d6d4fcd..60fb1b7ca 100644 --- a/tests/api_resources/email_security/settings/test_block_senders.py +++ b/tests/api_resources/email_security/settings/test_block_senders.py @@ -2,31 +2,21 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.email_security.settings import ( - BlockSenderCreateResponse, - BlockSenderListResponse, - BlockSenderDeleteResponse, - BlockSenderEditResponse, - BlockSenderGetResponse, -) - +import os from typing import Any, cast -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.email_security.settings import block_sender_create_params -from cloudflare.types.email_security.settings import block_sender_list_params -from cloudflare.types.email_security.settings import block_sender_edit_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.email_security.settings import ( + BlockSenderGetResponse, + BlockSenderEditResponse, + BlockSenderListResponse, + BlockSenderCreateResponse, + BlockSenderDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/email_security/settings/test_domains.py b/tests/api_resources/email_security/settings/test_domains.py index a87b1f739..9f4110f7d 100644 --- a/tests/api_resources/email_security/settings/test_domains.py +++ b/tests/api_resources/email_security/settings/test_domains.py @@ -2,24 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.email_security.settings import DomainListResponse, DomainDeleteResponse, DomainEditResponse - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.email_security.settings import domain_list_params -from cloudflare.types.email_security.settings import domain_edit_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.email_security.settings import ( + DomainEditResponse, + DomainListResponse, + DomainDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/email_security/settings/test_impersonation_registry.py b/tests/api_resources/email_security/settings/test_impersonation_registry.py index 669ff3054..02ff2a725 100644 --- a/tests/api_resources/email_security/settings/test_impersonation_registry.py +++ b/tests/api_resources/email_security/settings/test_impersonation_registry.py @@ -2,31 +2,21 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.email_security.settings import ( - ImpersonationRegistryCreateResponse, - ImpersonationRegistryListResponse, - ImpersonationRegistryDeleteResponse, - ImpersonationRegistryEditResponse, - ImpersonationRegistryGetResponse, -) - +import os from typing import Any, cast -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.email_security.settings import impersonation_registry_create_params -from cloudflare.types.email_security.settings import impersonation_registry_list_params -from cloudflare.types.email_security.settings import impersonation_registry_edit_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.email_security.settings import ( + ImpersonationRegistryGetResponse, + ImpersonationRegistryEditResponse, + ImpersonationRegistryListResponse, + ImpersonationRegistryCreateResponse, + ImpersonationRegistryDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/email_security/settings/test_trusted_domains.py b/tests/api_resources/email_security/settings/test_trusted_domains.py index e36feec3f..edc75aabd 100644 --- a/tests/api_resources/email_security/settings/test_trusted_domains.py +++ b/tests/api_resources/email_security/settings/test_trusted_domains.py @@ -2,31 +2,21 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.email_security.settings import ( - TrustedDomainCreateResponse, - TrustedDomainListResponse, - TrustedDomainDeleteResponse, - TrustedDomainEditResponse, - TrustedDomainGetResponse, -) - +import os from typing import Any, cast -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.email_security.settings import trusted_domain_create_params -from cloudflare.types.email_security.settings import trusted_domain_list_params -from cloudflare.types.email_security.settings import trusted_domain_edit_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.email_security.settings import ( + TrustedDomainGetResponse, + TrustedDomainEditResponse, + TrustedDomainListResponse, + TrustedDomainCreateResponse, + TrustedDomainDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/email_security/test_investigate.py b/tests/api_resources/email_security/test_investigate.py index 557dac0d2..dccf1561a 100644 --- a/tests/api_resources/email_security/test_investigate.py +++ b/tests/api_resources/email_security/test_investigate.py @@ -2,34 +2,23 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.email_security import ( - InvestigateListResponse, - InvestigateDetectionsResponse, - InvestigateGetResponse, - InvestigatePreviewResponse, - InvestigateRawResponse, - InvestigateTraceResponse, -) - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.email_security import investigate_list_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.email_security import ( + InvestigateGetResponse, + InvestigateRawResponse, + InvestigateListResponse, + InvestigateTraceResponse, + InvestigatePreviewResponse, + InvestigateDetectionsResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/email_security/test_phishguard.py b/tests/api_resources/email_security/test_phishguard.py index d18be176a..ccbdb6474 100644 --- a/tests/api_resources/email_security/test_phishguard.py +++ b/tests/api_resources/email_security/test_phishguard.py @@ -2,39 +2,16 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.email_security import PhishguardListResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.email_security import phishguard_list_params -from cloudflare._utils import parse_date -from cloudflare._utils import parse_date -from cloudflare._utils import parse_date -from cloudflare._utils import parse_date -from cloudflare._utils import parse_date -from cloudflare._utils import parse_date -from cloudflare._utils import parse_date -from cloudflare._utils import parse_date -from cloudflare._utils import parse_date -from cloudflare._utils import parse_date -from cloudflare._utils import parse_date -from cloudflare._utils import parse_date -from cloudflare._utils import parse_date -from cloudflare._utils import parse_date -from cloudflare._utils import parse_date from cloudflare._utils import parse_date +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.email_security import PhishguardListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/event_notifications/r2/configuration/test_queues.py b/tests/api_resources/event_notifications/r2/configuration/test_queues.py index 2d60ad4c3..f2d278015 100644 --- a/tests/api_resources/event_notifications/r2/configuration/test_queues.py +++ b/tests/api_resources/event_notifications/r2/configuration/test_queues.py @@ -2,21 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.event_notifications.r2.configuration import QueueUpdateResponse, QueueDeleteResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.event_notifications.r2.configuration import queue_update_params +from cloudflare.types.event_notifications.r2.configuration import ( + QueueDeleteResponse, + QueueUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/event_notifications/r2/test_configuration.py b/tests/api_resources/event_notifications/r2/test_configuration.py index 972fc7804..0ca03d9fc 100644 --- a/tests/api_resources/event_notifications/r2/test_configuration.py +++ b/tests/api_resources/event_notifications/r2/test_configuration.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.event_notifications.r2 import ConfigurationGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.event_notifications.r2 import ConfigurationGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/firewall/test_access_rules.py b/tests/api_resources/firewall/test_access_rules.py index 6d72b6f5f..db0e910b7 100644 --- a/tests/api_resources/firewall/test_access_rules.py +++ b/tests/api_resources/firewall/test_access_rules.py @@ -2,30 +2,20 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.firewall import ( - AccessRuleCreateResponse, - AccessRuleDeleteResponse, - AccessRuleEditResponse, - AccessRuleGetResponse, -) - -from typing import Any, cast, Optional - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.firewall import access_rule_create_params -from cloudflare.types.firewall import access_rule_list_params -from cloudflare.types.firewall import access_rule_edit_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.firewall import ( + AccessRuleGetResponse, + AccessRuleEditResponse, + AccessRuleCreateResponse, + AccessRuleDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/firewall/test_lockdowns.py b/tests/api_resources/firewall/test_lockdowns.py index 88269a0c4..4e68c2ead 100644 --- a/tests/api_resources/firewall/test_lockdowns.py +++ b/tests/api_resources/firewall/test_lockdowns.py @@ -2,31 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.firewall import Lockdown, LockdownDeleteResponse - -from typing import Any, cast, Optional - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.firewall import lockdown_create_params -from cloudflare.types.firewall import lockdown_update_params -from cloudflare.types.firewall import lockdown_list_params -from cloudflare.types.firewall import Configuration -from cloudflare.types.firewall import Configuration -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.firewall import ( + Lockdown, + LockdownDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/firewall/test_rules.py b/tests/api_resources/firewall/test_rules.py index ff0d457fb..33cd1b587 100644 --- a/tests/api_resources/firewall/test_rules.py +++ b/tests/api_resources/firewall/test_rules.py @@ -2,28 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.firewall import RuleCreateResponse, FirewallRule, RuleEditResponse - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.firewall import rule_create_params -from cloudflare.types.firewall import rule_update_params -from cloudflare.types.firewall import rule_list_params -from cloudflare.types.firewall import rule_get_params -from cloudflare.types.filters import FirewallFilter -from cloudflare.types.filters import FirewallFilter +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.firewall import ( + FirewallRule, + RuleEditResponse, + RuleCreateResponse, +) # pyright: reportDeprecated=false diff --git a/tests/api_resources/firewall/test_ua_rules.py b/tests/api_resources/firewall/test_ua_rules.py index 88297ee4b..8d30d9b8e 100644 --- a/tests/api_resources/firewall/test_ua_rules.py +++ b/tests/api_resources/firewall/test_ua_rules.py @@ -2,31 +2,21 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.firewall import ( - UARuleCreateResponse, - UARuleUpdateResponse, - UARuleListResponse, - UARuleDeleteResponse, - UARuleGetResponse, -) - +import os from typing import Any, cast -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.firewall import ua_rule_create_params -from cloudflare.types.firewall import ua_rule_update_params -from cloudflare.types.firewall import ua_rule_list_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +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") diff --git a/tests/api_resources/firewall/waf/packages/test_groups.py b/tests/api_resources/firewall/waf/packages/test_groups.py index 702fc872f..c911deb84 100644 --- a/tests/api_resources/firewall/waf/packages/test_groups.py +++ b/tests/api_resources/firewall/waf/packages/test_groups.py @@ -2,24 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.firewall.waf.packages import Group, GroupEditResponse, GroupGetResponse - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.firewall.waf.packages import group_list_params -from cloudflare.types.firewall.waf.packages import group_edit_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +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") diff --git a/tests/api_resources/firewall/waf/packages/test_rules.py b/tests/api_resources/firewall/waf/packages/test_rules.py index 7bc95ba07..dc22cd357 100644 --- a/tests/api_resources/firewall/waf/packages/test_rules.py +++ b/tests/api_resources/firewall/waf/packages/test_rules.py @@ -2,24 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.firewall.waf.packages import RuleListResponse, RuleEditResponse, RuleGetResponse - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.firewall.waf.packages import rule_list_params -from cloudflare.types.firewall.waf.packages import rule_edit_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.firewall.waf.packages import ( + RuleGetResponse, + RuleEditResponse, + RuleListResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/firewall/waf/test_overrides.py b/tests/api_resources/firewall/waf/test_overrides.py index 78f4861c4..51ba29473 100644 --- a/tests/api_resources/firewall/waf/test_overrides.py +++ b/tests/api_resources/firewall/waf/test_overrides.py @@ -2,27 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.firewall.waf import Override, OverrideDeleteResponse - -from typing import Any, cast, Optional - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.firewall.waf import override_create_params -from cloudflare.types.firewall.waf import override_update_params -from cloudflare.types.firewall.waf import override_list_params -from cloudflare.types.firewall.waf import RewriteAction -from cloudflare.types.firewall.waf import WAFRule +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.firewall.waf import ( + Override, + OverrideDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/firewall/waf/test_packages.py b/tests/api_resources/firewall/waf/test_packages.py index 936564e88..8872d4b32 100644 --- a/tests/api_resources/firewall/waf/test_packages.py +++ b/tests/api_resources/firewall/waf/test_packages.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.firewall.waf import PackageListResponse, PackageGetResponse - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.firewall.waf import package_list_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.firewall.waf import PackageGetResponse, PackageListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/healthchecks/test_previews.py b/tests/api_resources/healthchecks/test_previews.py index 832c73483..a45b6fc82 100644 --- a/tests/api_resources/healthchecks/test_previews.py +++ b/tests/api_resources/healthchecks/test_previews.py @@ -2,23 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.healthchecks import Healthcheck, PreviewDeleteResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.healthchecks import preview_create_params -from cloudflare.types.healthchecks import HTTPConfiguration -from cloudflare.types.healthchecks import TCPConfiguration +from cloudflare.types.healthchecks import ( + Healthcheck, + PreviewDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/hostnames/settings/test_tls.py b/tests/api_resources/hostnames/settings/test_tls.py index 0766f164c..60abcaf40 100644 --- a/tests/api_resources/hostnames/settings/test_tls.py +++ b/tests/api_resources/hostnames/settings/test_tls.py @@ -2,22 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.hostnames.settings import Setting, TLSDeleteResponse, TLSGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.hostnames.settings import tls_update_params -from cloudflare.types.hostnames.settings import SettingValue +from cloudflare.types.hostnames.settings import ( + Setting, + TLSGetResponse, + TLSDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/hyperdrive/test_configs.py b/tests/api_resources/hyperdrive/test_configs.py index 04d167369..48d09cf76 100644 --- a/tests/api_resources/hyperdrive/test_configs.py +++ b/tests/api_resources/hyperdrive/test_configs.py @@ -2,28 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.hyperdrive import Hyperdrive, ConfigDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.hyperdrive import config_create_params -from cloudflare.types.hyperdrive import config_update_params -from cloudflare.types.hyperdrive import config_edit_params -from cloudflare.types.hyperdrive import Configuration -from cloudflare.types.hyperdrive import Configuration -from cloudflare.types.hyperdrive import Configuration +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.hyperdrive import ( + Hyperdrive, + ConfigDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/iam/test_permission_groups.py b/tests/api_resources/iam/test_permission_groups.py index cae346032..b1da71007 100644 --- a/tests/api_resources/iam/test_permission_groups.py +++ b/tests/api_resources/iam/test_permission_groups.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +import os from typing import Any, cast -from cloudflare.types.iam import PermissionGroupGetResponse - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.iam import permission_group_list_params +from cloudflare.types.iam import PermissionGroupGetResponse +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/iam/test_resource_groups.py b/tests/api_resources/iam/test_resource_groups.py index 9c626d4bb..bd287629b 100644 --- a/tests/api_resources/iam/test_resource_groups.py +++ b/tests/api_resources/iam/test_resource_groups.py @@ -2,30 +2,20 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.iam import ( - ResourceGroupCreateResponse, - ResourceGroupUpdateResponse, - ResourceGroupDeleteResponse, - ResourceGroupGetResponse, -) - -from typing import Any, cast, Optional - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.iam import resource_group_create_params -from cloudflare.types.iam import resource_group_update_params -from cloudflare.types.iam import resource_group_list_params +from cloudflare.types.iam import ( + ResourceGroupGetResponse, + ResourceGroupCreateResponse, + ResourceGroupDeleteResponse, + ResourceGroupUpdateResponse, +) +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/images/test_v1.py b/tests/api_resources/images/test_v1.py index 41c41e9de..1114273c5 100644 --- a/tests/api_resources/images/test_v1.py +++ b/tests/api_resources/images/test_v1.py @@ -2,25 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.images import Image, V1ListResponse, V1DeleteResponse - +import os from typing import Any, cast -from cloudflare.pagination import SyncV4PagePagination, AsyncV4PagePagination - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.images import v1_create_params -from cloudflare.types.images import v1_list_params -from cloudflare.types.images import v1_edit_params +from cloudflare.pagination import SyncV4PagePagination, AsyncV4PagePagination +from cloudflare.types.images import ( + Image, + V1ListResponse, + V1DeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/images/test_v2.py b/tests/api_resources/images/test_v2.py index 965c9e11a..d668ca234 100644 --- a/tests/api_resources/images/test_v2.py +++ b/tests/api_resources/images/test_v2.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.images import V2ListResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.images import v2_list_params +from cloudflare.types.images import V2ListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/images/v1/test_blobs.py b/tests/api_resources/images/v1/test_blobs.py index f9c4c6d96..2d3a89dbc 100644 --- a/tests/api_resources/images/v1/test_blobs.py +++ b/tests/api_resources/images/v1/test_blobs.py @@ -2,26 +2,21 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - +import os from typing import Any, cast +import httpx +import pytest +from respx import MockRouter + +from cloudflare import Cloudflare, AsyncCloudflare from cloudflare._response import ( BinaryAPIResponse, - StreamedBinaryAPIResponse, AsyncBinaryAPIResponse, + StreamedBinaryAPIResponse, AsyncStreamedBinaryAPIResponse, ) -import os -import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type - base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/images/v1/test_keys.py b/tests/api_resources/images/v1/test_keys.py index dc354f45b..ef6122e18 100644 --- a/tests/api_resources/images/v1/test_keys.py +++ b/tests/api_resources/images/v1/test_keys.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.images.v1 import KeyUpdateResponse, KeyListResponse, KeyDeleteResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.images.v1 import KeyListResponse, KeyDeleteResponse, KeyUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/images/v1/test_stats.py b/tests/api_resources/images/v1/test_stats.py index 21fb33eac..ba44e332b 100644 --- a/tests/api_resources/images/v1/test_stats.py +++ b/tests/api_resources/images/v1/test_stats.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.images.v1 import Stat - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.images.v1 import Stat base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/images/v1/test_variants.py b/tests/api_resources/images/v1/test_variants.py index d958ede0c..97701ebc9 100644 --- a/tests/api_resources/images/v1/test_variants.py +++ b/tests/api_resources/images/v1/test_variants.py @@ -2,28 +2,20 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.images.v1 import ( - VariantCreateResponse, - Variant, - VariantDeleteResponse, - VariantEditResponse, - VariantGetResponse, -) - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.images.v1 import variant_create_params -from cloudflare.types.images.v1 import variant_edit_params +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") diff --git a/tests/api_resources/images/v2/test_direct_uploads.py b/tests/api_resources/images/v2/test_direct_uploads.py index c06c711a3..88a629990 100644 --- a/tests/api_resources/images/v2/test_direct_uploads.py +++ b/tests/api_resources/images/v2/test_direct_uploads.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.images.v2 import DirectUploadCreateResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.images.v2 import direct_upload_create_params -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.images.v2 import DirectUploadCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/asn/test_subnets.py b/tests/api_resources/intel/asn/test_subnets.py index 405093976..116eb6f48 100644 --- a/tests/api_resources/intel/asn/test_subnets.py +++ b/tests/api_resources/intel/asn/test_subnets.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.intel.asn import SubnetGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types import shared +from cloudflare.types.intel.asn import SubnetGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/attack_surface_report/test_issue_types.py b/tests/api_resources/intel/attack_surface_report/test_issue_types.py index c2944c5c1..25b244d89 100644 --- a/tests/api_resources/intel/attack_surface_report/test_issue_types.py +++ b/tests/api_resources/intel/attack_surface_report/test_issue_types.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.intel.attack_surface_report import IssueTypeGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.intel.attack_surface_report import IssueTypeGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/attack_surface_report/test_issues.py b/tests/api_resources/intel/attack_surface_report/test_issues.py index d73d1b007..db438e3e0 100644 --- a/tests/api_resources/intel/attack_surface_report/test_issues.py +++ b/tests/api_resources/intel/attack_surface_report/test_issues.py @@ -2,34 +2,22 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare +import os +from typing import Any, Optional, cast +import pytest + +from cloudflare import Cloudflare, AsyncCloudflare +from tests.utils import assert_matches_type +from cloudflare.pagination import SyncV4PagePagination, AsyncV4PagePagination from cloudflare.types.intel.attack_surface_report import ( IssueListResponse, + IssueTypeResponse, IssueClassResponse, IssueDismissResponse, IssueSeverityResponse, - IssueTypeResponse, ) -from cloudflare.pagination import SyncV4PagePagination, AsyncV4PagePagination - -from typing import Any, cast, Optional - -import os -import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type -from cloudflare.types.intel.attack_surface_report import issue_list_params -from cloudflare.types.intel.attack_surface_report import issue_class_params -from cloudflare.types.intel.attack_surface_report import issue_dismiss_params -from cloudflare.types.intel.attack_surface_report import issue_severity_params -from cloudflare.types.intel.attack_surface_report import issue_type_params - base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/domains/test_bulks.py b/tests/api_resources/intel/domains/test_bulks.py index 1d5f68d48..0a1c1828b 100644 --- a/tests/api_resources/intel/domains/test_bulks.py +++ b/tests/api_resources/intel/domains/test_bulks.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.intel.domains import BulkGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.intel.domains import bulk_get_params +from cloudflare.types.intel.domains import BulkGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/indicator_feeds/test_downloads.py b/tests/api_resources/intel/indicator_feeds/test_downloads.py index 1ce70fab1..98d6659f9 100644 --- a/tests/api_resources/intel/indicator_feeds/test_downloads.py +++ b/tests/api_resources/intel/indicator_feeds/test_downloads.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.intel.indicator_feeds import DownloadGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.intel.indicator_feeds import DownloadGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/indicator_feeds/test_permissions.py b/tests/api_resources/intel/indicator_feeds/test_permissions.py index 6bfd7ee63..3b06e3c0d 100644 --- a/tests/api_resources/intel/indicator_feeds/test_permissions.py +++ b/tests/api_resources/intel/indicator_feeds/test_permissions.py @@ -2,26 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.intel.indicator_feeds import ( - PermissionCreateResponse, - PermissionListResponse, - PermissionDeleteResponse, -) - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.intel.indicator_feeds import permission_create_params -from cloudflare.types.intel.indicator_feeds import permission_delete_params +from cloudflare.types.intel.indicator_feeds import ( + PermissionListResponse, + PermissionCreateResponse, + PermissionDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/indicator_feeds/test_snapshots.py b/tests/api_resources/intel/indicator_feeds/test_snapshots.py index ac282bccc..5b7f91a52 100644 --- a/tests/api_resources/intel/indicator_feeds/test_snapshots.py +++ b/tests/api_resources/intel/indicator_feeds/test_snapshots.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.intel.indicator_feeds import SnapshotUpdateResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.intel.indicator_feeds import snapshot_update_params +from cloudflare.types.intel.indicator_feeds import SnapshotUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/test_asn.py b/tests/api_resources/intel/test_asn.py index c675f4a59..1b9016472 100644 --- a/tests/api_resources/intel/test_asn.py +++ b/tests/api_resources/intel/test_asn.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.shared import ASN - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types import shared +from cloudflare.types.shared import ASN base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/test_dns.py b/tests/api_resources/intel/test_dns.py index 01734d961..515012c78 100644 --- a/tests/api_resources/intel/test_dns.py +++ b/tests/api_resources/intel/test_dns.py @@ -2,27 +2,16 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.intel import DNSListResponse - -from cloudflare.pagination import SyncV4PagePagination, AsyncV4PagePagination - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.intel import dns_list_params -from cloudflare._utils import parse_date -from cloudflare._utils import parse_date -from cloudflare._utils import parse_date from cloudflare._utils import parse_date +from cloudflare.pagination import SyncV4PagePagination, AsyncV4PagePagination +from cloudflare.types.intel import DNSListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/test_domain_history.py b/tests/api_resources/intel/test_domain_history.py index 26fee8b0e..75926dc91 100644 --- a/tests/api_resources/intel/test_domain_history.py +++ b/tests/api_resources/intel/test_domain_history.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.intel import DomainHistoryGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.intel import domain_history_get_params +from cloudflare.types.intel import DomainHistoryGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/test_domains.py b/tests/api_resources/intel/test_domains.py index b09338f0d..9a897bf79 100644 --- a/tests/api_resources/intel/test_domains.py +++ b/tests/api_resources/intel/test_domains.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.intel import Domain - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.intel import domain_get_params +from cloudflare.types.intel import Domain base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/test_indicator_feeds.py b/tests/api_resources/intel/test_indicator_feeds.py index bfcaaa6df..6d8258dcf 100644 --- a/tests/api_resources/intel/test_indicator_feeds.py +++ b/tests/api_resources/intel/test_indicator_feeds.py @@ -2,30 +2,20 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.intel import ( - IndicatorFeedCreateResponse, - IndicatorFeedUpdateResponse, - IndicatorFeedListResponse, - IndicatorFeedDataResponse, - IndicatorFeedGetResponse, -) - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.intel import indicator_feed_create_params -from cloudflare.types.intel import indicator_feed_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.intel import ( + IndicatorFeedGetResponse, + IndicatorFeedListResponse, + IndicatorFeedCreateResponse, + IndicatorFeedUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/test_ip_lists.py b/tests/api_resources/intel/test_ip_lists.py index 00edefbff..afb47b13e 100644 --- a/tests/api_resources/intel/test_ip_lists.py +++ b/tests/api_resources/intel/test_ip_lists.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.intel import IPListGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.intel import IPListGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/test_ips.py b/tests/api_resources/intel/test_ips.py index 49143c0c2..4f39c9969 100644 --- a/tests/api_resources/intel/test_ips.py +++ b/tests/api_resources/intel/test_ips.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.intel import IPGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.intel import ip_get_params +from cloudflare.types.intel import IPGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/test_miscategorizations.py b/tests/api_resources/intel/test_miscategorizations.py index 9bffca557..5fa3ec587 100644 --- a/tests/api_resources/intel/test_miscategorizations.py +++ b/tests/api_resources/intel/test_miscategorizations.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.intel import MiscategorizationCreateResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.intel import miscategorization_create_params +from cloudflare.types.intel import MiscategorizationCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/test_sinkholes.py b/tests/api_resources/intel/test_sinkholes.py index 8b78a3496..5e9b3dda0 100644 --- a/tests/api_resources/intel/test_sinkholes.py +++ b/tests/api_resources/intel/test_sinkholes.py @@ -2,22 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.intel import Sinkhole - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.intel import Sinkhole base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/test_whois.py b/tests/api_resources/intel/test_whois.py index 34cb53a92..97c8efbf7 100644 --- a/tests/api_resources/intel/test_whois.py +++ b/tests/api_resources/intel/test_whois.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.intel import WhoisGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.intel import whois_get_params +from cloudflare.types.intel import WhoisGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/kv/namespaces/test_bulk.py b/tests/api_resources/kv/namespaces/test_bulk.py index 1793c643e..be32c24ea 100644 --- a/tests/api_resources/kv/namespaces/test_bulk.py +++ b/tests/api_resources/kv/namespaces/test_bulk.py @@ -2,19 +2,13 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - import os +from typing import Any, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.kv.namespaces import bulk_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/kv/namespaces/test_keys.py b/tests/api_resources/kv/namespaces/test_keys.py index 835491454..074a872cc 100644 --- a/tests/api_resources/kv/namespaces/test_keys.py +++ b/tests/api_resources/kv/namespaces/test_keys.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.kv.namespaces import Key - -from cloudflare.pagination import SyncCursorLimitPagination, AsyncCursorLimitPagination - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.kv.namespaces import key_list_params +from cloudflare.pagination import SyncCursorLimitPagination, AsyncCursorLimitPagination +from cloudflare.types.kv.namespaces import Key base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/kv/namespaces/test_metadata.py b/tests/api_resources/kv/namespaces/test_metadata.py index 4207bc352..e6e56f6f0 100644 --- a/tests/api_resources/kv/namespaces/test_metadata.py +++ b/tests/api_resources/kv/namespaces/test_metadata.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.kv.namespaces import MetadataGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.kv.namespaces import MetadataGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/kv/namespaces/test_values.py b/tests/api_resources/kv/namespaces/test_values.py index b643933cd..c9b8c2991 100644 --- a/tests/api_resources/kv/namespaces/test_values.py +++ b/tests/api_resources/kv/namespaces/test_values.py @@ -2,26 +2,21 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare._response import ( - BinaryAPIResponse, - StreamedBinaryAPIResponse, - AsyncBinaryAPIResponse, - AsyncStreamedBinaryAPIResponse, -) - import os -import pytest +from typing import Any, cast + import httpx -from typing_extensions import get_args -from typing import Optional +import pytest from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.kv.namespaces import value_update_params +from cloudflare._response import ( + BinaryAPIResponse, + AsyncBinaryAPIResponse, + StreamedBinaryAPIResponse, + AsyncStreamedBinaryAPIResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/kv/test_namespaces.py b/tests/api_resources/kv/test_namespaces.py index fcc355e29..ae45e68a4 100644 --- a/tests/api_resources/kv/test_namespaces.py +++ b/tests/api_resources/kv/test_namespaces.py @@ -2,25 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.kv import Namespace - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.kv import namespace_create_params -from cloudflare.types.kv import namespace_update_params -from cloudflare.types.kv import namespace_list_params +from cloudflare.types.kv import Namespace +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/load_balancers/monitors/test_previews.py b/tests/api_resources/load_balancers/monitors/test_previews.py index ed520fcc8..41ee30b54 100644 --- a/tests/api_resources/load_balancers/monitors/test_previews.py +++ b/tests/api_resources/load_balancers/monitors/test_previews.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.load_balancers.monitors import PreviewCreateResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.load_balancers.monitors import preview_create_params +from cloudflare.types.load_balancers.monitors import PreviewCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/load_balancers/monitors/test_references.py b/tests/api_resources/load_balancers/monitors/test_references.py index 929ae3b7e..573d10ec2 100644 --- a/tests/api_resources/load_balancers/monitors/test_references.py +++ b/tests/api_resources/load_balancers/monitors/test_references.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.load_balancers.monitors import ReferenceGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.load_balancers.monitors import ReferenceGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/load_balancers/pools/test_health.py b/tests/api_resources/load_balancers/pools/test_health.py index 7c499e847..8c8bcab99 100644 --- a/tests/api_resources/load_balancers/pools/test_health.py +++ b/tests/api_resources/load_balancers/pools/test_health.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.load_balancers.pools import HealthCreateResponse, HealthGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.load_balancers.pools import health_create_params +from cloudflare.types.load_balancers.pools import HealthGetResponse, HealthCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/load_balancers/pools/test_references.py b/tests/api_resources/load_balancers/pools/test_references.py index ebdf9f82b..a62251e00 100644 --- a/tests/api_resources/load_balancers/pools/test_references.py +++ b/tests/api_resources/load_balancers/pools/test_references.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.load_balancers.pools import ReferenceGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.load_balancers.pools import ReferenceGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/load_balancers/test_monitors.py b/tests/api_resources/load_balancers/test_monitors.py index 5ef4d65cb..be4ef2579 100644 --- a/tests/api_resources/load_balancers/test_monitors.py +++ b/tests/api_resources/load_balancers/test_monitors.py @@ -2,25 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.load_balancers import Monitor, MonitorDeleteResponse - +import os from typing import Any, cast -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.load_balancers import monitor_create_params -from cloudflare.types.load_balancers import monitor_update_params -from cloudflare.types.load_balancers import monitor_edit_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.load_balancers import ( + Monitor, + MonitorDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/load_balancers/test_pools.py b/tests/api_resources/load_balancers/test_pools.py index f53037eab..0830228b4 100644 --- a/tests/api_resources/load_balancers/test_pools.py +++ b/tests/api_resources/load_balancers/test_pools.py @@ -2,35 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.load_balancers import Pool, PoolDeleteResponse - +import os from typing import Any, cast -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.load_balancers import pool_create_params -from cloudflare.types.load_balancers import pool_update_params -from cloudflare.types.load_balancers import pool_list_params -from cloudflare.types.load_balancers import pool_edit_params -from cloudflare.types.load_balancers import LoadShedding -from cloudflare.types.load_balancers import NotificationFilter -from cloudflare.types.load_balancers import OriginSteering -from cloudflare.types.load_balancers import LoadShedding -from cloudflare.types.load_balancers import NotificationFilter -from cloudflare.types.load_balancers import OriginSteering -from cloudflare.types.load_balancers import LoadShedding -from cloudflare.types.load_balancers import NotificationFilter -from cloudflare.types.load_balancers import OriginSteering +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.load_balancers import ( + Pool, + PoolDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/load_balancers/test_previews.py b/tests/api_resources/load_balancers/test_previews.py index 6d9141e45..281f21e06 100644 --- a/tests/api_resources/load_balancers/test_previews.py +++ b/tests/api_resources/load_balancers/test_previews.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.load_balancers import PreviewGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.load_balancers import PreviewGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/load_balancers/test_regions.py b/tests/api_resources/load_balancers/test_regions.py index 9afb06b34..6e689dc25 100644 --- a/tests/api_resources/load_balancers/test_regions.py +++ b/tests/api_resources/load_balancers/test_regions.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.load_balancers import RegionListResponse, RegionGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.load_balancers import region_list_params +from cloudflare.types.load_balancers import RegionGetResponse, RegionListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/load_balancers/test_searches.py b/tests/api_resources/load_balancers/test_searches.py index fc715a0ca..7ba156e3a 100644 --- a/tests/api_resources/load_balancers/test_searches.py +++ b/tests/api_resources/load_balancers/test_searches.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.load_balancers import SearchGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.load_balancers import search_get_params +from cloudflare.types.load_balancers import SearchGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logpush/datasets/test_fields.py b/tests/api_resources/logpush/datasets/test_fields.py index 8bcd226fe..1ef68c668 100644 --- a/tests/api_resources/logpush/datasets/test_fields.py +++ b/tests/api_resources/logpush/datasets/test_fields.py @@ -2,16 +2,11 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - import os +from typing import Any, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type diff --git a/tests/api_resources/logpush/datasets/test_jobs.py b/tests/api_resources/logpush/datasets/test_jobs.py index 08566e737..98ffb1c6a 100644 --- a/tests/api_resources/logpush/datasets/test_jobs.py +++ b/tests/api_resources/logpush/datasets/test_jobs.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.logpush.datasets import JobGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.logpush.datasets import JobGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logpush/test_edge.py b/tests/api_resources/logpush/test_edge.py index 715075995..850a8a4cb 100644 --- a/tests/api_resources/logpush/test_edge.py +++ b/tests/api_resources/logpush/test_edge.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.logpush import InstantLogpushJob, EdgeGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.logpush import edge_create_params +from cloudflare.types.logpush import EdgeGetResponse, InstantLogpushJob base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logpush/test_jobs.py b/tests/api_resources/logpush/test_jobs.py index fb203b531..a35edd8c1 100644 --- a/tests/api_resources/logpush/test_jobs.py +++ b/tests/api_resources/logpush/test_jobs.py @@ -2,26 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.logpush import LogpushJob, JobDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.logpush import job_create_params -from cloudflare.types.logpush import job_update_params -from cloudflare.types.logpush import OutputOptions -from cloudflare.types.logpush import OutputOptions +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.logpush import LogpushJob, JobDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logpush/test_ownership.py b/tests/api_resources/logpush/test_ownership.py index 7e3ddf169..c2d929762 100644 --- a/tests/api_resources/logpush/test_ownership.py +++ b/tests/api_resources/logpush/test_ownership.py @@ -2,22 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.logpush import OwnershipCreateResponse, OwnershipValidation - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.logpush import ownership_create_params -from cloudflare.types.logpush import ownership_validate_params +from cloudflare.types.logpush import ( + OwnershipValidation, + OwnershipCreateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logpush/test_validate.py b/tests/api_resources/logpush/test_validate.py index d96d12dfe..fd2a12df6 100644 --- a/tests/api_resources/logpush/test_validate.py +++ b/tests/api_resources/logpush/test_validate.py @@ -2,22 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.logpush import ValidateDestinationResponse, ValidateOriginResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.logpush import validate_destination_params -from cloudflare.types.logpush import validate_origin_params +from cloudflare.types.logpush import ( + ValidateOriginResponse, + ValidateDestinationResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logs/control/cmb/test_config.py b/tests/api_resources/logs/control/cmb/test_config.py index c389c2bc4..b7240366d 100644 --- a/tests/api_resources/logs/control/cmb/test_config.py +++ b/tests/api_resources/logs/control/cmb/test_config.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.logs.control.cmb import CmbConfig - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.logs.control.cmb import config_create_params +from cloudflare.types.logs.control.cmb import CmbConfig base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logs/control/test_retention.py b/tests/api_resources/logs/control/test_retention.py index d31b90548..1f321941b 100644 --- a/tests/api_resources/logs/control/test_retention.py +++ b/tests/api_resources/logs/control/test_retention.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.logs.control import RetentionCreateResponse, RetentionGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.logs.control import retention_create_params +from cloudflare.types.logs.control import RetentionGetResponse, RetentionCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logs/received/test_fields.py b/tests/api_resources/logs/received/test_fields.py index d9fb2981d..8705e75e0 100644 --- a/tests/api_resources/logs/received/test_fields.py +++ b/tests/api_resources/logs/received/test_fields.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.logs.received import FieldGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.logs.received import FieldGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logs/test_rayid.py b/tests/api_resources/logs/test_rayid.py index d025299f5..14f89db89 100644 --- a/tests/api_resources/logs/test_rayid.py +++ b/tests/api_resources/logs/test_rayid.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.logs import RayIDGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.logs import rayid_get_params +from cloudflare.types.logs import RayIDGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logs/test_received.py b/tests/api_resources/logs/test_received.py index 28e2fbdbc..14ccc4856 100644 --- a/tests/api_resources/logs/test_received.py +++ b/tests/api_resources/logs/test_received.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.logs import ReceivedGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.logs import received_get_params +from cloudflare.types.logs import ReceivedGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_network_monitoring/configs/test_full.py b/tests/api_resources/magic_network_monitoring/configs/test_full.py index 6ac445713..fa2d1efd5 100644 --- a/tests/api_resources/magic_network_monitoring/configs/test_full.py +++ b/tests/api_resources/magic_network_monitoring/configs/test_full.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.magic_network_monitoring import Configuration - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.magic_network_monitoring import Configuration base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_network_monitoring/rules/test_advertisements.py b/tests/api_resources/magic_network_monitoring/rules/test_advertisements.py index 235ec2fd4..46761c021 100644 --- a/tests/api_resources/magic_network_monitoring/rules/test_advertisements.py +++ b/tests/api_resources/magic_network_monitoring/rules/test_advertisements.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.magic_network_monitoring.rules import Advertisement - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.magic_network_monitoring.rules import advertisement_edit_params +from cloudflare.types.magic_network_monitoring.rules import Advertisement base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_network_monitoring/test_configs.py b/tests/api_resources/magic_network_monitoring/test_configs.py index a152323d2..8a60e5320 100644 --- a/tests/api_resources/magic_network_monitoring/test_configs.py +++ b/tests/api_resources/magic_network_monitoring/test_configs.py @@ -2,23 +2,16 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.magic_network_monitoring import Configuration - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.magic_network_monitoring import config_create_params -from cloudflare.types.magic_network_monitoring import config_update_params -from cloudflare.types.magic_network_monitoring import config_edit_params +from cloudflare.types.magic_network_monitoring import ( + Configuration, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_network_monitoring/test_rules.py b/tests/api_resources/magic_network_monitoring/test_rules.py index 1099b6f02..d2b2bce97 100644 --- a/tests/api_resources/magic_network_monitoring/test_rules.py +++ b/tests/api_resources/magic_network_monitoring/test_rules.py @@ -2,25 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.magic_network_monitoring import MagicNetworkMonitoringRule - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.magic_network_monitoring import rule_create_params -from cloudflare.types.magic_network_monitoring import rule_update_params -from cloudflare.types.magic_network_monitoring import rule_edit_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.magic_network_monitoring import ( + MagicNetworkMonitoringRule, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_transit/sites/test_acls.py b/tests/api_resources/magic_transit/sites/test_acls.py index 2a95a66b9..bf74fe776 100644 --- a/tests/api_resources/magic_transit/sites/test_acls.py +++ b/tests/api_resources/magic_transit/sites/test_acls.py @@ -2,31 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.magic_transit.sites import ACL - +import os from typing import Any, cast -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.magic_transit.sites import acl_create_params -from cloudflare.types.magic_transit.sites import acl_update_params -from cloudflare.types.magic_transit.sites import acl_edit_params -from cloudflare.types.magic_transit.sites import ACLConfiguration -from cloudflare.types.magic_transit.sites import ACLConfiguration -from cloudflare.types.magic_transit.sites import ACLConfiguration -from cloudflare.types.magic_transit.sites import ACLConfiguration -from cloudflare.types.magic_transit.sites import ACLConfiguration -from cloudflare.types.magic_transit.sites import ACLConfiguration +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.magic_transit.sites import ( + ACL, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_transit/sites/test_lans.py b/tests/api_resources/magic_transit/sites/test_lans.py index 38d0e1795..aba27fb73 100644 --- a/tests/api_resources/magic_transit/sites/test_lans.py +++ b/tests/api_resources/magic_transit/sites/test_lans.py @@ -2,31 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.magic_transit.sites import LANCreateResponse, LAN - +import os from typing import Any, cast -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.magic_transit.sites import lan_create_params -from cloudflare.types.magic_transit.sites import lan_update_params -from cloudflare.types.magic_transit.sites import lan_edit_params -from cloudflare.types.magic_transit.sites import Nat -from cloudflare.types.magic_transit.sites import LANStaticAddressing -from cloudflare.types.magic_transit.sites import Nat -from cloudflare.types.magic_transit.sites import LANStaticAddressing -from cloudflare.types.magic_transit.sites import Nat -from cloudflare.types.magic_transit.sites import LANStaticAddressing +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.magic_transit.sites import ( + LAN, + LANCreateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_transit/sites/test_wans.py b/tests/api_resources/magic_transit/sites/test_wans.py index 98915373f..c3ba81f36 100644 --- a/tests/api_resources/magic_transit/sites/test_wans.py +++ b/tests/api_resources/magic_transit/sites/test_wans.py @@ -2,28 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.magic_transit.sites import WANCreateResponse, WAN - +import os from typing import Any, cast -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.magic_transit.sites import wan_create_params -from cloudflare.types.magic_transit.sites import wan_update_params -from cloudflare.types.magic_transit.sites import wan_edit_params -from cloudflare.types.magic_transit.sites import WANStaticAddressing -from cloudflare.types.magic_transit.sites import WANStaticAddressing -from cloudflare.types.magic_transit.sites import WANStaticAddressing +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.magic_transit.sites import ( + WAN, + WANCreateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_transit/test_apps.py b/tests/api_resources/magic_transit/test_apps.py index ed7e0967c..7a2bea638 100644 --- a/tests/api_resources/magic_transit/test_apps.py +++ b/tests/api_resources/magic_transit/test_apps.py @@ -2,24 +2,20 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.magic_transit import AppCreateResponse, AppUpdateResponse, AppListResponse, AppDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.magic_transit import app_create_params -from cloudflare.types.magic_transit import app_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.magic_transit import ( + AppListResponse, + AppCreateResponse, + AppDeleteResponse, + AppUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_transit/test_cf_interconnects.py b/tests/api_resources/magic_transit/test_cf_interconnects.py index 21cd5860a..52fd6039e 100644 --- a/tests/api_resources/magic_transit/test_cf_interconnects.py +++ b/tests/api_resources/magic_transit/test_cf_interconnects.py @@ -2,25 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.magic_transit import ( - CfInterconnectUpdateResponse, - CfInterconnectListResponse, - CfInterconnectGetResponse, -) - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.magic_transit import cf_interconnect_update_params +from cloudflare.types.magic_transit import ( + CfInterconnectGetResponse, + CfInterconnectListResponse, + CfInterconnectUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_transit/test_connectors.py b/tests/api_resources/magic_transit/test_connectors.py index 3fa0f2034..75506734f 100644 --- a/tests/api_resources/magic_transit/test_connectors.py +++ b/tests/api_resources/magic_transit/test_connectors.py @@ -2,29 +2,20 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.magic_transit import ( - ConnectorUpdateResponse, - ConnectorListResponse, - ConnectorEditResponse, - ConnectorGetResponse, -) - +import os from typing import Any, cast -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.magic_transit import connector_update_params -from cloudflare.types.magic_transit import connector_edit_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.magic_transit import ( + ConnectorGetResponse, + ConnectorEditResponse, + ConnectorListResponse, + ConnectorUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_transit/test_gre_tunnels.py b/tests/api_resources/magic_transit/test_gre_tunnels.py index b0b94b5b6..e30242e35 100644 --- a/tests/api_resources/magic_transit/test_gre_tunnels.py +++ b/tests/api_resources/magic_transit/test_gre_tunnels.py @@ -2,29 +2,20 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.magic_transit import ( - GRETunnelCreateResponse, - GRETunnelUpdateResponse, - GRETunnelListResponse, - GRETunnelDeleteResponse, - GRETunnelGetResponse, -) - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.magic_transit import gre_tunnel_create_params -from cloudflare.types.magic_transit import gre_tunnel_update_params -from cloudflare.types.magic_transit import HealthCheck +from cloudflare.types.magic_transit import ( + GRETunnelGetResponse, + GRETunnelListResponse, + GRETunnelCreateResponse, + GRETunnelDeleteResponse, + GRETunnelUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_transit/test_ipsec_tunnels.py b/tests/api_resources/magic_transit/test_ipsec_tunnels.py index 528cd6924..76a0e6125 100644 --- a/tests/api_resources/magic_transit/test_ipsec_tunnels.py +++ b/tests/api_resources/magic_transit/test_ipsec_tunnels.py @@ -2,32 +2,21 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.magic_transit import ( - IPSECTunnelCreateResponse, - IPSECTunnelUpdateResponse, - IPSECTunnelListResponse, - IPSECTunnelDeleteResponse, - IPSECTunnelGetResponse, - IPSECTunnelPSKGenerateResponse, -) - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.magic_transit import ipsec_tunnel_create_params -from cloudflare.types.magic_transit import ipsec_tunnel_update_params -from cloudflare.types.magic_transit import ipsec_tunnel_psk_generate_params -from cloudflare.types.magic_transit import HealthCheck -from cloudflare.types.magic_transit import HealthCheck +from cloudflare.types.magic_transit import ( + IPSECTunnelGetResponse, + IPSECTunnelListResponse, + IPSECTunnelCreateResponse, + IPSECTunnelDeleteResponse, + IPSECTunnelUpdateResponse, + IPSECTunnelPSKGenerateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_transit/test_routes.py b/tests/api_resources/magic_transit/test_routes.py index 8eb5d3fc2..109d3b9f0 100644 --- a/tests/api_resources/magic_transit/test_routes.py +++ b/tests/api_resources/magic_transit/test_routes.py @@ -2,30 +2,21 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.magic_transit import ( - RouteCreateResponse, - RouteUpdateResponse, - RouteListResponse, - RouteDeleteResponse, - RouteEmptyResponse, - RouteGetResponse, -) - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.magic_transit import route_create_params -from cloudflare.types.magic_transit import route_update_params -from cloudflare.types.magic_transit import Scope +from cloudflare.types.magic_transit import ( + RouteGetResponse, + RouteListResponse, + RouteEmptyResponse, + RouteCreateResponse, + RouteDeleteResponse, + RouteUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_transit/test_sites.py b/tests/api_resources/magic_transit/test_sites.py index acab01f64..e4556c64f 100644 --- a/tests/api_resources/magic_transit/test_sites.py +++ b/tests/api_resources/magic_transit/test_sites.py @@ -2,29 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.magic_transit import Site - +import os from typing import Any, cast -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.magic_transit import site_create_params -from cloudflare.types.magic_transit import site_update_params -from cloudflare.types.magic_transit import site_list_params -from cloudflare.types.magic_transit import site_edit_params -from cloudflare.types.magic_transit import SiteLocation -from cloudflare.types.magic_transit import SiteLocation -from cloudflare.types.magic_transit import SiteLocation +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.magic_transit import ( + Site, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/mtls_certificates/test_associations.py b/tests/api_resources/mtls_certificates/test_associations.py index 1d1c89405..8c28a978c 100644 --- a/tests/api_resources/mtls_certificates/test_associations.py +++ b/tests/api_resources/mtls_certificates/test_associations.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.mtls_certificates import AssociationGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.mtls_certificates import AssociationGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/origin_tls_client_auth/hostnames/test_certificates.py b/tests/api_resources/origin_tls_client_auth/hostnames/test_certificates.py index 7ba7acd6e..ccaf45b9b 100644 --- a/tests/api_resources/origin_tls_client_auth/hostnames/test_certificates.py +++ b/tests/api_resources/origin_tls_client_auth/hostnames/test_certificates.py @@ -2,29 +2,20 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.origin_tls_client_auth.hostnames import ( - CertificateCreateResponse, - CertificateDeleteResponse, - CertificateGetResponse, -) - -from cloudflare.types.origin_tls_client_auth import AuthenticatedOriginPull - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.origin_tls_client_auth.hostnames import certificate_create_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.origin_tls_client_auth import AuthenticatedOriginPull +from cloudflare.types.origin_tls_client_auth.hostnames import ( + CertificateGetResponse, + CertificateCreateResponse, + CertificateDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/origin_tls_client_auth/test_hostnames.py b/tests/api_resources/origin_tls_client_auth/test_hostnames.py index 9616f44af..1e361bb8e 100644 --- a/tests/api_resources/origin_tls_client_auth/test_hostnames.py +++ b/tests/api_resources/origin_tls_client_auth/test_hostnames.py @@ -2,21 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.origin_tls_client_auth import HostnameUpdateResponse, AuthenticatedOriginPull - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.origin_tls_client_auth import hostname_update_params +from cloudflare.types.origin_tls_client_auth import ( + HostnameUpdateResponse, + AuthenticatedOriginPull, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/origin_tls_client_auth/test_settings.py b/tests/api_resources/origin_tls_client_auth/test_settings.py index 94ffab661..fc30faf30 100644 --- a/tests/api_resources/origin_tls_client_auth/test_settings.py +++ b/tests/api_resources/origin_tls_client_auth/test_settings.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.origin_tls_client_auth import SettingUpdateResponse, SettingGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.origin_tls_client_auth import setting_update_params +from cloudflare.types.origin_tls_client_auth import SettingGetResponse, SettingUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/page_shield/test_connections.py b/tests/api_resources/page_shield/test_connections.py index f50d4cecd..1af65b2ef 100644 --- a/tests/api_resources/page_shield/test_connections.py +++ b/tests/api_resources/page_shield/test_connections.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.page_shield import Connection - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -from typing import Any, cast, Optional - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.page_shield import connection_list_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.page_shield import Connection base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/page_shield/test_cookies.py b/tests/api_resources/page_shield/test_cookies.py index bb04116a9..472415809 100644 --- a/tests/api_resources/page_shield/test_cookies.py +++ b/tests/api_resources/page_shield/test_cookies.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.page_shield import CookieListResponse, CookieGetResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -from typing import Any, cast, Optional - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.page_shield import cookie_list_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.page_shield import CookieGetResponse, CookieListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/page_shield/test_policies.py b/tests/api_resources/page_shield/test_policies.py index b35cdf3e3..375863ad9 100644 --- a/tests/api_resources/page_shield/test_policies.py +++ b/tests/api_resources/page_shield/test_policies.py @@ -2,29 +2,20 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.page_shield import ( - PolicyCreateResponse, - PolicyUpdateResponse, - PolicyListResponse, - PolicyGetResponse, -) - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.page_shield import policy_create_params -from cloudflare.types.page_shield import policy_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.page_shield import ( + PolicyGetResponse, + PolicyListResponse, + PolicyCreateResponse, + PolicyUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/page_shield/test_scripts.py b/tests/api_resources/page_shield/test_scripts.py index ce96e8103..f8a9077bc 100644 --- a/tests/api_resources/page_shield/test_scripts.py +++ b/tests/api_resources/page_shield/test_scripts.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.page_shield import Script, ScriptGetResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -from typing import Any, cast, Optional - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.page_shield import script_list_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.page_shield import Script, ScriptGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/pagerules/test_settings.py b/tests/api_resources/pagerules/test_settings.py index f03deb2cf..7339a7f0e 100644 --- a/tests/api_resources/pagerules/test_settings.py +++ b/tests/api_resources/pagerules/test_settings.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.pagerules import SettingListResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.pagerules import SettingListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/pages/projects/deployments/history/test_logs.py b/tests/api_resources/pages/projects/deployments/history/test_logs.py index 5145cdd61..db7215a14 100644 --- a/tests/api_resources/pages/projects/deployments/history/test_logs.py +++ b/tests/api_resources/pages/projects/deployments/history/test_logs.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.pages.projects.deployments.history import LogGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.pages.projects.deployments.history import LogGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/pages/projects/test_deployments.py b/tests/api_resources/pages/projects/test_deployments.py index edcc99ec5..dbb5a2916 100644 --- a/tests/api_resources/pages/projects/test_deployments.py +++ b/tests/api_resources/pages/projects/test_deployments.py @@ -2,26 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.pages import Deployment - +import os from typing import Any, cast -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.pages.projects import deployment_create_params -from cloudflare.types.pages.projects import deployment_list_params -from cloudflare.types.pages.projects import deployment_retry_params -from cloudflare.types.pages.projects import deployment_rollback_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.pages import Deployment base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/pages/projects/test_domains.py b/tests/api_resources/pages/projects/test_domains.py index 5b616e33e..24f58204f 100644 --- a/tests/api_resources/pages/projects/test_domains.py +++ b/tests/api_resources/pages/projects/test_domains.py @@ -2,29 +2,20 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.pages.projects import ( - DomainCreateResponse, - DomainListResponse, - DomainEditResponse, - DomainGetResponse, -) - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.pages.projects import domain_create_params -from cloudflare.types.pages.projects import domain_edit_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.pages.projects import ( + DomainGetResponse, + DomainEditResponse, + DomainListResponse, + DomainCreateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/pages/test_projects.py b/tests/api_resources/pages/test_projects.py index 1d9ecf9d9..5c04753dd 100644 --- a/tests/api_resources/pages/test_projects.py +++ b/tests/api_resources/pages/test_projects.py @@ -2,24 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.pages import Project, Deployment - +import os from typing import Any, cast -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.pages import project_create_params -from cloudflare.types.pages import project_edit_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.pages import Project, Deployment base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/pcaps/test_download.py b/tests/api_resources/pcaps/test_download.py index 13280fc45..95dae97f2 100644 --- a/tests/api_resources/pcaps/test_download.py +++ b/tests/api_resources/pcaps/test_download.py @@ -2,26 +2,21 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - +import os from typing import Any, cast +import httpx +import pytest +from respx import MockRouter + +from cloudflare import Cloudflare, AsyncCloudflare from cloudflare._response import ( BinaryAPIResponse, - StreamedBinaryAPIResponse, AsyncBinaryAPIResponse, + StreamedBinaryAPIResponse, AsyncStreamedBinaryAPIResponse, ) -import os -import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type - base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/pcaps/test_ownership.py b/tests/api_resources/pcaps/test_ownership.py index db8a3686e..e6854449f 100644 --- a/tests/api_resources/pcaps/test_ownership.py +++ b/tests/api_resources/pcaps/test_ownership.py @@ -2,22 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.pcaps import Ownership, OwnershipGetResponse - -from typing import Any, cast, Optional - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.pcaps import ownership_create_params -from cloudflare.types.pcaps import ownership_validate_params +from cloudflare.types.pcaps import Ownership, OwnershipGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/queues/test_consumers.py b/tests/api_resources/queues/test_consumers.py index 990e059b9..4cca547cf 100644 --- a/tests/api_resources/queues/test_consumers.py +++ b/tests/api_resources/queues/test_consumers.py @@ -2,27 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.queues import ( - ConsumerCreateResponse, - ConsumerUpdateResponse, - ConsumerDeleteResponse, - ConsumerGetResponse, -) - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.queues import consumer_create_params -from cloudflare.types.queues import consumer_update_params +from cloudflare.types.queues import ( + ConsumerGetResponse, + ConsumerCreateResponse, + ConsumerDeleteResponse, + ConsumerUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/queues/test_messages.py b/tests/api_resources/queues/test_messages.py index 339dc65e3..3faf95af2 100644 --- a/tests/api_resources/queues/test_messages.py +++ b/tests/api_resources/queues/test_messages.py @@ -2,22 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.queues import MessageAckResponse, MessagePullResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.queues import message_ack_params -from cloudflare.types.queues import message_pull_params +from cloudflare.types.queues import MessageAckResponse, MessagePullResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/r2/domains/test_custom.py b/tests/api_resources/r2/domains/test_custom.py index 9d7e6ee0c..0b350b435 100755 --- a/tests/api_resources/r2/domains/test_custom.py +++ b/tests/api_resources/r2/domains/test_custom.py @@ -2,27 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.r2.domains import ( - CustomCreateResponse, - CustomUpdateResponse, - CustomListResponse, - CustomDeleteResponse, -) - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.r2.domains import custom_create_params -from cloudflare.types.r2.domains import custom_update_params +from cloudflare.types.r2.domains import ( + CustomListResponse, + CustomCreateResponse, + CustomDeleteResponse, + CustomUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/r2/domains/test_managed.py b/tests/api_resources/r2/domains/test_managed.py index 81261bad2..f3f548b41 100755 --- a/tests/api_resources/r2/domains/test_managed.py +++ b/tests/api_resources/r2/domains/test_managed.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.r2.domains import ManagedUpdateResponse, ManagedListResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.r2.domains import managed_update_params +from cloudflare.types.r2.domains import ManagedListResponse, ManagedUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/r2/test_buckets.py b/tests/api_resources/r2/test_buckets.py index df37bcda9..5ab17ba7e 100644 --- a/tests/api_resources/r2/test_buckets.py +++ b/tests/api_resources/r2/test_buckets.py @@ -2,22 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.r2 import Bucket, BucketListResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.r2 import bucket_create_params -from cloudflare.types.r2 import bucket_list_params +from cloudflare.types.r2 import Bucket, BucketListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/r2/test_sippy.py b/tests/api_resources/r2/test_sippy.py index 5484de82f..fa63c6f67 100644 --- a/tests/api_resources/r2/test_sippy.py +++ b/tests/api_resources/r2/test_sippy.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.r2 import Sippy, SippyDeleteResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.r2 import sippy_update_params +from cloudflare.types.r2 import Sippy, SippyDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/r2/test_temporary_credentials.py b/tests/api_resources/r2/test_temporary_credentials.py index 5f2d6cbad..927a6966d 100644 --- a/tests/api_resources/r2/test_temporary_credentials.py +++ b/tests/api_resources/r2/test_temporary_credentials.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.r2 import TemporaryCredentialCreateResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.r2 import temporary_credential_create_params +from cloudflare.types.r2 import TemporaryCredentialCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/ai/gateway/test_summary.py b/tests/api_resources/radar/ai/gateway/test_summary.py index 8bf0c2e56..7a99a5a41 100755 --- a/tests/api_resources/radar/ai/gateway/test_summary.py +++ b/tests/api_resources/radar/ai/gateway/test_summary.py @@ -2,59 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.ai.gateway import SummaryModelResponse, SummaryProviderResponse, SummaryTaskResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.ai.gateway import summary_model_params -from cloudflare.types.radar.ai.gateway import summary_provider_params -from cloudflare.types.radar.ai.gateway import summary_task_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.ai.gateway import ( + SummaryTaskResponse, + SummaryModelResponse, + SummaryProviderResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/ai/gateway/test_timeseries_groups.py b/tests/api_resources/radar/ai/gateway/test_timeseries_groups.py index 8237323c1..a2dad96af 100755 --- a/tests/api_resources/radar/ai/gateway/test_timeseries_groups.py +++ b/tests/api_resources/radar/ai/gateway/test_timeseries_groups.py @@ -2,63 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.ai.gateway import ( - TimeseriesGroupModelResponse, - TimeseriesGroupProviderResponse, - TimeseriesGroupTaskResponse, -) - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.ai.gateway import timeseries_group_model_params -from cloudflare.types.radar.ai.gateway import timeseries_group_provider_params -from cloudflare.types.radar.ai.gateway import timeseries_group_task_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.ai.gateway import ( + TimeseriesGroupTaskResponse, + TimeseriesGroupModelResponse, + TimeseriesGroupProviderResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/annotations/test_outages.py b/tests/api_resources/radar/annotations/test_outages.py index 5b4e6412f..f249d7e3c 100644 --- a/tests/api_resources/radar/annotations/test_outages.py +++ b/tests/api_resources/radar/annotations/test_outages.py @@ -2,30 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.annotations import OutageGetResponse, OutageLocationsResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.annotations import outage_get_params -from cloudflare.types.radar.annotations import outage_locations_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.annotations import ( + OutageGetResponse, + OutageLocationsResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/as112/test_summary.py b/tests/api_resources/radar/as112/test_summary.py index 1ac16a876..3778d9fba 100644 --- a/tests/api_resources/radar/as112/test_summary.py +++ b/tests/api_resources/radar/as112/test_summary.py @@ -2,106 +2,23 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare +import os +from typing import Any, cast +import pytest + +from cloudflare import Cloudflare, AsyncCloudflare +from tests.utils import assert_matches_type +from cloudflare._utils import parse_datetime from cloudflare.types.radar.as112 import ( - SummaryDNSSECResponse, SummaryEdnsResponse, - SummaryIPVersionResponse, + SummaryDNSSECResponse, SummaryProtocolResponse, + SummaryIPVersionResponse, SummaryQueryTypeResponse, SummaryResponseCodesResponse, ) -from typing import Any, cast - -import os -import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type -from cloudflare.types.radar.as112 import summary_dnssec_params -from cloudflare.types.radar.as112 import summary_edns_params -from cloudflare.types.radar.as112 import summary_ip_version_params -from cloudflare.types.radar.as112 import summary_protocol_params -from cloudflare.types.radar.as112 import summary_query_type_params -from cloudflare.types.radar.as112 import summary_response_codes_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime - base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/as112/test_timeseries_groups.py b/tests/api_resources/radar/as112/test_timeseries_groups.py index ae7cade00..c27cd4175 100644 --- a/tests/api_resources/radar/as112/test_timeseries_groups.py +++ b/tests/api_resources/radar/as112/test_timeseries_groups.py @@ -2,106 +2,23 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare +import os +from typing import Any, cast +import pytest + +from cloudflare import Cloudflare, AsyncCloudflare +from tests.utils import assert_matches_type +from cloudflare._utils import parse_datetime from cloudflare.types.radar.as112 import ( - TimeseriesGroupDNSSECResponse, TimeseriesGroupEdnsResponse, - TimeseriesGroupIPVersionResponse, + TimeseriesGroupDNSSECResponse, TimeseriesGroupProtocolResponse, + TimeseriesGroupIPVersionResponse, TimeseriesGroupQueryTypeResponse, TimeseriesGroupResponseCodesResponse, ) -from typing import Any, cast - -import os -import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type -from cloudflare.types.radar.as112 import timeseries_group_dnssec_params -from cloudflare.types.radar.as112 import timeseries_group_edns_params -from cloudflare.types.radar.as112 import timeseries_group_ip_version_params -from cloudflare.types.radar.as112 import timeseries_group_protocol_params -from cloudflare.types.radar.as112 import timeseries_group_query_type_params -from cloudflare.types.radar.as112 import timeseries_group_response_codes_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime - base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/as112/test_top.py b/tests/api_resources/radar/as112/test_top.py index 76d5d380e..a97851a79 100644 --- a/tests/api_resources/radar/as112/test_top.py +++ b/tests/api_resources/radar/as112/test_top.py @@ -2,72 +2,20 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.as112 import TopDNSSECResponse, TopEdnsResponse, TopIPVersionResponse, TopLocationsResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.as112 import top_dnssec_params -from cloudflare.types.radar.as112 import top_edns_params -from cloudflare.types.radar.as112 import top_ip_version_params -from cloudflare.types.radar.as112 import top_locations_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.as112 import ( + TopEdnsResponse, + TopDNSSECResponse, + TopIPVersionResponse, + TopLocationsResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/layer3/test_summary.py b/tests/api_resources/radar/attacks/layer3/test_summary.py index a13ae507b..0e77b0b96 100644 --- a/tests/api_resources/radar/attacks/layer3/test_summary.py +++ b/tests/api_resources/radar/attacks/layer3/test_summary.py @@ -2,105 +2,22 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.attacks.layer3 import ( - SummaryBitrateResponse, - SummaryDurationResponse, - SummaryGetResponse, - SummaryIPVersionResponse, - SummaryProtocolResponse, - SummaryVectorResponse, -) - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.attacks.layer3 import summary_bitrate_params -from cloudflare.types.radar.attacks.layer3 import summary_duration_params -from cloudflare.types.radar.attacks.layer3 import summary_get_params -from cloudflare.types.radar.attacks.layer3 import summary_ip_version_params -from cloudflare.types.radar.attacks.layer3 import summary_protocol_params -from cloudflare.types.radar.attacks.layer3 import summary_vector_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.attacks.layer3 import ( + SummaryGetResponse, + SummaryVectorResponse, + SummaryBitrateResponse, + SummaryDurationResponse, + SummaryProtocolResponse, + SummaryIPVersionResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/layer3/test_timeseries_groups.py b/tests/api_resources/radar/attacks/layer3/test_timeseries_groups.py index cf0f0f670..7fa470e32 100644 --- a/tests/api_resources/radar/attacks/layer3/test_timeseries_groups.py +++ b/tests/api_resources/radar/attacks/layer3/test_timeseries_groups.py @@ -2,133 +2,24 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.attacks.layer3 import ( - TimeseriesGroupBitrateResponse, - TimeseriesGroupDurationResponse, - TimeseriesGroupGetResponse, - TimeseriesGroupIndustryResponse, - TimeseriesGroupIPVersionResponse, - TimeseriesGroupProtocolResponse, - TimeseriesGroupVectorResponse, - TimeseriesGroupVerticalResponse, -) - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.attacks.layer3 import timeseries_group_bitrate_params -from cloudflare.types.radar.attacks.layer3 import timeseries_group_duration_params -from cloudflare.types.radar.attacks.layer3 import timeseries_group_get_params -from cloudflare.types.radar.attacks.layer3 import timeseries_group_industry_params -from cloudflare.types.radar.attacks.layer3 import timeseries_group_ip_version_params -from cloudflare.types.radar.attacks.layer3 import timeseries_group_protocol_params -from cloudflare.types.radar.attacks.layer3 import timeseries_group_vector_params -from cloudflare.types.radar.attacks.layer3 import timeseries_group_vertical_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.attacks.layer3 import ( + TimeseriesGroupGetResponse, + TimeseriesGroupVectorResponse, + TimeseriesGroupBitrateResponse, + TimeseriesGroupDurationResponse, + TimeseriesGroupIndustryResponse, + TimeseriesGroupProtocolResponse, + TimeseriesGroupVerticalResponse, + TimeseriesGroupIPVersionResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/layer3/test_top.py b/tests/api_resources/radar/attacks/layer3/test_top.py index 36d2f0f05..696f58eaf 100644 --- a/tests/api_resources/radar/attacks/layer3/test_top.py +++ b/tests/api_resources/radar/attacks/layer3/test_top.py @@ -2,59 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.attacks.layer3 import TopAttacksResponse, TopIndustryResponse, TopVerticalResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.attacks.layer3 import top_attacks_params -from cloudflare.types.radar.attacks.layer3 import top_industry_params -from cloudflare.types.radar.attacks.layer3 import top_vertical_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.attacks.layer3 import ( + TopAttacksResponse, + TopIndustryResponse, + TopVerticalResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/layer3/top/test_locations.py b/tests/api_resources/radar/attacks/layer3/top/test_locations.py index ab88b75ea..a0e56083e 100644 --- a/tests/api_resources/radar/attacks/layer3/top/test_locations.py +++ b/tests/api_resources/radar/attacks/layer3/top/test_locations.py @@ -2,46 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.attacks.layer3.top import LocationOriginResponse, LocationTargetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.attacks.layer3.top import location_origin_params -from cloudflare.types.radar.attacks.layer3.top import location_target_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.attacks.layer3.top import ( + LocationOriginResponse, + LocationTargetResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/layer7/test_summary.py b/tests/api_resources/radar/attacks/layer7/test_summary.py index 040ddffca..b94343f2f 100644 --- a/tests/api_resources/radar/attacks/layer7/test_summary.py +++ b/tests/api_resources/radar/attacks/layer7/test_summary.py @@ -2,106 +2,23 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare +import os +from typing import Any, cast +import pytest + +from cloudflare import Cloudflare, AsyncCloudflare +from tests.utils import assert_matches_type +from cloudflare._utils import parse_datetime from cloudflare.types.radar.attacks.layer7 import ( SummaryGetResponse, + SummaryIPVersionResponse, SummaryHTTPMethodResponse, SummaryHTTPVersionResponse, - SummaryIPVersionResponse, SummaryManagedRulesResponse, SummaryMitigationProductResponse, ) -from typing import Any, cast - -import os -import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type -from cloudflare.types.radar.attacks.layer7 import summary_get_params -from cloudflare.types.radar.attacks.layer7 import summary_http_method_params -from cloudflare.types.radar.attacks.layer7 import summary_http_version_params -from cloudflare.types.radar.attacks.layer7 import summary_ip_version_params -from cloudflare.types.radar.attacks.layer7 import summary_managed_rules_params -from cloudflare.types.radar.attacks.layer7 import summary_mitigation_product_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime - base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/layer7/test_timeseries_groups.py b/tests/api_resources/radar/attacks/layer7/test_timeseries_groups.py index e6e350a55..790fa54e6 100644 --- a/tests/api_resources/radar/attacks/layer7/test_timeseries_groups.py +++ b/tests/api_resources/radar/attacks/layer7/test_timeseries_groups.py @@ -2,133 +2,24 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.attacks.layer7 import ( - TimeseriesGroupGetResponse, - TimeseriesGroupHTTPMethodResponse, - TimeseriesGroupHTTPVersionResponse, - TimeseriesGroupIndustryResponse, - TimeseriesGroupIPVersionResponse, - TimeseriesGroupManagedRulesResponse, - TimeseriesGroupMitigationProductResponse, - TimeseriesGroupVerticalResponse, -) - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.attacks.layer7 import timeseries_group_get_params -from cloudflare.types.radar.attacks.layer7 import timeseries_group_http_method_params -from cloudflare.types.radar.attacks.layer7 import timeseries_group_http_version_params -from cloudflare.types.radar.attacks.layer7 import timeseries_group_industry_params -from cloudflare.types.radar.attacks.layer7 import timeseries_group_ip_version_params -from cloudflare.types.radar.attacks.layer7 import timeseries_group_managed_rules_params -from cloudflare.types.radar.attacks.layer7 import timeseries_group_mitigation_product_params -from cloudflare.types.radar.attacks.layer7 import timeseries_group_vertical_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.attacks.layer7 import ( + TimeseriesGroupGetResponse, + TimeseriesGroupIndustryResponse, + TimeseriesGroupVerticalResponse, + TimeseriesGroupIPVersionResponse, + TimeseriesGroupHTTPMethodResponse, + TimeseriesGroupHTTPVersionResponse, + TimeseriesGroupManagedRulesResponse, + TimeseriesGroupMitigationProductResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/layer7/test_top.py b/tests/api_resources/radar/attacks/layer7/test_top.py index be5b1b4f5..ee00e24f1 100644 --- a/tests/api_resources/radar/attacks/layer7/test_top.py +++ b/tests/api_resources/radar/attacks/layer7/test_top.py @@ -2,59 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.attacks.layer7 import TopAttacksResponse, TopIndustryResponse, TopVerticalResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.attacks.layer7 import top_attacks_params -from cloudflare.types.radar.attacks.layer7 import top_industry_params -from cloudflare.types.radar.attacks.layer7 import top_vertical_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.attacks.layer7 import ( + TopAttacksResponse, + TopIndustryResponse, + TopVerticalResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/layer7/top/test_ases.py b/tests/api_resources/radar/attacks/layer7/top/test_ases.py index 2e5645a1c..3eac5b1b0 100644 --- a/tests/api_resources/radar/attacks/layer7/top/test_ases.py +++ b/tests/api_resources/radar/attacks/layer7/top/test_ases.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.attacks.layer7.top import AseOriginResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.attacks.layer7.top import ase_origin_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.attacks.layer7.top import AseOriginResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/layer7/top/test_locations.py b/tests/api_resources/radar/attacks/layer7/top/test_locations.py index 9af64b79e..9dbd50722 100644 --- a/tests/api_resources/radar/attacks/layer7/top/test_locations.py +++ b/tests/api_resources/radar/attacks/layer7/top/test_locations.py @@ -2,46 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.attacks.layer7.top import LocationOriginResponse, LocationTargetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.attacks.layer7.top import location_origin_params -from cloudflare.types.radar.attacks.layer7.top import location_target_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.attacks.layer7.top import ( + LocationOriginResponse, + LocationTargetResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/test_layer3.py b/tests/api_resources/radar/attacks/test_layer3.py index b13a6b5e2..087a42080 100644 --- a/tests/api_resources/radar/attacks/test_layer3.py +++ b/tests/api_resources/radar/attacks/test_layer3.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.attacks import Layer3TimeseriesResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.attacks import layer3_timeseries_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.attacks import Layer3TimeseriesResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/test_layer7.py b/tests/api_resources/radar/attacks/test_layer7.py index 84979e308..50da8da3f 100644 --- a/tests/api_resources/radar/attacks/test_layer7.py +++ b/tests/api_resources/radar/attacks/test_layer7.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.attacks import Layer7TimeseriesResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.attacks import layer7_timeseries_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.attacks import Layer7TimeseriesResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/bgp/hijacks/test_events.py b/tests/api_resources/radar/bgp/hijacks/test_events.py index 75428ee6a..9686bf1e7 100644 --- a/tests/api_resources/radar/bgp/hijacks/test_events.py +++ b/tests/api_resources/radar/bgp/hijacks/test_events.py @@ -2,27 +2,16 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.bgp.hijacks import EventListResponse - -from cloudflare.pagination import SyncV4PagePagination, AsyncV4PagePagination - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.bgp.hijacks import event_list_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.pagination import SyncV4PagePagination, AsyncV4PagePagination +from cloudflare.types.radar.bgp.hijacks import EventListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/bgp/leaks/test_events.py b/tests/api_resources/radar/bgp/leaks/test_events.py index 7dc1845dc..5d17830be 100644 --- a/tests/api_resources/radar/bgp/leaks/test_events.py +++ b/tests/api_resources/radar/bgp/leaks/test_events.py @@ -2,27 +2,16 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.bgp.leaks import EventListResponse - -from cloudflare.pagination import SyncV4PagePagination, AsyncV4PagePagination - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.bgp.leaks import event_list_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.pagination import SyncV4PagePagination, AsyncV4PagePagination +from cloudflare.types.radar.bgp.leaks import EventListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/bgp/test_ips.py b/tests/api_resources/radar/bgp/test_ips.py index 5b1856d4b..c5315aeda 100644 --- a/tests/api_resources/radar/bgp/test_ips.py +++ b/tests/api_resources/radar/bgp/test_ips.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.bgp import IPTimeseriesResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.bgp import ip_timeseries_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.bgp import IPTimeseriesResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/bgp/test_routes.py b/tests/api_resources/radar/bgp/test_routes.py index 8bdbbe323..2352e1e18 100644 --- a/tests/api_resources/radar/bgp/test_routes.py +++ b/tests/api_resources/radar/bgp/test_routes.py @@ -2,24 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.bgp import RouteAsesResponse, RouteMoasResponse, RoutePfx2asResponse, RouteStatsResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.bgp import route_ases_params -from cloudflare.types.radar.bgp import route_moas_params -from cloudflare.types.radar.bgp import route_pfx2as_params -from cloudflare.types.radar.bgp import route_stats_params +from cloudflare.types.radar.bgp import ( + RouteAsesResponse, + RouteMoasResponse, + RouteStatsResponse, + RoutePfx2asResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/bgp/test_top.py b/tests/api_resources/radar/bgp/test_top.py index 57e5ff109..efd3d739e 100644 --- a/tests/api_resources/radar/bgp/test_top.py +++ b/tests/api_resources/radar/bgp/test_top.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.bgp import TopPrefixesResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.bgp import top_prefixes_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.bgp import TopPrefixesResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/bgp/top/test_ases.py b/tests/api_resources/radar/bgp/top/test_ases.py index 44ead5361..10409e4ea 100644 --- a/tests/api_resources/radar/bgp/top/test_ases.py +++ b/tests/api_resources/radar/bgp/top/test_ases.py @@ -2,34 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.bgp.top import AseGetResponse, AsePrefixesResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.bgp.top import ase_get_params -from cloudflare.types.radar.bgp.top import ase_prefixes_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.bgp.top import AseGetResponse, AsePrefixesResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/dns/test_top.py b/tests/api_resources/radar/dns/test_top.py index a18e7972f..b202d6868 100644 --- a/tests/api_resources/radar/dns/test_top.py +++ b/tests/api_resources/radar/dns/test_top.py @@ -2,46 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.dns import TopAsesResponse, TopLocationsResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.dns import top_ases_params -from cloudflare.types.radar.dns import top_locations_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.dns import TopAsesResponse, TopLocationsResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/email/routing/test_summary.py b/tests/api_resources/radar/email/routing/test_summary.py index 2a4915222..ec3ee1bd7 100644 --- a/tests/api_resources/radar/email/routing/test_summary.py +++ b/tests/api_resources/radar/email/routing/test_summary.py @@ -2,106 +2,23 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare +import os +from typing import Any, cast +import pytest + +from cloudflare import Cloudflare, AsyncCloudflare +from tests.utils import assert_matches_type +from cloudflare._utils import parse_datetime from cloudflare.types.radar.email.routing import ( SummaryARCResponse, + SummarySPFResponse, SummaryDKIMResponse, SummaryDMARCResponse, SummaryEncryptedResponse, SummaryIPVersionResponse, - SummarySPFResponse, ) -from typing import Any, cast - -import os -import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type -from cloudflare.types.radar.email.routing import summary_arc_params -from cloudflare.types.radar.email.routing import summary_dkim_params -from cloudflare.types.radar.email.routing import summary_dmarc_params -from cloudflare.types.radar.email.routing import summary_encrypted_params -from cloudflare.types.radar.email.routing import summary_ip_version_params -from cloudflare.types.radar.email.routing import summary_spf_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime - base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/email/routing/test_timeseries_groups.py b/tests/api_resources/radar/email/routing/test_timeseries_groups.py index 5086530b3..5f268c206 100644 --- a/tests/api_resources/radar/email/routing/test_timeseries_groups.py +++ b/tests/api_resources/radar/email/routing/test_timeseries_groups.py @@ -2,106 +2,23 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare +import os +from typing import Any, cast +import pytest + +from cloudflare import Cloudflare, AsyncCloudflare +from tests.utils import assert_matches_type +from cloudflare._utils import parse_datetime from cloudflare.types.radar.email.routing import ( TimeseriesGroupARCResponse, + TimeseriesGroupSPFResponse, TimeseriesGroupDKIMResponse, TimeseriesGroupDMARCResponse, TimeseriesGroupEncryptedResponse, TimeseriesGroupIPVersionResponse, - TimeseriesGroupSPFResponse, ) -from typing import Any, cast - -import os -import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type -from cloudflare.types.radar.email.routing import timeseries_group_arc_params -from cloudflare.types.radar.email.routing import timeseries_group_dkim_params -from cloudflare.types.radar.email.routing import timeseries_group_dmarc_params -from cloudflare.types.radar.email.routing import timeseries_group_encrypted_params -from cloudflare.types.radar.email.routing import timeseries_group_ip_version_params -from cloudflare.types.radar.email.routing import timeseries_group_spf_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime - base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/email/security/test_summary.py b/tests/api_resources/radar/email/security/test_summary.py index 7dc72887d..c46974d06 100644 --- a/tests/api_resources/radar/email/security/test_summary.py +++ b/tests/api_resources/radar/email/security/test_summary.py @@ -2,147 +2,25 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.email.security import ( - SummaryARCResponse, - SummaryDKIMResponse, - SummaryDMARCResponse, - SummaryMaliciousResponse, - SummarySpamResponse, - SummarySPFResponse, - SummarySpoofResponse, - SummaryThreatCategoryResponse, - SummaryTLSVersionResponse, -) - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.email.security import summary_arc_params -from cloudflare.types.radar.email.security import summary_dkim_params -from cloudflare.types.radar.email.security import summary_dmarc_params -from cloudflare.types.radar.email.security import summary_malicious_params -from cloudflare.types.radar.email.security import summary_spam_params -from cloudflare.types.radar.email.security import summary_spf_params -from cloudflare.types.radar.email.security import summary_spoof_params -from cloudflare.types.radar.email.security import summary_threat_category_params -from cloudflare.types.radar.email.security import summary_tls_version_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.email.security import ( + SummaryARCResponse, + SummarySPFResponse, + SummaryDKIMResponse, + SummarySpamResponse, + SummaryDMARCResponse, + SummarySpoofResponse, + SummaryMaliciousResponse, + SummaryTLSVersionResponse, + SummaryThreatCategoryResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/email/security/test_timeseries_groups.py b/tests/api_resources/radar/email/security/test_timeseries_groups.py index 6a47814d5..75e316f03 100644 --- a/tests/api_resources/radar/email/security/test_timeseries_groups.py +++ b/tests/api_resources/radar/email/security/test_timeseries_groups.py @@ -2,147 +2,25 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.email.security import ( - TimeseriesGroupARCResponse, - TimeseriesGroupDKIMResponse, - TimeseriesGroupDMARCResponse, - TimeseriesGroupMaliciousResponse, - TimeseriesGroupSpamResponse, - TimeseriesGroupSPFResponse, - TimeseriesGroupSpoofResponse, - TimeseriesGroupThreatCategoryResponse, - TimeseriesGroupTLSVersionResponse, -) - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.email.security import timeseries_group_arc_params -from cloudflare.types.radar.email.security import timeseries_group_dkim_params -from cloudflare.types.radar.email.security import timeseries_group_dmarc_params -from cloudflare.types.radar.email.security import timeseries_group_malicious_params -from cloudflare.types.radar.email.security import timeseries_group_spam_params -from cloudflare.types.radar.email.security import timeseries_group_spf_params -from cloudflare.types.radar.email.security import timeseries_group_spoof_params -from cloudflare.types.radar.email.security import timeseries_group_threat_category_params -from cloudflare.types.radar.email.security import timeseries_group_tls_version_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.email.security import ( + TimeseriesGroupARCResponse, + TimeseriesGroupSPFResponse, + TimeseriesGroupDKIMResponse, + TimeseriesGroupSpamResponse, + TimeseriesGroupDMARCResponse, + TimeseriesGroupSpoofResponse, + TimeseriesGroupMaliciousResponse, + TimeseriesGroupTLSVersionResponse, + TimeseriesGroupThreatCategoryResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/email/security/top/test_tlds.py b/tests/api_resources/radar/email/security/top/test_tlds.py index 4077a9bfd..fb71286f8 100644 --- a/tests/api_resources/radar/email/security/top/test_tlds.py +++ b/tests/api_resources/radar/email/security/top/test_tlds.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.email.security.top import TldGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.email.security.top import tld_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.email.security.top import TldGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/email/security/top/tlds/test_malicious.py b/tests/api_resources/radar/email/security/top/tlds/test_malicious.py index 018ac79a1..47f0c6b92 100644 --- a/tests/api_resources/radar/email/security/top/tlds/test_malicious.py +++ b/tests/api_resources/radar/email/security/top/tlds/test_malicious.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.email.security.top.tlds import MaliciousGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.email.security.top.tlds import malicious_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.email.security.top.tlds import MaliciousGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/email/security/top/tlds/test_spam.py b/tests/api_resources/radar/email/security/top/tlds/test_spam.py index b59ded392..d8ea7caf8 100644 --- a/tests/api_resources/radar/email/security/top/tlds/test_spam.py +++ b/tests/api_resources/radar/email/security/top/tlds/test_spam.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.email.security.top.tlds import SpamGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.email.security.top.tlds import spam_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.email.security.top.tlds import SpamGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/email/security/top/tlds/test_spoof.py b/tests/api_resources/radar/email/security/top/tlds/test_spoof.py index b681ff422..552471930 100644 --- a/tests/api_resources/radar/email/security/top/tlds/test_spoof.py +++ b/tests/api_resources/radar/email/security/top/tlds/test_spoof.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.email.security.top.tlds import SpoofGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.email.security.top.tlds import spoof_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.email.security.top.tlds import SpoofGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/entities/test_asns.py b/tests/api_resources/radar/entities/test_asns.py index 01f0c62b6..78555b0de 100644 --- a/tests/api_resources/radar/entities/test_asns.py +++ b/tests/api_resources/radar/entities/test_asns.py @@ -2,24 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.entities import ASNListResponse, ASNGetResponse, ASNIPResponse, ASNRelResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.entities import asn_list_params -from cloudflare.types.radar.entities import asn_get_params -from cloudflare.types.radar.entities import asn_ip_params -from cloudflare.types.radar.entities import asn_rel_params +from cloudflare.types.radar.entities import ( + ASNIPResponse, + ASNGetResponse, + ASNRelResponse, + ASNListResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/entities/test_locations.py b/tests/api_resources/radar/entities/test_locations.py index dc85f7180..b7fedeea1 100644 --- a/tests/api_resources/radar/entities/test_locations.py +++ b/tests/api_resources/radar/entities/test_locations.py @@ -2,22 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.entities import LocationListResponse, LocationGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.entities import location_list_params -from cloudflare.types.radar.entities import location_get_params +from cloudflare.types.radar.entities import ( + LocationGetResponse, + LocationListResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/ases/test_bot_class.py b/tests/api_resources/radar/http/ases/test_bot_class.py index eb341c672..43dfccdf6 100644 --- a/tests/api_resources/radar/http/ases/test_bot_class.py +++ b/tests/api_resources/radar/http/ases/test_bot_class.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.http.ases import BotClassGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.http.ases import bot_class_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.http.ases import BotClassGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/ases/test_browser_family.py b/tests/api_resources/radar/http/ases/test_browser_family.py index 4ea68cae4..518b019bc 100644 --- a/tests/api_resources/radar/http/ases/test_browser_family.py +++ b/tests/api_resources/radar/http/ases/test_browser_family.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.http.ases import BrowserFamilyGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.http.ases import browser_family_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.http.ases import BrowserFamilyGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/ases/test_device_type.py b/tests/api_resources/radar/http/ases/test_device_type.py index 250d0c053..82a485506 100644 --- a/tests/api_resources/radar/http/ases/test_device_type.py +++ b/tests/api_resources/radar/http/ases/test_device_type.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.http.ases import DeviceTypeGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.http.ases import device_type_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.http.ases import DeviceTypeGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/ases/test_http_method.py b/tests/api_resources/radar/http/ases/test_http_method.py index 89b30009b..69ab41824 100644 --- a/tests/api_resources/radar/http/ases/test_http_method.py +++ b/tests/api_resources/radar/http/ases/test_http_method.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.http.ases import HTTPMethodGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.http.ases import http_method_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.http.ases import HTTPMethodGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/ases/test_http_protocol.py b/tests/api_resources/radar/http/ases/test_http_protocol.py index 008e4939b..865131635 100644 --- a/tests/api_resources/radar/http/ases/test_http_protocol.py +++ b/tests/api_resources/radar/http/ases/test_http_protocol.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.http.ases import HTTPProtocolGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.http.ases import http_protocol_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.http.ases import HTTPProtocolGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/ases/test_ip_version.py b/tests/api_resources/radar/http/ases/test_ip_version.py index d43dc49bf..f9abf302b 100644 --- a/tests/api_resources/radar/http/ases/test_ip_version.py +++ b/tests/api_resources/radar/http/ases/test_ip_version.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.http.ases import IPVersionGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.http.ases import ip_version_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.http.ases import IPVersionGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/ases/test_os.py b/tests/api_resources/radar/http/ases/test_os.py index 5697e0a06..b06f72f2b 100644 --- a/tests/api_resources/radar/http/ases/test_os.py +++ b/tests/api_resources/radar/http/ases/test_os.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.http.ases import OSGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.http.ases import os_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.http.ases import OSGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/ases/test_tls_version.py b/tests/api_resources/radar/http/ases/test_tls_version.py index f7dc3bc61..1ee28eb9c 100644 --- a/tests/api_resources/radar/http/ases/test_tls_version.py +++ b/tests/api_resources/radar/http/ases/test_tls_version.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.http.ases import TLSVersionGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.http.ases import tls_version_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.http.ases import TLSVersionGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/locations/test_bot_class.py b/tests/api_resources/radar/http/locations/test_bot_class.py index 1b7ae8e65..f80aa0f40 100644 --- a/tests/api_resources/radar/http/locations/test_bot_class.py +++ b/tests/api_resources/radar/http/locations/test_bot_class.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.http.locations import BotClassGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.http.locations import bot_class_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.http.locations import BotClassGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/locations/test_browser_family.py b/tests/api_resources/radar/http/locations/test_browser_family.py index 01367cb40..07964a092 100644 --- a/tests/api_resources/radar/http/locations/test_browser_family.py +++ b/tests/api_resources/radar/http/locations/test_browser_family.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.http.locations import BrowserFamilyGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.http.locations import browser_family_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.http.locations import BrowserFamilyGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/locations/test_device_type.py b/tests/api_resources/radar/http/locations/test_device_type.py index 2ca834fe5..15ae343d0 100644 --- a/tests/api_resources/radar/http/locations/test_device_type.py +++ b/tests/api_resources/radar/http/locations/test_device_type.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.http.locations import DeviceTypeGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.http.locations import device_type_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.http.locations import DeviceTypeGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/locations/test_http_method.py b/tests/api_resources/radar/http/locations/test_http_method.py index 5b2c6c037..dd3f53d5e 100644 --- a/tests/api_resources/radar/http/locations/test_http_method.py +++ b/tests/api_resources/radar/http/locations/test_http_method.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.http.locations import HTTPMethodGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.http.locations import http_method_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.http.locations import HTTPMethodGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/locations/test_http_protocol.py b/tests/api_resources/radar/http/locations/test_http_protocol.py index d5a5f509f..8c5abee18 100644 --- a/tests/api_resources/radar/http/locations/test_http_protocol.py +++ b/tests/api_resources/radar/http/locations/test_http_protocol.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.http.locations import HTTPProtocolGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.http.locations import http_protocol_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.http.locations import HTTPProtocolGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/locations/test_ip_version.py b/tests/api_resources/radar/http/locations/test_ip_version.py index ff86c052a..47315faea 100644 --- a/tests/api_resources/radar/http/locations/test_ip_version.py +++ b/tests/api_resources/radar/http/locations/test_ip_version.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.http.locations import IPVersionGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.http.locations import ip_version_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.http.locations import IPVersionGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/locations/test_os.py b/tests/api_resources/radar/http/locations/test_os.py index b140b8e50..2006ca10d 100644 --- a/tests/api_resources/radar/http/locations/test_os.py +++ b/tests/api_resources/radar/http/locations/test_os.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.http.locations import OSGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.http.locations import os_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.http.locations import OSGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/locations/test_tls_version.py b/tests/api_resources/radar/http/locations/test_tls_version.py index d1a773d8c..af160f325 100644 --- a/tests/api_resources/radar/http/locations/test_tls_version.py +++ b/tests/api_resources/radar/http/locations/test_tls_version.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.http.locations import TLSVersionGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.http.locations import tls_version_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.http.locations import TLSVersionGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/test_ases.py b/tests/api_resources/radar/http/test_ases.py index ec2f6ee0f..08c4f0dfd 100644 --- a/tests/api_resources/radar/http/test_ases.py +++ b/tests/api_resources/radar/http/test_ases.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.http import AseGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.http import ase_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.http import AseGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/test_locations.py b/tests/api_resources/radar/http/test_locations.py index 1affae392..e609c513b 100644 --- a/tests/api_resources/radar/http/test_locations.py +++ b/tests/api_resources/radar/http/test_locations.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.http import LocationGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.http import location_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.http import LocationGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/test_summary.py b/tests/api_resources/radar/http/test_summary.py index e4f910daa..8beb2d1d8 100644 --- a/tests/api_resources/radar/http/test_summary.py +++ b/tests/api_resources/radar/http/test_summary.py @@ -2,133 +2,24 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.http import ( - SummaryBotClassResponse, - SummaryDeviceTypeResponse, - SummaryHTTPProtocolResponse, - SummaryHTTPVersionResponse, - SummaryIPVersionResponse, - SummaryOSResponse, - SummaryPostQuantumResponse, - SummaryTLSVersionResponse, -) - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.http import summary_bot_class_params -from cloudflare.types.radar.http import summary_device_type_params -from cloudflare.types.radar.http import summary_http_protocol_params -from cloudflare.types.radar.http import summary_http_version_params -from cloudflare.types.radar.http import summary_ip_version_params -from cloudflare.types.radar.http import summary_os_params -from cloudflare.types.radar.http import summary_post_quantum_params -from cloudflare.types.radar.http import summary_tls_version_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.http import ( + SummaryOSResponse, + SummaryBotClassResponse, + SummaryIPVersionResponse, + SummaryDeviceTypeResponse, + SummaryTLSVersionResponse, + SummaryHTTPVersionResponse, + SummaryPostQuantumResponse, + SummaryHTTPProtocolResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/test_timeseries_groups.py b/tests/api_resources/radar/http/test_timeseries_groups.py index b43f2588d..c21da4168 100644 --- a/tests/api_resources/radar/http/test_timeseries_groups.py +++ b/tests/api_resources/radar/http/test_timeseries_groups.py @@ -2,161 +2,26 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.http import ( - TimeseriesGroupBotClassResponse, - TimeseriesGroupBrowserResponse, - TimeseriesGroupBrowserFamilyResponse, - TimeseriesGroupDeviceTypeResponse, - TimeseriesGroupHTTPProtocolResponse, - TimeseriesGroupHTTPVersionResponse, - TimeseriesGroupIPVersionResponse, - TimeseriesGroupOSResponse, - TimeseriesGroupPostQuantumResponse, - TimeseriesGroupTLSVersionResponse, -) - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.http import timeseries_group_bot_class_params -from cloudflare.types.radar.http import timeseries_group_browser_params -from cloudflare.types.radar.http import timeseries_group_browser_family_params -from cloudflare.types.radar.http import timeseries_group_device_type_params -from cloudflare.types.radar.http import timeseries_group_http_protocol_params -from cloudflare.types.radar.http import timeseries_group_http_version_params -from cloudflare.types.radar.http import timeseries_group_ip_version_params -from cloudflare.types.radar.http import timeseries_group_os_params -from cloudflare.types.radar.http import timeseries_group_post_quantum_params -from cloudflare.types.radar.http import timeseries_group_tls_version_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.http import ( + TimeseriesGroupOSResponse, + TimeseriesGroupBrowserResponse, + TimeseriesGroupBotClassResponse, + TimeseriesGroupIPVersionResponse, + TimeseriesGroupDeviceTypeResponse, + TimeseriesGroupTLSVersionResponse, + TimeseriesGroupHTTPVersionResponse, + TimeseriesGroupPostQuantumResponse, + TimeseriesGroupHTTPProtocolResponse, + TimeseriesGroupBrowserFamilyResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/test_top.py b/tests/api_resources/radar/http/test_top.py index b32f88ed5..1eba56463 100644 --- a/tests/api_resources/radar/http/test_top.py +++ b/tests/api_resources/radar/http/test_top.py @@ -2,46 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.http import TopBrowserResponse, TopBrowserFamilyResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.http import top_browser_params -from cloudflare.types.radar.http import top_browser_family_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.http import ( + TopBrowserResponse, + TopBrowserFamilyResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/netflows/test_top.py b/tests/api_resources/radar/netflows/test_top.py index 1dc2b0cb6..294063d1b 100644 --- a/tests/api_resources/radar/netflows/test_top.py +++ b/tests/api_resources/radar/netflows/test_top.py @@ -2,46 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.netflows import TopAsesResponse, TopLocationsResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.netflows import top_ases_params -from cloudflare.types.radar.netflows import top_locations_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.netflows import TopAsesResponse, TopLocationsResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/quality/speed/test_top.py b/tests/api_resources/radar/quality/speed/test_top.py index 032e3922f..1ddd81fa7 100644 --- a/tests/api_resources/radar/quality/speed/test_top.py +++ b/tests/api_resources/radar/quality/speed/test_top.py @@ -2,34 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.quality.speed import TopAsesResponse, TopLocationsResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.quality.speed import top_ases_params -from cloudflare.types.radar.quality.speed import top_locations_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.quality.speed import ( + TopAsesResponse, + TopLocationsResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/quality/test_iqi.py b/tests/api_resources/radar/quality/test_iqi.py index 2e5e5281f..f4ea83dcd 100644 --- a/tests/api_resources/radar/quality/test_iqi.py +++ b/tests/api_resources/radar/quality/test_iqi.py @@ -2,46 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.quality import IQISummaryResponse, IQITimeseriesGroupsResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.quality import iqi_summary_params -from cloudflare.types.radar.quality import iqi_timeseries_groups_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.quality import ( + IQISummaryResponse, + IQITimeseriesGroupsResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/quality/test_speed.py b/tests/api_resources/radar/quality/test_speed.py index 2e11e519c..7ee3ce0bd 100644 --- a/tests/api_resources/radar/quality/test_speed.py +++ b/tests/api_resources/radar/quality/test_speed.py @@ -2,34 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.quality import SpeedHistogramResponse, SpeedSummaryResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.quality import speed_histogram_params -from cloudflare.types.radar.quality import speed_summary_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.quality import ( + SpeedSummaryResponse, + SpeedHistogramResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/ranking/test_domain.py b/tests/api_resources/radar/ranking/test_domain.py index a97b90dc8..058290c4c 100644 --- a/tests/api_resources/radar/ranking/test_domain.py +++ b/tests/api_resources/radar/ranking/test_domain.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.ranking import DomainGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.ranking import domain_get_params +from cloudflare.types.radar.ranking import DomainGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/robots_txt/__init__.py b/tests/api_resources/radar/robots_txt/__init__.py deleted file mode 100644 index fd8019a9a..000000000 --- a/tests/api_resources/radar/robots_txt/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. diff --git a/tests/api_resources/radar/robots_txt/top/__init__.py b/tests/api_resources/radar/robots_txt/top/__init__.py deleted file mode 100644 index fd8019a9a..000000000 --- a/tests/api_resources/radar/robots_txt/top/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. diff --git a/tests/api_resources/radar/robots_txt/top/test_directive.py b/tests/api_resources/radar/robots_txt/top/test_directive.py deleted file mode 100644 index 1ca5b35d3..000000000 --- a/tests/api_resources/radar/robots_txt/top/test_directive.py +++ /dev/null @@ -1,115 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.robots_txt.top import DirectiveGetResponse - -from typing import Any, cast - -import os -import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type -from cloudflare.types.radar.robots_txt.top import directive_get_params - -base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") - - -class TestDirective: - parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - - @parametrize - def test_method_get(self, client: Cloudflare) -> None: - directive = client.radar.robots_txt.top.directive.get( - directive="ALLOW", - ) - assert_matches_type(DirectiveGetResponse, directive, path=["response"]) - - @parametrize - def test_method_get_with_all_params(self, client: Cloudflare) -> None: - directive = client.radar.robots_txt.top.directive.get( - directive="ALLOW", - agent_category="AI", - date="2024-09-19", - format="JSON", - limit=5, - name=["string", "string", "string"], - ) - assert_matches_type(DirectiveGetResponse, directive, path=["response"]) - - @parametrize - def test_raw_response_get(self, client: Cloudflare) -> None: - response = client.radar.robots_txt.top.directive.with_raw_response.get( - directive="ALLOW", - ) - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - directive = response.parse() - assert_matches_type(DirectiveGetResponse, directive, path=["response"]) - - @parametrize - def test_streaming_response_get(self, client: Cloudflare) -> None: - with client.radar.robots_txt.top.directive.with_streaming_response.get( - directive="ALLOW", - ) as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - directive = response.parse() - assert_matches_type(DirectiveGetResponse, directive, path=["response"]) - - assert cast(Any, response.is_closed) is True - - -class TestAsyncDirective: - parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"]) - - @parametrize - async def test_method_get(self, async_client: AsyncCloudflare) -> None: - directive = await async_client.radar.robots_txt.top.directive.get( - directive="ALLOW", - ) - assert_matches_type(DirectiveGetResponse, directive, path=["response"]) - - @parametrize - async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) -> None: - directive = await async_client.radar.robots_txt.top.directive.get( - directive="ALLOW", - agent_category="AI", - date="2024-09-19", - format="JSON", - limit=5, - name=["string", "string", "string"], - ) - assert_matches_type(DirectiveGetResponse, directive, path=["response"]) - - @parametrize - async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None: - response = await async_client.radar.robots_txt.top.directive.with_raw_response.get( - directive="ALLOW", - ) - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - directive = await response.parse() - assert_matches_type(DirectiveGetResponse, directive, path=["response"]) - - @parametrize - async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None: - async with async_client.radar.robots_txt.top.directive.with_streaming_response.get( - directive="ALLOW", - ) as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - directive = await response.parse() - assert_matches_type(DirectiveGetResponse, directive, path=["response"]) - - assert cast(Any, response.is_closed) is True diff --git a/tests/api_resources/radar/test_annotations.py b/tests/api_resources/radar/test_annotations.py index a13458f0a..03a7ee5c7 100644 --- a/tests/api_resources/radar/test_annotations.py +++ b/tests/api_resources/radar/test_annotations.py @@ -2,25 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar import AnnotationListResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar import annotation_list_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar import AnnotationListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/test_as112.py b/tests/api_resources/radar/test_as112.py index 8f65dfedc..2d07eeb2c 100644 --- a/tests/api_resources/radar/test_as112.py +++ b/tests/api_resources/radar/test_as112.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar import AS112TimeseriesResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar import as112_timeseries_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar import AS112TimeseriesResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/test_bgp.py b/tests/api_resources/radar/test_bgp.py index 89930d255..e547f9324 100644 --- a/tests/api_resources/radar/test_bgp.py +++ b/tests/api_resources/radar/test_bgp.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar import BGPTimeseriesResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar import bgp_timeseries_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar import BGPTimeseriesResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/test_datasets.py b/tests/api_resources/radar/test_datasets.py index 99e658113..571fffac2 100644 --- a/tests/api_resources/radar/test_datasets.py +++ b/tests/api_resources/radar/test_datasets.py @@ -2,22 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar import DatasetListResponse, DatasetDownloadResponse, DatasetGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar import dataset_list_params -from cloudflare.types.radar import dataset_download_params +from cloudflare.types.radar import ( + DatasetListResponse, + DatasetDownloadResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/test_entities.py b/tests/api_resources/radar/test_entities.py index bcb3881df..a9a5a170b 100644 --- a/tests/api_resources/radar/test_entities.py +++ b/tests/api_resources/radar/test_entities.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar import EntityGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar import entity_get_params +from cloudflare.types.radar import EntityGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/test_http.py b/tests/api_resources/radar/test_http.py index 8a58f5645..c316c6ea1 100644 --- a/tests/api_resources/radar/test_http.py +++ b/tests/api_resources/radar/test_http.py @@ -2,33 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar import HTTPTimeseriesResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar import http_timeseries_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar import HTTPTimeseriesResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/test_netflows.py b/tests/api_resources/radar/test_netflows.py index 7c7a091d2..0caad1acb 100644 --- a/tests/api_resources/radar/test_netflows.py +++ b/tests/api_resources/radar/test_netflows.py @@ -2,46 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar import NetflowSummaryResponse, NetflowTimeseriesResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar import netflow_summary_params -from cloudflare.types.radar import netflow_timeseries_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar import ( + NetflowSummaryResponse, + NetflowTimeseriesResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/test_ranking.py b/tests/api_resources/radar/test_ranking.py index ed40a0aad..5cf488f26 100644 --- a/tests/api_resources/radar/test_ranking.py +++ b/tests/api_resources/radar/test_ranking.py @@ -2,34 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar import RankingTimeseriesGroupsResponse, RankingTopResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar import ranking_timeseries_groups_params -from cloudflare.types.radar import ranking_top_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar import ( + RankingTopResponse, + RankingTimeseriesGroupsResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/test_robots_txt.py b/tests/api_resources/radar/test_robots_txt.py deleted file mode 100644 index 6534c226d..000000000 --- a/tests/api_resources/radar/test_robots_txt.py +++ /dev/null @@ -1,101 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar import RobotsTXTDomainsResponse - -from typing import Any, cast - -import os -import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type -from cloudflare.types.radar import robots_txt_domains_params - -base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") - - -class TestRobotsTXT: - parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - - @parametrize - def test_method_domains(self, client: Cloudflare) -> None: - robots_txt = client.radar.robots_txt.domains() - assert_matches_type(RobotsTXTDomainsResponse, robots_txt, path=["response"]) - - @parametrize - def test_method_domains_with_all_params(self, client: Cloudflare) -> None: - robots_txt = client.radar.robots_txt.domains( - domain_category="domainCategory", - domain_name="domainName", - format="JSON", - limit=5, - offset=0, - ) - assert_matches_type(RobotsTXTDomainsResponse, robots_txt, path=["response"]) - - @parametrize - def test_raw_response_domains(self, client: Cloudflare) -> None: - response = client.radar.robots_txt.with_raw_response.domains() - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - robots_txt = response.parse() - assert_matches_type(RobotsTXTDomainsResponse, robots_txt, path=["response"]) - - @parametrize - def test_streaming_response_domains(self, client: Cloudflare) -> None: - with client.radar.robots_txt.with_streaming_response.domains() as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - robots_txt = response.parse() - assert_matches_type(RobotsTXTDomainsResponse, robots_txt, path=["response"]) - - assert cast(Any, response.is_closed) is True - - -class TestAsyncRobotsTXT: - parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"]) - - @parametrize - async def test_method_domains(self, async_client: AsyncCloudflare) -> None: - robots_txt = await async_client.radar.robots_txt.domains() - assert_matches_type(RobotsTXTDomainsResponse, robots_txt, path=["response"]) - - @parametrize - async def test_method_domains_with_all_params(self, async_client: AsyncCloudflare) -> None: - robots_txt = await async_client.radar.robots_txt.domains( - domain_category="domainCategory", - domain_name="domainName", - format="JSON", - limit=5, - offset=0, - ) - assert_matches_type(RobotsTXTDomainsResponse, robots_txt, path=["response"]) - - @parametrize - async def test_raw_response_domains(self, async_client: AsyncCloudflare) -> None: - response = await async_client.radar.robots_txt.with_raw_response.domains() - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - robots_txt = await response.parse() - assert_matches_type(RobotsTXTDomainsResponse, robots_txt, path=["response"]) - - @parametrize - async def test_streaming_response_domains(self, async_client: AsyncCloudflare) -> None: - async with async_client.radar.robots_txt.with_streaming_response.domains() as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - robots_txt = await response.parse() - assert_matches_type(RobotsTXTDomainsResponse, robots_txt, path=["response"]) - - assert cast(Any, response.is_closed) is True diff --git a/tests/api_resources/radar/test_search.py b/tests/api_resources/radar/test_search.py index 1fbea53ca..5185e12e4 100644 --- a/tests/api_resources/radar/test_search.py +++ b/tests/api_resources/radar/test_search.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar import SearchGlobalResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar import search_global_params +from cloudflare.types.radar import SearchGlobalResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/test_tcp_resets_timeouts.py b/tests/api_resources/radar/test_tcp_resets_timeouts.py index 53ca212c7..ded14afb1 100644 --- a/tests/api_resources/radar/test_tcp_resets_timeouts.py +++ b/tests/api_resources/radar/test_tcp_resets_timeouts.py @@ -2,46 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar import TCPResetsTimeoutSummaryResponse, TCPResetsTimeoutTimeseriesGroupsResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar import tcp_resets_timeout_summary_params -from cloudflare.types.radar import tcp_resets_timeout_timeseries_groups_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar import ( + TCPResetsTimeoutSummaryResponse, + TCPResetsTimeoutTimeseriesGroupsResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/test_traffic_anomalies.py b/tests/api_resources/radar/test_traffic_anomalies.py index 37ab893f6..7e92c76fe 100644 --- a/tests/api_resources/radar/test_traffic_anomalies.py +++ b/tests/api_resources/radar/test_traffic_anomalies.py @@ -2,25 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar import TrafficAnomalyGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar import traffic_anomaly_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar import TrafficAnomalyGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/traffic_anomalies/test_locations.py b/tests/api_resources/radar/traffic_anomalies/test_locations.py index 9b6f102c5..005738ac3 100644 --- a/tests/api_resources/radar/traffic_anomalies/test_locations.py +++ b/tests/api_resources/radar/traffic_anomalies/test_locations.py @@ -2,25 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.traffic_anomalies import LocationGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.traffic_anomalies import location_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.traffic_anomalies import LocationGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/verified_bots/test_top.py b/tests/api_resources/radar/verified_bots/test_top.py index c34b3e3fc..d185234e3 100644 --- a/tests/api_resources/radar/verified_bots/test_top.py +++ b/tests/api_resources/radar/verified_bots/test_top.py @@ -2,46 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.radar.verified_bots import TopBotsResponse, TopCategoriesResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.verified_bots import top_bots_params -from cloudflare.types.radar.verified_bots import top_categories_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.radar.verified_bots import ( + TopBotsResponse, + TopCategoriesResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/registrar/test_domains.py b/tests/api_resources/registrar/test_domains.py index c6edd4306..170581e19 100644 --- a/tests/api_resources/registrar/test_domains.py +++ b/tests/api_resources/registrar/test_domains.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.registrar import DomainUpdateResponse, DomainListResponse, DomainGetResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.registrar import domain_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.registrar import DomainGetResponse, DomainListResponse, DomainUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/request_tracers/test_traces.py b/tests/api_resources/request_tracers/test_traces.py index 2730e6698..92147ae93 100644 --- a/tests/api_resources/request_tracers/test_traces.py +++ b/tests/api_resources/request_tracers/test_traces.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.request_tracers import TraceCreateResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.request_tracers import trace_create_params +from cloudflare.types.request_tracers import TraceCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/rules/lists/test_bulk_operations.py b/tests/api_resources/rules/lists/test_bulk_operations.py index 4ca757c6f..cea227ed2 100644 --- a/tests/api_resources/rules/lists/test_bulk_operations.py +++ b/tests/api_resources/rules/lists/test_bulk_operations.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.rules.lists import BulkOperationGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.rules.lists import BulkOperationGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/rules/lists/test_items.py b/tests/api_resources/rules/lists/test_items.py index 8b46d5789..591f68417 100644 --- a/tests/api_resources/rules/lists/test_items.py +++ b/tests/api_resources/rules/lists/test_items.py @@ -2,25 +2,20 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.rules.lists import ItemCreateResponse, ItemUpdateResponse, ItemDeleteResponse, ItemGetResponse - -from cloudflare.pagination import SyncCursorPagination, AsyncCursorPagination - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.rules.lists import item_create_params -from cloudflare.types.rules.lists import item_update_params -from cloudflare.types.rules.lists import item_list_params +from cloudflare.pagination import SyncCursorPagination, AsyncCursorPagination +from cloudflare.types.rules.lists import ( + ItemGetResponse, + ItemCreateResponse, + ItemDeleteResponse, + ItemUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/rules/test_lists.py b/tests/api_resources/rules/test_lists.py index ff2e5c216..c14548725 100644 --- a/tests/api_resources/rules/test_lists.py +++ b/tests/api_resources/rules/test_lists.py @@ -2,24 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.rules import ListsList, ListDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.rules import list_create_params -from cloudflare.types.rules import list_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.rules import ListsList, ListDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/rulesets/phases/test_versions.py b/tests/api_resources/rulesets/phases/test_versions.py index e1dd86bdb..e26929d3a 100644 --- a/tests/api_resources/rulesets/phases/test_versions.py +++ b/tests/api_resources/rulesets/phases/test_versions.py @@ -2,24 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.rulesets.phases import VersionListResponse, VersionGetResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.rulesets import Phase -from cloudflare.types.rulesets import Phase +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.rulesets.phases import VersionGetResponse, VersionListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/rulesets/test_phases.py b/tests/api_resources/rulesets/test_phases.py index 6f479eaa6..a7d398a7b 100644 --- a/tests/api_resources/rulesets/test_phases.py +++ b/tests/api_resources/rulesets/test_phases.py @@ -2,23 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.rulesets import PhaseUpdateResponse, PhaseGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.rulesets import phase_update_params -from cloudflare.types.rulesets import Phase -from cloudflare.types.rulesets import Phase +from cloudflare.types.rulesets import PhaseGetResponse, PhaseUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/rulesets/test_rules.py b/tests/api_resources/rulesets/test_rules.py index 0462f00e2..7fe1bf927 100644 --- a/tests/api_resources/rulesets/test_rules.py +++ b/tests/api_resources/rulesets/test_rules.py @@ -2,58 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.rulesets import RuleCreateResponse, RuleDeleteResponse, RuleEditResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.rulesets import rule_create_params -from cloudflare.types.rulesets import rule_edit_params -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging -from cloudflare.types.rulesets import Logging +from cloudflare.types.rulesets import ( + RuleEditResponse, + RuleCreateResponse, + RuleDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/rulesets/test_versions.py b/tests/api_resources/rulesets/test_versions.py index b970c153c..67582d09b 100644 --- a/tests/api_resources/rulesets/test_versions.py +++ b/tests/api_resources/rulesets/test_versions.py @@ -2,22 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.rulesets import VersionListResponse, VersionGetResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.rulesets import VersionGetResponse, VersionListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/rulesets/versions/test_by_tag.py b/tests/api_resources/rulesets/versions/test_by_tag.py index 0d1fdbad3..01267ce0f 100644 --- a/tests/api_resources/rulesets/versions/test_by_tag.py +++ b/tests/api_resources/rulesets/versions/test_by_tag.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.rulesets.versions import ByTagGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.rulesets.versions import ByTagGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/rum/test_rules.py b/tests/api_resources/rum/test_rules.py index 2f4a3ccd4..6cdb5f5db 100644 --- a/tests/api_resources/rum/test_rules.py +++ b/tests/api_resources/rum/test_rules.py @@ -2,22 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.rum import RUMRule, RuleListResponse, RuleDeleteResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.rum import rule_create_params -from cloudflare.types.rum import rule_update_params +from cloudflare.types.rum import RUMRule, RuleListResponse, RuleDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/rum/test_site_info.py b/tests/api_resources/rum/test_site_info.py index 11bd11dd5..dbd592cad 100644 --- a/tests/api_resources/rum/test_site_info.py +++ b/tests/api_resources/rum/test_site_info.py @@ -2,25 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.rum import Site, SiteInfoDeleteResponse - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.rum import site_info_create_params -from cloudflare.types.rum import site_info_update_params -from cloudflare.types.rum import site_info_list_params +from cloudflare.types.rum import ( + Site, + SiteInfoDeleteResponse, +) +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/secondary_dns/outgoing/test_status.py b/tests/api_resources/secondary_dns/outgoing/test_status.py index cbb66a527..98ced5177 100644 --- a/tests/api_resources/secondary_dns/outgoing/test_status.py +++ b/tests/api_resources/secondary_dns/outgoing/test_status.py @@ -2,18 +2,11 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.secondary_dns import EnableTransfer - import os +from typing import Any, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type diff --git a/tests/api_resources/secondary_dns/test_acls.py b/tests/api_resources/secondary_dns/test_acls.py index 56f01df7d..c5e3c83e1 100644 --- a/tests/api_resources/secondary_dns/test_acls.py +++ b/tests/api_resources/secondary_dns/test_acls.py @@ -2,24 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.secondary_dns import ACL, ACLDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.secondary_dns import acl_create_params -from cloudflare.types.secondary_dns import acl_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.secondary_dns import ACL, ACLDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/secondary_dns/test_force_axfr.py b/tests/api_resources/secondary_dns/test_force_axfr.py index 28baad8bf..2e0d975d4 100644 --- a/tests/api_resources/secondary_dns/test_force_axfr.py +++ b/tests/api_resources/secondary_dns/test_force_axfr.py @@ -2,21 +2,13 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.secondary_dns import ForceAXFR - import os +from typing import Any, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.secondary_dns import force_axfr_create_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/secondary_dns/test_incoming.py b/tests/api_resources/secondary_dns/test_incoming.py index 70cc8097e..f5dfb8836 100644 --- a/tests/api_resources/secondary_dns/test_incoming.py +++ b/tests/api_resources/secondary_dns/test_incoming.py @@ -2,27 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.secondary_dns import ( - IncomingCreateResponse, - IncomingUpdateResponse, - IncomingDeleteResponse, - IncomingGetResponse, -) - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.secondary_dns import incoming_create_params -from cloudflare.types.secondary_dns import incoming_update_params +from cloudflare.types.secondary_dns import ( + IncomingGetResponse, + IncomingCreateResponse, + IncomingDeleteResponse, + IncomingUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/secondary_dns/test_outgoing.py b/tests/api_resources/secondary_dns/test_outgoing.py index eb5a1687e..8e9a1d8e9 100644 --- a/tests/api_resources/secondary_dns/test_outgoing.py +++ b/tests/api_resources/secondary_dns/test_outgoing.py @@ -2,33 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.secondary_dns import ( - OutgoingCreateResponse, - OutgoingUpdateResponse, - OutgoingDeleteResponse, - DisableTransfer, - EnableTransfer, - OutgoingForceNotifyResponse, - OutgoingGetResponse, -) - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.secondary_dns import outgoing_create_params -from cloudflare.types.secondary_dns import outgoing_update_params -from cloudflare.types.secondary_dns import outgoing_disable_params -from cloudflare.types.secondary_dns import outgoing_enable_params -from cloudflare.types.secondary_dns import outgoing_force_notify_params +from cloudflare.types.secondary_dns import ( + OutgoingGetResponse, + OutgoingCreateResponse, + OutgoingDeleteResponse, + OutgoingUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/secondary_dns/test_peers.py b/tests/api_resources/secondary_dns/test_peers.py index f15f03607..b7880d386 100644 --- a/tests/api_resources/secondary_dns/test_peers.py +++ b/tests/api_resources/secondary_dns/test_peers.py @@ -2,24 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.secondary_dns import Peer, PeerDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.secondary_dns import peer_create_params -from cloudflare.types.secondary_dns import peer_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.secondary_dns import Peer, PeerDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/secondary_dns/test_tsigs.py b/tests/api_resources/secondary_dns/test_tsigs.py index eed2aaac3..c75273b7e 100644 --- a/tests/api_resources/secondary_dns/test_tsigs.py +++ b/tests/api_resources/secondary_dns/test_tsigs.py @@ -2,24 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.secondary_dns import TSIG, TSIGDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.secondary_dns import tsig_create_params -from cloudflare.types.secondary_dns import tsig_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.secondary_dns import TSIG, TSIGDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/snippets/test_content.py b/tests/api_resources/snippets/test_content.py index d117a9b10..371c11199 100644 --- a/tests/api_resources/snippets/test_content.py +++ b/tests/api_resources/snippets/test_content.py @@ -2,26 +2,21 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - +import os from typing import Any, cast +import httpx +import pytest +from respx import MockRouter + +from cloudflare import Cloudflare, AsyncCloudflare from cloudflare._response import ( BinaryAPIResponse, - StreamedBinaryAPIResponse, AsyncBinaryAPIResponse, + StreamedBinaryAPIResponse, AsyncStreamedBinaryAPIResponse, ) -import os -import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type - base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/snippets/test_rules.py b/tests/api_resources/snippets/test_rules.py index 54955acc9..83e021043 100644 --- a/tests/api_resources/snippets/test_rules.py +++ b/tests/api_resources/snippets/test_rules.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.snippets import RuleUpdateResponse, RuleListResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.snippets import rule_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.snippets import RuleListResponse, RuleUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/spectrum/analytics/aggregates/test_currents.py b/tests/api_resources/spectrum/analytics/aggregates/test_currents.py index 9e1f9e161..8d60f728d 100644 --- a/tests/api_resources/spectrum/analytics/aggregates/test_currents.py +++ b/tests/api_resources/spectrum/analytics/aggregates/test_currents.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.spectrum.analytics.aggregates import CurrentGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.spectrum.analytics.aggregates import current_get_params +from cloudflare.types.spectrum.analytics.aggregates import CurrentGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/spectrum/analytics/events/test_bytimes.py b/tests/api_resources/spectrum/analytics/events/test_bytimes.py index 51806b94c..bf4641925 100644 --- a/tests/api_resources/spectrum/analytics/events/test_bytimes.py +++ b/tests/api_resources/spectrum/analytics/events/test_bytimes.py @@ -2,25 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.spectrum.analytics.events import BytimeGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.spectrum.analytics.events import bytime_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.spectrum.analytics.events import BytimeGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/spectrum/analytics/events/test_summaries.py b/tests/api_resources/spectrum/analytics/events/test_summaries.py index ea9297b6c..ee8b78cd5 100644 --- a/tests/api_resources/spectrum/analytics/events/test_summaries.py +++ b/tests/api_resources/spectrum/analytics/events/test_summaries.py @@ -2,25 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.spectrum.analytics.events import SummaryGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.spectrum.analytics.events import summary_get_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.spectrum.analytics.events import SummaryGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/spectrum/test_apps.py b/tests/api_resources/spectrum/test_apps.py index 4ce39d803..fc3635682 100644 --- a/tests/api_resources/spectrum/test_apps.py +++ b/tests/api_resources/spectrum/test_apps.py @@ -2,39 +2,20 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.spectrum import ( - AppCreateResponse, - AppUpdateResponse, - AppListResponse, - AppDeleteResponse, - AppGetResponse, -) - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.spectrum import app_create_params -from cloudflare.types.spectrum import app_update_params -from cloudflare.types.spectrum import app_list_params -from cloudflare.types.spectrum import DNS -from cloudflare.types.spectrum import EdgeIPs -from cloudflare.types.spectrum import OriginDNS -from cloudflare.types.spectrum import OriginPort -from cloudflare.types.spectrum import DNS -from cloudflare.types.spectrum import DNS -from cloudflare.types.spectrum import EdgeIPs -from cloudflare.types.spectrum import OriginDNS -from cloudflare.types.spectrum import OriginPort -from cloudflare.types.spectrum import DNS +from cloudflare.types.spectrum import ( + AppGetResponse, + AppListResponse, + AppCreateResponse, + AppDeleteResponse, + AppUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/speed/pages/test_tests.py b/tests/api_resources/speed/pages/test_tests.py index 3e2d8b1dc..f51f02b3a 100644 --- a/tests/api_resources/speed/pages/test_tests.py +++ b/tests/api_resources/speed/pages/test_tests.py @@ -2,25 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.speed.pages import Test, TestDeleteResponse - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.speed.pages import test_create_params -from cloudflare.types.speed.pages import test_list_params -from cloudflare.types.speed.pages import test_delete_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.speed.pages import ( + Test, + TestDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/speed/test_availabilities.py b/tests/api_resources/speed/test_availabilities.py index e2317a640..59d87a228 100644 --- a/tests/api_resources/speed/test_availabilities.py +++ b/tests/api_resources/speed/test_availabilities.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.speed import Availability - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.speed import Availability base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/speed/test_pages.py b/tests/api_resources/speed/test_pages.py index bbe384225..b23aa6128 100644 --- a/tests/api_resources/speed/test_pages.py +++ b/tests/api_resources/speed/test_pages.py @@ -2,37 +2,16 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.speed import PageListResponse, Trend - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -from typing import Any, cast, Optional - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.speed import page_trend_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.speed import Trend, PageListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/speed/test_schedule.py b/tests/api_resources/speed/test_schedule.py index c4484e896..e87d9c10d 100644 --- a/tests/api_resources/speed/test_schedule.py +++ b/tests/api_resources/speed/test_schedule.py @@ -2,23 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.speed import ScheduleCreateResponse, ScheduleDeleteResponse, Schedule - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.speed import schedule_create_params -from cloudflare.types.speed import schedule_delete_params -from cloudflare.types.speed import schedule_get_params +from cloudflare.types.speed import ( + Schedule, + ScheduleCreateResponse, + ScheduleDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ssl/certificate_packs/test_order.py b/tests/api_resources/ssl/certificate_packs/test_order.py index 6d8836451..64d3aea2a 100644 --- a/tests/api_resources/ssl/certificate_packs/test_order.py +++ b/tests/api_resources/ssl/certificate_packs/test_order.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.ssl.certificate_packs import OrderCreateResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.ssl.certificate_packs import order_create_params +from cloudflare.types.ssl.certificate_packs import OrderCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ssl/certificate_packs/test_quota.py b/tests/api_resources/ssl/certificate_packs/test_quota.py index a942da922..0181a4d9e 100644 --- a/tests/api_resources/ssl/certificate_packs/test_quota.py +++ b/tests/api_resources/ssl/certificate_packs/test_quota.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.ssl.certificate_packs import QuotaGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.ssl.certificate_packs import QuotaGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ssl/test_analyze.py b/tests/api_resources/ssl/test_analyze.py index 2ae176a96..3a1e6c437 100644 --- a/tests/api_resources/ssl/test_analyze.py +++ b/tests/api_resources/ssl/test_analyze.py @@ -2,20 +2,13 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - import os +from typing import Any, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.ssl import analyze_create_params -from cloudflare.types.custom_hostnames import BundleMethod base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ssl/test_certificate_packs.py b/tests/api_resources/ssl/test_certificate_packs.py index 155bdd2a5..7272c4dd6 100644 --- a/tests/api_resources/ssl/test_certificate_packs.py +++ b/tests/api_resources/ssl/test_certificate_packs.py @@ -2,24 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -from typing import Any, cast, Optional - -from cloudflare.types.ssl import CertificatePackDeleteResponse, CertificatePackEditResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.ssl import certificate_pack_list_params -from cloudflare.types.ssl import certificate_pack_edit_params +from cloudflare.types.ssl import ( + CertificatePackEditResponse, + CertificatePackDeleteResponse, +) +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ssl/test_recommendations.py b/tests/api_resources/ssl/test_recommendations.py index 9057f5636..25c8c9c28 100644 --- a/tests/api_resources/ssl/test_recommendations.py +++ b/tests/api_resources/ssl/test_recommendations.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.ssl import RecommendationGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.ssl import RecommendationGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ssl/test_verification.py b/tests/api_resources/ssl/test_verification.py index f66856a88..8f1f4bce4 100644 --- a/tests/api_resources/ssl/test_verification.py +++ b/tests/api_resources/ssl/test_verification.py @@ -2,22 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.ssl import VerificationEditResponse, VerificationGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.ssl import verification_edit_params -from cloudflare.types.ssl import verification_get_params +from cloudflare.types.ssl import ( + VerificationGetResponse, + VerificationEditResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ssl/universal/test_settings.py b/tests/api_resources/ssl/universal/test_settings.py index cc71b7673..a6040dd14 100644 --- a/tests/api_resources/ssl/universal/test_settings.py +++ b/tests/api_resources/ssl/universal/test_settings.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.ssl.universal import UniversalSSLSettings - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.ssl.universal import setting_edit_params +from cloudflare.types.ssl.universal import UniversalSSLSettings base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/storage/test_analytics.py b/tests/api_resources/storage/test_analytics.py index 04f5e2f95..d75ef09d2 100644 --- a/tests/api_resources/storage/test_analytics.py +++ b/tests/api_resources/storage/test_analytics.py @@ -2,30 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.storage import Schema, Components - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.storage import analytics_list_params -from cloudflare.types.storage import analytics_stored_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.storage import Schema, Components base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/captions/language/test_vtt.py b/tests/api_resources/stream/captions/language/test_vtt.py index b570fe02d..c3e642164 100644 --- a/tests/api_resources/stream/captions/language/test_vtt.py +++ b/tests/api_resources/stream/captions/language/test_vtt.py @@ -2,18 +2,11 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.stream.captions.language import VttGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type diff --git a/tests/api_resources/stream/captions/test_language.py b/tests/api_resources/stream/captions/test_language.py index 515a3cf2a..0fe61c3cb 100644 --- a/tests/api_resources/stream/captions/test_language.py +++ b/tests/api_resources/stream/captions/test_language.py @@ -2,23 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.stream import Caption - -from cloudflare.types.stream.captions import LanguageDeleteResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.stream.captions import language_update_params +from cloudflare.types.stream import Caption base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/live_inputs/test_outputs.py b/tests/api_resources/stream/live_inputs/test_outputs.py index 88aec9dba..d1041731a 100644 --- a/tests/api_resources/stream/live_inputs/test_outputs.py +++ b/tests/api_resources/stream/live_inputs/test_outputs.py @@ -2,24 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.stream.live_inputs import Output - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.stream.live_inputs import output_create_params -from cloudflare.types.stream.live_inputs import output_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.stream.live_inputs import Output base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_audio_tracks.py b/tests/api_resources/stream/test_audio_tracks.py index a3472b6a1..59b9b7d95 100644 --- a/tests/api_resources/stream/test_audio_tracks.py +++ b/tests/api_resources/stream/test_audio_tracks.py @@ -2,22 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.stream import AudioTrackDeleteResponse, Audio, AudioTrackGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.stream import audio_track_copy_params -from cloudflare.types.stream import audio_track_edit_params +from cloudflare.types.stream import ( + Audio, + AudioTrackGetResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_captions.py b/tests/api_resources/stream/test_captions.py index d4d7e132d..75cf30730 100644 --- a/tests/api_resources/stream/test_captions.py +++ b/tests/api_resources/stream/test_captions.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.stream import CaptionGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.stream import CaptionGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_clip.py b/tests/api_resources/stream/test_clip.py index 3c2ab3b21..c08066008 100644 --- a/tests/api_resources/stream/test_clip.py +++ b/tests/api_resources/stream/test_clip.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.stream import Clip - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.stream import clip_create_params +from cloudflare.types.stream import Clip base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_copy.py b/tests/api_resources/stream/test_copy.py index 0ebaa5e44..fa2c1cdd5 100644 --- a/tests/api_resources/stream/test_copy.py +++ b/tests/api_resources/stream/test_copy.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.stream import Video - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.stream import copy_create_params -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.stream import Video base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_direct_upload.py b/tests/api_resources/stream/test_direct_upload.py index 7a82ed00e..54f9c3d00 100644 --- a/tests/api_resources/stream/test_direct_upload.py +++ b/tests/api_resources/stream/test_direct_upload.py @@ -2,25 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.stream import DirectUploadCreateResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.stream import direct_upload_create_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.stream import DirectUploadCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_downloads.py b/tests/api_resources/stream/test_downloads.py index 3084a128d..59fdefe0e 100644 --- a/tests/api_resources/stream/test_downloads.py +++ b/tests/api_resources/stream/test_downloads.py @@ -2,21 +2,13 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.stream import DownloadDeleteResponse - import os +from typing import Any, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.stream import download_create_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_embed.py b/tests/api_resources/stream/test_embed.py index 0f94f8dcb..1019efe5e 100644 --- a/tests/api_resources/stream/test_embed.py +++ b/tests/api_resources/stream/test_embed.py @@ -2,18 +2,11 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.stream import EmbedGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type diff --git a/tests/api_resources/stream/test_keys.py b/tests/api_resources/stream/test_keys.py index 734cce77d..ee3f8f0f6 100644 --- a/tests/api_resources/stream/test_keys.py +++ b/tests/api_resources/stream/test_keys.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.stream import Keys, KeyDeleteResponse, KeyGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.stream import key_create_params +from cloudflare.types.stream import Keys, KeyGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_live_inputs.py b/tests/api_resources/stream/test_live_inputs.py index 3947611b1..a41165cf3 100644 --- a/tests/api_resources/stream/test_live_inputs.py +++ b/tests/api_resources/stream/test_live_inputs.py @@ -2,23 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.stream import LiveInput, LiveInputListResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.stream import live_input_create_params -from cloudflare.types.stream import live_input_update_params -from cloudflare.types.stream import live_input_list_params +from cloudflare.types.stream import ( + LiveInput, + LiveInputListResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_token.py b/tests/api_resources/stream/test_token.py index ef900a277..85ca0abc9 100644 --- a/tests/api_resources/stream/test_token.py +++ b/tests/api_resources/stream/test_token.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.stream import TokenCreateResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.stream import token_create_params +from cloudflare.types.stream import TokenCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_videos.py b/tests/api_resources/stream/test_videos.py index 40784f578..c0ee01a60 100644 --- a/tests/api_resources/stream/test_videos.py +++ b/tests/api_resources/stream/test_videos.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.stream import VideoStorageUsageResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.stream import video_storage_usage_params +from cloudflare.types.stream import VideoStorageUsageResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_watermarks.py b/tests/api_resources/stream/test_watermarks.py index a98005ee9..a70f96b12 100644 --- a/tests/api_resources/stream/test_watermarks.py +++ b/tests/api_resources/stream/test_watermarks.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.stream import Watermark, WatermarkDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.stream import watermark_create_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.stream import Watermark base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_webhooks.py b/tests/api_resources/stream/test_webhooks.py index 865cfd7be..565e3777e 100644 --- a/tests/api_resources/stream/test_webhooks.py +++ b/tests/api_resources/stream/test_webhooks.py @@ -2,21 +2,13 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.stream import WebhookDeleteResponse - import os +from typing import Any, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.stream import webhook_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index cf84fd0f7..701779760 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -2,25 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.accounts import Account, AccountDeleteResponse - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.accounts import account_create_params -from cloudflare.types.accounts import account_update_params -from cloudflare.types.accounts import account_list_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.accounts import ( + Account, + AccountDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_ai_gateway.py b/tests/api_resources/test_ai_gateway.py index c315b333a..404b10495 100644 --- a/tests/api_resources/test_ai_gateway.py +++ b/tests/api_resources/test_ai_gateway.py @@ -2,31 +2,21 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.ai_gateway import ( - AIGatewayCreateResponse, - AIGatewayUpdateResponse, - AIGatewayListResponse, - AIGatewayDeleteResponse, - AIGatewayGetResponse, -) - +import os from typing import Any, cast -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.ai_gateway import ai_gateway_create_params -from cloudflare.types.ai_gateway import ai_gateway_update_params -from cloudflare.types.ai_gateway import ai_gateway_list_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.ai_gateway import ( + AIGatewayGetResponse, + AIGatewayListResponse, + AIGatewayCreateResponse, + AIGatewayDeleteResponse, + AIGatewayUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_audit_logs.py b/tests/api_resources/test_audit_logs.py index 8b695f5f9..95e46cebe 100644 --- a/tests/api_resources/test_audit_logs.py +++ b/tests/api_resources/test_audit_logs.py @@ -2,27 +2,16 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.shared import AuditLog - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.audit_logs import audit_log_list_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.shared import AuditLog base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_bot_management.py b/tests/api_resources/test_bot_management.py index 8be7ae90f..cc0d1763b 100644 --- a/tests/api_resources/test_bot_management.py +++ b/tests/api_resources/test_bot_management.py @@ -2,21 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.bot_management import BotManagementUpdateResponse, BotManagementGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.bot_management import bot_management_update_params +from cloudflare.types.bot_management import ( + BotManagementGetResponse, + BotManagementUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_brand_protection.py b/tests/api_resources/test_brand_protection.py index e124f4bce..8c368e9a3 100644 --- a/tests/api_resources/test_brand_protection.py +++ b/tests/api_resources/test_brand_protection.py @@ -2,22 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.brand_protection import Submit, Info - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.brand_protection import brand_protection_submit_params -from cloudflare.types.brand_protection import brand_protection_url_info_params +from cloudflare.types.brand_protection import ( + Info, + Submit, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_cache.py b/tests/api_resources/test_cache.py index 336a8d7bd..7af5c5be4 100644 --- a/tests/api_resources/test_cache.py +++ b/tests/api_resources/test_cache.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.cache import CachePurgeResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.cache import cache_purge_params +from cloudflare.types.cache import CachePurgeResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_calls.py b/tests/api_resources/test_calls.py index e1c23644f..29330b4e8 100644 --- a/tests/api_resources/test_calls.py +++ b/tests/api_resources/test_calls.py @@ -2,24 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.calls import CallsAppWithSecret, CallsApp, CallListResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.calls import call_create_params -from cloudflare.types.calls import call_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.calls import ( + CallsApp, + CallListResponse, + CallsAppWithSecret, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_client_certificates.py b/tests/api_resources/test_client_certificates.py index 541b13435..254ed8c24 100644 --- a/tests/api_resources/test_client_certificates.py +++ b/tests/api_resources/test_client_certificates.py @@ -2,24 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.client_certificates import ClientCertificate - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.client_certificates import client_certificate_create_params -from cloudflare.types.client_certificates import client_certificate_list_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.client_certificates import ( + ClientCertificate, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_custom_certificates.py b/tests/api_resources/test_custom_certificates.py index 2d8125085..a46b9f4e4 100644 --- a/tests/api_resources/test_custom_certificates.py +++ b/tests/api_resources/test_custom_certificates.py @@ -2,29 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.custom_certificates import CustomCertificate, CustomCertificateDeleteResponse - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.custom_certificates import custom_certificate_create_params -from cloudflare.types.custom_certificates import custom_certificate_list_params -from cloudflare.types.custom_certificates import custom_certificate_edit_params -from cloudflare.types.custom_hostnames import BundleMethod -from cloudflare.types.custom_certificates import GeoRestrictions -from cloudflare.types.custom_hostnames import BundleMethod -from cloudflare.types.custom_certificates import GeoRestrictions +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.custom_certificates import ( + CustomCertificate, + CustomCertificateDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_custom_hostnames.py b/tests/api_resources/test_custom_hostnames.py index c329dfcff..e37e45015 100644 --- a/tests/api_resources/test_custom_hostnames.py +++ b/tests/api_resources/test_custom_hostnames.py @@ -2,31 +2,21 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.custom_hostnames import ( - CustomHostnameCreateResponse, - CustomHostnameListResponse, - CustomHostnameDeleteResponse, - CustomHostnameEditResponse, - CustomHostnameGetResponse, -) - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.custom_hostnames import custom_hostname_create_params -from cloudflare.types.custom_hostnames import custom_hostname_list_params -from cloudflare.types.custom_hostnames import custom_hostname_edit_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.custom_hostnames import ( + CustomHostnameGetResponse, + CustomHostnameEditResponse, + CustomHostnameListResponse, + CustomHostnameCreateResponse, + CustomHostnameDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_custom_nameservers.py b/tests/api_resources/test_custom_nameservers.py index b810763be..e64edbc43 100644 --- a/tests/api_resources/test_custom_nameservers.py +++ b/tests/api_resources/test_custom_nameservers.py @@ -2,26 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.custom_nameservers import ( - CustomNameserver, - CustomNameserverDeleteResponse, - CustomNameserverAvailabiltyResponse, - CustomNameserverGetResponse, -) - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.custom_nameservers import custom_nameserver_create_params +from cloudflare.types.custom_nameservers import ( + CustomNameserver, + CustomNameserverGetResponse, + CustomNameserverDeleteResponse, + CustomNameserverAvailabiltyResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_dcv_delegation.py b/tests/api_resources/test_dcv_delegation.py index 1a18a03c2..0f04ca1a8 100644 --- a/tests/api_resources/test_dcv_delegation.py +++ b/tests/api_resources/test_dcv_delegation.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.dcv_delegation import DCVDelegationUUID - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.dcv_delegation import DCVDelegationUUID base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_dnssec.py b/tests/api_resources/test_dnssec.py index 1e235de30..8b083f578 100644 --- a/tests/api_resources/test_dnssec.py +++ b/tests/api_resources/test_dnssec.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.dnssec import DNSSECDeleteResponse, DNSSEC - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.dnssec import dnssec_edit_params +from cloudflare.types.dnssec import DNSSEC, DNSSECDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_email_routing.py b/tests/api_resources/test_email_routing.py index ad23cc582..6f20c5ca8 100644 --- a/tests/api_resources/test_email_routing.py +++ b/tests/api_resources/test_email_routing.py @@ -2,22 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.email_routing import Settings - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.email_routing import email_routing_disable_params -from cloudflare.types.email_routing import email_routing_enable_params +from cloudflare.types.email_routing import Settings base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_filters.py b/tests/api_resources/test_filters.py index 009669025..153cbea4d 100644 --- a/tests/api_resources/test_filters.py +++ b/tests/api_resources/test_filters.py @@ -2,25 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.filters import FilterCreateResponse, FirewallFilter - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.filters import filter_create_params -from cloudflare.types.filters import filter_update_params -from cloudflare.types.filters import filter_list_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.filters import ( + FirewallFilter, + FilterCreateResponse, +) # pyright: reportDeprecated=false diff --git a/tests/api_resources/test_healthchecks.py b/tests/api_resources/test_healthchecks.py index a28b93809..ad0cfd03b 100644 --- a/tests/api_resources/test_healthchecks.py +++ b/tests/api_resources/test_healthchecks.py @@ -2,32 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.healthchecks import Healthcheck, HealthcheckDeleteResponse - +import os from typing import Any, cast -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.healthchecks import healthcheck_create_params -from cloudflare.types.healthchecks import healthcheck_update_params -from cloudflare.types.healthchecks import healthcheck_list_params -from cloudflare.types.healthchecks import healthcheck_edit_params -from cloudflare.types.healthchecks import HTTPConfiguration -from cloudflare.types.healthchecks import TCPConfiguration -from cloudflare.types.healthchecks import HTTPConfiguration -from cloudflare.types.healthchecks import TCPConfiguration -from cloudflare.types.healthchecks import HTTPConfiguration -from cloudflare.types.healthchecks import TCPConfiguration +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.healthchecks import ( + Healthcheck, + HealthcheckDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_ips.py b/tests/api_resources/test_ips.py index b6caabe05..e013f501f 100644 --- a/tests/api_resources/test_ips.py +++ b/tests/api_resources/test_ips.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.ips import IPListResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.ips import ip_list_params +from cloudflare.types.ips import IPListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_keyless_certificates.py b/tests/api_resources/test_keyless_certificates.py index 659d3ea5c..0dae2518f 100644 --- a/tests/api_resources/test_keyless_certificates.py +++ b/tests/api_resources/test_keyless_certificates.py @@ -2,27 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.keyless_certificates import KeylessCertificate, KeylessCertificateDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.keyless_certificates import keyless_certificate_create_params -from cloudflare.types.keyless_certificates import keyless_certificate_edit_params -from cloudflare.types.custom_hostnames import BundleMethod -from cloudflare.types.keyless_certificates import Tunnel -from cloudflare.types.keyless_certificates import Tunnel +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.keyless_certificates import ( + KeylessCertificate, + KeylessCertificateDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_load_balancers.py b/tests/api_resources/test_load_balancers.py index 357b5b663..8d71bc671 100644 --- a/tests/api_resources/test_load_balancers.py +++ b/tests/api_resources/test_load_balancers.py @@ -2,43 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.load_balancers import LoadBalancer, LoadBalancerDeleteResponse - +import os from typing import Any, cast -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.load_balancers import load_balancer_create_params -from cloudflare.types.load_balancers import load_balancer_update_params -from cloudflare.types.load_balancers import load_balancer_edit_params -from cloudflare.types.load_balancers import AdaptiveRouting -from cloudflare.types.load_balancers import LocationStrategy -from cloudflare.types.load_balancers import RandomSteering -from cloudflare.types.load_balancers import SessionAffinity -from cloudflare.types.load_balancers import SessionAffinityAttributes -from cloudflare.types.load_balancers import SteeringPolicy -from cloudflare.types.load_balancers import AdaptiveRouting -from cloudflare.types.load_balancers import LocationStrategy -from cloudflare.types.load_balancers import RandomSteering -from cloudflare.types.load_balancers import SessionAffinity -from cloudflare.types.load_balancers import SessionAffinityAttributes -from cloudflare.types.load_balancers import SteeringPolicy -from cloudflare.types.load_balancers import AdaptiveRouting -from cloudflare.types.load_balancers import LocationStrategy -from cloudflare.types.load_balancers import RandomSteering -from cloudflare.types.load_balancers import SessionAffinity -from cloudflare.types.load_balancers import SessionAffinityAttributes -from cloudflare.types.load_balancers import SteeringPolicy +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.load_balancers import ( + LoadBalancer, + LoadBalancerDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_managed_headers.py b/tests/api_resources/test_managed_headers.py index 792ad9053..0d994140e 100644 --- a/tests/api_resources/test_managed_headers.py +++ b/tests/api_resources/test_managed_headers.py @@ -2,21 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.managed_headers import ManagedHeaderListResponse, ManagedHeaderEditResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.managed_headers import managed_header_edit_params +from cloudflare.types.managed_headers import ( + ManagedHeaderEditResponse, + ManagedHeaderListResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_memberships.py b/tests/api_resources/test_memberships.py index 47ed74c17..59ef27ffd 100644 --- a/tests/api_resources/test_memberships.py +++ b/tests/api_resources/test_memberships.py @@ -2,29 +2,20 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.memberships import ( - MembershipUpdateResponse, - Membership, - MembershipDeleteResponse, - MembershipGetResponse, -) - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.memberships import membership_update_params -from cloudflare.types.memberships import membership_list_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.memberships import ( + Membership, + MembershipGetResponse, + MembershipDeleteResponse, + MembershipUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_mtls_certificates.py b/tests/api_resources/test_mtls_certificates.py index fff1f914c..666b1c3c6 100644 --- a/tests/api_resources/test_mtls_certificates.py +++ b/tests/api_resources/test_mtls_certificates.py @@ -2,23 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.mtls_certificates import MTLSCertificateCreateResponse, MTLSCertificate - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.mtls_certificates import mtls_certificate_create_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.mtls_certificates import ( + MTLSCertificate, + MTLSCertificateCreateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_origin_ca_certificates.py b/tests/api_resources/test_origin_ca_certificates.py index 7f9546f1b..7b3a4502b 100644 --- a/tests/api_resources/test_origin_ca_certificates.py +++ b/tests/api_resources/test_origin_ca_certificates.py @@ -2,26 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.origin_ca_certificates import OriginCACertificate, OriginCACertificateDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.origin_ca_certificates import origin_ca_certificate_create_params -from cloudflare.types.origin_ca_certificates import origin_ca_certificate_list_params -from cloudflare.types import shared -from cloudflare.types.ssl import RequestValidity +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.origin_ca_certificates import ( + OriginCACertificate, + OriginCACertificateDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_origin_post_quantum_encryption.py b/tests/api_resources/test_origin_post_quantum_encryption.py index 75a3f32a3..bfe684e38 100644 --- a/tests/api_resources/test_origin_post_quantum_encryption.py +++ b/tests/api_resources/test_origin_post_quantum_encryption.py @@ -2,19 +2,13 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - import os +from typing import Any, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.origin_post_quantum_encryption import origin_post_quantum_encryption_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_origin_tls_client_auth.py b/tests/api_resources/test_origin_tls_client_auth.py index ef33f05c2..082f3cdab 100644 --- a/tests/api_resources/test_origin_tls_client_auth.py +++ b/tests/api_resources/test_origin_tls_client_auth.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.origin_tls_client_auth import ZoneAuthenticatedOriginPull - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.origin_tls_client_auth import origin_tls_client_auth_create_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.origin_tls_client_auth import ZoneAuthenticatedOriginPull base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_page_shield.py b/tests/api_resources/test_page_shield.py index 5245c3828..2511ba986 100644 --- a/tests/api_resources/test_page_shield.py +++ b/tests/api_resources/test_page_shield.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.page_shield import PageShieldUpdateResponse, Setting - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.page_shield import page_shield_update_params +from cloudflare.types.page_shield import Setting, PageShieldUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_pagerules.py b/tests/api_resources/test_pagerules.py index b8cc8651e..95d2c25a1 100644 --- a/tests/api_resources/test_pagerules.py +++ b/tests/api_resources/test_pagerules.py @@ -2,31 +2,21 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.pagerules import ( - PageruleCreateResponse, - PageruleUpdateResponse, - PageruleListResponse, - PageruleDeleteResponse, - PageruleEditResponse, - PageruleGetResponse, -) - -from typing import Any, cast, Optional - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.pagerules import pagerule_create_params -from cloudflare.types.pagerules import pagerule_update_params -from cloudflare.types.pagerules import pagerule_list_params -from cloudflare.types.pagerules import pagerule_edit_params +from cloudflare.types.pagerules import ( + PageruleGetResponse, + PageruleEditResponse, + PageruleListResponse, + PageruleCreateResponse, + PageruleDeleteResponse, + PageruleUpdateResponse, +) # pyright: reportDeprecated=false diff --git a/tests/api_resources/test_pcaps.py b/tests/api_resources/test_pcaps.py index 5562379c0..43798f1c5 100644 --- a/tests/api_resources/test_pcaps.py +++ b/tests/api_resources/test_pcaps.py @@ -2,25 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.pcaps import PCAPCreateResponse, PCAPListResponse, PCAPGetResponse - +import os from typing import Any, cast -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.pcaps import pcap_create_params -from cloudflare.types.pcaps import PCAPFilter -from cloudflare.types.pcaps import PCAPFilter +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.pcaps import PCAPGetResponse, PCAPListResponse, PCAPCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_plans.py b/tests/api_resources/test_plans.py index 8a7612a89..df531fae5 100644 --- a/tests/api_resources/test_plans.py +++ b/tests/api_resources/test_plans.py @@ -2,22 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.plans import AvailableRatePlan - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.plans import AvailableRatePlan base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_queues.py b/tests/api_resources/test_queues.py index 875185d6b..c06566b31 100644 --- a/tests/api_resources/test_queues.py +++ b/tests/api_resources/test_queues.py @@ -2,24 +2,20 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.queues import QueueCreated, QueueUpdated, Queue, QueueDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.queues import queue_create_params -from cloudflare.types.queues import queue_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.queues import ( + Queue, + QueueCreated, + QueueUpdated, + QueueDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_rate_limits.py b/tests/api_resources/test_rate_limits.py index 6844d1790..56ca77f13 100644 --- a/tests/api_resources/test_rate_limits.py +++ b/tests/api_resources/test_rate_limits.py @@ -2,31 +2,21 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.rate_limits import ( - RateLimitCreateResponse, - RateLimit, - RateLimitDeleteResponse, - RateLimitEditResponse, - RateLimitGetResponse, -) - +import os from typing import Any, cast -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.rate_limits import rate_limit_create_params -from cloudflare.types.rate_limits import rate_limit_list_params -from cloudflare.types.rate_limits import rate_limit_edit_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.rate_limits import ( + RateLimit, + RateLimitGetResponse, + RateLimitEditResponse, + RateLimitCreateResponse, + RateLimitDeleteResponse, +) # pyright: reportDeprecated=false diff --git a/tests/api_resources/test_rate_plans.py b/tests/api_resources/test_rate_plans.py index e400f97fd..c08647db6 100644 --- a/tests/api_resources/test_rate_plans.py +++ b/tests/api_resources/test_rate_plans.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.rate_plans import RatePlanGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.rate_plans import RatePlanGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_rulesets.py b/tests/api_resources/test_rulesets.py index 593568045..fcf5d17cb 100644 --- a/tests/api_resources/test_rulesets.py +++ b/tests/api_resources/test_rulesets.py @@ -2,33 +2,20 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.rulesets import ( - RulesetCreateResponse, - RulesetUpdateResponse, - RulesetListResponse, - RulesetGetResponse, -) - +import os from typing import Any, cast -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.rulesets import ruleset_create_params -from cloudflare.types.rulesets import ruleset_update_params -from cloudflare.types.rulesets import Kind -from cloudflare.types.rulesets import Phase -from cloudflare.types.rulesets import Kind -from cloudflare.types.rulesets import Phase +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.rulesets import ( + RulesetGetResponse, + RulesetListResponse, + RulesetCreateResponse, + RulesetUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_snippets.py b/tests/api_resources/test_snippets.py index 727ca2c23..25af699ed 100644 --- a/tests/api_resources/test_snippets.py +++ b/tests/api_resources/test_snippets.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.snippets import Snippet, SnippetDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.snippets import snippet_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.snippets import Snippet, SnippetDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_stream.py b/tests/api_resources/test_stream.py index 5e89c7286..da0f17b6b 100644 --- a/tests/api_resources/test_stream.py +++ b/tests/api_resources/test_stream.py @@ -2,28 +2,16 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Any, cast, Optional - -from cloudflare.types.stream import Video - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.stream import stream_create_params -from cloudflare.types.stream import stream_list_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.stream import Video base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_subscriptions.py b/tests/api_resources/test_subscriptions.py index c66c20b77..ad896fd76 100644 --- a/tests/api_resources/test_subscriptions.py +++ b/tests/api_resources/test_subscriptions.py @@ -2,33 +2,21 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.subscriptions import ( - SubscriptionCreateResponse, - SubscriptionUpdateResponse, - SubscriptionDeleteResponse, - SubscriptionGetResponse, -) - +import os from typing import Any, cast -from cloudflare.types.user import Subscription - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.subscriptions import subscription_create_params -from cloudflare.types.subscriptions import subscription_update_params -from cloudflare.types.user import RatePlan -from cloudflare.types.user import RatePlan +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.user import Subscription +from cloudflare.types.subscriptions import ( + SubscriptionGetResponse, + SubscriptionCreateResponse, + SubscriptionDeleteResponse, + SubscriptionUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_url_normalization.py b/tests/api_resources/test_url_normalization.py index 785d96acb..bd0ad470a 100644 --- a/tests/api_resources/test_url_normalization.py +++ b/tests/api_resources/test_url_normalization.py @@ -2,21 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.url_normalization import URLNormalizationUpdateResponse, URLNormalizationGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.url_normalization import url_normalization_update_params +from cloudflare.types.url_normalization import ( + URLNormalizationGetResponse, + URLNormalizationUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_url_scanner.py b/tests/api_resources/test_url_scanner.py index bea5c9917..452d2b50d 100644 --- a/tests/api_resources/test_url_scanner.py +++ b/tests/api_resources/test_url_scanner.py @@ -2,25 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.url_scanner import URLScannerScanResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.url_scanner import url_scanner_scan_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.url_scanner import URLScannerScanResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_user.py b/tests/api_resources/test_user.py index dd9a20884..1ffbb87e3 100644 --- a/tests/api_resources/test_user.py +++ b/tests/api_resources/test_user.py @@ -2,19 +2,13 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - import os +from typing import Any, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.user import user_edit_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_waiting_rooms.py b/tests/api_resources/test_waiting_rooms.py index e5e1335d4..c0df210af 100644 --- a/tests/api_resources/test_waiting_rooms.py +++ b/tests/api_resources/test_waiting_rooms.py @@ -2,29 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.waiting_rooms import WaitingRoom, WaitingRoomDeleteResponse - +import os from typing import Any, cast -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.waiting_rooms import waiting_room_create_params -from cloudflare.types.waiting_rooms import waiting_room_update_params -from cloudflare.types.waiting_rooms import waiting_room_list_params -from cloudflare.types.waiting_rooms import waiting_room_edit_params -from cloudflare.types.waiting_rooms import CookieAttributes -from cloudflare.types.waiting_rooms import CookieAttributes -from cloudflare.types.waiting_rooms import CookieAttributes +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.waiting_rooms import ( + WaitingRoom, + WaitingRoomDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_warp_connector.py b/tests/api_resources/test_warp_connector.py index c386adf6a..782737434 100644 --- a/tests/api_resources/test_warp_connector.py +++ b/tests/api_resources/test_warp_connector.py @@ -2,38 +2,23 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.warp_connector import ( - WARPConnectorCreateResponse, - WARPConnectorListResponse, - WARPConnectorDeleteResponse, - WARPConnectorEditResponse, - WARPConnectorGetResponse, - WARPConnectorTokenResponse, -) - +import os from typing import Any, cast -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.warp_connector import warp_connector_create_params -from cloudflare.types.warp_connector import warp_connector_list_params -from cloudflare.types.warp_connector import warp_connector_edit_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.warp_connector import ( + WARPConnectorGetResponse, + WARPConnectorEditResponse, + WARPConnectorListResponse, + WARPConnectorTokenResponse, + WARPConnectorCreateResponse, + WARPConnectorDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_zones.py b/tests/api_resources/test_zones.py index fa924cbe9..bf6924494 100644 --- a/tests/api_resources/test_zones.py +++ b/tests/api_resources/test_zones.py @@ -2,26 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zones import Zone, ZoneDeleteResponse - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones import zone_create_params -from cloudflare.types.zones import zone_list_params -from cloudflare.types.zones import zone_edit_params -from cloudflare.types.zones import Type +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.zones import ( + Zone, + ZoneDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/url_scanner/test_scans.py b/tests/api_resources/url_scanner/test_scans.py index bab22a0cd..371efa725 100644 --- a/tests/api_resources/url_scanner/test_scans.py +++ b/tests/api_resources/url_scanner/test_scans.py @@ -2,30 +2,26 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.url_scanner import ScanCreateResponse, ScanGetResponse, ScanHarResponse - +import os from typing import Any, cast -from cloudflare._response import ( - BinaryAPIResponse, - StreamedBinaryAPIResponse, - AsyncBinaryAPIResponse, - AsyncStreamedBinaryAPIResponse, -) - -import os -import pytest import httpx -from typing_extensions import get_args -from typing import Optional +import pytest from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.url_scanner import scan_create_params -from cloudflare.types.url_scanner import scan_get_params -from cloudflare.types.url_scanner import scan_screenshot_params +from cloudflare._response import ( + BinaryAPIResponse, + AsyncBinaryAPIResponse, + StreamedBinaryAPIResponse, + AsyncStreamedBinaryAPIResponse, +) +from cloudflare.types.url_scanner import ( + ScanGetResponse, + ScanHarResponse, + ScanCreateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/user/billing/test_history.py b/tests/api_resources/user/billing/test_history.py index f20a574fe..5d6ad7308 100644 --- a/tests/api_resources/user/billing/test_history.py +++ b/tests/api_resources/user/billing/test_history.py @@ -2,25 +2,16 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.user.billing import BillingHistory - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.user.billing import history_list_params -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.user.billing import BillingHistory base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/user/billing/test_profile.py b/tests/api_resources/user/billing/test_profile.py index c92fce142..1436c46dd 100644 --- a/tests/api_resources/user/billing/test_profile.py +++ b/tests/api_resources/user/billing/test_profile.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.user.billing import ProfileGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.user.billing import ProfileGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/user/test_audit_logs.py b/tests/api_resources/user/test_audit_logs.py index bb9bee5b9..7793f9db7 100644 --- a/tests/api_resources/user/test_audit_logs.py +++ b/tests/api_resources/user/test_audit_logs.py @@ -2,27 +2,16 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.shared import AuditLog - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.user import audit_log_list_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.shared import AuditLog base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/user/test_invites.py b/tests/api_resources/user/test_invites.py index 41e8843de..9e47db517 100644 --- a/tests/api_resources/user/test_invites.py +++ b/tests/api_resources/user/test_invites.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.user import Invite - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -from typing import Any, cast, Optional - import os +from typing import Any, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.user import invite_edit_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.user import Invite base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/user/test_organizations.py b/tests/api_resources/user/test_organizations.py index c6bc941ac..dcdc643c0 100644 --- a/tests/api_resources/user/test_organizations.py +++ b/tests/api_resources/user/test_organizations.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.user import Organization, OrganizationDeleteResponse - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -from typing import Any, cast, Optional - import os +from typing import Any, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.user import organization_list_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.user import Organization, OrganizationDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/user/test_subscriptions.py b/tests/api_resources/user/test_subscriptions.py index 378dbedce..a2ec6c2b6 100644 --- a/tests/api_resources/user/test_subscriptions.py +++ b/tests/api_resources/user/test_subscriptions.py @@ -2,22 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.user import SubscriptionUpdateResponse, SubscriptionDeleteResponse, SubscriptionGetResponse - -from typing import Any, cast, Optional - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.user import subscription_update_params -from cloudflare.types.user import RatePlan +from cloudflare.types.user import ( + SubscriptionGetResponse, + SubscriptionDeleteResponse, + SubscriptionUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/user/test_tokens.py b/tests/api_resources/user/test_tokens.py index 47c9442ba..eab7d1581 100644 --- a/tests/api_resources/user/test_tokens.py +++ b/tests/api_resources/user/test_tokens.py @@ -2,40 +2,23 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.user import ( - TokenCreateResponse, - TokenUpdateResponse, - TokenListResponse, - TokenDeleteResponse, - TokenGetResponse, - TokenVerifyResponse, -) - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.user import token_create_params -from cloudflare.types.user import token_update_params -from cloudflare.types.user import token_list_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.user import ( + TokenGetResponse, + TokenListResponse, + TokenCreateResponse, + TokenDeleteResponse, + TokenUpdateResponse, + TokenVerifyResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/user/tokens/test_permission_groups.py b/tests/api_resources/user/tokens/test_permission_groups.py index 137506660..f92a3cb18 100644 --- a/tests/api_resources/user/tokens/test_permission_groups.py +++ b/tests/api_resources/user/tokens/test_permission_groups.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/user/tokens/test_value.py b/tests/api_resources/user/tokens/test_value.py index d5b4dfb41..5c9bcb3fe 100644 --- a/tests/api_resources/user/tokens/test_value.py +++ b/tests/api_resources/user/tokens/test_value.py @@ -2,21 +2,13 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.user.tokens import Value - import os +from typing import Any, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.user.tokens import value_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/vectorize/indexes/test_metadata_index.py b/tests/api_resources/vectorize/indexes/test_metadata_index.py index 947c41c1c..2c9135478 100644 --- a/tests/api_resources/vectorize/indexes/test_metadata_index.py +++ b/tests/api_resources/vectorize/indexes/test_metadata_index.py @@ -2,26 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.vectorize.indexes import ( - MetadataIndexCreateResponse, - MetadataIndexListResponse, - MetadataIndexDeleteResponse, -) - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.vectorize.indexes import metadata_index_create_params -from cloudflare.types.vectorize.indexes import metadata_index_delete_params +from cloudflare.types.vectorize.indexes import ( + MetadataIndexListResponse, + MetadataIndexCreateResponse, + MetadataIndexDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/vectorize/test_indexes.py b/tests/api_resources/vectorize/test_indexes.py index 040f4abd6..272871b44 100644 --- a/tests/api_resources/vectorize/test_indexes.py +++ b/tests/api_resources/vectorize/test_indexes.py @@ -2,36 +2,23 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.vectorize import ( - CreateIndex, - IndexDeleteResponse, - IndexDeleteByIDsResponse, - IndexInfoResponse, - IndexInsertResponse, - IndexQueryResponse, - IndexUpsertResponse, -) - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.vectorize import index_create_params -from cloudflare.types.vectorize import index_delete_by_ids_params -from cloudflare.types.vectorize import index_get_by_ids_params -from cloudflare.types.vectorize import index_insert_params -from cloudflare.types.vectorize import index_query_params -from cloudflare.types.vectorize import index_upsert_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.vectorize import ( + CreateIndex, + IndexInfoResponse, + IndexQueryResponse, + IndexDeleteResponse, + IndexInsertResponse, + IndexUpsertResponse, + IndexDeleteByIDsResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/waiting_rooms/events/test_details.py b/tests/api_resources/waiting_rooms/events/test_details.py index 56b226fb5..c164f78f6 100644 --- a/tests/api_resources/waiting_rooms/events/test_details.py +++ b/tests/api_resources/waiting_rooms/events/test_details.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.waiting_rooms.events import DetailGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.waiting_rooms.events import DetailGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/waiting_rooms/test_events.py b/tests/api_resources/waiting_rooms/test_events.py index 7cc62a382..a47a21dc5 100644 --- a/tests/api_resources/waiting_rooms/test_events.py +++ b/tests/api_resources/waiting_rooms/test_events.py @@ -2,26 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.waiting_rooms import Event, EventDeleteResponse - +import os from typing import Any, cast -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.waiting_rooms import event_create_params -from cloudflare.types.waiting_rooms import event_update_params -from cloudflare.types.waiting_rooms import event_list_params -from cloudflare.types.waiting_rooms import event_edit_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.waiting_rooms import ( + Event, + EventDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/waiting_rooms/test_page.py b/tests/api_resources/waiting_rooms/test_page.py index 7b97951d1..881d9a3a9 100644 --- a/tests/api_resources/waiting_rooms/test_page.py +++ b/tests/api_resources/waiting_rooms/test_page.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.waiting_rooms import PagePreviewResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.waiting_rooms import page_preview_params +from cloudflare.types.waiting_rooms import PagePreviewResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/waiting_rooms/test_rules.py b/tests/api_resources/waiting_rooms/test_rules.py index 49c05d3ab..872d11a81 100644 --- a/tests/api_resources/waiting_rooms/test_rules.py +++ b/tests/api_resources/waiting_rooms/test_rules.py @@ -2,29 +2,20 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.waiting_rooms import ( - RuleCreateResponse, - RuleUpdateResponse, - RuleDeleteResponse, - RuleEditResponse, - RuleGetResponse, -) - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.waiting_rooms import rule_create_params -from cloudflare.types.waiting_rooms import rule_update_params -from cloudflare.types.waiting_rooms import rule_edit_params +from cloudflare.types.waiting_rooms import ( + RuleGetResponse, + RuleEditResponse, + RuleCreateResponse, + RuleDeleteResponse, + RuleUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/waiting_rooms/test_settings.py b/tests/api_resources/waiting_rooms/test_settings.py index 750dc8b2b..823c9e020 100644 --- a/tests/api_resources/waiting_rooms/test_settings.py +++ b/tests/api_resources/waiting_rooms/test_settings.py @@ -2,22 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.waiting_rooms import SettingUpdateResponse, SettingEditResponse, SettingGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.waiting_rooms import setting_update_params -from cloudflare.types.waiting_rooms import setting_edit_params +from cloudflare.types.waiting_rooms import ( + SettingGetResponse, + SettingEditResponse, + SettingUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/waiting_rooms/test_statuses.py b/tests/api_resources/waiting_rooms/test_statuses.py index 62b059a4b..5ca8f12db 100644 --- a/tests/api_resources/waiting_rooms/test_statuses.py +++ b/tests/api_resources/waiting_rooms/test_statuses.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.waiting_rooms import StatusGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.waiting_rooms import StatusGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/web3/hostnames/ipfs_universal_paths/content_lists/test_entries.py b/tests/api_resources/web3/hostnames/ipfs_universal_paths/content_lists/test_entries.py index 6285ddf90..b4f323177 100644 --- a/tests/api_resources/web3/hostnames/ipfs_universal_paths/content_lists/test_entries.py +++ b/tests/api_resources/web3/hostnames/ipfs_universal_paths/content_lists/test_entries.py @@ -2,28 +2,20 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.web3.hostnames.ipfs_universal_paths.content_lists import ( - EntryCreateResponse, - EntryUpdateResponse, - EntryListResponse, - EntryDeleteResponse, - EntryGetResponse, -) - -from typing import Any, cast, Optional - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.web3.hostnames.ipfs_universal_paths.content_lists import entry_create_params -from cloudflare.types.web3.hostnames.ipfs_universal_paths.content_lists import entry_update_params +from cloudflare.types.web3.hostnames.ipfs_universal_paths.content_lists import ( + EntryGetResponse, + EntryListResponse, + EntryCreateResponse, + EntryDeleteResponse, + EntryUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/web3/hostnames/ipfs_universal_paths/test_content_lists.py b/tests/api_resources/web3/hostnames/ipfs_universal_paths/test_content_lists.py index 50b66248f..8961da1e9 100644 --- a/tests/api_resources/web3/hostnames/ipfs_universal_paths/test_content_lists.py +++ b/tests/api_resources/web3/hostnames/ipfs_universal_paths/test_content_lists.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.web3.hostnames.ipfs_universal_paths import ContentList - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.web3.hostnames.ipfs_universal_paths import content_list_update_params +from cloudflare.types.web3.hostnames.ipfs_universal_paths import ContentList base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/web3/test_hostnames.py b/tests/api_resources/web3/test_hostnames.py index 446da5e98..ade462cc8 100644 --- a/tests/api_resources/web3/test_hostnames.py +++ b/tests/api_resources/web3/test_hostnames.py @@ -2,24 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.web3 import Hostname, HostnameDeleteResponse - -from typing import Any, cast, Optional - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.web3 import hostname_create_params -from cloudflare.types.web3 import hostname_edit_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.web3 import Hostname, HostnameDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/ai/models/test_schema.py b/tests/api_resources/workers/ai/models/test_schema.py index 6e47ee79b..a815dc1f7 100644 --- a/tests/api_resources/workers/ai/models/test_schema.py +++ b/tests/api_resources/workers/ai/models/test_schema.py @@ -2,19 +2,13 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers.ai.models import schema_get_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/scripts/test_content.py b/tests/api_resources/workers/scripts/test_content.py index 746fb300c..1863b3a06 100644 --- a/tests/api_resources/workers/scripts/test_content.py +++ b/tests/api_resources/workers/scripts/test_content.py @@ -2,29 +2,22 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.workers import Script - -from cloudflare._response import ( - BinaryAPIResponse, - StreamedBinaryAPIResponse, - AsyncBinaryAPIResponse, - AsyncStreamedBinaryAPIResponse, -) - import os -import pytest +from typing import Any, Optional, cast + import httpx -from typing_extensions import get_args -from typing import Optional +import pytest from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers.scripts import content_update_params -from cloudflare.types.workers import WorkerMetadata +from cloudflare._response import ( + BinaryAPIResponse, + AsyncBinaryAPIResponse, + StreamedBinaryAPIResponse, + AsyncStreamedBinaryAPIResponse, +) +from cloudflare.types.workers import Script base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/scripts/test_deployments.py b/tests/api_resources/workers/scripts/test_deployments.py index 9d806498c..e9305d4cf 100644 --- a/tests/api_resources/workers/scripts/test_deployments.py +++ b/tests/api_resources/workers/scripts/test_deployments.py @@ -2,22 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.workers.scripts import DeploymentCreateResponse, DeploymentGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers.scripts import deployment_create_params -from cloudflare.types.workers.scripts import Deployment +from cloudflare.types.workers.scripts import ( + DeploymentGetResponse, + DeploymentCreateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/scripts/test_schedules.py b/tests/api_resources/workers/scripts/test_schedules.py index 1e56c7087..934df4d58 100644 --- a/tests/api_resources/workers/scripts/test_schedules.py +++ b/tests/api_resources/workers/scripts/test_schedules.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.workers.scripts import ScheduleUpdateResponse, ScheduleGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers.scripts import schedule_update_params +from cloudflare.types.workers.scripts import ScheduleGetResponse, ScheduleUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/scripts/test_settings.py b/tests/api_resources/workers/scripts/test_settings.py index 0351266ca..6ebf3373c 100644 --- a/tests/api_resources/workers/scripts/test_settings.py +++ b/tests/api_resources/workers/scripts/test_settings.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.workers import ScriptSetting - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers.scripts import setting_edit_params +from cloudflare.types.workers import ScriptSetting base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/scripts/test_tail.py b/tests/api_resources/workers/scripts/test_tail.py index 2a3f79235..34740c57e 100644 --- a/tests/api_resources/workers/scripts/test_tail.py +++ b/tests/api_resources/workers/scripts/test_tail.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.workers.scripts import TailCreateResponse, TailDeleteResponse, TailGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers.scripts import tail_create_params +from cloudflare.types.workers.scripts import TailGetResponse, TailCreateResponse, TailDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/scripts/test_versions.py b/tests/api_resources/workers/scripts/test_versions.py index dc4097b92..4a0d47fbd 100644 --- a/tests/api_resources/workers/scripts/test_versions.py +++ b/tests/api_resources/workers/scripts/test_versions.py @@ -2,24 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.workers.scripts import VersionCreateResponse, VersionListResponse, VersionGetResponse - -from cloudflare.pagination import SyncV4PagePagination, AsyncV4PagePagination - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers.scripts import version_create_params -from cloudflare.types.workers.scripts import version_list_params +from cloudflare.pagination import SyncV4PagePagination, AsyncV4PagePagination +from cloudflare.types.workers.scripts import ( + VersionGetResponse, + VersionListResponse, + VersionCreateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/test_account_settings.py b/tests/api_resources/workers/test_account_settings.py index 8e22c2d42..448c02b83 100644 --- a/tests/api_resources/workers/test_account_settings.py +++ b/tests/api_resources/workers/test_account_settings.py @@ -2,21 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.workers import AccountSettingUpdateResponse, AccountSettingGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers import account_setting_update_params +from cloudflare.types.workers import ( + AccountSettingGetResponse, + AccountSettingUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/test_ai.py b/tests/api_resources/workers/test_ai.py index efb7e76e5..93152b6bd 100644 --- a/tests/api_resources/workers/test_ai.py +++ b/tests/api_resources/workers/test_ai.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.workers import AIRunResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers import ai_run_params +from cloudflare.types.workers import AIRunResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/test_domains.py b/tests/api_resources/workers/test_domains.py index 3315fa7fd..1bbc559f8 100644 --- a/tests/api_resources/workers/test_domains.py +++ b/tests/api_resources/workers/test_domains.py @@ -2,24 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.workers import Domain - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers import domain_update_params -from cloudflare.types.workers import domain_list_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.workers import Domain base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/test_scripts.py b/tests/api_resources/workers/test_scripts.py index 80292fc3f..7d9721f98 100644 --- a/tests/api_resources/workers/test_scripts.py +++ b/tests/api_resources/workers/test_scripts.py @@ -2,31 +2,23 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.workers import ScriptUpdateResponse, Script - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -from cloudflare._response import ( - BinaryAPIResponse, - StreamedBinaryAPIResponse, - AsyncBinaryAPIResponse, - AsyncStreamedBinaryAPIResponse, -) - import os -import pytest +from typing import Any, Optional, cast + import httpx -from typing_extensions import get_args -from typing import Optional +import pytest from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers import script_update_params -from cloudflare.types.workers import script_delete_params +from cloudflare._response import ( + BinaryAPIResponse, + AsyncBinaryAPIResponse, + StreamedBinaryAPIResponse, + AsyncStreamedBinaryAPIResponse, +) +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.workers import Script, ScriptUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/test_subdomains.py b/tests/api_resources/workers/test_subdomains.py index 46d8a0376..0132625fa 100644 --- a/tests/api_resources/workers/test_subdomains.py +++ b/tests/api_resources/workers/test_subdomains.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.workers import SubdomainUpdateResponse, SubdomainGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers import subdomain_update_params +from cloudflare.types.workers import SubdomainGetResponse, SubdomainUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_bindings.py b/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_bindings.py index c9e511951..90c53166d 100644 --- a/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_bindings.py +++ b/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_bindings.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import BindingGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import BindingGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_content.py b/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_content.py index e14fa03d9..f120ae9e8 100644 --- a/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_content.py +++ b/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_content.py @@ -2,29 +2,22 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.workers import Script - -from cloudflare._response import ( - BinaryAPIResponse, - StreamedBinaryAPIResponse, - AsyncBinaryAPIResponse, - AsyncStreamedBinaryAPIResponse, -) - import os -import pytest +from typing import Any, Optional, cast + import httpx -from typing_extensions import get_args -from typing import Optional +import pytest from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import content_update_params -from cloudflare.types.workers import WorkerMetadata +from cloudflare._response import ( + BinaryAPIResponse, + AsyncBinaryAPIResponse, + StreamedBinaryAPIResponse, + AsyncStreamedBinaryAPIResponse, +) +from cloudflare.types.workers import Script base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_secrets.py b/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_secrets.py index b39621e5a..143914b50 100644 --- a/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_secrets.py +++ b/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_secrets.py @@ -2,27 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import ( - SecretUpdateResponse, - SecretListResponse, - SecretGetResponse, -) - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import secret_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import ( + SecretGetResponse, + SecretListResponse, + SecretUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_settings.py b/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_settings.py index 01dba5ca0..db2aad7fb 100644 --- a/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_settings.py +++ b/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_settings.py @@ -2,21 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import SettingEditResponse, SettingGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import setting_edit_params +from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import ( + SettingGetResponse, + SettingEditResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_tags.py b/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_tags.py index c37555bac..382d4d2b3 100644 --- a/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_tags.py +++ b/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_tags.py @@ -2,23 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import TagUpdateResponse, TagListResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import tag_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import ( + TagListResponse, + TagUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers_for_platforms/dispatch/namespaces/test_scripts.py b/tests/api_resources/workers_for_platforms/dispatch/namespaces/test_scripts.py index eb9ada7f0..a9ce7bb3d 100644 --- a/tests/api_resources/workers_for_platforms/dispatch/namespaces/test_scripts.py +++ b/tests/api_resources/workers_for_platforms/dispatch/namespaces/test_scripts.py @@ -2,22 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.workers_for_platforms.dispatch.namespaces import ScriptUpdateResponse, Script - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers_for_platforms.dispatch.namespaces import script_update_params -from cloudflare.types.workers_for_platforms.dispatch.namespaces import script_delete_params +from cloudflare.types.workers_for_platforms.dispatch.namespaces import ( + Script, + ScriptUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers_for_platforms/dispatch/test_namespaces.py b/tests/api_resources/workers_for_platforms/dispatch/test_namespaces.py index fb8a9d10e..df9749cb2 100644 --- a/tests/api_resources/workers_for_platforms/dispatch/test_namespaces.py +++ b/tests/api_resources/workers_for_platforms/dispatch/test_namespaces.py @@ -2,27 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.workers_for_platforms.dispatch import ( - NamespaceCreateResponse, - NamespaceListResponse, - NamespaceGetResponse, -) - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers_for_platforms.dispatch import namespace_create_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.workers_for_platforms.dispatch import ( + NamespaceGetResponse, + NamespaceListResponse, + NamespaceCreateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/applications/policy_tests/test_users.py b/tests/api_resources/zero_trust/access/applications/policy_tests/test_users.py index 3fc55767f..ab93135bd 100755 --- a/tests/api_resources/zero_trust/access/applications/policy_tests/test_users.py +++ b/tests/api_resources/zero_trust/access/applications/policy_tests/test_users.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.zero_trust.access.applications.policy_tests import UserListResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.zero_trust.access.applications.policy_tests import UserListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") 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 9b536eccd..24a86014f 100644 --- a/tests/api_resources/zero_trust/access/applications/test_cas.py +++ b/tests/api_resources/zero_trust/access/applications/test_cas.py @@ -2,22 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.access.applications import CA, CADeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.access.applications import CA, CADeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/applications/test_policies.py b/tests/api_resources/zero_trust/access/applications/test_policies.py index 1cc3bda8f..a86887bf6 100644 --- a/tests/api_resources/zero_trust/access/applications/test_policies.py +++ b/tests/api_resources/zero_trust/access/applications/test_policies.py @@ -2,28 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.access import ApplicationPolicy - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -from cloudflare.types.zero_trust.access.applications import PolicyDeleteResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.access.applications import policy_create_params -from cloudflare.types.zero_trust.access.applications import policy_update_params -from cloudflare.types.zero_trust.access import Decision -from cloudflare.types.zero_trust.access import Decision +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.access import ApplicationPolicy +from cloudflare.types.zero_trust.access.applications import ( + PolicyDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/applications/test_policy_tests.py b/tests/api_resources/zero_trust/access/applications/test_policy_tests.py index 4f82bac33..50b3fdec4 100755 --- a/tests/api_resources/zero_trust/access/applications/test_policy_tests.py +++ b/tests/api_resources/zero_trust/access/applications/test_policy_tests.py @@ -2,22 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.zero_trust.access.applications import PolicyTestCreateResponse, PolicyTestGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.access.applications import policy_test_create_params -from cloudflare.types.zero_trust.access import Decision +from cloudflare.types.zero_trust.access.applications import ( + PolicyTestGetResponse, + PolicyTestCreateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/applications/test_user_policy_checks.py b/tests/api_resources/zero_trust/access/applications/test_user_policy_checks.py index 2d6dc4d0c..44c728649 100644 --- a/tests/api_resources/zero_trust/access/applications/test_user_policy_checks.py +++ b/tests/api_resources/zero_trust/access/applications/test_user_policy_checks.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.access.applications import UserPolicyCheckListResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.access import AppID +from cloudflare.types.zero_trust.access.applications import UserPolicyCheckListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/certificates/test_settings.py b/tests/api_resources/zero_trust/access/certificates/test_settings.py index 24f8a34aa..b7b66bf60 100644 --- a/tests/api_resources/zero_trust/access/certificates/test_settings.py +++ b/tests/api_resources/zero_trust/access/certificates/test_settings.py @@ -2,21 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.access.certificates import SettingUpdateResponse, SettingGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.access.certificates import setting_update_params +from cloudflare.types.zero_trust.access.certificates import ( + SettingGetResponse, + SettingUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/logs/test_access_requests.py b/tests/api_resources/zero_trust/access/logs/test_access_requests.py index efb21eb1d..3eafad4f1 100644 --- a/tests/api_resources/zero_trust/access/logs/test_access_requests.py +++ b/tests/api_resources/zero_trust/access/logs/test_access_requests.py @@ -2,25 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.access.logs import AccessRequestListResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.access.logs import access_request_list_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.types.zero_trust.access.logs import AccessRequestListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/test_applications.py b/tests/api_resources/zero_trust/access/test_applications.py index b56f2f164..56688c6cf 100644 --- a/tests/api_resources/zero_trust/access/test_applications.py +++ b/tests/api_resources/zero_trust/access/test_applications.py @@ -2,53 +2,21 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.access import ( - ApplicationCreateResponse, - ApplicationUpdateResponse, - ApplicationListResponse, - ApplicationDeleteResponse, - ApplicationGetResponse, -) - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.access import application_create_params -from cloudflare.types.zero_trust.access import application_update_params -from cloudflare.types.zero_trust.access import CORSHeaders -from cloudflare.types.zero_trust.access import CORSHeaders -from cloudflare.types.zero_trust.access import CORSHeaders -from cloudflare.types.zero_trust.access import ApplicationType -from cloudflare.types.zero_trust.access import ApplicationType -from cloudflare.types.zero_trust.access import ApplicationType -from cloudflare.types.zero_trust.access import AppID -from cloudflare.types.zero_trust.access import CORSHeaders -from cloudflare.types.zero_trust.access import AppID -from cloudflare.types.zero_trust.access import AppID -from cloudflare.types.zero_trust.access import CORSHeaders -from cloudflare.types.zero_trust.access import AppID -from cloudflare.types.zero_trust.access import CORSHeaders -from cloudflare.types.zero_trust.access import AppID -from cloudflare.types.zero_trust.access import ApplicationType -from cloudflare.types.zero_trust.access import AppID -from cloudflare.types.zero_trust.access import ApplicationType -from cloudflare.types.zero_trust.access import AppID -from cloudflare.types.zero_trust.access import ApplicationType -from cloudflare.types.zero_trust.access import AppID -from cloudflare.types.zero_trust.access import AppID -from cloudflare.types.zero_trust.access import AppID -from cloudflare.types.zero_trust.access import AppID +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.access import ( + ApplicationGetResponse, + ApplicationListResponse, + ApplicationCreateResponse, + ApplicationDeleteResponse, + ApplicationUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/test_bookmarks.py b/tests/api_resources/zero_trust/access/test_bookmarks.py index 175148301..2e04d6c5a 100644 --- a/tests/api_resources/zero_trust/access/test_bookmarks.py +++ b/tests/api_resources/zero_trust/access/test_bookmarks.py @@ -2,24 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.access import Bookmark, BookmarkDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.access import bookmark_create_params -from cloudflare.types.zero_trust.access import bookmark_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.access import ( + Bookmark, + BookmarkDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/test_certificates.py b/tests/api_resources/zero_trust/access/test_certificates.py index c2aa9e578..a6a37770c 100644 --- a/tests/api_resources/zero_trust/access/test_certificates.py +++ b/tests/api_resources/zero_trust/access/test_certificates.py @@ -2,24 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.access import Certificate, CertificateDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.access import certificate_create_params -from cloudflare.types.zero_trust.access import certificate_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.access import ( + Certificate, + CertificateDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/test_custom_pages.py b/tests/api_resources/zero_trust/access/test_custom_pages.py index 5962c1f9b..b21a942f7 100644 --- a/tests/api_resources/zero_trust/access/test_custom_pages.py +++ b/tests/api_resources/zero_trust/access/test_custom_pages.py @@ -2,24 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.access import CustomPageWithoutHTML, CustomPageDeleteResponse, CustomPage - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.access import custom_page_create_params -from cloudflare.types.zero_trust.access import custom_page_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.access import ( + CustomPage, + CustomPageWithoutHTML, + CustomPageDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/test_groups.py b/tests/api_resources/zero_trust/access/test_groups.py index da043c12d..f8f2d26c5 100644 --- a/tests/api_resources/zero_trust/access/test_groups.py +++ b/tests/api_resources/zero_trust/access/test_groups.py @@ -2,24 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.access import ZeroTrustGroup, GroupDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.access import group_create_params -from cloudflare.types.zero_trust.access import group_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.access import ( + ZeroTrustGroup, + GroupDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/test_keys.py b/tests/api_resources/zero_trust/access/test_keys.py index 6e36e1e12..f0b87f16c 100644 --- a/tests/api_resources/zero_trust/access/test_keys.py +++ b/tests/api_resources/zero_trust/access/test_keys.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.access import KeyUpdateResponse, KeyGetResponse, KeyRotateResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.access import key_update_params +from cloudflare.types.zero_trust.access import KeyGetResponse, KeyRotateResponse, KeyUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/test_policies.py b/tests/api_resources/zero_trust/access/test_policies.py index 02f485519..168b75070 100644 --- a/tests/api_resources/zero_trust/access/test_policies.py +++ b/tests/api_resources/zero_trust/access/test_policies.py @@ -2,32 +2,21 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.access import ( - PolicyCreateResponse, - PolicyUpdateResponse, - PolicyListResponse, - PolicyDeleteResponse, - PolicyGetResponse, -) - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.access import policy_create_params -from cloudflare.types.zero_trust.access import policy_update_params -from cloudflare.types.zero_trust.access import Decision -from cloudflare.types.zero_trust.access import Decision +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.access import ( + PolicyGetResponse, + PolicyListResponse, + PolicyCreateResponse, + PolicyDeleteResponse, + PolicyUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/test_service_tokens.py b/tests/api_resources/zero_trust/access/test_service_tokens.py index a787bbe9f..4d3c6fb8b 100644 --- a/tests/api_resources/zero_trust/access/test_service_tokens.py +++ b/tests/api_resources/zero_trust/access/test_service_tokens.py @@ -2,24 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.access import ServiceTokenCreateResponse, ServiceToken, ServiceTokenRotateResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.access import service_token_create_params -from cloudflare.types.zero_trust.access import service_token_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.access import ( + ServiceToken, + ServiceTokenCreateResponse, + ServiceTokenRotateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/test_tags.py b/tests/api_resources/zero_trust/access/test_tags.py index 933436ac4..24674ecb4 100644 --- a/tests/api_resources/zero_trust/access/test_tags.py +++ b/tests/api_resources/zero_trust/access/test_tags.py @@ -2,24 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.access import Tag, TagDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.access import tag_create_params -from cloudflare.types.zero_trust.access import tag_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.access import Tag, TagDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/test_users.py b/tests/api_resources/zero_trust/access/test_users.py index f701369c5..eb05e5be0 100644 --- a/tests/api_resources/zero_trust/access/test_users.py +++ b/tests/api_resources/zero_trust/access/test_users.py @@ -2,22 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.zero_trust.access import AccessUser - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.access import AccessUser base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/users/test_active_sessions.py b/tests/api_resources/zero_trust/access/users/test_active_sessions.py index 1ce048bf9..e0f1db9ea 100644 --- a/tests/api_resources/zero_trust/access/users/test_active_sessions.py +++ b/tests/api_resources/zero_trust/access/users/test_active_sessions.py @@ -2,22 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.zero_trust.access.users import ActiveSessionListResponse, ActiveSessionGetResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -from typing import Any, cast, Optional - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.access.users import ActiveSessionGetResponse, ActiveSessionListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/users/test_failed_logins.py b/tests/api_resources/zero_trust/access/users/test_failed_logins.py index 243196d9a..697dbe918 100644 --- a/tests/api_resources/zero_trust/access/users/test_failed_logins.py +++ b/tests/api_resources/zero_trust/access/users/test_failed_logins.py @@ -2,22 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.zero_trust.access.users import FailedLoginListResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.access.users import FailedLoginListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/users/test_last_seen_identity.py b/tests/api_resources/zero_trust/access/users/test_last_seen_identity.py index dfb238182..9b7d2644d 100644 --- a/tests/api_resources/zero_trust/access/users/test_last_seen_identity.py +++ b/tests/api_resources/zero_trust/access/users/test_last_seen_identity.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.access.users import Identity - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.zero_trust.access.users import Identity base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/policies/test_certificates.py b/tests/api_resources/zero_trust/devices/policies/test_certificates.py index af3b70d81..f163b303b 100755 --- a/tests/api_resources/zero_trust/devices/policies/test_certificates.py +++ b/tests/api_resources/zero_trust/devices/policies/test_certificates.py @@ -2,21 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.devices.policies import CertificateUpdateResponse, CertificateGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.devices.policies import certificate_update_params +from cloudflare.types.zero_trust.devices.policies import ( + CertificateGetResponse, + CertificateUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/policies/test_default_policy.py b/tests/api_resources/zero_trust/devices/policies/test_default_policy.py index 6b2a8f6ff..51bc7a1bf 100644 --- a/tests/api_resources/zero_trust/devices/policies/test_default_policy.py +++ b/tests/api_resources/zero_trust/devices/policies/test_default_policy.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.devices.policies import DefaultPolicyGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.zero_trust.devices.policies import DefaultPolicyGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/policies/test_excludes.py b/tests/api_resources/zero_trust/devices/policies/test_excludes.py index 150a880e8..053960e74 100644 --- a/tests/api_resources/zero_trust/devices/policies/test_excludes.py +++ b/tests/api_resources/zero_trust/devices/policies/test_excludes.py @@ -2,23 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.devices.policies import ExcludeUpdateResponse, SplitTunnelExclude, ExcludeGetResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.devices.policies import exclude_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.devices.policies import ( + ExcludeGetResponse, + SplitTunnelExclude, + ExcludeUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/policies/test_fallback_domains.py b/tests/api_resources/zero_trust/devices/policies/test_fallback_domains.py index a0bd45379..71cf3cd9f 100644 --- a/tests/api_resources/zero_trust/devices/policies/test_fallback_domains.py +++ b/tests/api_resources/zero_trust/devices/policies/test_fallback_domains.py @@ -2,27 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.devices.policies import ( - FallbackDomainUpdateResponse, - FallbackDomain, - FallbackDomainGetResponse, -) - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.devices.policies import fallback_domain_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.devices.policies import ( + FallbackDomain, + FallbackDomainGetResponse, + FallbackDomainUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/policies/test_includes.py b/tests/api_resources/zero_trust/devices/policies/test_includes.py index 7d3d155ed..e85816876 100644 --- a/tests/api_resources/zero_trust/devices/policies/test_includes.py +++ b/tests/api_resources/zero_trust/devices/policies/test_includes.py @@ -2,23 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.devices.policies import IncludeUpdateResponse, SplitTunnelInclude, IncludeGetResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.devices.policies import include_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.devices.policies import ( + IncludeGetResponse, + SplitTunnelInclude, + IncludeUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") 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 ac2228431..35efacf42 100644 --- a/tests/api_resources/zero_trust/devices/posture/test_integrations.py +++ b/tests/api_resources/zero_trust/devices/posture/test_integrations.py @@ -2,24 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.devices.posture import Integration, IntegrationDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.devices.posture import integration_create_params -from cloudflare.types.zero_trust.devices.posture import integration_edit_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +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") diff --git a/tests/api_resources/zero_trust/devices/test_dex_tests.py b/tests/api_resources/zero_trust/devices/test_dex_tests.py index bf5f569b7..29d9a5674 100644 --- a/tests/api_resources/zero_trust/devices/test_dex_tests.py +++ b/tests/api_resources/zero_trust/devices/test_dex_tests.py @@ -2,26 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.devices import SchemaHTTP, DEXTestDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.devices import dex_test_create_params -from cloudflare.types.zero_trust.devices import dex_test_update_params -from cloudflare.types.zero_trust.devices import SchemaData -from cloudflare.types.zero_trust.devices import SchemaData +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.devices import ( + SchemaHTTP, + DEXTestDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/test_networks.py b/tests/api_resources/zero_trust/devices/test_networks.py index 405147ea3..254e1b9e8 100644 --- a/tests/api_resources/zero_trust/devices/test_networks.py +++ b/tests/api_resources/zero_trust/devices/test_networks.py @@ -2,24 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.devices import DeviceNetwork, NetworkDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.devices import network_create_params -from cloudflare.types.zero_trust.devices import network_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.devices import ( + DeviceNetwork, + NetworkDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/test_override_codes.py b/tests/api_resources/zero_trust/devices/test_override_codes.py index 7fa959637..263f3c9c1 100644 --- a/tests/api_resources/zero_trust/devices/test_override_codes.py +++ b/tests/api_resources/zero_trust/devices/test_override_codes.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.devices import OverrideCodeListResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.zero_trust.devices import OverrideCodeListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/test_policies.py b/tests/api_resources/zero_trust/devices/test_policies.py index c52fb6b40..d90ac5f90 100644 --- a/tests/api_resources/zero_trust/devices/test_policies.py +++ b/tests/api_resources/zero_trust/devices/test_policies.py @@ -2,24 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.devices import SettingsPolicy, PolicyDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.devices import policy_create_params -from cloudflare.types.zero_trust.devices import policy_edit_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.devices import ( + SettingsPolicy, + PolicyDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/test_posture.py b/tests/api_resources/zero_trust/devices/test_posture.py index 10d1f3403..d702f26a6 100644 --- a/tests/api_resources/zero_trust/devices/test_posture.py +++ b/tests/api_resources/zero_trust/devices/test_posture.py @@ -2,26 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.devices import DevicePostureRule, PostureDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.devices import posture_create_params -from cloudflare.types.zero_trust.devices import posture_update_params -from cloudflare.types.zero_trust.devices import DeviceInput -from cloudflare.types.zero_trust.devices import DeviceInput +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.devices import ( + DevicePostureRule, + PostureDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/test_revoke.py b/tests/api_resources/zero_trust/devices/test_revoke.py index bc048af3d..1eb2113f4 100644 --- a/tests/api_resources/zero_trust/devices/test_revoke.py +++ b/tests/api_resources/zero_trust/devices/test_revoke.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.devices import RevokeCreateResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.devices import revoke_create_params +from cloudflare.types.zero_trust.devices import RevokeCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/test_settings.py b/tests/api_resources/zero_trust/devices/test_settings.py index 090e68617..be7110c74 100644 --- a/tests/api_resources/zero_trust/devices/test_settings.py +++ b/tests/api_resources/zero_trust/devices/test_settings.py @@ -2,22 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.devices import DeviceSettings - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.devices import setting_update_params -from cloudflare.types.zero_trust.devices import setting_edit_params +from cloudflare.types.zero_trust.devices import DeviceSettings base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/test_unrevoke.py b/tests/api_resources/zero_trust/devices/test_unrevoke.py index 77aca5184..67e5a521a 100644 --- a/tests/api_resources/zero_trust/devices/test_unrevoke.py +++ b/tests/api_resources/zero_trust/devices/test_unrevoke.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.devices import UnrevokeCreateResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.devices import unrevoke_create_params +from cloudflare.types.zero_trust.devices import UnrevokeCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dex/fleet_status/test_devices.py b/tests/api_resources/zero_trust/dex/fleet_status/test_devices.py index f1a851ae9..c542c152c 100644 --- a/tests/api_resources/zero_trust/dex/fleet_status/test_devices.py +++ b/tests/api_resources/zero_trust/dex/fleet_status/test_devices.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.zero_trust.dex.fleet_status import DeviceListResponse - -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dex.fleet_status import device_list_params +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.zero_trust.dex.fleet_status import DeviceListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dex/http_tests/test_percentiles.py b/tests/api_resources/zero_trust/dex/http_tests/test_percentiles.py index e9a6c5d8f..c2f629b06 100644 --- a/tests/api_resources/zero_trust/dex/http_tests/test_percentiles.py +++ b/tests/api_resources/zero_trust/dex/http_tests/test_percentiles.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.dex.http_tests import HTTPDetailsPercentiles - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dex.http_tests import percentile_get_params +from cloudflare.types.zero_trust.dex.http_tests import HTTPDetailsPercentiles base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dex/test_colos.py b/tests/api_resources/zero_trust/dex/test_colos.py index 516b40c26..8e4d0db43 100644 --- a/tests/api_resources/zero_trust/dex/test_colos.py +++ b/tests/api_resources/zero_trust/dex/test_colos.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dex import colo_list_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dex/test_fleet_status.py b/tests/api_resources/zero_trust/dex/test_fleet_status.py index 8902966ce..db1676eac 100644 --- a/tests/api_resources/zero_trust/dex/test_fleet_status.py +++ b/tests/api_resources/zero_trust/dex/test_fleet_status.py @@ -2,22 +2,16 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.dex import FleetStatusLiveResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dex import fleet_status_live_params -from cloudflare.types.zero_trust.dex import fleet_status_over_time_params +from cloudflare.types.zero_trust.dex import ( + FleetStatusLiveResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dex/test_http_tests.py b/tests/api_resources/zero_trust/dex/test_http_tests.py index 55e982c33..22013108b 100644 --- a/tests/api_resources/zero_trust/dex/test_http_tests.py +++ b/tests/api_resources/zero_trust/dex/test_http_tests.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.dex import HTTPDetails - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dex import http_test_get_params +from cloudflare.types.zero_trust.dex import HTTPDetails base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dex/test_tests.py b/tests/api_resources/zero_trust/dex/test_tests.py index a703f11b8..70da26054 100644 --- a/tests/api_resources/zero_trust/dex/test_tests.py +++ b/tests/api_resources/zero_trust/dex/test_tests.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.zero_trust.dex import TestListResponse - -from cloudflare.pagination import SyncV4PagePagination, AsyncV4PagePagination - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dex import test_list_params +from cloudflare.pagination import SyncV4PagePagination, AsyncV4PagePagination +from cloudflare.types.zero_trust.dex import TestListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dex/test_traceroute_tests.py b/tests/api_resources/zero_trust/dex/test_traceroute_tests.py index 4754d6cd1..a324201b3 100644 --- a/tests/api_resources/zero_trust/dex/test_traceroute_tests.py +++ b/tests/api_resources/zero_trust/dex/test_traceroute_tests.py @@ -2,25 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.dex import Traceroute, TracerouteTestPercentilesResponse - -from cloudflare.types.zero_trust import NetworkPathResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dex import traceroute_test_get_params -from cloudflare.types.zero_trust.dex import traceroute_test_network_path_params -from cloudflare.types.zero_trust.dex import traceroute_test_percentiles_params +from cloudflare.types.zero_trust import NetworkPathResponse +from cloudflare.types.zero_trust.dex import ( + Traceroute, + TracerouteTestPercentilesResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dex/tests/test_unique_devices.py b/tests/api_resources/zero_trust/dex/tests/test_unique_devices.py index 852d3726e..73c1aa94e 100644 --- a/tests/api_resources/zero_trust/dex/tests/test_unique_devices.py +++ b/tests/api_resources/zero_trust/dex/tests/test_unique_devices.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.dex.tests import UniqueDevices - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dex.tests import unique_device_list_params +from cloudflare.types.zero_trust.dex.tests import UniqueDevices base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dex/traceroute_test_results/test_network_path.py b/tests/api_resources/zero_trust/dex/traceroute_test_results/test_network_path.py index e0a455837..cde7d16b7 100644 --- a/tests/api_resources/zero_trust/dex/traceroute_test_results/test_network_path.py +++ b/tests/api_resources/zero_trust/dex/traceroute_test_results/test_network_path.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.dex.traceroute_test_results import NetworkPathGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.zero_trust.dex.traceroute_test_results import NetworkPathGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dlp/datasets/test_upload.py b/tests/api_resources/zero_trust/dlp/datasets/test_upload.py index 31cf64940..4521acb1e 100644 --- a/tests/api_resources/zero_trust/dlp/datasets/test_upload.py +++ b/tests/api_resources/zero_trust/dlp/datasets/test_upload.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.dlp.datasets import NewVersion - -from cloudflare.types.zero_trust.dlp import Dataset - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dlp.datasets import upload_edit_params +from cloudflare.types.zero_trust.dlp import Dataset +from cloudflare.types.zero_trust.dlp.datasets import NewVersion base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dlp/datasets/test_versions.py b/tests/api_resources/zero_trust/dlp/datasets/test_versions.py index e13023cd5..79ac6345b 100755 --- a/tests/api_resources/zero_trust/dlp/datasets/test_versions.py +++ b/tests/api_resources/zero_trust/dlp/datasets/test_versions.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.dlp.datasets import VersionCreateResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dlp.datasets import version_create_params +from cloudflare.types.zero_trust.dlp.datasets import VersionCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dlp/datasets/versions/test_entries.py b/tests/api_resources/zero_trust/dlp/datasets/versions/test_entries.py index ed32fe698..e7b20090f 100755 --- a/tests/api_resources/zero_trust/dlp/datasets/versions/test_entries.py +++ b/tests/api_resources/zero_trust/dlp/datasets/versions/test_entries.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.dlp.datasets.versions import EntryCreateResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dlp.datasets.versions import entry_create_params +from cloudflare.types.zero_trust.dlp.datasets.versions import EntryCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dlp/profiles/test_custom.py b/tests/api_resources/zero_trust/dlp/profiles/test_custom.py index 5de410710..703b2d3a0 100644 --- a/tests/api_resources/zero_trust/dlp/profiles/test_custom.py +++ b/tests/api_resources/zero_trust/dlp/profiles/test_custom.py @@ -2,25 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.dlp.profiles import CustomCreateResponse - -from cloudflare.types.zero_trust.dlp import Profile - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dlp.profiles import custom_create_params -from cloudflare.types.zero_trust.dlp.profiles import custom_update_params -from cloudflare.types.zero_trust.dlp import ContextAwareness +from cloudflare.types.zero_trust.dlp import Profile +from cloudflare.types.zero_trust.dlp.profiles import CustomCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dlp/profiles/test_predefined.py b/tests/api_resources/zero_trust/dlp/profiles/test_predefined.py index 21e269488..9a28b5dfa 100644 --- a/tests/api_resources/zero_trust/dlp/profiles/test_predefined.py +++ b/tests/api_resources/zero_trust/dlp/profiles/test_predefined.py @@ -2,22 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.dlp import Profile - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dlp.profiles import predefined_update_params -from cloudflare.types.zero_trust.dlp import ContextAwareness +from cloudflare.types.zero_trust.dlp import Profile base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dlp/test_datasets.py b/tests/api_resources/zero_trust/dlp/test_datasets.py index ab8b655fb..67fe94de2 100644 --- a/tests/api_resources/zero_trust/dlp/test_datasets.py +++ b/tests/api_resources/zero_trust/dlp/test_datasets.py @@ -2,24 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.dlp import DatasetCreation, Dataset - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dlp import dataset_create_params -from cloudflare.types.zero_trust.dlp import dataset_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.dlp import Dataset, DatasetCreation base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dlp/test_limits.py b/tests/api_resources/zero_trust/dlp/test_limits.py index cc4b427ad..ca7e470cf 100755 --- a/tests/api_resources/zero_trust/dlp/test_limits.py +++ b/tests/api_resources/zero_trust/dlp/test_limits.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.dlp import LimitListResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.zero_trust.dlp import LimitListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dlp/test_patterns.py b/tests/api_resources/zero_trust/dlp/test_patterns.py index e08ccae81..ededc266a 100644 --- a/tests/api_resources/zero_trust/dlp/test_patterns.py +++ b/tests/api_resources/zero_trust/dlp/test_patterns.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.dlp import PatternValidateResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dlp import pattern_validate_params +from cloudflare.types.zero_trust.dlp import PatternValidateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dlp/test_payload_logs.py b/tests/api_resources/zero_trust/dlp/test_payload_logs.py index dc9e413b2..2d9c15c0b 100644 --- a/tests/api_resources/zero_trust/dlp/test_payload_logs.py +++ b/tests/api_resources/zero_trust/dlp/test_payload_logs.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.dlp import PayloadLogUpdateResponse, PayloadLogGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dlp import payload_log_update_params +from cloudflare.types.zero_trust.dlp import PayloadLogGetResponse, PayloadLogUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dlp/test_profiles.py b/tests/api_resources/zero_trust/dlp/test_profiles.py index 48eef4304..186567d92 100644 --- a/tests/api_resources/zero_trust/dlp/test_profiles.py +++ b/tests/api_resources/zero_trust/dlp/test_profiles.py @@ -2,23 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.zero_trust.dlp import Profile - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -from typing import Any, cast, Optional - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dlp import profile_list_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.dlp import Profile base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/gateway/configurations/test_custom_certificate.py b/tests/api_resources/zero_trust/gateway/configurations/test_custom_certificate.py index c0cd07207..46f34324b 100755 --- a/tests/api_resources/zero_trust/gateway/configurations/test_custom_certificate.py +++ b/tests/api_resources/zero_trust/gateway/configurations/test_custom_certificate.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.zero_trust.gateway import CustomCertificateSettings - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.zero_trust.gateway import CustomCertificateSettings base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/gateway/lists/test_items.py b/tests/api_resources/zero_trust/gateway/lists/test_items.py index 7d1343275..9fcc52d42 100644 --- a/tests/api_resources/zero_trust/gateway/lists/test_items.py +++ b/tests/api_resources/zero_trust/gateway/lists/test_items.py @@ -2,22 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.zero_trust.gateway.lists import ItemListResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.gateway.lists import ItemListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/gateway/test_app_types.py b/tests/api_resources/zero_trust/gateway/test_app_types.py index 966dfccdc..166d36def 100644 --- a/tests/api_resources/zero_trust/gateway/test_app_types.py +++ b/tests/api_resources/zero_trust/gateway/test_app_types.py @@ -2,22 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.zero_trust.gateway import AppType - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.gateway import AppType base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/gateway/test_audit_ssh_settings.py b/tests/api_resources/zero_trust/gateway/test_audit_ssh_settings.py index 8c0a51dd2..a25bf3743 100644 --- a/tests/api_resources/zero_trust/gateway/test_audit_ssh_settings.py +++ b/tests/api_resources/zero_trust/gateway/test_audit_ssh_settings.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.gateway import GatewaySettings - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.gateway import audit_ssh_setting_update_params +from cloudflare.types.zero_trust.gateway import GatewaySettings base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/gateway/test_categories.py b/tests/api_resources/zero_trust/gateway/test_categories.py index e713e3680..42d6ae3b4 100644 --- a/tests/api_resources/zero_trust/gateway/test_categories.py +++ b/tests/api_resources/zero_trust/gateway/test_categories.py @@ -2,22 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.zero_trust.gateway import Category - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.gateway import Category base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/gateway/test_certificates.py b/tests/api_resources/zero_trust/gateway/test_certificates.py index 73380bca9..5cbd3f904 100644 --- a/tests/api_resources/zero_trust/gateway/test_certificates.py +++ b/tests/api_resources/zero_trust/gateway/test_certificates.py @@ -2,33 +2,23 @@ from __future__ import annotations +import os +from typing import Any, Optional, cast + +import pytest + from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - +from tests.utils import assert_matches_type +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage from cloudflare.types.zero_trust.gateway import ( - CertificateCreateResponse, + CertificateGetResponse, CertificateListResponse, + CertificateCreateResponse, CertificateDeleteResponse, CertificateActivateResponse, CertificateDeactivateResponse, - CertificateGetResponse, ) -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -import os -import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.gateway import certificate_create_params -from cloudflare.types.zero_trust.gateway import certificate_activate_params -from cloudflare.types.zero_trust.gateway import certificate_deactivate_params - base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/gateway/test_configurations.py b/tests/api_resources/zero_trust/gateway/test_configurations.py index 5520d19b0..797541e09 100644 --- a/tests/api_resources/zero_trust/gateway/test_configurations.py +++ b/tests/api_resources/zero_trust/gateway/test_configurations.py @@ -2,28 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.gateway import ( - ConfigurationUpdateResponse, - ConfigurationEditResponse, - ConfigurationGetResponse, -) - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.gateway import configuration_update_params -from cloudflare.types.zero_trust.gateway import configuration_edit_params -from cloudflare.types.zero_trust.gateway import GatewayConfigurationSettings -from cloudflare.types.zero_trust.gateway import GatewayConfigurationSettings +from cloudflare.types.zero_trust.gateway import ( + ConfigurationGetResponse, + ConfigurationEditResponse, + ConfigurationUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/gateway/test_lists.py b/tests/api_resources/zero_trust/gateway/test_lists.py index a1b7e39fa..50ef0a070 100644 --- a/tests/api_resources/zero_trust/gateway/test_lists.py +++ b/tests/api_resources/zero_trust/gateway/test_lists.py @@ -2,26 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.gateway import ListCreateResponse, GatewayList - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.gateway import list_create_params -from cloudflare.types.zero_trust.gateway import list_update_params -from cloudflare.types.zero_trust.gateway import list_list_params -from cloudflare.types.zero_trust.gateway import list_edit_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.gateway import ( + GatewayList, + ListCreateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/gateway/test_locations.py b/tests/api_resources/zero_trust/gateway/test_locations.py index ac19251c4..44d742af0 100644 --- a/tests/api_resources/zero_trust/gateway/test_locations.py +++ b/tests/api_resources/zero_trust/gateway/test_locations.py @@ -2,26 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.gateway import Location - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.gateway import location_create_params -from cloudflare.types.zero_trust.gateway import location_update_params -from cloudflare.types.zero_trust.gateway import Endpoint -from cloudflare.types.zero_trust.gateway import Endpoint +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.gateway import Location base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/gateway/test_logging.py b/tests/api_resources/zero_trust/gateway/test_logging.py index f3acbccb5..a157696ec 100644 --- a/tests/api_resources/zero_trust/gateway/test_logging.py +++ b/tests/api_resources/zero_trust/gateway/test_logging.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.gateway import LoggingSetting - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.gateway import logging_update_params +from cloudflare.types.zero_trust.gateway import LoggingSetting base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") 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 58ae8fa26..083e9e9d2 100644 --- a/tests/api_resources/zero_trust/gateway/test_proxy_endpoints.py +++ b/tests/api_resources/zero_trust/gateway/test_proxy_endpoints.py @@ -2,22 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.gateway import ProxyEndpoint, ProxyEndpointGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.gateway import proxy_endpoint_create_params -from cloudflare.types.zero_trust.gateway import proxy_endpoint_edit_params +from cloudflare.types.zero_trust.gateway import ( + ProxyEndpoint, + ProxyEndpointGetResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/gateway/test_rules.py b/tests/api_resources/zero_trust/gateway/test_rules.py index f56cdfc1e..105776ed7 100644 --- a/tests/api_resources/zero_trust/gateway/test_rules.py +++ b/tests/api_resources/zero_trust/gateway/test_rules.py @@ -2,28 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.gateway import GatewayRule - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.gateway import rule_create_params -from cloudflare.types.zero_trust.gateway import rule_update_params -from cloudflare.types.zero_trust.gateway import RuleSetting -from cloudflare.types.zero_trust.gateway import Schedule -from cloudflare.types.zero_trust.gateway import RuleSetting -from cloudflare.types.zero_trust.gateway import Schedule +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.gateway import ( + GatewayRule, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/networks/routes/test_ips.py b/tests/api_resources/zero_trust/networks/routes/test_ips.py index ee5506277..2f78627ef 100644 --- a/tests/api_resources/zero_trust/networks/routes/test_ips.py +++ b/tests/api_resources/zero_trust/networks/routes/test_ips.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.zero_trust.networks import Teamnet - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.networks.routes import ip_get_params +from cloudflare.types.zero_trust.networks import Teamnet base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/networks/routes/test_networks.py b/tests/api_resources/zero_trust/networks/routes/test_networks.py index fb286ac48..5f9fb16ca 100644 --- a/tests/api_resources/zero_trust/networks/routes/test_networks.py +++ b/tests/api_resources/zero_trust/networks/routes/test_networks.py @@ -2,22 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.zero_trust.networks import Route - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.networks.routes import network_create_params -from cloudflare.types.zero_trust.networks.routes import network_delete_params +from cloudflare.types.zero_trust.networks import Route base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/networks/test_routes.py b/tests/api_resources/zero_trust/networks/test_routes.py index 2fe8ed431..057766b11 100644 --- a/tests/api_resources/zero_trust/networks/test_routes.py +++ b/tests/api_resources/zero_trust/networks/test_routes.py @@ -2,27 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.zero_trust.networks import Route, Teamnet - +import os from typing import Any, cast -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.networks import route_create_params -from cloudflare.types.zero_trust.networks import route_list_params -from cloudflare.types.zero_trust.networks import route_edit_params -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.zero_trust.networks import ( + Route, + Teamnet, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/networks/test_virtual_networks.py b/tests/api_resources/zero_trust/networks/test_virtual_networks.py index 3aa84abc1..774feffe3 100644 --- a/tests/api_resources/zero_trust/networks/test_virtual_networks.py +++ b/tests/api_resources/zero_trust/networks/test_virtual_networks.py @@ -2,25 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.zero_trust.networks import VirtualNetwork - +import os from typing import Any, cast -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.networks import virtual_network_create_params -from cloudflare.types.zero_trust.networks import virtual_network_list_params -from cloudflare.types.zero_trust.networks import virtual_network_edit_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.networks import ( + VirtualNetwork, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/risk_scoring/integrations/test_references.py b/tests/api_resources/zero_trust/risk_scoring/integrations/test_references.py index c02a4634b..3e0087721 100644 --- a/tests/api_resources/zero_trust/risk_scoring/integrations/test_references.py +++ b/tests/api_resources/zero_trust/risk_scoring/integrations/test_references.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.risk_scoring.integrations import ReferenceGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.zero_trust.risk_scoring.integrations import ReferenceGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/risk_scoring/test_behaviours.py b/tests/api_resources/zero_trust/risk_scoring/test_behaviours.py index f12a6badb..1e3527df1 100644 --- a/tests/api_resources/zero_trust/risk_scoring/test_behaviours.py +++ b/tests/api_resources/zero_trust/risk_scoring/test_behaviours.py @@ -2,21 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.risk_scoring import BehaviourUpdateResponse, BehaviourGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.risk_scoring import behaviour_update_params +from cloudflare.types.zero_trust.risk_scoring import ( + BehaviourGetResponse, + BehaviourUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/risk_scoring/test_integrations.py b/tests/api_resources/zero_trust/risk_scoring/test_integrations.py index dcfe4abd1..5ec6ae4e5 100644 --- a/tests/api_resources/zero_trust/risk_scoring/test_integrations.py +++ b/tests/api_resources/zero_trust/risk_scoring/test_integrations.py @@ -2,29 +2,20 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.risk_scoring import ( - IntegrationCreateResponse, - IntegrationUpdateResponse, - IntegrationListResponse, - IntegrationGetResponse, -) - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.risk_scoring import integration_create_params -from cloudflare.types.zero_trust.risk_scoring import integration_update_params +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust.risk_scoring import ( + IntegrationGetResponse, + IntegrationListResponse, + IntegrationCreateResponse, + IntegrationUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/risk_scoring/test_summary.py b/tests/api_resources/zero_trust/risk_scoring/test_summary.py index 661f292f2..acf625187 100644 --- a/tests/api_resources/zero_trust/risk_scoring/test_summary.py +++ b/tests/api_resources/zero_trust/risk_scoring/test_summary.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.risk_scoring import SummaryGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.zero_trust.risk_scoring import SummaryGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/test_connectivity_settings.py b/tests/api_resources/zero_trust/test_connectivity_settings.py index 43be6d8c9..310f43190 100644 --- a/tests/api_resources/zero_trust/test_connectivity_settings.py +++ b/tests/api_resources/zero_trust/test_connectivity_settings.py @@ -2,21 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.zero_trust import ConnectivitySettingEditResponse, ConnectivitySettingGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust import connectivity_setting_edit_params +from cloudflare.types.zero_trust import ( + ConnectivitySettingGetResponse, + ConnectivitySettingEditResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/test_devices.py b/tests/api_resources/zero_trust/test_devices.py index 9a78a3b1b..e806fd8d3 100644 --- a/tests/api_resources/zero_trust/test_devices.py +++ b/tests/api_resources/zero_trust/test_devices.py @@ -2,22 +2,15 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.zero_trust import Device, DeviceGetResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - -from typing import Any, cast, Optional - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust import Device, DeviceGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/test_gateway.py b/tests/api_resources/zero_trust/test_gateway.py index f2066af3b..4f68a4f6c 100644 --- a/tests/api_resources/zero_trust/test_gateway.py +++ b/tests/api_resources/zero_trust/test_gateway.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust import GatewayCreateResponse, GatewayListResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.zero_trust import GatewayListResponse, GatewayCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/test_identity_providers.py b/tests/api_resources/zero_trust/test_identity_providers.py index 944caea84..ae705188f 100644 --- a/tests/api_resources/zero_trust/test_identity_providers.py +++ b/tests/api_resources/zero_trust/test_identity_providers.py @@ -2,88 +2,19 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust import IdentityProvider, IdentityProviderListResponse, IdentityProviderDeleteResponse - -from cloudflare.pagination import SyncSinglePage, AsyncSinglePage - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust import identity_provider_create_params -from cloudflare.types.zero_trust import identity_provider_update_params -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import GenericOAuthConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import GenericOAuthConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import GenericOAuthConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import GenericOAuthConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import GenericOAuthConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import GenericOAuthConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import GenericOAuthConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import GenericOAuthConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig -from cloudflare.types.zero_trust import IdentityProviderType -from cloudflare.types.zero_trust import IdentityProviderSCIMConfig +from cloudflare.pagination import SyncSinglePage, AsyncSinglePage +from cloudflare.types.zero_trust import ( + IdentityProvider, + IdentityProviderListResponse, + IdentityProviderDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/test_organizations.py b/tests/api_resources/zero_trust/test_organizations.py index 719f61df2..c9e362553 100644 --- a/tests/api_resources/zero_trust/test_organizations.py +++ b/tests/api_resources/zero_trust/test_organizations.py @@ -2,25 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust import Organization, OrganizationRevokeUsersResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust import organization_create_params -from cloudflare.types.zero_trust import organization_update_params -from cloudflare.types.zero_trust import organization_revoke_users_params -from cloudflare.types.zero_trust import LoginDesign -from cloudflare.types.zero_trust import LoginDesign +from cloudflare.types.zero_trust import ( + Organization, + OrganizationRevokeUsersResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/test_risk_scoring.py b/tests/api_resources/zero_trust/test_risk_scoring.py index 8a54544cb..18653b789 100644 --- a/tests/api_resources/zero_trust/test_risk_scoring.py +++ b/tests/api_resources/zero_trust/test_risk_scoring.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust import RiskScoringGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.zero_trust import RiskScoringGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/test_seats.py b/tests/api_resources/zero_trust/test_seats.py index f77429768..639cbee06 100644 --- a/tests/api_resources/zero_trust/test_seats.py +++ b/tests/api_resources/zero_trust/test_seats.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust import SeatEditResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust import seat_edit_params +from cloudflare.types.zero_trust import SeatEditResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/test_tunnels.py b/tests/api_resources/zero_trust/test_tunnels.py index 9a3b52e8d..688f4266a 100644 --- a/tests/api_resources/zero_trust/test_tunnels.py +++ b/tests/api_resources/zero_trust/test_tunnels.py @@ -2,37 +2,22 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.zero_trust import ( - TunnelCreateResponse, - TunnelListResponse, - TunnelDeleteResponse, - TunnelEditResponse, - TunnelGetResponse, -) - +import os from typing import Any, cast -from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray - -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust import tunnel_create_params -from cloudflare.types.zero_trust import tunnel_list_params -from cloudflare.types.zero_trust import tunnel_edit_params -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime -from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime +from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray +from cloudflare.types.zero_trust import ( + TunnelGetResponse, + TunnelEditResponse, + TunnelListResponse, + TunnelCreateResponse, + TunnelDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/tunnels/test_configurations.py b/tests/api_resources/zero_trust/tunnels/test_configurations.py index 8d6a962cb..7d86faf4c 100644 --- a/tests/api_resources/zero_trust/tunnels/test_configurations.py +++ b/tests/api_resources/zero_trust/tunnels/test_configurations.py @@ -2,21 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.tunnels import ConfigurationUpdateResponse, ConfigurationGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.tunnels import configuration_update_params +from cloudflare.types.zero_trust.tunnels import ( + ConfigurationGetResponse, + ConfigurationUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/tunnels/test_connections.py b/tests/api_resources/zero_trust/tunnels/test_connections.py index ff11cb672..61fe9b401 100644 --- a/tests/api_resources/zero_trust/tunnels/test_connections.py +++ b/tests/api_resources/zero_trust/tunnels/test_connections.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zero_trust.tunnels import ConnectionGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.tunnels import connection_delete_params +from cloudflare.types.zero_trust.tunnels import ConnectionGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/tunnels/test_connectors.py b/tests/api_resources/zero_trust/tunnels/test_connectors.py index 6d456a4ac..639188dd1 100644 --- a/tests/api_resources/zero_trust/tunnels/test_connectors.py +++ b/tests/api_resources/zero_trust/tunnels/test_connectors.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.zero_trust.tunnels import Client - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.zero_trust.tunnels import Client base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/tunnels/test_management.py b/tests/api_resources/zero_trust/tunnels/test_management.py index d42a473c8..9bb75d7bc 100644 --- a/tests/api_resources/zero_trust/tunnels/test_management.py +++ b/tests/api_resources/zero_trust/tunnels/test_management.py @@ -2,21 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.zero_trust.tunnels import ManagementCreateResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.tunnels import management_create_params +from cloudflare.types.zero_trust.tunnels import ManagementCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/tunnels/test_token.py b/tests/api_resources/zero_trust/tunnels/test_token.py index a3c4130b1..ee47c8bf2 100644 --- a/tests/api_resources/zero_trust/tunnels/test_token.py +++ b/tests/api_resources/zero_trust/tunnels/test_token.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.zero_trust.tunnels import TokenGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.zero_trust.tunnels import TokenGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/test_activation_check.py b/tests/api_resources/zones/test_activation_check.py index 141405a60..a78a1d156 100644 --- a/tests/api_resources/zones/test_activation_check.py +++ b/tests/api_resources/zones/test_activation_check.py @@ -2,20 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zones import ActivationCheckTriggerResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.zones import ActivationCheckTriggerResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/test_custom_nameservers.py b/tests/api_resources/zones/test_custom_nameservers.py index 3826d58c5..8e213481d 100644 --- a/tests/api_resources/zones/test_custom_nameservers.py +++ b/tests/api_resources/zones/test_custom_nameservers.py @@ -2,21 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zones import CustomNameserverUpdateResponse, CustomNameserverGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones import custom_nameserver_update_params +from cloudflare.types.zones import ( + CustomNameserverGetResponse, + CustomNameserverUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/test_holds.py b/tests/api_resources/zones/test_holds.py index 7c1be478c..c49066aee 100644 --- a/tests/api_resources/zones/test_holds.py +++ b/tests/api_resources/zones/test_holds.py @@ -2,22 +2,14 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.zones import ZoneHold - -from typing import Any, cast, Optional - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones import hold_create_params -from cloudflare.types.zones import hold_delete_params +from cloudflare.types.zones import ZoneHold base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/test_settings.py b/tests/api_resources/zones/test_settings.py index 92d92a938..ed69c0bcb 100644 --- a/tests/api_resources/zones/test_settings.py +++ b/tests/api_resources/zones/test_settings.py @@ -2,22 +2,17 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from typing import Optional, Any, cast - -from cloudflare.types.zones import SettingEditResponse, SettingGetResponse - import os +from typing import Any, Optional, cast + import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones import setting_edit_params -from cloudflare.types.zones import AutomaticPlatformOptimization +from cloudflare.types.zones import ( + SettingGetResponse, + SettingEditResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/test_subscriptions.py b/tests/api_resources/zones/test_subscriptions.py index 29c37013b..6982f5c82 100644 --- a/tests/api_resources/zones/test_subscriptions.py +++ b/tests/api_resources/zones/test_subscriptions.py @@ -2,24 +2,18 @@ from __future__ import annotations -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare.types.zones import SubscriptionCreateResponse, SubscriptionUpdateResponse, SubscriptionGetResponse - +import os from typing import Any, cast -import os import pytest -import httpx -from typing_extensions import get_args -from typing import Optional -from respx import MockRouter + from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones import subscription_create_params -from cloudflare.types.zones import subscription_update_params -from cloudflare.types.user import RatePlan -from cloudflare.types.user import RatePlan +from cloudflare.types.zones import ( + SubscriptionGetResponse, + SubscriptionCreateResponse, + SubscriptionUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/conftest.py b/tests/conftest.py index 75e9ad93f..dd27712ac 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,14 +1,12 @@ from __future__ import annotations +import os import asyncio import logging -from typing import Iterator +from typing import TYPE_CHECKING, Iterator, AsyncIterator import pytest -import os -from typing import TYPE_CHECKING, AsyncIterator - from cloudflare import Cloudflare, AsyncCloudflare if TYPE_CHECKING: diff --git a/tests/test_client.py b/tests/test_client.py index 814e2ccd0..1e975b397 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -2,47 +2,33 @@ from __future__ import annotations -import httpx - -from cloudflare import Cloudflare, AsyncCloudflare - -from cloudflare._exceptions import APITimeoutError, APIStatusError, APIResponseValidationError - -from typing import Any, cast - -from cloudflare._types import Omit - -from pydantic import ValidationError - -import asyncio import gc -import inspect -import json import os +import json +import asyncio +import inspect import tracemalloc -from typing import Dict, Any, Union, cast +from typing import Any, Union, cast from unittest import mock import httpx import pytest from respx import MockRouter +from pydantic import ValidationError from cloudflare import Cloudflare, AsyncCloudflare, APIResponseValidationError -from cloudflare._models import FinalRequestOptions, BaseModel -from cloudflare._types import NOT_GIVEN, Headers, NotGiven, Query, Body, Timeout, Omit +from cloudflare._types import Omit +from cloudflare._models import BaseModel, FinalRequestOptions +from cloudflare._constants import RAW_RESPONSE_HEADER +from cloudflare._exceptions import APIStatusError, APITimeoutError, APIResponseValidationError from cloudflare._base_client import ( DEFAULT_TIMEOUT, HTTPX_DEFAULT_TIMEOUT, BaseClient, - RequestOptions, make_request_options, ) -from cloudflare._streaming import Stream, AsyncStream -from cloudflare._constants import RAW_RESPONSE_HEADER -from cloudflare._response import APIResponse, AsyncAPIResponse + from .utils import update_env -from typing import cast -from typing import cast base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") api_key = "144c9defac04969c7bfad8efaa8ea194" diff --git a/tests/utils.py b/tests/utils.py index 9baaa4ef7..1c70ad8de 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -8,7 +8,7 @@ from typing import Any, TypeVar, Iterator, cast from datetime import date, datetime from typing_extensions import Literal, get_args, get_origin, assert_type -from cloudflare._types import NoneType, Omit +from cloudflare._types import Omit, NoneType from cloudflare._utils import ( is_dict, is_list,